Hello,
Had anyone had any success building PHP 4.1.1 on Macos 10.1.2?
Thanks, kenc.
Have you tried the instructions at the bottom of this page?
http://www.entropy.ch/software/macosx/php/
Yes,
I've tried everything but this part:
running configure in the PHP 4.0.6 source tree modifying the resulting libtool script then configuring the PHP 4.1.0 sources copying the modified 4.0.6 libtool over to the 4.1.0 directory and finally running make
Ah...but that is the key. Do that and it will work.
Quin
Actually I just tried building 4.0.6 and this is the error message that I got, which is similar to what I was getting with 4.1.1
/usr/local/php-4.0.6/.libs/libphp4.lax/libstandard.al /usr/local/php-4.0.6/.libs/libphp4.lax/libwddx.al /usr/local/php-4.0.6/.libs/libphp4.lax/libxml.al /usr/local/php-4.0.6/.libs/libphp4.lax/libtsrm.al /usr/bin/ld: warning -L: directory name (/usr/bin/openssl//lib) does not exist /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
Any ideas?
Try typing:
setenv CC 'cc -flat_namespace'
before you compile.
What version of OS X are you using?
Quinn
I'm using 10.1.2 and I've already tried the setenv trick and I've gotten the same results.
open ltconfig and go to line 1469
change the archive_cmds item, so that it reads:
archive_cmds='$CC -force_flat_namespace -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts'
save and now it should compile (he says, fingers crossed!)