|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66130 configure script searches for lib<mysqlibname>.*
Submitted: 2013-11-20 22:14 UTC Modified: 2013-11-20 23:57 UTC
From: mail at markus-ullmann dot de Assigned: mysql (profile)
Status: Wont fix Package: MySQL related
PHP Version: 5.4.22 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-11-20 22:14 UTC] mail at markus-ullmann dot de
In configure script for 5.4.22 starting on line 61786, the script searches for a libmysqlclient. It searches for libmysqlclient.* in common library folders such as /usr, /usr/lib64 and so on.

For an application I need, I have a in that directory as the application is linked against this version. There is NO though, so linking against it with "-lmysqlclient" does not work.

My MySQL installation lives in /usr/lib64/mysql though which mysql_config reports just fine and even the configure script finds correctly when I move the library out of the way.

Actual result:
It should only search for either a (or a libmysqlclient.dylib depending on your environment) as only those fulfill the linker requirement when -lmysqlclient is specified.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-20 22:50 UTC]
-Package: Compile Failure +Package: MySQL related -Assigned To: +Assigned To: mysql
 [2013-11-20 23:57 UTC]
-Status: Assigned +Status: Wont fix
 [2013-11-20 23:57 UTC]
This probably is the ext/mysql configuration. Both mysqli and pdo_mysql can use mysql_config. For legacy reasons ext/mysql doesn't. ext/mysql is deprecated and not suggested to use and we don't plan to open the can of worms of the build system there.

But there is a solution: We include mysqlnd as a PHP-specific replacement for libmysql, simply compiling --with-mysql --with-mysqli --with-pdo-mysql without extra path in 5.4 or newer should use mysqlnd instead of looking for libmysql. This can also be forced by using =mysqlnd as "path" to the three options
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Mar 04 04:01:28 2024 UTC