Getting ready for jk2 requiring apr (even for Apache13)... Building jk2
using:

./configure --with-apxs=/usr/sbin/apxs --with-apr=<apr src loc> && make

linking fails because the apr library is not named libapr.a it is named
libapr-0.a. I'm not sure if this naming problem is universal for all
platforms, but libapr-0.a appears to be the correct name for OpenBSD,
FreeBSD and NetBSD. If it is universal then here's a quick patch to change
it:

Index: jk/support/jk_apr.m4
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-connectors/jk/support/jk_apr.m4,v
retrieving revision 1.3
diff -u -r1.3 jk_apr.m4
--- jk/support/jk_apr.m4 25 Sep 2003 15:23:56 -0000 1.3
+++ jk/support/jk_apr.m4 30 Oct 2003 21:03:16 -0000
@@ -99,7 +99,7 @@
             APR_CLEAN="apr-clean"
             APR_DIR=${tempval}
             APR_INCDIR="${tempval}/include"
-            APR_LDFLAGS="${tempval}/.libs/libapr.a"
+            APR_LDFLAGS="${tempval}/.libs/libapr-0.a"
             APR_LIBDIR=""
    use_apr=true
             COMMON_APR_OBJECTS="\${COMMON_APR_OBJECTS}"

If this name needs to be libapr.a for other platforms, then I guess I could
patch the apr-build target in Makefile.in to rename it. Any thoughts?

-Kurt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to