Bug #66130 [Asn->Wfx]: configure script searches for lib<mysqlibname>.*

From: Date: Wed, 20 Nov 2013 23:57:19 +0000
Subject: Bug #66130 [Asn->Wfx]: configure script searches for lib<mysqlibname>.*
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182875@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66130&edit=1

 ID:                 66130
 Updated by:         johannes@php.net
 Reported by:        mail at markus-ullmann dot de
 Summary:            configure script searches for lib<mysqlibname>.*
-Status:             Assigned
+Status:             Wont fix
 Type:               Bug
 Package:            MySQL related
 Operating System:   Linux
 PHP Version:        5.4.22
 Assigned To:        mysql
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2013-11-20 22:14:46] mail at markus-ullmann dot de

Description:
------------
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 libmysqlclient.so.15 in that directory as the application is
linked against this version. There is NO libmysqlclient.so 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 libmysqlclient.so (or a libmysqlclient.dylib depending on your
environment) as only those fulfill the linker requirement when -lmysqlclient is specified.


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=66130&edit=1


Thread (2 messages)

« previous php.bugs (#182875) next »