I haven't been able to get Apache to build PHP as a static module on Mac OS X Server since PHP4.0.2
Although, this new version, php 4.0.4 now causes Apache to generate new errors when it compiles. Is this something that will be fixed with future version of PHP - or do we have to wait for Apple to fix something with the OS?
The current errors begin with Apache not finding the header files:
<=== src/modules/standard
===> src/modules/php4
cc -c -I../../os/unix -I../../include -DDARWIN -DMAC_OS_X_SERVER -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED ../../apaci mod_php4.c
mod_php4.c:28: header file 'zend.h' not found
mod_php4.c:29: header file 'php.h' not found
mod_php4.c:30: header file 'php_variables.h' not found
mod_php4.c:47: header file 'php_ini.h' not found
mod_php4.c:48: header file 'php_globals.h' not found
mod_php4.c:49: header file 'SAPI.h' not found
mod_php4.c:50: header file 'php_main.h' not found
mod_php4.c:52: header file 'zend_compile.h' not found
mod_php4.c:53: header file 'zend_execute.h' not found
mod_php4.c:54: header file 'zend_highlight.h' not found
mod_php4.c:55: header file 'zend_indent.h' not found
mod_php4.c:57: header file 'ext/standard/php_standard.h' not found
...
...
make[4]: [mod_php4.o] Error 1
make[3]: [all] Error 1
make[2]: [subdirs] Error 1
make[1]: [build-std] Error 2
make: *** [build] Error 2