Hello,

I've to build Apache (...) and mod_jk on a 64-bit SuSE Linux, but for
32-bit. While a lot of OpenSource packages, including Apache
httpd-2.4.18, are building fine, the tomcat_connector-1.2.41 is
unwilling to create the mod_jk.so file. The full configure and build log
follows. What I do wrong? Thanks in advance.

        matthias


$ uname -a
Linux srap12dxR1 3.12.28-4-default #1 SMP Thu Sep 25 17:02:34 UTC 2014 
(9879bd4) x86_64 x86_64 x86_64 GNU/Linux

$ file /home/guru/head/sisis-pap-target/apache/bin/httpd
/home/guru/head/sisis-pap-target/apache/bin/httpd: ELF 32-bit LSB executable, 
Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for 
GNU/Linux 3.0.0, BuildID[sha1]=ca4adef26459b08db35a9d8042535c8da57b0b8f, not 
stripped

$ ./configure --target=i586-suse-linux \
              --build=i586-suse-linux  \
              --with-apxs=/home/guru/head/sisis-pap-target/apache/bin/apxs

checking build system type... i586-suse-linux-gnu
checking host system type... i586-suse-linux-gnu
checking target system type... i586-suse-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether /usr/bin/make sets $(MAKE)... yes
checking whether /usr/bin/make supports nested variables... yes
checking for test... /usr/bin/test
checking for grep... /usr/bin/grep
checking for echo... /usr/bin/echo
checking for sed... /usr/bin/sed
checking for cp... /usr/bin/cp
checking for mkdir... /usr/bin/mkdir
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
APRINCLUDEDIR is  -I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include
building connector for "apache-2.0"
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking whether gcc -std=gnu99 understands -c and -o together... yes
checking for style of include used by /usr/bin/make... GNU
checking dependency style of gcc -std=gnu99... none
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking how to print strings... printf
checking for ld used by gcc -std=gnu99... gcc
checking if the linker (gcc) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i586-suse-linux-gnu file names to i586-suse-linux-gnu 
format... func_convert_file_noop
checking how to convert i586-suse-linux-gnu file names to toolchain format... 
func_convert_file_noop
checking for gcc option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... no
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (gcc) supports shared libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... no
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
LIBTOOL="/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent"
checking size of char... 1
checking size of int... 4
checking size of long... 4
checking size of short... 2
checking size of long double... 12
checking size of long long... 8
checking size of longlong... 0
checking size of pid_t... 4
checking size of pthread_t... 4
checking for snprintf... yes
checking for vsnprintf... yes
checking for flock... yes
checking for setsockopt in -lsocket... no
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking whether to use SO_RCVTIMEO with setsockopt()... yes
checking whether to use SO_SNDTIMEO with setsockopt()... yes
checking whether to use SOCK_CLOEXEC with socket()... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking for poll... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for IPv6 with socket()... yes
checking for struct sockaddr_storage... yes
checking for getaddrinfo... yes
checking for gethostbyname_r... yes
checking for target platform... unix
no apache given
no netscape given
configure: tokens in APXSLDFLAGS have been prefixed with '-Wl,'
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating apache-1.3/Makefile
config.status: creating apache-1.3/Makefile.apxs
config.status: creating apache-2.0/Makefile
config.status: creating apache-2.0/Makefile.apxs
config.status: creating common/Makefile
config.status: creating common/list.mk
config.status: creating common/jk_types.h
config.status: creating common/config.h
config.status: common/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

$ gmake

Making all in common
make[1]: Entering directory 
'/home/guru/head/sisis-pap/src/tomcat-connectors/tomcat-connectors-1.2.41-src/native/common'
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp12_worker.c -o 
jk_ajp12_worker.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_connect.c -o 
jk_connect.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_msg_buff.c -o 
jk_msg_buff.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_util.c -o jk_util.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp13.c -o jk_ajp13.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_pool.c -o jk_pool.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_worker.c -o jk_worker.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp13_worker.c -o 
jk_ajp13_worker.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_lb_worker.c -o 
jk_lb_worker.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_sockbuf.c -o 
jk_sockbuf.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_map.c -o jk_map.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_uri_worker_map.c -o 
jk_uri_worker_map.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp14.c -o jk_ajp14.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp14_worker.c -o 
jk_ajp14_worker.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_md5.c -o jk_md5.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_shm.c -o jk_shm.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp_common.c -o 
jk_ajp_common.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_context.c -o 
jk_context.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_url.c -o jk_url.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I. -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_status.c -o jk_status.lo
make[1]: Leaving directory 
'/home/guru/head/sisis-pap/src/tomcat-connectors/tomcat-connectors-1.2.41-src/native/common'
Making all in apache-2.0
make[1]: Entering directory 
'/home/guru/head/sisis-pap/src/tomcat-connectors/tomcat-connectors-1.2.41-src/native/apache-2.0'
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=compile 
gcc -std=gnu99 -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I../common -I ../common -DLINUX -D_REENTRANT 
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -pthread 
-DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c mod_jk.c -o 
mod_jk.lo
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=link gcc 
-std=gnu99 -I/home/guru/head/sisis-pap-target/apache/include -m32 
-DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I../common -I ../common -DLINUX -D_REENTRANT 
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE -m32 -pthread -DHAVE_APR  
-I/home/guru/head/sisis-pap-target/apache/include 
-I/home/guru/head/sisis-pap-target/apache/include -m32 -DHAVE_CONFIG_H -pthread 
-DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Wl,-m32 -Wl,-m32 -o 
mod_jk.la -module -rpath /home/guru/head/sisis-pap-target/apache/modules 
-avoid-version mod_jk.lo ../common/jk_ajp12_worker.lo ../common/jk_connect.lo 
../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo 
../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo 
../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo 
../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo 
../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_shm.lo 
../common/jk_ajp_common.lo ../common/jk_context.lo ../common/jk_url.lo 
../common/jk_status.lo
../scripts/build/instdso.sh 
SH_LIBTOOL='/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent' 
mod_jk.la `pwd`
/home/guru/head/sisis-pap-target/wwwdir/build/libtool --silent --mode=install 
cp mod_jk.la 
/home/guru/head/sisis-pap/src/tomcat-connectors/tomcat-connectors-1.2.41-src/native/apache-2.0/
cp: cannot stat '.libs/mod_jk.so': No such file or directory
Makefile:86: recipe for target 'mod_jk.so' failed
make[1]: *** [mod_jk.so] Error 1
make[1]: Leaving directory 
'/home/guru/head/sisis-pap/src/tomcat-connectors/tomcat-connectors-1.2.41-src/native/apache-2.0'
Makefile:465: recipe for target 'all-recursive' failed
gmake: *** [all-recursive] Error 1

$ find . -name 'mod_jk.*

./apache-2.0/mod_jk.lo
./apache-2.0/mod_jk.o
./apache-2.0/mod_jk.la
./apache-2.0/mod_jk.c
./apache-2.0/.libs/mod_jk.a
./apache-2.0/.libs/mod_jk.lai
./apache-2.0/.libs/mod_jk.o
./apache-2.0/.libs/mod_jk.la
./apache-2.0/mod_jk.dsp
./apache-1.3/mod_jk.exp
./apache-1.3/mod_jk.c
./apache-1.3/mod_jk.dsp





-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
"Wer übersieht, dass wir uns den anderen weggenommen haben und sie uns 
wiederhaben wollen,
kann von den Kämpfen der letzten Tage keinen verstehen. Und kann natürlich auch 
keinen
dieser Kämpfe bestehen." Hermann Kant in jW 1.10.1989

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

Reply via email to