tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [ANN] Apache Tomcat Native 1.1.27 released
Date Wed, 20 Feb 2013 22:52:48 GMT
Henri,

On 2/14/13 4:14 AM, Henri Gomez wrote:
> I build Tomcat Native on various machine, CentOS 5/6, openSUSE/SLES and
> notice this error on CentOS 5.9 :

On CentOS 6.2:

First, some prerequisites:

$ sudo yum install gcc make \
                   apr apr-devel \
                   java-1.7.0-openjdk java-1.7.0-openjdk-devel

$ wget ...
$ tar xzf ...
$ cd ...

[...]

$ ./configure --with-apr=`which apr-1-config` \
              --with-java-home=/usr/lib/jvm/java-1.7.0/
[...]

$ make
[...]

$ find . -name "*.so"
./.libs/libtcnative-1.so


> /bin/sh /usr/lib/apr-1/build/libtool --silent --mode=compile gcc -pthread
>  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT
> -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -g -O2 -DHAVE_OPENSSL
> -I/home/cijenka/workspace/cilibtcnative/noarch/centos5-i386-builder/BUILD/tomcat-native-1.1.27-src/jni/native/include
> -I/opt/axway/jvm/java-1.6.0-sun-i586/include
> -I/opt/axway/jvm/java-1.6.0-sun-i586/include/linux  -I/usr/include/apr-1
> -o src/network.lo -c src/network.c && touch src/network.lo

Mine looks like this:

/bin/sh /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc
-pthread  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE   -g -O2
-I/home/tom/tomcat-native-1.1.27-src/jni/native/include
-I/usr/lib/jvm/java-1.7.0//include
-I/usr/lib/jvm/java-1.7.0//include/linux  -I/usr/include/apr-1   -o
src/network.lo -c src/network.c && touch src/network.lo

Now, there are obviously a few differences between our two environments:
I'm building a vanilla x86_64 and it looks like you have an IA32
architecture with some i586 components (maybe just the JVM).

Can you post your whole ./configure command?

-chris


Mime
View raw message