httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46810] New: apxs / apu-1-config outputting erroneous include path
Date Fri, 06 Mar 2009 05:40:14 GMT

           Summary: apxs / apu-1-config outputting erroneous include path
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build

Created an attachment (id=23345)
 --> (
httpd-2.2.11 config.log

Building/compiling/installing httpd-2.2.11 completes 100% but executing
"apache/bin/apu-1-config --includes" displays incorrect details.

Steps to Reproduce:

httpd-2.2.11 configure options:

env CPPFLAGS="-I/data/wwwmgmt3/apache/include
-I/data/wwwmgmt3/apache/include/openssl" LDFLAGS="-L/data/wwwmgmt3/apache/lib
-R/data/wwwmgmt3/apache/lib" ./configure --prefix=/data/wwwmgmt3/apache
--enable-so --enable-deflate --enable-proxy --enable-authn-anon
--enable-authn-dbm --enable-auth-digest --enable-ldap --enable-authnz-ldap 
--enable-ssl --enable-dav --enable-dav-fs --enable-rewrite --enable-so
--with-ssl=/data/wwwmgmt3/apache --with-z=/data/wwwmgmt3/apache
--enable-mods-shared=all --with-ldap
--with-berkeley-db=/data/wwwmgmt3/apache/lib --with-included-apr

Then run - "/data/wwwmgmt3/apache/bin/apu-1-config --includes"

Actual Results:

-I/data/wwwmgmt3/apache/include /include

Expected Results:


Build Date & Platform:

Fri Mar 6 15:11:06 EST 2009
CentOS release 3.8 (Final)
Linux 2.4.21-47.0.1.ELsmp #1 SMP Thu Oct 19 11:33:45 EDT 2006 i686 i686 i386

Additional Information:

The incorrect results of apu-1-config causes 3rd party modules to build
incorrectly since it is passing the following in my instance to 3rd party
modules Makefiles via apxs

Example 1. - mod_ntlm2

[mod_ntlm2]# make
/data/wwwmgmt3/apache/bin/apxs -c -o -Wc,-shared mod_ntlm.c
/data/wwwmgmt3/apache/build/libtool --silent --mode=compile gcc -prefer-pic  
-I/data/wwwmgmt3/apache/include  -I/data/wwwmgmt3/apache/include  
-I/data/wwwmgmt3/apache/include /include -shared  -c -o mod_ntlm.lo mod_ntlm.c
&& touch mod_ntlm.slo
gcc: cannot specify -o with -c or -S and multiple compilations
apxs:Error: Command failed with rc=65536
make: *** [] Error 1

Example 2. - php-5.2.9

/bin/sh /home/glynnk/workdir/my_web/php-5.2.9/libtool --silent
--preserve-dup-deps --mode=compile gcc  -I/data/wwwmgmt3/apache/include  
-I/data/wwwmgmt3/apache/include   -I/data/wwwmgmt3/apache/include /include
-I/home/glynnk/workdir/my_web/php-5.2.9/sapi/apache2handler/ -DPHP_ATOM_INC
-I/home/glynnk/workdir/my_web/php-5.2.9 -I/data/wwwmgmt3/apache/include/libxml2
-I/home/glynnk/workdir/my_web/php-5.2.9/ext/date/lib -I/usr/X11R6//include
-I/data/wwwmgmt3/apache/include/freetype2 -I/data/wwwmgmt3/apache/include/mysql
-I/home/glynnk/workdir/my_web/php-5.2.9/Zend    -I/usr/include -g -O2 
-prefer-non-pic -c
/home/glynnk/workdir/my_web/php-5.2.9/sapi/apache2handler/mod_php5.c -o

As you can see in the examples above /include appears which it shouldn't (as I
don't even have a /include dir and never passed options to include it) and it
is also lacking a -I proceeding it anyway which obviously causes gcc to fail
since "/include" does not exist and because it is not proceeded with -I

make --version
GNU Make 3.80

gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-56)

httpd-2.2.11 config.log attached.

Interestingly apr-1-config (not apu-1-config) outputs correct results..

Command: /data/wwwmgmt3/apache/bin/apr-1-config --includes
Output: -I/data/wwwmgmt3/apache/include

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message