From:             grayw at mail dot montclair dot edu
Operating system: Mac OS X 10.3.1
PHP version:      5.0.0b2 (beta2)
PHP Bug Type:     Compile Failure
Bug description:  'ld: warning multiple definitions' problem

Description:
------------
Compiling PHP5.0.0b2 on Mac OS X Panther 10.3.1, make 
fails.  I took a look at similar bugs in php 4 in the 
bug search, but nothing seems to match this well enough 
to provide a workaround.  also tried latest cvs 
snapshot, see below.

Reproduce code:
---------------
configure:
./configure 
--includedir=/usr/include  
--mandir=/usr/share/man  
--infodir=/usr/share/info  
--with-apxs2=/Library/Apache2/bin/apxs  
--with-openssl  
--with-zlib  
--with-zlib-dir=/usr/lib  
--with-bz2  
--enable-calendar   
--with-libxml-dir=/usr/local  
--with-gd  
--with-ldap  
--enable-mbstring  
--with-mcrypt  
--with-openssl-dir=/usr/include/openssl  
--with-mhash  
--with-mime-magic=/usr/share/file/magic.mime  
--with-mysql=/Library/MySQL  
--with-pgsql=/usr/local/postgres  
--enable-sockets  
--with-xsl=/Library/PHP4 
--prefix=/Library/PHP5 
--with-png-dir=/usr/local
--with-jpeg-dir=/usr/local

configure succeeds,

then plain old 'make'

Expected result:
----------------
to run sudo make install afterwards ;)

Actual result:
--------------
this seems to be the relevant make crash part:
ld: warning multiple definitions of symbol _pcre_free
ext/pcre/pcrelib/pcre.o definition of _pcre_free in 
section (__DATA,__data)
/Library/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)
/Library/Apache2/bin/httpd definition of _pcre_malloc
ld: warning multiple definitions of symbol _regerror
ext/mbstring/oniguruma/regposerr.o definition of 
_regerror in section (__TEXT,__text)
/Library/Apache2/bin/httpd definition of _regerror
ld: warning multiple definitions of symbol _regcomp
/Library/Apache2/bin/httpd definition of _regcomp
/usr/lib/libm.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
/Library/Apache2/bin/httpd definition of _regexec
/usr/lib/libm.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
/Library/Apache2/bin/httpd definition of _regfree
/usr/lib/libm.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_PQparameterStatus
_PQprotocolVersion
_PQtransactionStatus
_pg_encoding_to_char
_pg_char_to_encoding
_pg_encoding_mblen
make: *** [libs/libphp5.bundle] Error 1


what may also be interesting, i've also tried my 
configure and make with what was the lastest Cvs 
snapshot - php5-200311191430, and this produced a 
similar, tho not quite, crash during the make:

ld: ext/openssl/xp_ssl.o illegal reference to symbol: 
_SSL_connect defined in indirectly referenced dynamic 
library /usr/lib/libssl.0.9.7.dylib
ld: warning multiple definitions of symbol _pcre_free
ext/pcre/pcrelib/pcre.o definition of _pcre_free in 
section (__DATA,__data)
/Library/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)
/Library/Apache2/bin/httpd definition of _pcre_malloc
ld: warning multiple definitions of symbol _regerror
ext/mbstring/oniguruma/regposerr.o definition of 
_regerror in section (__TEXT,__text)
/Library/Apache2/bin/httpd definition of _regerror
ld: warning multiple definitions of symbol _regcomp
/Library/Apache2/bin/httpd definition of _regcomp
/usr/lib/libm.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
/Library/Apache2/bin/httpd definition of _regexec
/usr/lib/libm.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
/Library/Apache2/bin/httpd definition of _regfree
/usr/lib/libm.dylib(regfree.So) definition of _regfree
make: *** [libs/libphp5.bundle] Error 1

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

Reply via email to