You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/03/06 06:40:14 UTC
DO NOT REPLY [Bug 46810] New: apxs / apu-1-config outputting
erroneous include path
https://issues.apache.org/bugzilla/show_bug.cgi?id=46810
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
AssignedTo: bugs@httpd.apache.org
ReportedBy: kristen.glynn@virginblue.com.au
Created an attachment (id=23345)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23345)
httpd-2.2.11 config.log
Overview:
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:
-I/data/wwwmgmt3/apache/include
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
GNU/Linux
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 mod_ntlm.so -Wc,-shared mod_ntlm.c
/data/wwwmgmt3/apache/build/libtool --silent --mode=compile gcc -prefer-pic
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread
-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: *** [mod_ntlm.so] 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
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-I/data/wwwmgmt3/apache/include -I/data/wwwmgmt3/apache/include /include
-Isapi/apache2handler/
-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/include
-I/home/glynnk/workdir/my_web/php-5.2.9/main
-I/home/glynnk/workdir/my_web/php-5.2.9 -I/data/wwwmgmt3/apache/include/libxml2
-I/data/wwwmgmt3/apache/include
-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/usr/include/oracle/10.2.0.3/client
-I/home/glynnk/workdir/my_web/php-5.2.9/TSRM
-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
sapi/apache2handler/mod_php5.lo
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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org