tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 2smart4u <rc4...@googlemail.com>
Subject Unable to compile APR (tomcat-native-1.1.20) on Debian Lenny
Date Tue, 16 Mar 2010 18:57:52 GMT
Hi guys,

long time no see ;)

I hope somebody can shed some light here since meanwhile I'm running
out of ideas:

I set up a Vanilla Debian Lenny and downloaded the latest Tomcat
6.0.26 from tomcat.apache.org.

I've also installed libapr1, libapr1-dev, openssl and libssl-dev

I untared tomcat-native-1.1.20, went into jni/native and issued

./configure --with-apr=/usr/bin/apr-1-config
--with-java-home=$JAVA_HOME --with-ssl=yes

However, I got the following output:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.20
checking for chosen layout... tcnative
checking for APR... yes
  setting CC to "i486-linux-gnu-gcc"
  setting CPP to "i486-linux-gnu-gcc -E"
checking for a BSD-compatible install... /usr/bin/install -c
checking for JDK location (please wait)... /usr/lib/jvm/java-6-sun
checking Java platform... checking Java platform...
checking for sablevm... NONE
  adding "-I/usr/lib/jvm/java-6-sun/include" to TCNATIVE_PRIV_INCLUDES
checking os_type directory...  linux
  adding "-I/usr/lib/jvm/java-6-sun/include/linux" to TCNATIVE_PRIV_INCLUDES
checking for gcc... i486-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in
`/home/cluster/tomcat/current/bin/tomcat-native-1.1.20-src/jni/native':
configure: error: C compiler cannot create executables
See `config.log' for more details.

The config.log:

=======[cut]=========

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure --with-apr=/usr/bin/apr-1-config
--with-java-home=/usr/lib/jvm/java-6-sun --with-ssl=yes

## --------- ##
## Platform. ##
## --------- ##

hostname = someHost
uname -m = i686
uname -r = 2.6.32-trunk-686
uname -s = Linux
uname -v = #1 SMP Sun Jan 10 06:32:16 UTC 2010

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2024: checking build system type
configure:2042: result: i686-pc-linux-gnu
configure:2064: checking host system type
configure:2079: result: i686-pc-linux-gnu
configure:2101: checking target system type
configure:2116: result: i686-pc-linux-gnu
configure:2158: checking for a BSD-compatible install
configure:2226: result: /usr/bin/install -c
configure:2244: checking for working mkdir -p
configure:2260: result: yes
configure:2353: checking for chosen layout
configure:2355: result: tcnative
configure:2512: checking for APR
configure:2597: result: yes
configure:2667: checking for a BSD-compatible install
configure:2735: result: /usr/bin/install -c
configure:2750: checking for JDK location (please wait)
configure:2778: result: /usr/lib/jvm/java-6-sun
configure:2861: checking Java platform
configure:2886: checking Java platform
configure:2893: result:
configure:2903: checking for sablevm
configure:2934: result: NONE
configure:3011: checking os_type directory
configure:3135: checking for gcc
configure:3162: result: i486-linux-gnu-gcc
configure:3394: checking for C compiler version
configure:3402: i486-linux-gnu-gcc --version >&5
./configure: line 3404: i486-linux-gnu-gcc: command not found
configure:3406: $? = 127
configure:3413: i486-linux-gnu-gcc -v >&5
./configure: line 3415: i486-linux-gnu-gcc: command not found
configure:3417: $? = 127
configure:3424: i486-linux-gnu-gcc -V >&5
./configure: line 3426: i486-linux-gnu-gcc: command not found
configure:3428: $? = 127
configure:3451: checking for C compiler default output file name
configure:3473: i486-linux-gnu-gcc    conftest.c  >&5
./configure: line 3475: i486-linux-gnu-gcc: command not found
configure:3477: $? = 127
configure:3515: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3521: error: in
`/home/cluster/tomcat/current/bin/tomcat-native-1.1.20-src/jni/native':
configure:3524: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_mkdir_p=yes
ac_cv_path_SABLEVM=NONE
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_ac_ct_CC=i486-linux-gnu-gcc
ac_cv_target=i686-pc-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

APR_BUILD_DIR='/usr/share/apr-1.0/build'
APR_INCLUDES=' -I/usr/include/apr-1.0 '
APR_LIBS=' /usr/lib/libapr-1.la '
CC='i486-linux-gnu-gcc'
CFLAGS=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXTRA_OS_LINK=''
INCLUDE_OUTPUTS=''
INCLUDE_RULES=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
JAVA_HOME='/usr/lib/jvm/java-6-sun'
JAVA_OS='linux'
JAVA_PLATFORM=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SABLEVM='NONE'
SHELL='/bin/bash'
TCNATIVE_DOTTED_VERSION='1.1.20'
TCNATIVE_EXPORT_LIBS=''
TCNATIVE_INCLUDES=''
TCNATIVE_LDFLAGS=''
TCNATIVE_LIBNAME=''
TCNATIVE_LIBS=''
TCNATIVE_LIBTOOL_VERSION='1:20:1'
TCNATIVE_MAJOR_VERSION='1'
TCNATIVE_PRIV_INCLUDES='-I/home/cluster/tomcat/current/bin/tomcat-native-1.1.20-src/jni/native/include
-I/usr/lib/jvm/java-6-sun/include
-I/usr/lib/jvm/java-6-sun/include/linux'
TCN_CONFIG_LOCATION='source'
abs_builddir='/home/cluster/tomcat/current/bin/tomcat-native-1.1.20-src/jni/native'
abs_srcdir='/home/cluster/tomcat/current/bin/tomcat-native-1.1.20-src/jni/native'
ac_ct_CC='i486-linux-gnu-gcc'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
TCNATIVE_LIBS=''
TCNATIVE_LIBTOOL_VERSION='1:20:1'
TCNATIVE_MAJOR_VERSION='1'
TCNATIVE_PRIV_INCLUDES='-I/home/cluster/tomcat/current/bin/tomcat-native-1.1.20-src/jni/native/include
-I/usr/lib/jvm/java-6-sun/include
-I/usr/lib/jvm/java-6-sun/include/linux'
TCN_CONFIG_LOCATION='source'
abs_builddir='/home/cluster/tomcat/current/bin/tomcat-native-1.1.20-src/jni/native'
abs_srcdir='/home/cluster/tomcat/current/bin/tomcat-native-1.1.20-src/jni/native'
ac_ct_CC='i486-linux-gnu-gcc'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include/apr-${TCNATIVE_MAJOR_VERSION}'
infodir='${datarootdir}/info'
lib_target=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/modules'
localedir='${datarootdir}/locale'
localstatedir='${prefix}'
mandir='${prefix}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/apr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/bin'
sharedstatedir='${prefix}/com'
so_ext=''
sysconfdir='${prefix}/conf'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
top_builddir='/home/cluster/tomcat/current/bin/tomcat-native-1.1.20-src/jni/native'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""

configure: exit 77

=======[cut]=========

When I compile tomcat-native-1.1.3 on Debian Etch with a vanilla
Tomcat 5.5.28 (donloaded from tomcat.apache.org), everything works
like charm.

I must be missing something, but I got no idea what.

So any suggestions are very much appreciated.

TIA

Gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

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


Mime
View raw message