tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GOMEZ Henri <>
Subject RE: jk2 problems with
Date Tue, 15 Jan 2002 09:12:36 GMT
>I am playing with jk2 and I have noted that the loadNative() 
>in AprImpl fails:
>undefined symbol: crypt
>        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>        at java.lang.ClassLoader.loadLibrary0(
>        at java.lang.ClassLoader.loadLibrary(
>        at java.lang.Runtime.load0(
>        at java.lang.System.load(
>        at org.apache.jk.apr.AprImpl.loadNative(
>        at org.apache.jk.apr.AprImpl.loadNative(
>        at org.apache.jk.common.ChannelUn.init(
>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.

Did the System.load code known it's running on an APR
platform ? if so may be fine to add the needed libs there.

>2 - Link against a static libapr.a (like in 
>mod_webapp for
>    something like: gcc -shared -lm -lcrypt -lnsl -ldl -o 
> ...

the -lcrypt will need an update of build.xml ?

I'd prefer the option 1 since I'd like to have used
instead of static libs, but it's just me own preference

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message