#33321 [Opn->Bgs]: Unknown '-export-symbols' flag passed to ld
| From: | marcus at synchromedia dot co dot uk | Date: | Mon, 13 Jun 2005 11:00:39 +0000 |
| Subject: | #33321 [Opn->Bgs]: Unknown '-export-symbols' flag passed to ld | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80233@lists.php.net to get a copy of this message | ||
ID: 33321
User updated by: marcus at synchromedia dot co dot uk
Reported By: marcus at synchromedia dot co dot uk
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: MacOS X 10.4.1
PHP Version: 5.0.4
New Comment:
I don't know if the original problem of -export-symbols
appearing is still a bug, but I checked through the docs
from ./configure --help and removed a few apparently
obsolete options and now it compiles and runs ok. My working
config is now:
'./configure' \
'--disable-overload' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-dba' \
'--enable-exif' \
'--enable-ftp' \
'--enable-gd-imgstrttf' \
'--enable-gd-native-ttf' \
'--enable-mcal' \
'--enable-memory-limit' \
'--enable-pcntl' \
'--enable-shmop' \
'--enable-soap' \
'--enable-sockets' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-track-vars' \
'--enable-wddx' \
'--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-gdbm=/sw' \
'--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-ttf' \
'--with-xml' \
'--with-xsl' \
'--with-zlib' \
'--without-oci8'
Apologies for any inconvenience, but I suspect this report
may still be useful to anyone else running into similar
problems.
Previous Comments:
------------------------------------------------------------------------
[2005-06-13 12:28:55] marcus at synchromedia dot co dot uk
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 this bug report at http://bugs.php.net/?id=33321&edit=1