httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31448] New: - apxs incorrectly passes CFLAG options to libtool.
Date Tue, 28 Sep 2004 09:43:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31448>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31448

apxs incorrectly passes CFLAG options to libtool.

           Summary: apxs incorrectly passes CFLAG options to libtool.
           Product: Apache httpd-2.0
           Version: 2.0.51
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: alfred@freebsd.org


This is pretty easy to replicate...

Try to compile a module, but add this to the apxs compile line:

-Wc,-Wall

What happens is that apxs passes -Wall to BOTH gcc and libtool, then libtool
passes cflags to ld(1) which breaks.

/usr/local/apache2/bin/apxs -c  -Wc,-O -Wc,-pipe -Wc,-g -Wc,-I/usr/home/bright/w
ork/tourserve/itour2/../include -Wc,-I/usr/local/include -Wc,-I/usr/home/bright/
work/tourserve/itour2/../keys -Wc,-Wall -Wc,-Wno-format-y2k -Wc,-W -Wc,-Wmissing
-prototypes -Wc,-Wpointer-arith -Wc,-Wreturn-type -Wc,-Wcast-qual -Wc,-Wwrite-st
rings -Wc,-Wswitch -Wc,-Wcast-align -Wc,-Wno-uninitialized -Wc,-Werror -Wc,-I/us
r/local/apache2/include -Wc,-DAPACHE_2 -Wc,-I../libfetch -Wc,-g -Wc,-I/usr/home/
bright/work/tourserve/itour2/../include -Wc,-I/usr/local/include -Wc,-I/usr/home
/bright/work/tourserve/itour2/../keys  -Wl,-L/usr/local/lib -Wl,-L../libfetch -W
l,-L/usr/local/lib -Wl,../libfetch/libfetch.a -o mod_itour.so ../itour//mod_itou
r.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_H
AVE_DESIGNATED_INITIALIZER -D_REENTRANT -D_THREAD_SAFE -g -O2 -I/usr/local/apach
e2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include -I/usr/l
ocal/include -O -pipe -g -I/usr/home/bright/work/tourserve/itour2/../include -I/
usr/local/include -I/usr/home/bright/work/tourserve/itour2/../keys -Wall -Wno-fo
rmat-y2k -W -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwri
te-strings -Wswitch -Wcast-align -Wno-uninitialized -Werror -I/usr/local/apache2
/include -DAPACHE_2 -I../libfetch -g -I/usr/home/bright/work/tourserve/itour2/..
/include -I/usr/local/include -I/usr/home/bright/work/tourserve/itour2/../keys  
-c -o ../itour//mod_itour.lo ../itour//mod_itour.c && touch ../itour//mod_itour.
slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_itour.so -O -pi
pe -g -I/usr/home/bright/work/tourserve/itour2/../include -I/usr/local/include -
I/usr/home/bright/work/tourserve/itour2/../keys -Wall -Wno-format-y2k -W -Wmissi
ng-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
 -Wcast-align -Wno-uninitialized -Werror -I/usr/local/apache2/include -DAPACHE_2
 -I../libfetch -g -I/usr/home/bright/work/tourserve/itour2/../include -I/usr/loc
al/include -I/usr/home/bright/work/tourserve/itour2/../keys  -Wc,-O -Wc,-pipe -W
c,-g -Wc,-I/usr/home/bright/work/tourserve/itour2/../include -Wc,-I/usr/local/in
clude -Wc,-I/usr/home/bright/work/tourserve/itour2/../keys -Wc,-Wall -Wc,-Wno-fo
rmat-y2k -Wc,-W -Wc,-Wmissing-prototypes -Wc,-Wpointer-arith -Wc,-Wreturn-type -
Wc,-Wcast-qual -Wc,-Wwrite-strings -Wc,-Wswitch -Wc,-Wcast-align -Wc,-Wno-uninit
ialized -Wc,-Werror -Wc,-I/usr/local/apache2/include -Wc,-DAPACHE_2 -Wc,-I../lib
fetch -Wc,-g -Wc,-I/usr/home/bright/work/tourserve/itour2/../include -Wc,-I/usr/
local/include -Wc,-I/usr/home/bright/work/tourserve/itour2/../keys -Wl,-L/usr/lo
cal/lib -Wl,-L../libfetch -Wl,-L/usr/local/lib -Wl,../libfetch/libfetch.a -rpath
 /usr/local/apache2/modules -module -avoid-version    ../itour//mod_itour.lo
/usr/bin/ld: unrecognized option '-Wall'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
*** Error code 1

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message