tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60290] New: rules.mk defeats CC for configure
Date Fri, 21 Oct 2016 12:17:02 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60290

            Bug ID: 60290
           Summary: rules.mk defeats CC for configure
           Product: Tomcat Native
           Version: 1.2.10
          Hardware: HP
                OS: HP-UX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Library
          Assignee: dev@tomcat.apache.org
          Reporter: 1983-01-06@gmx.net

Note: I have selected HP-UX because my problem is on HP-UX but this is probably
the case on all Unix platforms with different compilers.

My configuration:

tcnative 1.2.10:
$ uname -a
HP-UX blnn724x B.11.31 U ia64 HP-UX
$ export CC=/opt/aCC/bin/aCC
$ $CC --version
aCC: HP C/aC++ B3910B A.06.25.01 [May 17 2010]

$ ./build/buildcheck.sh
buildconf: checking installation...
buildconf: python version 2.7.12 (ok)
buildconf: autoconf version 2.69 (ok)
buildconf: libtool version 2.4.6 (ok)

$ /usr/local/apr/bin/apr-1-config --version
1.5.1

$./configure --with-ssl=/opt/openssl --with-apr=/usr/local/apr
--with-java-home=/opt/java8 --prefix=/tmp/tcnative
--libdir=/tmp/tcnative/lib/hpux32

$ gmake
gmake[1]: Entering directory '/tmp/tomcat-native-1.2.10-src/native'
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile cc -Ae +Z -mt 
-O -I/usr/local/include -I/usr/contrib/X11R6/include -DHAVE_CONFIG_H  -DHPUX11
-D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE  -O -I/usr/local/include
-I/usr/contrib/X11R6/include -g -DHAVE_OPENSSL
-I/tmp/tomcat-native-1.2.10-src/native/include -I/opt/java8/include
-I/opt/java8/include/hpux -I/opt/openssl/include 
-I/usr/local/apr/include/apr-1   -o src/address.lo -c src/address.c && touch
src/address.lo
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler,
ignored.
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler,
ignored.
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler,
ignored.
(Bundled) cc: warning 922: "-g" is unsupported in the bundled compiler,
ignored.
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile cc -Ae +Z -mt 
-O -I/usr/local/include -I/usr/contrib/X11R6/include -DHAVE_CONFIG_H  -DHPUX11
-D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE  -O -I/usr/local/include
-I/usr/contrib/X11R6/include -g -DHAVE_OPENSSL
-I/tmp/tomcat-native-1.2.10-src/native/include -I/opt/java8/include
-I/opt/java8/include/hpux -I/opt/openssl/include 
-I/usr/local/apr/include/apr-1   -o src/bb.lo -c src/bb.c && touch src/bb.lo
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler,
ignored.
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler,
ignored.
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler,
ignored.
(Bundled) cc: warning 922: "-g" is unsupported in the bundled compiler,
ignored.
ed) cc: warning 922: "-g" is unsupported in the bundled compiler, ignored.
...

As you can see, my CC is completely ignored and cc (bundled) is used by
default. APR has been obtained from the HP-UX Porting Archive [1].
The reason for this is the apr-rules.mk copied to build/rules.mk which has
CC=cc statically set defeats the CC set for configure.

A possible fix is to store CC in CC_OLD, run AC_SUBST(INCLUDE_RULES) and
compare both variables. Similar to APR_SETIFNULL.


[1] http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/apr-1.5.2/

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message