/usr/bin/mysql_config --libs_r reports incorrect link flags
Bug #225741 reported by
Simon Hausmann
This bug report is a duplicate of:
Bug #605021: mismatch in mysql_config output and libmysqld cflags.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
mysql-dfsg-5.0 (Suse) |
Fix Released
|
Unknown
|
|||
mysql-dfsg-5.1 (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Ubuntu 8.04
Package Version: 5.0.51a-3ubuntu5
The script /usr/bin/
-Wl,-Bsymbolic-
The linker option -Bsymbolic-function is private to the mysql client library and should not be exported to libraries/programs linking against the mysql client library.
Changed in mysql-dfsg-5.0: | |
status: | Confirmed → Triaged |
Changed in mysql-dfsg-5.0: | |
status: | Unknown → Fix Released |
affects: | mysql-dfsg-5.0 (Ubuntu) → mysql-dfsg-5.1 (Ubuntu) |
To post a comment you must log in.
Furthermore this will cause building from source to fail if used in ld calls.
See for instance ulogd:
https:/ /launchpad. net/ubuntu/ +source/ ulogd/1. 24-2/+build/ 592877
/usr/bin/ mysql_config --libs reports -Wl,-Bsymbolic- functions -L/usr/lib/mysql -lmysqlclient
And the build fails with:
ld -shared -L/usr/lib -L/usr/lib -Wl,-Bsymbolic- functions -L/usr/lib/mysql -lmysqlclient -o ulogd_MYSQL.so ulogd_MYSQL_sh.o -lc -functions' buildd/ ulogd-1. 24/mysql' buildd/ ulogd-1. 24' stamp-makefile- build] Error 2
ld: unrecognized option '-Wl,-Bsymbolic
ld: use the --help option for usage information
make[2]: *** [ulogd_MYSQL.so] Error 1
make[2]: Leaving directory `/build/
make[1]: *** [recurse] Error 1
make[1]: Leaving directory `/build/
make: *** [debian/
dpkg-buildpackage: failure: debian/rules build gave error exit status 2