ID: 41231
User updated by: hillct-php-bugreport at cthill dot org
-Summary: mysql lib configure error in x86_64 builds - with
patch
Reported By: hillct-php-bugreport at cthill dot org
-Status: Bogus
+Status: Open
-Bug Type: Compile Failure
+Bug Type: *Configuration Issues
Operating System: Lunux (fc4-fc6) x86_64
PHP Version: 5CVS-2007-04-29 (snap)
New Comment:
The documentation indicates that --with-libdir should be used to
specify a full path, which is a case tested before this bug was
submitted. The documentation should be updated to reflect use of the
libdir argument with relative paths or path fragments. Having consulted
many supposed expert php developers, who have all told me the configure
script is broken in this way (one having given me the patch as a
solution), it seems the documentation needs to be clarified on this
point.
Previous Comments:
------------------------------------------------------------------------
[2007-04-30 07:38:05] [EMAIL PROTECTED]
You should be using --with-libdir=lib64 in your configure line.
No bug here.
------------------------------------------------------------------------
[2007-04-29 21:40:58] hillct-php-bugreport at cthill dot org
Description:
------------
The configure script fails to search for the mysql libraries in the
proper location for some (Fedora) x86_64 environments. There is no way
to override this behavior on the configure command line. This error is
100% reproducible in FC4 - FC6 on x86_64 hardware. The solution is a
one line fix in the configure script. More properly it should probably
be applied to whatever m4 macro is used to construct the script, but
that doesn't seem to be available in the snapshot.
The patch that corrects this bug is available here:
http://www.pastebin.ca/465020
Reproduce code:
---------------
configure --with-zlib --with-mysql --enable-mbstring --enable-fastcgi
and --enable-discard-path --no-create --no-recursion
Expected result:
----------------
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
checking for mysql_close in -lmysqlclient... yes
This result is achieved by applying the patch located here:
http://www.pastebin.ca/465020
Actual result:
--------------
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41231&edit=1