Bug #95308 Compilation Without Server Fails in 5.7.24 through 5.7.27.

Submitted: 8 May 2019 18:17 Modified: 26 Jun 2019 9:27
Reporter: Dayyan Lord Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.24+, 5.7.26 OS:Ubuntu (Xenial)
Assigned to: CPU Architecture:x86 (amd64)

[8 May 2019 18:17] Dayyan Lord
Description:
Compilation of MySQL 5.7.24 through 27 with -DWITHOUT_SERVER:BOOL=on fails.

Scanning dependencies of target mysqlbinlog
[ 72%] Building CXX object client/CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o
[ 72%] Linking CXX executable mysqlbinlog
../archive_output_directory/libmysqlclient.a(mf_iocache2.c.o): In function `my_b_fill':
/usr/src/mysql/mysys/mf_iocache2.c:227: undefined reference to `mysql_file_read'
/usr/src/mysql/mysys/mf_iocache2.c:207: undefined reference to `mysql_file_seek'
../archive_output_directory/libmysqlclient.a(mf_iocache2.c.o): In function `my_b_filelength':
/usr/src/mysql/mysys/mf_iocache2.c:291: undefined reference to `mysql_file_seek'
collect2: error: ld returned 1 exit status
client/CMakeFiles/mysqlbinlog.dir/build.make:104: recipe for target 'client/mysqlbinlog' failed
make[2]: *** [client/mysqlbinlog] Error 1
CMakeFiles/Makefile2:1956: recipe for target 'client/CMakeFiles/mysqlbinlog.dir/all' failed
make[1]: *** [client/CMakeFiles/mysqlbinlog.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

How to repeat:
cmake .. -DDOWNLOAD_BOOST=1 -DWITH_BOOST=~/my_boost -DWITH_SSL=system -DWITHOUT_SERVER:BOOL=on
make install
[9 May 2019 8:07] MySQL Verification Team
Hello Dayyan Lord,

Thank you for the report.
Verified as described with 5.7.26 build.

thanks,
Umesh
[14 May 2019 17:15] Dayyan Lord
I was able to fix this by requiring the file which contains the definitions for the missing methods in /mysys/mf_iocache2.c.

However, the OCA is too broad so I won't be signing it, so I cannot send a patch.
[26 Jun 2019 9:27] Dyre Tjeldvoll
Posted by developer:
 
Closing since this has been fixed in later versions.
[26 Jun 2019 10:03] Dyre Tjeldvoll
Posted by developer:
 
Fixed more recently than previously assumed. Closing as duplicate of bug fixed instead.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.