You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nikola Milutinovic <Ni...@ev.co.yu> on 2003/09/10 14:49:05 UTC
Building/using JK2 - linking problem
Hi all.
I have built mod_jk2.so and jkjni.so from the latest tomcat-connectors-jk2-2.0.2. This is my jk2.properties:
handler.list=apr,channelUnix,request
channelUnix.file = /var/tomcat4/work/jk2.socket
shm.file = /var/tomcat4/work/jk2.shm
apr.NativeSo = /usr/lib/apache2-extramodules-2.0.44/jkjni.so
My problem is that when I try to start Tomcat I get errors in catalina.out:
Sep 10, 2003 2:40:44 PM org.apache.jk.server.JkMain start
INFO:
APR not loaded, disabling jni components:
java.io.IOException:
/usr/lib/apache2-extramodules-2.0.44/jkjni.so:
/usr/lib/apache2-extramodules-2.0.44/jkjni.so:
undefined symbol: apr_md5_final
I have built jkjni.so with shared libraries. What should I do now?
- Specify libapr-0.so as another "apr.NativeSo"
- Relink jkjni.so to statically link other libraries (that should be possible, right?)
- Leave out "apr" from jk2.config (I think I need it for AF_UNIX socket!)
Thanks for any insight.
Nix.