| Bug #15341 | mysql_config --libs reports wrong library location in amd64 | ||
|---|---|---|---|
| Submitted: | 30 Nov 2005 5:26 | Modified: | 8 Dec 2005 11:29 |
| Reporter: | Alfredo Kojima | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: Packaging | Severity: | S3 (Non-critical) |
| Version: | 5.0.16 | OS: | Linux (SuSE 9.3 x86_64) |
| Assigned to: | CPU Architecture: | Any | |
[30 Nov 2005 6:01]
Jorge del Conde
I was able to reproduce this under FC4 X64/recent 5.0bk pull
[8 Dec 2005 11:29]
Hartmut Holzgraefe
duplicate of #13158

Description: The library location reported by mysql_config --libs is wrong, it says /usr/lib but should be /usr/lib64 How to repeat: [akojima@gui-srva mysql-gui-common]$ rpm -ql MySQL-devel|grep libmysql /usr/lib64/mysql/libmysqlclient.a /usr/lib64/mysql/libmysqlclient.la /usr/lib64/mysql/libmysqlclient_r.a /usr/lib64/mysql/libmysqlclient_r.la [akojima@gui-srva mysql-gui-common]$ /usr/bin/mysql_config Usage: /usr/bin/mysql_config [OPTIONS] Options: --cflags [-I/usr/include/mysql -g -pipe] --include [-I/usr/include/mysql] --libs [-L/usr/lib -lmysqlclient -lz -lcrypt -lnsl -lm] --libs_r [-L/usr/lib -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread] --socket [/var/lib/mysql/mysql.sock] --port [3306] --version [5.0.16] --libmysqld-libs [-L/usr/lib -lmysqld -lz -lpthread -lcrypt -lnsl -lm -lpthread -lrt] Suggested fix: The following code in mysql_config: pkglibdir='/usr/lib64/mysql' fix_path pkglibdir lib/mysql lib could be conditionally (on x86_64) replaced with: pkglibdir='/usr/lib64/mysql' fix_path pkglibdir lib64/mysql lib