#42764 [NEW]: cannot configure --with-mysql because conftest looks in the wrong place
From: wangoo dot tangoo at yahoo dot com
Operating system: os x
PHP version: 5.2.4
PHP Bug Type: Compile Failure
Bug description: cannot configure --with-mysql because conftest looks in the wrong place
Description:
------------
A clean, fresh install of mysql on os x places the client dynamic
libraries in /usr/local/mysql/lib
Php's conftest looks for them in /usr/local/mysql/lib/mysql
Because they are not found there, the configuration dies.
This is a new install (neither existed on this machine in the past) of
both php and mysql. It is reproducible.
A google search for the quotes string:
"dyld: Library not loaded:
/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib"
indicates that numerous other people are having this problem as well.
Reproduce code:
---------------
./configure --with-mysql=/usr/local/mysql
Expected result:
----------------
I expect the configuration to complete successfully.
Actual result:
--------------
Here is the output in debug.log:
CONFIGURE: './configure' '--with-mysql=/usr/local/mysql'
CC: gcc
CFLAGS: -I/usr/include -g -O2
CPPFLAGS: -no-cpp-precomp
CXX:
CXXFLAGS:
INCLUDES: -I/usr/include/libxml2 -I/Users/art/Desktop/php-
5.2.4/ext/date/lib -I/usr/local/mysql/include
LDFLAGS: -liconv -L/usr/lib -L/usr/local/mysql/lib -
L/usr/local/mysql/lib
LIBS: -lmysqlclient -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -
lz -liconv -lm -lxml2 -lz -liconv -lm
DLIBS:
SAPI: cgi
PHP_RPATHS: /usr/local/mysql/lib
uname -a: Darwin leo-macbook-1 8.10.1 Darwin Kernel Version 8.10.1:
Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386
i386
gcc -o conftest -I/usr/include -g -O2 -no-cpp-precomp -liconv -
L/usr/lib -L/usr/local/mysql/lib -L/usr/local/mysql/lib conftest.c -
lmysqlclient -li\
conv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -
liconv -lm 1>&5
conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in
function 'exit'
dyld: Library not loaded:
/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /Users/art/Desktop/php-5.2.4/./conftest
Reason: image not found
./configure: line 91490: 22722 Trace/BPT trap ./conftest
--
Edit bug report at http://bugs.php.net/?id=42764&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42764&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42764&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42764&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42764&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42764&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42764&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42764&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42764&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42764&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42764&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42764&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42764&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42764&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42764&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42764&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42764&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42764&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42764&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42764&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42764&r=mysqlcfg
Thread (4 messages)
- wangoo dot tangoo at yahoo dot com