Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 17482 invoked from network); 31 Oct 2003 08:34:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 31 Oct 2003 08:34:33 -0000 Received: (qmail 14494 invoked by uid 500); 31 Oct 2003 08:33:59 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 14449 invoked by uid 500); 31 Oct 2003 08:33:59 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 14367 invoked from network); 31 Oct 2003 08:33:58 -0000 Received: from unknown (HELO plam.fujitsu-siemens.com) (217.115.66.9) by daedalus.apache.org with SMTP; 31 Oct 2003 08:33:58 -0000 Received: from trolli.pdb.fsc.net ([172.25.96.53]) by plam.fujitsu-siemens.com (8.11.3/8.11.3) with ESMTP id h9V8YAc23434 for ; Fri, 31 Oct 2003 09:34:10 +0100 Received: from deejai2.mch.fsc.net (deejai2.mch.fsc.net [172.25.124.236]) by trolli.pdb.fsc.net (8.11.6/8.11.6) with ESMTP id h9V8Y9g31869 for ; Fri, 31 Oct 2003 09:34:09 +0100 Received: from fujitsu-siemens.com (bf8a9xdyj9haho25@deejai2.mch.fsc.net [172.25.124.236]) by deejai2.mch.fsc.net (8.12.9p2/8.12.9) with ESMTP id h9V8Y1ZU055025 for ; Fri, 31 Oct 2003 09:34:02 +0100 (CET) (envelope-from jfrederic.clere@fujitsu-siemens.com) Message-ID: <3FA21E4A.1010000@fujitsu-siemens.com> Date: Fri, 31 Oct 2003 09:33:14 +0100 From: jean-frederic clere Reply-To: jfrederic.clere@fujitsu-siemens.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en, fr, de MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: jk2/apr patch References: <006a01c39f2d$644f5010$200110ac@truk> <009d01c39f33$9cf116a0$200110ac@truk> <3FA21B00.5030200@fujitsu-siemens.com> In-Reply-To: <3FA21B00.5030200@fujitsu-siemens.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Clere, Jean-Frederic wrote: > Kurt Miller wrote: > >> Checking out the apache2 makefile it looks like apr-0 is right. Here's >> a revised >> patch (I missed a spot). >> >> 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 22:11:05 -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}" >> @@ -189,7 +189,7 @@ >> APR_CLEAN="" >> APR_DIR="" >> APR_LIBDIR=${tempval} >> - APR_LDFLAGS="-lapr -L${tempval}" >> + APR_LDFLAGS="-lapr-0 -L${tempval}" >> COMMON_APR_OBJECTS="\${COMMON_APR_OBJECTS}" >> use_apr=true >> fi >> >> >> ----- Original Message ----- From: "Kurt Miller" >> To: "Tomcat Developers List" >> Sent: Thursday, October 30, 2003 4:32 PM >> Subject: jk2/apr patch >> >> >> >>> Getting ready for jk2 requiring apr (even for Apache13)... Building jk2 >>> using: >>> >>> ./configure --with-apxs=/usr/sbin/apxs --with-apr= && 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? > > > -1. We have to use apr-config to get the name of the apr library. > Look in the web-app deprecated code (in wa_apr.m4). For example I have with APR for CVS: +++ jfclere@vtxclere:~/apr > apr-config --link-ld --libs -L/home/jfclere/apr -lapr-1 -lrt -lm -lcrypt -lnsl -lpthread -ldl jfclere@vtxclere:~/apr > find . -name "*.so" -print ./.libs/libapr-1.so +++ > >>> >>> -Kurt >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org