Henri Gomez wrote:
> jean-frederic clere wrote:
> 
>> Henri Gomez wrote:
>>
>>> More comments on APR and JK2.
>>>
>>> While making tomcat-connectors rpm for jk2, and also
>>> jk2 binaries for Linux, I wanted to have apache 1.3 jk2
>>> built with JNI support.
>>>
>>> JNI support in JK2 requires APR.
>>>
>>> So I build an apr 0.9.1 rpm, which include apr-utils
>>> since apr-utils couldn't be built without apr ;-[
>>>
>>> To avoid conflict with Apache 2.0 rpms, I've installed
>>> apr libs in /usr/lib/apr/ and includes in /usr/include/apr.
>>>
>>> And here we allready discover many interesting things :
>>>
>>> With Apache 2.0, libapr shared lib in name libapr.so.0.9.2.
>>> With APR build, it's called libapr-0.so.0.9.2.
>>>
>>> What you see also is that is seems that parts of apr-utils
>>> are included in Apache2 binaries (ie md5 stuff), so when
>>> you're using APR libs, you should add apr and aprutils to
>>> ldpath (-lapr -laprutils).
>>>
>>> With that I was thinking being ready to make Apache 1.3
>>> works with APR, for JNI use purposes.
>>>
>>> I've used :
>>>
>>> ./configure --with-apxs=/usr/sbin/apxs --with-jni 
>>> --with-apr-lib=/usr/lib/apr --with-apr-include=/usr/include/apr
>>>
>>> The build works but I saw that the mod_jk2.so was linked against
>>> /usr/lib/libapr.so (the one from Apache 2.0 built) against the one
>>> in /usr/lib/arp.
>>>
>>> So I patched Makefile.in to change -lapr to -lapr-0.
>>>
>>> here correct build and link.
>>
>>
>>
>> That is not enough you should use apr-config.
>> I have already patched mod_webapp for that.
> 
> 
> Could you do the same for jk2, but it should be only if --with-apr
> is present...

I will try.

> 
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to