php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34688 php 4.4.0 compile failure: make: *** [libs/libphp4.bundle] Error 1
Submitted: 2005-09-30 11:01 UTC Modified: 2005-09-30 11:28 UTC
From: justin at mind-productions dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.4.0 OS: Mac os X 10.4.2
Private report: No CVE-ID: None
 [2005-09-30 11:01 UTC] justin at mind-productions dot com
Description:
------------
When running "make" in the terminal I get this error:
/usr/bin/ld: unknown flag: -export-symbols
collect2: ld returned 1 exit status
make: *** [libs/libphp4.bundle] Error 1

This is what I used to configure:
'./configure' '--prefix=/Library/PHP4' '--with-apxs2=/
Library/Apache2/bin/apxs' '--with-openssl=/usr' '--with-
zlib=/usr' '--enable-calendar' '--enable-shared' '--enable-
exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' 
'--enable-sockets' '--enable-wddx' '--enable-yp' '--enable-
versioning' '--with-mysql=/Library/PHP4' '--with-ldap=/usr' 
'--with-iodbc=/Library/PHP4' '--with-jpeg-dir=/Library/PHP4' 
'--with-png-dir=/Library/PHP4' '--enable-xslt' '--with-
pdflib=/Library/PHP4' '--with-tiff-dir=/Library/PHP4' '--
with-pgsql=/Library/PHP4' '--with-sybase=/Library/PHP4' '--
with-mcrypt=/Library/PHP4' '--with-curl=/usr' '--with-ttf=/
Library/PHP4' '--with-gettext=/Library/PHP4' '--with-xmlrpc' 
'--with-mime-magic' '--with-pspell=/Library/PHP4' '--with-
expat-dir=/Library/Apache2' '--with-t1lib=/Library/PHP4' '--
enable-dbx' '--with-imap=/Library/PHP4' '--with-imap-ssl=/
usr' '--enable-dbase' '--with-bz2=/usr' '--with-dom=/
Library/PHP4' '--with-dom-xslt=/Library/PHP4' '--with-dom-
exslt=/Library/PHP4' '--with-xslt-sablot=/Library/PHP4' '--
with-snmp=/Library/PHP4' '--enable-ucd-snmp-hack' '--with-
mhash=/Library/PHP4' '--with-ming=/Library/PHP4' '--enable-
shmop' '--with-gmp=/Library/PHP4' '--enable-dio' '--enable-
bcmath' '--enable-dba' '--enable-gd-native-ttf' '--with-
zip=/Library/PHP4' '--with-magickwand=/usr'

Reproduce code:
---------------
'./configure' '--prefix=/Library/PHP4' '--with-apxs2=/Library/Apache2/bin/apxs' '--with-openssl=/usr' '--with-zlib=/usr' '--enable-calendar' '--enable-shared' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-sockets' '--enable-wddx' '--enable-yp' '--enable-versioning' '--with-mysql=/Library/PHP4' '--with-ldap=/usr' '--with-iodbc=/Library/PHP4' '--with-jpeg-dir=/Library/PHP4' '--with-png-dir=/Library/PHP4' '--enable-xslt' '--with-pdflib=/Library/PHP4' '--with-tiff-dir=/Library/PHP4' '--with-pgsql=/Library/PHP4' '--with-sybase=/Library/PHP4' '--with-mcrypt=/Library/PHP4' '--with-curl=/usr' '--with-ttf=/Library/PHP4' '--with-gettext=/Library/PHP4' '--with-xmlrpc' '--with-mime-magic' '--with-pspell=/Library/PHP4' '--with-expat-dir=/Library/Apache2' '--with-t1lib=/Library/PHP4' '--enable-dbx' '--with-imap=/Library/PHP4' '--with-imap-ssl=/usr' '--enable-dbase' '--with-bz2=/usr' '--with-dom=/Library/PHP4' '--with-dom-xslt=/Library/PHP4' '--with-dom-exslt=/Library/PHP4' '--with-xslt-sablot=/Library/PHP4' '--with-snmp=/Library/PHP4' '--enable-ucd-snmp-hack' '--with-mhash=/Library/PHP4' '--with-ming=/Library/PHP4' '--enable-shmop' '--with-gmp=/Library/PHP4' '--enable-dio' '--enable-bcmath' '--enable-dba' '--enable-gd-native-ttf' '--with-zip=/Library/PHP4' '--with-magickwand=/usr'
make

Expected result:
----------------
it should run and compile php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-30 11:04 UTC] sniper@php.net
Remove this from your configure line: --enable-versioning
And next time before you report: Try with the shortest possible configure line and gradually add the options you want to see which one actually causes it. Then read the "./configure --help" about the specific option. 

This option is REALLY NOT needed and should NOT be used unless you know 100% sure what you're doing!


 [2005-09-30 11:28 UTC] justin at mind-productions dot com
thnx it works!!!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 17:01:32 2025 UTC