tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.Y.M Shafeen" <shaf...@mediasolv.com>
Subject Re: Damsel in mod_jserv.so distress
Date Tue, 03 Oct 2000 03:55:17 GMT
Hi thr,
         I also had this prob... Now it's workin. This wat I did....
Downloaded tomcat 3.1 binnary and extracted.. Then downloaded the tomcat 3.1
source and extracted to another location....

In the source code go to the jakarta-tomcat(source)/src/native/apache/jserv
and type this..

$ apxs -c mod_jserv.c jserv*.c
$ apxs -i -a -n jserv mod_jserv.so

This will do it.. It will add the mod_jserv.co to the APACHE/libexec
directory..

Wishes..
Shafeen
----- Original Message -----
From: Marcia Perry (DSD staff) <mperry@george.lbl.gov>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, October 03, 2000 4:23 AM
Subject: Damsel in mod_jserv.so distress


> 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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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 =
cc -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/in
clud
> 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