tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "boddhula@yahoo.com" <boddh...@yahoo.com>
Subject Apache/Tomcat Integration problem (Aprutil lib missing) causing unsatisfied link error
Date Thu, 16 Sep 2004 12:54:33 GMT
I am following the instructions listed in
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg130210.html

Expected Results from ldd

 ldd /usr/local/httpd/modules/jkjni.so
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40046000)
libapr-0.so.0 =>
/usr/local/httpd-2.0.49/lib/libapr-0.so.0 (0x40074000)
libaprutil-0.so.0 =>
/usr/local/httpd-2.0.49/lib/libaprutil-0.so.0
(0x40097000)
libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x400ab000)
libdb-4.0.so => /lib/libdb-4.0.so (0x400b2000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4015a000)
libc.so.6 => /lib/i686/libc.so.6 (0x4017a000)
librt.so.1 => /lib/i686/librt.so.1 (0x402b4000)
libm.so.6 => /lib/i686/libm.so.6 (0x402c6000)
libnsl.so.1 => /lib/libnsl.so.1 (0x402e8000)
libpthread.so.0 => /lib/i686/libpthread.so.0
(0x402fd000)
libdl.so.2 => /lib/libdl.so.2 (0x4034d000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Actual Results from my installation..


[root@localhost apache2]# ldd libjkjni.so
        libcrypt.so.1 => /lib/libcrypt.so.1
(0x40032000)
        libapr-0.so.0 =>
/usr/local/apache2/lib/libapr-0.so.0 (0x4005f000)
        libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
        librt.so.1 => /lib/librt.so.1 (0x4007d000)
        libm.so.6 => /lib/tls/libm.so.6 (0x4008f000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x400b2000)
        libpthread.so.0 => /lib/tls/libpthread.so.0
(0x400c7000)
        libdl.so.2 => /lib/libdl.so.2 (0x400d4000)



I am missing apr-uitl etc... So I  am getting
Unsatisfied link Error...Please help...

MakeFile /server/apache2 is listed below..

# Gnu makefile and libtool are required
# use -D options to overrides defaults
CC=gcc
CP=/bin/cp
prefix=/usr/local
exec_prefix=${prefix}
                                                      
                                                      
               
APACHE2_HOME=/usr/local/apache2
OS=linux
JAVA_HOME=/usr/java/jdk1.5.0
APACHE2_INCL=-I/usr/local/apache2/include
APACHE2_LIBEXEC=/usr/local/apache2/modules
APACHE2_LIBDIR=/usr/local/apache2/lib
APR_INCL=
-I/usr/local/httpd-2.0.50/srclib/apr-util/include
-I/usr/local/httpd-2.0.50/srclib/apr/include
#APR_LIBS=-L/usr/local/apache2/lib
APR_LIBS=-L/usr/local/apache2/lib -lapr-0
#APR_LIBS=-L/root/software/httpd-2.0.50/srclib/apr-util/.libs
-laprutil-0
APR_LIBDIR_LA=
EXTRA_CFLAGS= -g -O2 -pthread
EXTRA_CPPFLAGS=-DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE
ifneq ($(strip $(JAVA_HOME)),)
JAVA_INCL=-I ${JAVA_HOME}/include -I
${JAVA_HOME}/include/${OS}
JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L
${JAVA_HOME}/lib/${ARCH}/native_threads
endif
                                                      
                                                      
               
JK_DIR := ../..
BUILD_DIR = ${JK_DIR}/../build/jk2/apache2
                                                      
                                                      
               
# Extract EXTRA_CFLAGS and EXTRA_CPPFLAGS - same flags
used during apache2
# compilation
#include ${APACHE2_HOME}/build/config_vars.mk
                                                      
                                                      
               
# Yes, we use the same properties file as ant
#include ../../../build.properties


#LIBTOOL=/bin/sh /usr/local/apache2/build/libtool
--silent
LIBTOOL=/usr/bin/libtool
                                                      
                                                      
               
# It doesn't hurt if we include all
INCLUDES= -I${JK_DIR}/include \
          ${APACHE2_INCL} \
          ${APR_INCL} \
          ${JAVA_INCL}
                                                      
                                                      
               
JK_CFLAGS=-DCHUNK_SIZE=4096 -DUSE_APACHE_MD5
-DHAVE_JNI
#ifdef APR_LIBDIR_LA
#JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
#else
#JK_LDFLAGS=-lcrypt ${APR_LIBS}
#endif'
ifdef APR_LIBDIR_LA
JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
else
JK_LDFLAGS=-lcrypt ${APR_LIBS}
-L/usr/local/apache2/lib -laprutil-0 -lgdbm -ldb-4.0
-lexpat
endif
                                                      
                                                      
               
###### Based on rules.mk
##########################################

etc....


Thanks


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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


Mime
View raw message