Bug #90177 make[2]: *** [libmysqld/examples/mysql_client_test_embedded] Error 1

Submitted: 22 Mar 2018 11:24 Modified: 22 Mar 2018 16:47
Reporter: chen chen (OCA) Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:MySQL 5.7.21 OS:Red Hat (7.4)
Assigned to: CPU Architecture:Any

[22 Mar 2018 11:24] chen chen
Description:
i try tp compile the mysql-boost-5.7.21.tar.gz in RHEL 7.4, but some errors occured,Here is the output:

mysql_client_test.c:(.text.startup+0x22): undefined reference to `my_progname'
mysql_client_test.c:(.text.startup+0x34): undefined reference to `my_init'
mysql_client_test.c:(.text.startup+0xb5): undefined reference to `load_defaults'
mysql_client_test.c:(.text.startup+0xe8): undefined reference to `handle_options'
mysql_client_test.c:(.text.startup+0x100): undefined reference to `get_tty_password'
mysql_client_test.c:(.text.startup+0x18f): undefined reference to `mysql_server_init'
mysql_client_test.c:(.text.startup+0x1f7): undefined reference to `free_defaults'
mysql_client_test.c:(.text.startup+0x1fc): undefined reference to `mysql_server_end'
mysql_client_test.c:(.text.startup+0x33d): undefined reference to `free_defaults'
mysql_client_test.c:(.text.startup+0x366): undefined reference to `my_free'
mysql_client_test.c:(.text.startup+0x376): undefined reference to `mysql_server_end'
mysql_client_test.c:(.text.startup+0x37f): undefined reference to `my_end'
mysql_client_test.c:(.text.startup+0x3d6): undefined reference to `my_free'
mysql_client_test.c:(.text.startup+0x3e2): undefined reference to `my_free'
collect2: error: ld returned 1 exit status
make[2]: *** [libmysqld/examples/mysql_client_test_embedded] Error 1
make[1]: *** [libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/all] Error 2
make: *** [all] Error 2

How to repeat:
OS version:
[root@node1 src]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[root@node1 src]# uname -a
Linux node1 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

Here is the step:

cd mysql-5.7.21
mkdir build
cd build
cmake .. -DBUILD_CONFIG=mysql_release -DWITH_BOOST=../boost/
make

then the error occured
[22 Mar 2018 16:40] MySQL Verification Team
cmake output

Attachment: cmake-build.txt (text/plain), 22.01 KiB.

[22 Mar 2018 16:41] MySQL Verification Team
make output

Attachment: make-build.txt (text/plain), 182.53 KiB.

[22 Mar 2018 16:47] MySQL Verification Team
Thank you for the bug report. I couldn't repeat on Oracle Linux 7 (see attached files of cmake and make outputs).

miguel@miguel-o7:~/mysql-5.7.21/build $ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.4 (Maipo)
miguel@miguel-o7:~/mysql-5.7.21/build $ sql/mysqld --version
sql/mysqld  Ver 5.7.21 for Linux on x86_64 (MySQL Community Server (GPL))

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

Page generated in 0.040 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.