tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: JK2 release & Expat
Date Fri, 20 Feb 2004 07:44:55 GMT
Greg.Cope@pfizer.com wrote:
> Few,
> 
> apr-utils has a dependency on expat, yet when linking mod_jk2 apr-config
> --libs is used:  `/var/tmp/temo/apr-0.9.4/apr-config --libs`
> 
> However apr-config / apr does not have a dependency on expat, so it does not
> return the right line with -L/usr/local/bin -lexpat (in my case added)
> 
> The the line that gets spat out should look like (notice I've added the
> expat bit at the end):
> 
>  /bin/sh ../../libtool --mode=link cc -avoid-version -module -rpath
> /WWW/app/apache/1.3.26c/libexec  -L/WWW/app/apache/1.3.26c/lib  -o
> ../../../build/jk2/apache13/mod_jk2.la
> ../../../build/jk2/apache13/jk_channel.lo
> ../../../build/jk2/apache13/jk_channel_apr_socket.lo
> ../../../build/jk2/apache13/jk_channel_jni.lo
> ../../../build/jk2/apache13/jk_channel_un.lo
> ../../../build/jk2/apache13/jk_config.lo
> ../../../build/jk2/apache13/jk_config_file.lo
> ../../../build/jk2/apache13/jk_endpoint.lo
> ../../../build/jk2/apache13/jk_env.lo
> ../../../build/jk2/apache13/jk_handler_logon.lo
> ../../../build/jk2/apache13/jk_handler_response.lo
> ../../../build/jk2/apache13/jk_logger_file.lo
> ../../../build/jk2/apache13/jk_logger_win32.lo
> ../../../build/jk2/apache13/jk_map.lo ../../../build/jk2/apache13/jk_md5.lo
> ../../../build/jk2/apache13/jk_msg_ajp.lo
> ../../../build/jk2/apache13/jk_mutex.lo
> ../../../build/jk2/apache13/jk_mutex_proc.lo
> ../../../build/jk2/apache13/jk_mutex_thread.lo
> ../../../build/jk2/apache13/jk_nwmain.lo
> ../../../build/jk2/apache13/jk_objCache.lo
> ../../../build/jk2/apache13/jk_pool_apr.lo
> ../../../build/jk2/apache13/jk_registry.lo
> ../../../build/jk2/apache13/jk_requtil.lo
> ../../../build/jk2/apache13/jk_shm.lo
> ../../../build/jk2/apache13/jk_signal.lo
> ../../../build/jk2/apache13/jk_uriEnv.lo
> ../../../build/jk2/apache13/jk_uriMap.lo
> ../../../build/jk2/apache13/jk_user.lo
> ../../../build/jk2/apache13/jk_vm_default.lo
> ../../../build/jk2/apache13/jk_workerEnv.lo
> ../../../build/jk2/apache13/jk_worker_ajp13.lo
> ../../../build/jk2/apache13/jk_worker_jni.lo
> ../../../build/jk2/apache13/jk_worker_lb.lo
> ../../../build/jk2/apache13/jk_worker_run.lo
> ../../../build/jk2/apache13/jk_worker_status.lo
> ../../../build/jk2/apache13/jk_service_apache13.lo
> ../../../build/jk2/apache13/mod_jk2.lo
> /var/tmp/temo/apr-0.9.4/lib/libapr-0.la
> /var/tmp/temo/apr-util-0.9.4/lib/libaprutil-0.la
> `/var/tmp/temo/apr-0.9.4/apr-config --libs` -L/usr/local/bin -lexpat
> 
> ldd now has an entry for libexpat, and the mod_jk2.so loads.
> 
> Perhaps other expats are build differently?
> 
> Clear as mud?

What does apu-config --libs (in apr-util-0.9.4) gives?
In my machine it tells:
+++
bash-2.03$ ./apu-config --libs
 /export/home3/jfclere/tmp/apr-util-0.9.4/xml/expat/lib/libexpat.la
bash-2.03$ ./apu-config --link-libtool --libs
 /export/home3/jfclere/tmp/apr-util-0.9.4/libaprutil-0.la
/export/home3/jfclere/tmp/apr-util-0.9.4/xml/expat/lib/libexpat.la
bash-2.03$ ./apr-config --link-libtool --libs
 /export/home3/jfclere/tmp/apr-0.9.4/libapr-0.la -lsendfile -lrt -lm -lsocket
-lnsl -lresolv  -lpthread -ldl
+++
I think we have to use "--link-libtool --libs" instead of "--libs".

> 
> Greg
> 
> 
> 
>>-----Original Message-----
>>From: Henri Gomez [mailto:hgomez@apache.org]
>>Sent: 19 February 2004 15:56
>>To: Tomcat Developers List
>>Subject: Re: JK2 release & Expat
>>
>>
>>Greg.Cope@pfizer.com wrote:
>>
>>
>>>>-----Original Message-----
>>>>From: jean-frederic clere 
>>
>>[mailto:jfrederic.clere@fujitsu-siemens.com]
>>
>>>>Sent: 18 February 2004 17:05
>>>>To: Tomcat Developers List
>>>>Subject: Re: JK2 release & Expat
>>>>
>>>>
>>>>Henri Gomez wrote:
>>>>
>>>>a "ldd /var/tmp/mod_jk2_new.so" would be nice to have.
>>>>
>>>
>>>
>>>Close but no cigar ( I checked that before posting) but here for
>>>completeness;
>>>
>>>$ ldd /var/tmp/mod_jk2_new.so
>>>        libsendfile.so.1 =>      /usr/lib/libsendfile.so.1
>>>        librt.so.1 =>    /usr/lib/librt.so.1
>>>        libm.so.1 =>     /usr/lib/libm.so.1
>>>        libsocket.so.1 =>        /usr/lib/libsocket.so.1
>>>        libnsl.so.1 =>   /usr/lib/libnsl.so.1
>>>        libresolv.so.2 =>        /usr/lib/libresolv.so.2
>>>        libpthread.so.1 =>       /usr/lib/libpthread.so.1
>>>        libdl.so.1 =>    /usr/lib/libdl.so.1
>>>        libc.so.1 =>     /usr/lib/libc.so.1
>>>        libaio.so.1 =>   /usr/lib/libaio.so.1
>>>        libmp.so.2 =>    /usr/lib/libmp.so.2
>>>        libthread.so.1 =>        /usr/lib/libthread.so.1
>>>        /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
>>>
>>>Greg
>>
>>How did you build apr ?
>>
>>If it's in DSO, could you make a ldd on it ?
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 


Mime
View raw message