[Bug 225741] Re: /usr/bin/mysql_config --libs_r reports incorrect link flags

Cesare Tirabassi cesare.tirabassi at gmail.com
Fri Jul 11 14:38:11 BST 2008

Furthermore this will cause building from source to fail if used in ld calls.
See for instance ulogd:


/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
ld: unrecognized option '-Wl,-Bsymbolic-functions'
ld: use the --help option for usage information
make[2]: *** [ulogd_MYSQL.so] Error 1
make[2]: Leaving directory `/build/buildd/ulogd-1.24/mysql'
make[1]: *** [recurse] Error 1
make[1]: Leaving directory `/build/buildd/ulogd-1.24'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

** Changed in: mysql-dfsg-5.0 (Ubuntu)
   Importance: Undecided => Medium
       Status: New => Confirmed

/usr/bin/mysql_config --libs_r reports incorrect link flags
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

More information about the Ubuntu-server-bugs mailing list