From:             chris at improbable dot org
Operating system: Mac OS X
PHP version:      5.2.3
PHP Bug Type:     Compile Failure
Bug description:  Build fails due to duplicate symbols (missing externs)

Description:
------------
The build failed with a duplicate symbol error:

ld64-74.4 failed: duplicate symbol _php_bz2_filter_factory in 
ext/bz2/bz2_filter.o and ext/bz2/bz2.o 

This was solved by adding extern to the php_bz2_filter_factory 
declaration in ext/bz2/php_bz2.h

An identical problem happened with Zend/zend_ini_scanner.c with the 
yytext declaration on line 478 (there is an earlier declaration in the 
same file which is already declared extern).





Reproduce code:
---------------
CFLAGS=-fast ./configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --disable-dependency-tracking
--with-apxs2=/usr/sbin/apxs --with-ldap=/usr --enable-cli
--with-zlib-dir=/usr --with-xml --enable-exif --enable-mbstring
--enable-mbregex --enable-sockets --with-curl=/usr
--with-config-file-path=/etc --sysconfdir=/private/etc
--with-mysql-sock=/tmp/mysql --with-mysql=shared,/usr/local/mysql
--with-mysqli=shared,`which mysql_config` --with-pdo-mysql=shared,`which
mysql_config` --with-openssl --with-xmlrpc --with-xsl=/usr
--with-pear=/Library/PHP --with-bz2 --enable-bcmath --disable-cgi
--enable-zip --enable-memory-limit --enable-pcntl --with-zlib=/usr
--with-zlib-dir=/usr --with-ldap --enable-memcache 



-- 
Edit bug report at http://bugs.php.net/?id=42106&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42106&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42106&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42106&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42106&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42106&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42106&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42106&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42106&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42106&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42106&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42106&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42106&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42106&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42106&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42106&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42106&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42106&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42106&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42106&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42106&r=mysqlcfg

Reply via email to