PHP 4.0 Bug #2815: Can't Compile as DSO on MacOS X Server
| From: | cleland at flaweddiamond dot com | Date: | Wed, 24 Nov 1999 01:50:41 +0000 |
| Subject: | PHP 4.0 Bug #2815: Can't Compile as DSO on MacOS X Server | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13035@lists.php.net to get a copy of this message | ||
From: cleland@flaweddiamond.com
Operating system: MacOS X Server
PHP version: 4.0 Beta 3
PHP Bug Type: Installation problem
Bug description: Can't Compile as DSO on MacOS X Server
Sorry in advance if this is not a bug but my stupidity. I'm trying to compile PHP4.0b3 on my
Mac OS X Server box as an Apache DSO:
./configure --with-mysql=/usr/local/mysql --with-apxs
--with-config-file-path=/Local/Library/WebServer/Confguration
When I run make, I get the following error:
make
make all-recursive
Making all in libzend
Making all in ext
Making all in apache
/bin/sh ../../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend
-I../.. -I../../libzend -I/Local/Library/Frameworks/Apache.framework/Versions/1.3/Headers
-I/usr/local/mysql/include/mysql -traditional-cpp -g -O2 -g -O2 -c -o apache.lo apache.c
In file included from ../../php.h:179,
from apache.c:22:
/Local/Library/Frameworks/Apache.framework/Versions/1.3/Headers/ap_config.h:427: warning:
`HAVE_MMAP' redefined
../../php_config.h:414: warning: this is the location of the previous definition
/Local/Library/Frameworks/Apache.framework/Versions/1.3/Headers/ap_config.h:434: warning:
`HAVE_SNPRINTF' redefined
../../php_config.h:447: warning: this is the location of the previous definition
In file included from apache.c:22:
../../php.h:232: parse error
make[3]: *** [apache.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
I get the same error message: "warning: `HAVE_SNPRINTF' redefined" repeatedly when I
configure and make PHP-3.0.12 with the same parameters, but PHP3 makes and installs successfully.
I stupidly deleted the beta 2 source, so I don't know if it would install correctly, though I
previously had compiled it successfully as a static module.