ID: 41803
Updated by: [EMAIL PROTECTED]
Reported By: seth at pricepages dot org
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Mac 10.4.9
PHP Version: 5CVS-2007-06-25 (snap)
New Comment:
ls -l /usr/local/mysql/lib/libmysqlclient.15.dylib
?
Previous Comments:
------------------------------------------------------------------------
[2007-06-25 21:28:42] seth at pricepages dot org
No, the library is in /usr/local/mysql/lib and mysql_config beleives it
is in /usr/local/mysql/lib. I'm not sure what is causing the conftest
program to do what it's doing.
The mysql install was a binary install of v5.0.41, and as far as I can
tell is working fine.
------------------------------------------------------------------------
[2007-06-25 20:43:24] [EMAIL PROTECTED]
According to your mysql_config output, the library should be in:
/usr/local/mysql/lib/
And you say the library is in:
/usr/local/mysql/lib/mysql/
Have you moved it manually or something?
------------------------------------------------------------------------
[2007-06-25 17:27:51] seth at pricepages dot org
Description:
------------
The test program compiled by configure links to a non-existant mysqli
library (and fails to be run). See the following debug.log:
CONFIGURE: './configure' '--with-mysqli=/usr/local/mysql/bin/
mysql_config'
CC: gcc
CFLAGS: -I/usr/local/include -g -O2
CPPFLAGS: -no-cpp-precomp
CXX:
CXXFLAGS:
INCLUDES: -I/usr/include/libxml2 -I/usr/local/php/
php5.2-200706251630/ext/date/lib -I/usr/local/mysql/include
LDFLAGS: -liconv -L/usr/local/lib -L/usr/local/lib -L/usr/local/
lib -L/usr/local/mysql/lib -L/usr/local/mysql/lib
LIBS: -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm
-lmysqlclient -lz -lm -lxml2 -lz -liconv -lm
DLIBS:
SAPI: cgi
PHP_RPATHS: /usr/local/lib /usr/local/mysql/lib
uname -a: Darwin Pine06.local 8.10.0 Darwin Kernel Version 8.10.0:
Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power
Macintosh powerpc
gcc -o conftest -I/usr/local/include -g -O2 -no-cpp-precomp -liconv -
L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/mysql/
lib -L/usr/local/mysql/lib conftest.c -liconv -lm -lxml2 -lz -liconv
-lm -lxml2 -lz -liconv -lm -lmysqlclient -lz -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: /usr/local/php/php5.2-200706251630/./conftest
Reason: image not found
./configure: line 90558: 4955 Trace/BPT trap ./conftest
The dyld *does* exist at this location:
/usr/local/mysql/lib/libmysqlclient.15.dylib
mysql_config gives this:
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/mysql/include -Os -arch ppc -
fno-common]
--include [-I/usr/local/mysql/include]
--libs [-L/usr/local/mysql/lib -lmysqlclient -lz -
lm]
--libs_r [-L/usr/local/mysql/lib -lmysqlclient_r -lz -
lm]
--socket [/tmp/mysql.sock]
--port [3306]
--version [5.0.41]
--libmysqld-libs [-L/usr/local/mysql/lib -lmysqld -lz -lm]
This problem exists in the latest v5 CVS snap and 5.2.3, but not in
5.2.0.
Reproduce code:
---------------
./configure --with-mysqli=/usr/local/mysql/bin/mysql_config
Expected result:
----------------
Configure should end like this:
...
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser. See |
| http://www.php.net/manual/security.php for more details. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
...
Actual result:
--------------
But it doesn't:
...
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser. See |
| http://www.php.net/manual/security.php for more details. |
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| [EMAIL PROTECTED] mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41803&edit=1