Bug #20698 mysql_config --libs output is wrong for static mysql packages

Submitted: 26 Jun 2006 14:11 Modified: 27 Jul 2006 17:03
Reporter: Stefan Hueneburg Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4 and 5 OS:Linux (Debian Sarge)
Assigned to: CPU Architecture:Any

[26 Jun 2006 14:11] Stefan Hueneburg
Description:
I don't know if this is a known issue, but i couldn't find anything in the Bug System.

MysqlAB 4 or 5 static binary packages for Linux (or other Unixes) doesn't contain a shared libmysqlclient.so library. 
So far so bad, it would make live easier, if there were a shared client.

However, mysql_config announces a nonexisting libmysqlclient.so if called with option --libs:

-L/www/mysql/lib -lmysqlclient -lz -lcrypt -lnsl -lm

/www/mysql/bin # ls -l ../lib/libmysqlclient*
-rw-r--r--  1 root mysql 1710624 Dec 15  2005 ../lib/libmysqlclient.a
-rw-r--r--  1 root mysql 1723468 Dec 15  2005 ../lib/libmysqlclient_r.a

This leads to problems if one tries to compile PHP4/5 or other application that depend on a mysql clientlib. 

PHP autoconf thinks, there is a libmysqlclient.so to link dynamically, but the compiled application lacks Mysql Support.

How to repeat:
/www/mysql/bin # ./mysql_config --libs
-L/www/mysql/lib -lmysqlclient -lz -lcrypt -lnsl -lm

/www/mysql/bin # ls -l ../lib/libmysqlclient*
-rw-r--r--  1 root mysql 1710624 Dec 15  2005 ../lib/libmysqlclient.a
-rw-r--r--  1 root mysql 1723468 Dec 15  2005 ../lib/libmysqlclient_r.a
[27 Jun 2006 17:03] Valeriy Kravchuk
Thank you for a problem report. Please, inform, what exact packages should be checked, say, in latest 5.0.22. http://dev.mysql.com/get/Downloads/MySQL-5.0/MySQL-devel-5.0.22-0.i386.rpm? http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-standard-5.0.22-linux-i686.tar.gz?
[27 Jul 2006 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

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