I had the same problem some months ago.

In fact, all the object files have been compiled, now you just need to build 
the mod_jk.so from them:
Just go to the directory where the objects files are located and try:

gcc -shared -o mod_jk.so *.o

You will get a mod_jk.so file.

It worked for me very fine, so I hope it will be the same for you.

Benoît



> Hi there,
>
> After long searching, trying and investigating I have to say that I can
> not figure it out. My last hope is you guys (&girls) and I wonder if
> someone knows the solution for this problem. I've seen many similar
> problems, but none like this exactly.
> My system:
>     Debian Linux, testing
>     Apache 3.19 compiled with DSO support
>     Binary tomcat 4.0 works fine !
>     Trying to install mod_jk.so from the source of tomcat-3.2.1
>      And there is where my misery started....
> For some kind of odd reason apxs does not want to compile the mod_jk at
> all.
>
> I execute :
>
> /usr/local/apache/bin/apxs -o mod_jserv.so -I/usr/java/include/linux
> -I../jk -I/usr/java/include -c *.c ../jk/*.c
>
> And this is the result:
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c mod_jk.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_ajp12_worker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_ajp13.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_ajp13_worker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_connect.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_jni_worker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_lb_worker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_map.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_msg_buff.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_nwmain.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_pool.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_sockbuf.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_uri_worker_map.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_util.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_worker.c
>   -o mod_jserv.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
> jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
> jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o
> jk_ajp12_worker.o mod_jk.o
> apxs:Break: Command failed with rc=16777215
>
> No matter what I try, ( remove apache, reconfigure and reinstall it for
> example) I simply cannot get this "piece of cake" done. Seems like
> nobody has troubles with it and if they have it, then the rc number is
> almost never the same I remember Scott having a problem with it, but
> couldn't find a solution altough he said he had a solution.
>
> People, many thanks for helping me out with this one.
> I'd like to connect apache and tomcat sooner or later!
>
> Regards,
>
> Klaas-Pieter

Reply via email to