Do a find and look for libapr*.
You'll probably find one that's named something like libapr.0.so or similar.
Create a link named libapr.so and link it to the one you find, then redo
your build. I had the same problem on Solaris 8.
John
-----Original Message-----
From: Robert Williams
To: Tomcat User
Sent: 11/12/02 5:52 PM
Subject: Link Error Building JK2 on Solaris 9
Hi,
I gathered up as much info as I can from this list google etc. but I
can't figure this on out.
I am compiling JK2 on Solaris 9. I makes it all the way through the
compile and builds mod_jk2 but then dies when it tries to build
jkjni.so. From my amateur look at the log it would seem that I am
missing a file in /usr/local/apache2/lib. Should that file have been
built with Apache? Any help would be appreciated.
----------------------------------------------------------
<snip>
./build/jk2/apache2/jk_shm.lo ../../../build/jk2/apache2/jk_signal.lo
../../../build/jk2/apache2/jk_uriEnv.lo
../../../build/jk2/apache2/jk_uriMap.lo
../../../build/jk2/apache2/jk_user.lo
../../../build/jk2/apache2/jk_vm_default.lo
../../../build/jk2/apache2/jk_workerEnv.lo
../../../build/jk2/apache2/jk_worker_ajp13.lo
../../../build/jk2/apache2/jk_worker_jni.lo
../../../build/jk2/apache2/jk_worker_lb.lo
../../../build/jk2/apache2/jk_worker_run.lo
../../../build/jk2/apache2/jk_worker_status.lo -L/usr/local/apache2/lib
-lcrypt -lapr -lc
ld: fatal: library -lapr: not found
ld: fatal: File processing errors. No output written to
../../../build/jk2/apache2/.libs/jkjni.so
make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1
make[1]: Leaving directory
`/export/home/rcw/jakarta-tomcat-connectors-4.1.12-src/jk/native2/server
/apache2'
make: *** [jk2-build] Error 1
rcw@sun:~/jakarta-tomcat-connectors-4.1.12-src/jk/native2 $
------------------------------------------
rcw@sun:~ $ ls /usr/local/apache2/lib/
apr.exp libapr-0.so.0.9.2* libexpat.a
aprutil.exp libaprutil-0.a libexpat.la*
libapr-0.a libaprutil-0.la libexpat.so@
libapr-0.la libaprutil-0.so@ libexpat.so.0@
libapr-0.so@ libaprutil-0.so.0@ libexpat.so.0.1.0*
libapr-0.so.0@ libaprutil-0.so.0.9.2*
rcw@sun:~ $
-------------------------------
Appacbe build
./configure --enable-layout=Apache --enable-module=most
--enable-mods-shared=most
--------------------------------
install GNU Tools
autoconf-2.54-sol9-sparc-local.gz
tar-1.13.19-sol9-sparc-local.gz
m4-1.4-sol9-sparc-local
automake-1.7.1-sol9-sparc-local
make-3.80-sol9-sparc-local.gz
libtool-1.4
------------------------------------
Build jk2 Conector
cd ${conector.home}/jk/native2
sh ./buildconf.sh
cp /usr/java/include/solaris to /usr/java/include/
CPPFLAGS=-DBSD_COMP ./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-tomcat41=/usr/local/tomcat \
--with-java-home=${JAVA_HOME} \
--with-java-platform=2 \
--with-jni
make CPPFLAGS=-DBSD_COMP
------------------------------------
--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>