Hello,

I am posting this to both dev and install because I don't know which is
the best place to try. Also, I have searched the mailing list archive and
have found no comments about this issue (unless I was not looking
correctly).

With release 10.1 of Mac OS X Apple has turned on, by default,
twolevel_namespace in the ld program. When compiling PHP and other
applications -- like Berkeley Database -- you get an error when ld tries
to put all the parts together. The following is the PHP error:

Making all in .
/bin/sh /Users/lr/src/php-4.0.6/libtool --silent --mode=link cc
-I. -I/Users/lr/src/php-4.0.6/ -I/Users/lr/src/php-4.0.6/main
-I/Users/lr/src/php-4.0.6 -I/usr/include/httpd
-I/Users/lr/src/php-4.0.6/Zend
-I/Users/lr/src/php-4.0.6/ext/xml/expat/xmltok
-I/Users/lr/src/php-4.0.6/ext/xml/expat/xmlparse
-I/Users/lr/src/php-4.0.6/TSRM  -traditional-cpp -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2   -o libphp4.la
-rpath /Users/lr/src/php-4.0.6/libs -avoid-version   stub.lo
Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la
ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la
ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lm
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libZend.al
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libsapi.al
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libmain.al
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libregex.al
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libpcre.al
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libposix.al
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libsession.al
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libstandard.al
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libxml.al
/Users/lr/src/php-4.0.6/.libs/libphp4.lax/libtsrm.al
/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

With some software simply defining OTHER_LDFLAGS = -flat_namespace (or
some variant on that theme like EXTRA_LDFLAGS) works just fine, but not
with PHP. I've also tried setting -undefined error and that does not work
either.

I have no idea what Apple is planning to do but I'm wondering if any of
you have any suggestions.

Thanks in advance.

-lucas



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to