tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: jk2 problems with libapr.so
Date Tue, 22 Jan 2002 18:41:12 GMT
On Mon, Jan 14, 2002 at 05:12:29PM +0100, jean-frederic clere wrote:
> Hi,
> 
> I am playing with jk2 and I have noted that the loadNative() in AprImpl fails:
> +++
> java.lang.UnsatisfiedLinkError:
> /home/jakarta/jakarta-tomcat-4.0.1/webapps/jk/WEB-INF/jk2/jni/libapr.so:
> /home/jakarta/jakarta-tomcat-4.0.1/webapps/jk/WEB-INF/jk2/jni/libapr.so:
> undefined symbol: crypt
>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1277)
>         at java.lang.Runtime.load0(Runtime.java:698)
>         at java.lang.System.load(System.java:797)
>         at org.apache.jk.apr.AprImpl.loadNative(AprImpl.java:90)
>         at org.apache.jk.apr.AprImpl.loadNative(AprImpl.java:78)
>         at org.apache.jk.common.ChannelUn.init(ChannelUn.java:135)
> +++
> The problem is that apr needs other dynamic library.
> 
> How should we solve the problem?:
> 1 - Loading the missing libraries in the JVM (via System.load()) The list of
> needed library is in APRVARS.
> 2 - Link jni_connect.so against a static libapr.a (like in mod_webapp for
> Apache-1.3).
>     something like: gcc -shared -lm -lcrypt -lnsl -ldl -o jni_connect.so ...
> libapr.a
> 
> Any comments?

Sorry for replying to this so late. As an FYI, APRVARS will soon be
removed from APR. Take a look at the replacement apr-config and
apu-config (in apr and apr-util respectively). It's not yet complete
(that's why APRVARS hasn't been removed yet), but if you see something
missing let us know.

-aaron


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message