php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14394 Problem with line 1457 "archive_cmds"
Submitted: 2001-12-09 11:33 UTC Modified: 2002-04-10 18:49 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: paul at sickdimension dot com Assigned: kalowsky (profile)
Status: Closed Package: Compile Failure
PHP Version: 4.1.0 OS: Mac OSX 10.1
Private report: No CVE-ID: None
 [2001-12-09 11:33 UTC] paul at sickdimension dot com
When compiling PHP on MacOSX 10.1 you must update line 1457 
of the ltconfig file. Trying to compile the source code 
from php.net as is results in this error:

/usr/bin/ld: -undefined error must be used when -
twolevel_namespace is in effect 
make[1]: *** [libphp4.la] Error 1 
make: *** [all-recursive] Error 1 


Original source line# 1457 of ltconfig downloaded from 
php.net:
archive_cmds='$CC -bundle -undefined suppress -o $lib 
$libobjs $deplibs $linkopts'

What must be used on line 1457 of ltconfig to successfully 
compile:
archive_cmds='$CC -force_flat_namespace -bundle -undefined 
suppress -o $lib $libobjs $deplibs $linkopts' 


It took me a long time to find the answer for this problem. 
There is an article on the Apple developer pages that gave 
me the change, but they have the wrong line number listed 
[maybe the source has been updated]

Article that told me how to fix it:
http://developer.apple.com/internet/macosx/php.html

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-11 22:02 UTC] paul at sickdimension dot com
Problem also exists in 4.1
 [2002-03-03 00:01 UTC] kalowsky@php.net
this is actually a known bug.  It's more a bug with libtool and not really a bug of PHP.  This is supposedly fixed in libtool 1.4.2 but it doesn't seem to be really (at least not for me locally).  

There is a libtool 1.3.5 patch that supposedly fixes this for  v1.3 libtools.  If you're feeling bold, try applying that patch and seeing how things go.
 [2002-03-03 02:12 UTC] kalowsky@php.net
assigning to myself
 [2002-03-10 12:53 UTC] markonen@php.net
This bug has been superceded by bugs 15986 and 15987. 
Please follow those bugs for information regarding the 
forthcoming fixes for the issue you've reported.
 [2002-04-10 18:49 UTC] sniper@php.net
This bug has been fixed in CVS.

cvs HEAD which will become 4.3.0 at some point has the fixes
for this.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 23:01:28 2025 UTC