#42764 [Opn->Bgs]: cannot configure --with-mysql because conftest looks in the wrong place on OS X
| From: | jani@php.net | Date: | Wed, 26 Sep 2007 22:01:11 +0000 |
| Subject: | #42764 [Opn->Bgs]: cannot configure --with-mysql because conftest looks in the wrong place on OS X | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117880@lists.php.net to get a copy of this message | ||
ID: 42764
Updated by: jani@php.net
Reported By: wangoo dot tangoo at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: os x
PHP Version: 5.2.4
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
See bug #42515
Previous Comments:
------------------------------------------------------------------------
[2007-09-25 23:46:49] wangoo dot tangoo at yahoo dot com
Category was wrong. This is a configuration issue, not a compile issue.
------------------------------------------------------------------------
[2007-09-25 23:17:36] wangoo dot tangoo at yahoo dot com
Clarified in summary that this is strictly an OS X bug.
------------------------------------------------------------------------
[2007-09-25 23:15:02] wangoo dot tangoo at yahoo dot com
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 this bug report at http://bugs.php.net/?id=42764&edit=1