#35107 [Opn->Fbk]: compile failure with PHP 5.1 + MySQL 5
| From: | sniper@php.net | Date: | Sat, 05 Nov 2005 11:39:08 +0000 |
| Subject: | #35107 [Opn->Fbk]: compile failure with PHP 5.1 + MySQL 5 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87613@lists.php.net to get a copy of this message | ||
ID: 35107
Updated by: sniper@php.net
Reported By: alex at whitewhale dot net
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: MacOS X 10.4.3
PHP Version: 5.1.0RC4
New Comment:
So now we've found out that the problem isn't in ext/mysqli.
Try this configure line (with the usual "rm config.cache" and "make
clean", which are only needed if you're not using fresh sources
everytime)
# ./configure --disable-all --enable-pdo --with-pdo-mysql
Previous Comments:
------------------------------------------------------------------------
[2005-11-05 02:17:26] alex at whitewhale dot net
Actually, I ran "make clean" several times in trying to
diagnose this. Also, as I said, I tried compiling a fresh
snapshot this morning to no avail.
I was finally able to compile it with your suggested,
stripped-down config line after both "rm config.cache" and
"make clean" but the moment I tried it with my normal config
line, it failed again with the original error.
Just to be clear, the following sequence does *not* work for
me (on my Mac, it works on my Linux box):
rm config.cache
make clean
./configure --with-apxs=/usr/sbin/apxs --prefix=/usr --
enable-inline-optimization --with-libxml-dir=/sw --with-
mysqli=/usr/local/mysql/bin/mysql_config --with-gd --with-
jpeg-dir=/sw --with-png-dir=/sw --with-zlib-dir=/usr --with-
pdo-mysql --with-xmlrpc --with-mm=/usr/local --disable-debug
--with-ldap --enable-soap
make
------------------------------------------------------------------------
[2005-11-04 18:20:06] sniper@php.net
Does this configure line work any better:
# rm config.cache
# ./configure --disable-all --with-apxs=/usr/sbin/apxs \
--with-mysqli=/usr/local/mysql/bin/mysql_config
------------------------------------------------------------------------
[2005-11-04 17:40:02] alex at whitewhale dot net
Description:
------------
Not very knowledgeable about compiler issues, but: getting a
compile failure on MacOS X related to MySQL. PHP 5.1 RC3
compiled with MySQL 5 successfully, but RC4 and a snapshot
from this morning both fail using the following configure
line:
./configure --with-apxs=/usr/sbin/apxs --prefix=/usr --enable-
inline-optimization --with-libxml-dir=/sw --with-mysqli=/usr/
local/mysql/bin/mysql_config --with-gd --with-jpeg-dir=/sw --
with-png-dir=/sw --with-zlib-dir=/usr --with-pdo-mysql --with-
xmlrpc --with-mm=/usr/local --disable-debug --with-ldap --
enable-soap
Reproduce code:
---------------
make
Expected result:
----------------
a successful compile
Actual result:
--------------
/usr/bin/ld: warning multiple definitions of symbol _regcomp
/usr/sbin/httpd definition of _regcomp
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libm.dylib
(regcomp.So) definition of _regcomp
/usr/bin/ld: warning multiple definitions of symbol _regexec
/usr/sbin/httpd definition of _regexec
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libm.dylib
(regexec.So) definition of _regexec
/usr/bin/ld: warning multiple definitions of symbol _regfree
/usr/sbin/httpd definition of _regfree
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libm.dylib
(regfree.So) definition of _regfree
/usr/bin/ld: Undefined symbols:
_mysql_get_character_set_info
_mysql_set_character_set
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35107&edit=1