Caldarale, Charles R wrote:
From: Caldarale, Charles R Subject: RE: path used for tc-natuve

So then, to repeat the question, where might this Tomcat Native library be, which Tomcat finds and is complaining about ?

I wonder if dlopen() is defaulting to the ldconfig list?  Look in
/etc/ld.so.conf for that.

According to the man page for dlopen(), /lib and /usr/lib are also searched, so 
the .so file might be hiding there.


Yep :

v2:/usr/lib# ls -l libtc*
-rw-r--r-- 1 root root 244964 2008-06-12 22:18 libtcnative-1.a
-rw-r--r-- 1 root root    901 2008-06-12 22:18 libtcnative-1.la
lrwxrwxrwx 1 root root     23 2011-04-13 08:40 libtcnative-1.so -> 
libtcnative-1.so.0.1.12
lrwxrwxrwx 1 root root     23 2011-04-13 08:40 libtcnative-1.so.0 -> 
libtcnative-1.so.0.1.12
-rw-r--r-- 1 root root 152008 2008-06-12 22:18 libtcnative-1.so.0.1.12

which still does not really explain (to me) why Tomcat looks for it there. Or 
is it jsvc ?

And another question then :

So one version of tcnative is thus in /usr/lib, and it is the version that was installed with tomcat5.5, which is still on the machine. And Tomcat6 also finds it, through whatever means. And it complains about it, because it is too old. But Tomcat5.5 is happy with it, and I want to keep Tomcat5.5 at least runnable for now, until I have Tomcat6 totally sorted out.

So how do I install a version of tcnative which will satisfy Tomcat6 (which lives in /opt/tomcat6), in such a way that Tomcat6 will find it before the ones listed above ?

And, will this new version of tcnative be happy with the current Apache APR library which is also on that system ? Or does it not use it ?

To wit :
v2:/usr/lib# ls -l libapr*
lrwxrwxrwx 1 root root     18 2011-05-23 22:19 libapr-1.so.0 -> 
libapr-1.so.0.2.12
-rw-r--r-- 1 root root 213512 2011-05-19 08:24 libapr-1.so.0.2.12
lrwxrwxrwx 1 root root     18 2011-01-01 19:47 libapreq2.so.3 -> 
libapreq2.so.3.6.0
-rw-r--r-- 1 root root  53096 2008-05-04 12:12 libapreq2.so.3.6.0
lrwxrwxrwx 1 root root     22 2010-12-31 14:59 libaprutil-1.so.0 -> 
libaprutil-1.so.0.2.12
-rw-r--r-- 1 root root 143912 2010-10-01 18:39 libaprutil-1.so.0.2.12


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to