From:             hillct-php-bugreport at cthill dot org
Operating system: Lunux (fc4-fc6) x86_64
PHP version:      5CVS-2007-04-29 (snap)
PHP Bug Type:     Compile Failure
Bug description:  mysql lib configure error in x86_64 builds - with patch

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 bug report at http://bugs.php.net/?id=41231&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41231&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41231&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41231&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41231&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41231&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41231&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41231&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41231&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41231&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41231&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41231&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41231&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41231&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41231&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41231&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41231&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41231&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41231&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41231&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41231&r=mysqlcfg

Reply via email to