You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mathew Thomas <mt...@piranha.com> on 2000/11/22 18:09:25 UTC

apxs problem revisited for mod_jserv.so build

I am installing Tomcat 3.1 on my freshly installed SuSE 7.0 system with
apache 1.3.14 and when I try to build mod_jserv.so I get the following
error:

/usr/local/apache/bin/apxs -c *.c -o mod_jserv.so
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c autochange.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_ajpv11.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_ajpv12.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_balance.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_image.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_mmap.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_protocols.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_status.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_utils.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_watchdog.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_wrapper.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_wrapper_unix.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_wrapper_win.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c mod_jserv.c
  -o autochange.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o
jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o
jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o
jserv_ajpv12.o jserv_ajpv11.o autochange.o -o mod_jserv.so
apxs:Break: Command failed with rc=255


I looked this up in the Tomcat archives and found that many others had
encountered this problem and were able to resolve it by changing the
order of args to apxs.  Instead of using:
/usr/local/apache/bin/apxs -c *.c -o mod_jserv.so
I instead tried:
/usr/local/apache/bin/apxs -o mod_jserv.so -c *.c
Unfortunately, I get the same error both ways.   Has anyone successfully
built this with the configuration I mentioned above??  Any help will be
appreciated!  By the way, I did build Apache 1.3.14 from scratch with
mod_so installed.

Thanks,
Mathew Thomas
mthomas@piranha.com