ID: 25945 Updated by: [EMAIL PROTECTED] Reported By: cjbj at hotmail dot com -Status: Open +Status: Bogus Bug Type: Apache related Operating System: Linux (RH AS 2.1) PHP Version: 4.3.3 New Comment:
1. APACHE_INCLUDE is not used anywhere with the APXS build 2. If your apxs is broken, I suggest you get that fixed instead of asking for yet-another-workaround into PHP. Previous Comments: ------------------------------------------------------------------------ [2003-10-22 05:30:28] cjbj at hotmail dot com Description: ------------ I'm having some problems with a recalcitrant apxs program. It returns a bogus path for the Apache headers. The Makefile therefore is wrong and sapi_apache.c fails to compile. The APACHE_INCLUDE variable in the Makefile is not used anywhere so changing it has no effect. My configure line is: --with-oci8=$ORACLE_HOME --with-apxs=$ORACLE_HOME/Apache/Apache/bin/apxs --enable-sigchild The resulting Makefile is: ... APACHE_INCLUDE = -I/include ... sapi/apache/sapi_apache.lo: /home/cjbj/php-4.3.3/sapi/apache/sapi_apache.c $(LIBTOOL) --mode=compile $(CC) ... -I/include ... ... The problem I'm reporting is the compile line. It has already expanded the Apache path, so any change to APACHE_INCLUDE is never used. It would make working around this and similar problems easier if the compile line was: $(LIBTOOL) --mode=compile $(CC) ... -I$(APACHE_INCLUDE) ... If this is not possible, then maybe the "APACHE_INCLUDE = -I/include" line could be removed altogether from the Makefile. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25945&edit=1