You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by srinivas yelamanchili <y_...@yahoo.com> on 2013/08/02 20:47:36 UTC

Tomcat native 1.1.27 libapr-1.so.0 is not deployed

Hi, 
I built APR 1.4.8 and Tomcat 7.0.42 from source code on redhat linux

I compiled the tomcat native library 1.1.27 as below

./configure --with-apr=/apps/mstrat/apache/apr-1.4.8 \
                --with-java-home=/apps/mstrat/java/jdk1.7.0_25 \
                --with-ssl=/apps/mstrat/apache/openssl-1.0.1e    \
                --prefix=/apps/mstrat/apache-tomcat-7.0.42
make
make install

I see new libraries at /apps/mstrat/apache-tomcat-7.0.42/lib
libtcnative-1.so.0.1.27
libtcnative-1.so.0 -> libtcnative-1.so.0.1.27
libtcnative-1.so -> libtcnative-1.so.0.1.27
libtcnative-1.la
libtcnative-1.a

but NOT libapr-1.so.0

libapr-1.so.0 and libapr-1.so.0.4.8 are available at APR install directory (/apps/mstrat/apache/apr-1.4.8/lib)

When I start Tomcat, I see the following error in the log file
catalina.out:java.lang.UnsatisfiedLinkError: /apps/mstrat/apache-tomcat-7.0.42/lib/libtcnative-1.so.0.1.27: libapr-1.so.0: cannot open shared object file: No such file or directory

From tomcat lib folder
strings libtcnative-1.so.0.1.27  | more | grep libapr
libapr-1.so.0


On manually copying the libapr-1.so.0 from APR lib to Tomcat lib, the error is gone on tomcat restart

Why doesn't Tomcat native library build&install deploy libapr-1.so.0 to the Tomcat lib folder?

Thanks,
-sri

Re: Tomcat native 1.1.27 libapr-1.so.0 is not deployed

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

srinivas,

On 8/2/13 2:47 PM, srinivas yelamanchili wrote:
> I built APR 1.4.8 and Tomcat 7.0.42 from source code on redhat
> linux

Please don't hijack threads. Instead of replying to an existing
message, start a new message to users@tomcat.apache.org.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJR/GwTAAoJEBzwKT+lPKRYqPMP/R08PN/pM378Zmr4DXRXKHRQ
UrMeGxyCH0GKWZDsdQ7rDQkjgM4fO4MNbIloFPW4Tqk3VR9FfPN/MOYBTsBd1Sqp
utnUHPEVZNh3QgVxPeHD6IKnSIWkTDMrbn8eCfMcfcBirNXY8qW+ZyUxvB9Xm4Es
/g6vUJXGKs1JzXdn15iMGDJ6vS/K923ZYdcvnXPSqprT+eo3SyYTQNrgU1xpQeO4
BRtNfjUWk6rmQXLFsQgsG3zTXNz/zSRCy8VfAfs8b30yMpVymCMcMmC09kCH2qs7
DeSpiMBziveklKjfv8ywv07SPeQ6qP1vF8UEQ2J7PZc6U3MsD7fzUKW45oojBulb
8t0DIqrnfSbdPUKqpWXbRwC2YVAqG0vb2oY/+KkVUUWA2C+keBTyU2+NdwQyxUnd
CBDrwFLnR4T4aAj+zNX1L0ARfxaZzaL0WNW2msq4Itt5U7ooYb/EwITp4hI5to5K
xFRRjFNW1jWncLaREJnUkcYXIF+PCi/GYeXPEai05HnIUy8sM9B8gfMLJJyE9HaQ
MswvyMVBK2+iZmxRk+7RcRolNkKgQCST9ziA37FTZh3sEJX4cHb8S4fDQ3XoAAaR
8YcghWw7GvdpKHcevw2h/T4VE5dmX/KC6ArYT+vmSWQt1A0Bs8akbXGncujZmLyH
JFbDL7TaKT5/S2u8E/XB
=sW6S
-----END PGP SIGNATURE-----

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