From: marcus at synchromedia dot co dot uk Operating system: MacOS X 10.4.1 PHP version: 5.0.4 PHP Bug Type: Compile Failure Bug description: Unknown '-export-symbols' flag passed to ld
Description: ------------ Configure goes OK, make gets nearly all the way through then fails near the end with this error: /usr/bin/ld: unknown flag: -export-symbols collect2: ld returned 1 exit status make: *** [libs/libphp5.bundle] Error 1 I checked in the docs for OS X's ld and there doesn't seem to be an -export-symbols option defined. This option is in the original configure script, and ends up in the generated Makefile. Is there some alternative? Is ld broken on OS X? I have tried this on a clean OS install with a fresh copy of PHP source. The only mildly odd thing in my setup is that I'm linking to some libraries from fink (apache2, JPEG, PNG etc). I have tried building with a simpler configuration but still get the same result. Reproduce code: --------------- Here's my configure: CFLAGS='-I/sw/include' \ CXXFLAGS='-I/sw/include' \ CPPFLAGS='-I/sw/include' \ LDFLAGS='-L/sw/lib' \ './configure' \ '--disable-overload' \ '--enable-bcmath' \ '--enable-calendar' \ '--enable-exif' \ '--enable-ftp' \ '--enable-gd-imgstrttf' \ '--enable-gd-native-ttf' \ '--enable-inline-optimization' \ '--enable-mcal' \ '--enable-memory-limit' \ '--enable-pcntl' \ '--enable-pic' \ '--enable-shmop' \ '--enable-soap' \ '--enable-sockets' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-track-vars' \ '--enable-trans-sid' \ '--enable-versioning' \ '--enable-wddx' \ '--enable-yp' \ '--sysconfdir=/etc' \ '--with-apxs2=/sw/sbin/apxs' \ '--with-bz2' \ '--with-config-file-path=/etc' \ '--with-config-file-scan-dir=/etc/php.d' \ '--with-curl' \ '--with-dom=/usr' \ '--with-freetype2-dir=/sw' \ '--with-gd' \ '--with-gettext=/sw' \ '--with-iconv' \ '--with-imap-ssl=/sw' \ '--with-jpeg-dir=/sw' \ '--with-png-dir=/sw' \ '--with-ldap' \ '--with-mcrypt=/sw' \ '--with-mhash=/sw' \ '--with-mysql=/usr/local/mysql' \ '--with-openssl' \ '--with-pcre' \ '--with-pear' \ '--with-png' \ '--with-regex=system' \ '--with-ttf' \ '--with-xml' \ '--with-xsl' \ '--with-zlib' \ '--without-oci8' -- Edit bug report at http://bugs.php.net/?id=33321&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33321&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33321&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33321&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33321&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33321&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33321&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33321&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33321&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33321&r=support Expected behavior: http://bugs.php.net/fix.php?id=33321&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33321&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33321&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33321&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33321&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33321&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33321&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33321&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33321&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33321&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33321&r=mysqlcfg
