You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Bussenschutt <D....@mailbox.gu.edu.au> on 2000/12/12 01:31:34 UTC

on solaris 2.6 I used -lposix4 for mod_jk

I don't know if anyone else has encountered this problem before, but going
by the number of mod_jk compile problems, it can only help!....

With: Solaris 2.6/Apache 1.3.14/Tomcat 3.2Final/mod_jk

I found that the suggested apxs command for building mod_jk didn't work
properly. The compile went perfectly, and built a mod_jk.so with no errors
at all when using the suggested command of:

/opt/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include
-I/usr/java/include/solaris -c *.c ../jk/*.c

BUT....Copying it to apache's libexec directory and configuring apache to
load it caused a ld linker error at start-up time. It was trying to
reference something from the posix4 library.... so I had to do this:

/opt/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include
-I/usr/java/include/solaris -lposix4 -c *.c ../jk/*.c

( note the addition of -lposix4 )

and it fixed it!

David.

--------------------------------------------------------------------
David Bussenschutt          Email: D.Bussenschutt@mailbox.gu.edu.au
Senior Computing Support Officer & Systems Administrator/Programmer
Location: Griffith University. Information Technology Services
          Brisbane Qld. Aust.  (TEN bldg. rm 1.33) Ph: (07)38757079
--------------------------------------------------------------------