php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25945 APACHE_INCLUDE is pre-expanded in Makefile
Submitted: 2003-10-22 05:30 UTC Modified: 2003-10-28 11:59 UTC
From: cjbj at hotmail dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.3 OS: Linux (RH AS 2.1)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cjbj at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-10-22 05:30 UTC] 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.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-28 11:59 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 05:01:33 2025 UTC