tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcia Perry (DSD staff) <mpe...@george.lbl.gov>
Subject Damsel in mod_jserv.so distress
Date Mon, 02 Oct 2000 22:53:28 GMT
Hi,
On solaris 2.7 w/ gcc v2.95.1 and perl v5.004_01, I'm trying to
get tomcat v1.3 to work w/ apache 1.3.12.  After reading FAQs,
man pages, docs, and everything I found so far, I've tried 
various ways to build mod_jserv.so, with no luck.  So if someone
can help me, I'll not only be stoked but I'll write up a FAQ
and share the wisdom.  I tried a bunch of things, which follows,
so it is clear what I've done.

Thanks very much,
Marcia
(MPerry@lbl.gov)
________________________________

>/home/g3/data/mperry/apache-1.3.12/bin/apxs -c *.c -o mod_jser
v.so
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c autochange.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_ajpv11.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_ajpv12.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_balance.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_image.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_mmap.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_protocols.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_status.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_utils.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_watchdog.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_wrapper.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_wrapper_unix.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_wrapper_win.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c mod_jserv.c
cmd =   -o autochange.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o js
erv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o js
erv_mmap.o jserv_image.o jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o autochang
e.o
apxs:Break: Command failed with rc=16711680

________________________________________________
Yes, the above was posted in a newsgroup, so I followed the
answer, did more reading and tried this:

>/home/g3/data/mperry/apache-1.3.12/bin/apxs -c *.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c autochange.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_ajpv11.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_ajpv12.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_balance.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_image.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_mmap.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_protocols.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_status.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_utils.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_watchdog.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_wrapper.c
cmd = gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/home
/g3/data/mperry/apache-1.3.12/include  -c jserv_wrapper_v11.o autochang
e.o
apxs:Break: Command failed with rc=16711680

>gcc -fpic -DSHARED_MODULE -I/home/g3/data/mperry/apache_1.3.12_build/src/includ
e -I/home/g3/data/mperry/apache_1.3.12_build/src/os/unix -c mod_jserv.c
(No errors, no output at all)

>ld -shared -o mod_jserv.so mod_jserv.o
ld: fatal: option -h and building a dynamic executable are incompatible

(NOTE THAT I AM using 'ld -shared' since 'ld -Bshareable ...' did not
work and -shared is suggested by the gcc man page.)

_____________________________________________

Mime
View raw message