Compile 4.0.6 under OS X 10.1

From: Date: Fri, 12 Oct 2001 17:30:35 +0000
Subject: Compile 4.0.6 under OS X 10.1
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13295@lists.php.net to get a copy of this message
Anyone have any success compiling PHP 4.0.6 under the recently released OS X 10.1? I'm hitting the "/usr/bin/ld: -undefined error must be used when -twolevel_namespace is in effect" problem. I've gotten around it with Apache and Postgres, but no joy with PHP. I've tried passing in LDFLAGS="-flat_namespace" in every way I can think to no avail. And sometimes, it looks like it's using it, but I still get: Making all in . /bin/sh /Users/marczak/Desktop/Download/php-4.0.6/libtool --silent --mode=compile cc -I. -I/Users/marczak/Desktop/Download/php-4.0.6/ -I/Users/marczak/Desktop/Download/php-4.0.6/main -I/Users/marczak/Desktop/Download/php-4.0.6 -I/usr/include/httpd -I/Users/marczak/Desktop/Download/php-4.0.6/Zend -I/Users/marczak/Desktop/Download/php-4.0.6/ext/mysql/libmysql -I/Users/marczak/Desktop/Download/php-4.0.6/ext/xml/expat/xmltok -I/Users/marczak/Desktop/Download/php-4.0.6/ext/xml/expat/xmlparse -I/Users/marczak/Desktop/Download/php-4.0.6/TSRM -traditional-cpp -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c stub.c /bin/sh /Users/marczak/Desktop/Download/php-4.0.6/libtool --silent --mode=link cc -I. -I/Users/marczak/Desktop/Download/php-4.0.6/ -I/Users/marczak/Desktop/Download/php-4.0.6/main -I/Users/marczak/Desktop/Download/php-4.0.6 -I/usr/include/httpd -I/Users/marczak/Desktop/Download/php-4.0.6/Zend -I/Users/marczak/Desktop/Download/php-4.0.6/ext/mysql/libmysql -I/Users/marczak/Desktop/Download/php-4.0.6/ext/xml/expat/xmltok -I/Users/marczak/Desktop/Download/php-4.0.6/ext/xml/expat/xmlparse -I/Users/marczak/Desktop/Download/php-4.0.6/TSRM -traditional-cpp -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -flat_namespace -o libphp4.la -rpath /Users/marczak/Desktop/Download/php-4.0.6/libs -avoid-version -flat_namespace stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/ftp/libftp.la ext/mysql/libmysql.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/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libZend.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libsapi.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libmain.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libregex.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libftp.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libmysql.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libpcre.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libposix.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libsession.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libstandard.al /Users/marczak/Desktop/Download/php-4.0.6/.libs/libphp4.lax/libxml.al /Users/marczak/Desktop/Download/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 Thoughts? Suggestions? Thanks! -- Ed Marczak marczak@usa.net

« previous php.db (#13295) next »