From: seth at pricepages dot org
Operating system: Mac 10.4.9
PHP version: 5CVS-2007-06-25 (snap)
PHP Bug Type: Compile Failure
Bug description: Linking MySQLi fails during ./configure
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 bug report at http://bugs.php.net/?id=41803&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41803&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41803&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41803&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41803&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41803&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41803&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41803&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41803&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41803&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41803&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41803&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41803&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41803&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41803&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41803&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41803&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41803&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41803&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41803&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41803&r=mysqlcfg