From:             donp at personaltelco dot net
Operating system: OS X 10.2
PHP version:      5.0.0RC3
PHP Bug Type:     Compile Failure
Bug description:  build fails on unresolved symbols mysql_create_db and mysql_

Description:
------------
Buliding PHP5.0RC3 under OS X 10.2 and MySQL 4.0.15 fails.

This is the stock MySQL and GCC that comes with OS X 10.2.

./configure --prefix=/Users/donp/php5 
--with-apxs2=/Users/donp/apache2/bin/apxs --with-mysql --with-ldap
--with-libxml-dir=/sw/

(configure script completes successfully.)

make

(build progresses to the final link stage)
ld: warning multiple definitions of symbol _pcre_free
ext/pcre/pcrelib/pcre.o definition of _pcre_free in section
(__DATA,__data)
/Users/donp/apache2/bin/httpd definition of _pcre_free
ld: warning multiple definitions of symbol _pcre_malloc
ext/pcre/pcrelib/pcre.o definition of _pcre_malloc in section
(__DATA,__data)
/Users/donp/apache2/bin/httpd definition of _pcre_malloc
ld: warning multiple definitions of symbol _regcomp
/Users/donp/apache2/bin/httpd definition of _regcomp
/usr/lib/libpthread.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
/Users/donp/apache2/bin/httpd definition of _regexec
/usr/lib/libpthread.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
/Users/donp/apache2/bin/httpd definition of _regfree
/usr/lib/libpthread.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_mysql_create_db
_mysql_drop_db
make: *** [libs/libphp5.bundle] Error 1


I did some research into it and it looks like those functions might have
been removed from mysqlclient.a at some point. I removed the source code
lines in ext/mysql/php_mysql.c|h that defined mysql_create_db and
mysql_drop_db (basically the code wrapped by #ifndef NETWARE). It would
then build and install but if I tried to use mysql_connect the apache
thread core dumps.


-- 
Edit bug report at http://bugs.php.net/?id=28810&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28810&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28810&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28810&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28810&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28810&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28810&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28810&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28810&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28810&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28810&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28810&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28810&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28810&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28810&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28810&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28810&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28810&r=float

Reply via email to