[MDEV-15064] mysys/mf_iocache.c doesn't compile on Solaris 11.4 Beta Created: 2018-01-25  Updated: 2021-04-17  Resolved: 2021-04-17

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.2.12
Fix Version/s: 10.2.38, 10.3.29, 10.4.19, 10.5.10

Type: Bug Priority: Major
Reporter: Rainer Orth Assignee: Daniel Black
Resolution: Fixed Votes: 1
Labels: beginner-friendly, contribution
Environment:

Solaris 11.4 Beta using the bundled gcc 5.5


Attachments: File rp.patch    

 Description   

When trying to compile MariaDB 10.2.12 on Solaris 11.4 Beta, compilation failed in
mysys/mf_iocache.c:

/vol/src/mariadb/mariadb-10.2.12/mysys/mf_iocache.c: In function '_my_b_async_read':
/vol/src/mariadb/mariadb-10.2.12/mysys/mf_iocache.c:1588:24: error: 'IO_CACHE {aka struct st_io_cache}' has no member named 'rc_pos'
     info->read_end=info->rc_pos+read_length;
                        ^

While that member is still called rc_pos in libmariadb/include/ma_sys.h, it's called
read_pos in include/my_sys.h.

The attached trivial patch allowed the compilation to continue.



 Comments   
Comment by gfischer [ 2018-02-22 ]

confirming that with 10.2.13 on solaris 11.2. neither sunpro nor gcc let that slide and the patch works.

Comment by Daniel Black [ 2020-11-20 ]

bb-10.2-danielblack-MDEV-15064-IO_CACHE-read_pos in build bot

Comment by Daniel Black [ 2021-04-17 ]

sorry for the delay.

Generated at Thu Feb 08 08:18:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.