Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 17991 invoked from network); 25 Apr 2003 05:00:15 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 25 Apr 2003 05:00:15 -0000 Received: (qmail 6811 invoked by uid 97); 25 Apr 2003 05:02:22 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 6804 invoked from network); 25 Apr 2003 05:02:22 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 25 Apr 2003 05:02:22 -0000 Received: (qmail 16513 invoked by uid 500); 25 Apr 2003 04:59:55 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 16490 invoked from network); 25 Apr 2003 04:59:54 -0000 Received: from adsl-210-193-15-20.qala.com.sg (HELO itventures.com.sg) (210.193.15.20) by daedalus.apache.org with SMTP; 25 Apr 2003 04:59:54 -0000 Received: from skywalker5 [202.42.200.130] by itventures.com.sg [127.0.0.1] with SMTP (MDaemon.v3.0.4.R) for ; Fri, 25 Apr 2003 12:45:47 +0800 Message-Id: <3.0.1.32.20030425125221.0148f5c8@miami> X-Sender: williamc@miami X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Fri, 25 Apr 2003 12:52:21 +0800 To: "Tomcat Users List" From: William Claxton Subject: Re: problem compiling modJK2, library not found In-Reply-To: References: <3.0.1.32.20030425105908.012d22d8@miami> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: tomcat-user@jakarta.apache.org X-Return-Path: williamc@openasia.net X-MDRcpt-To: tomcat-user@jakarta.apache.org X-MDRemoteIP: 202.42.200.130 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N So sorry, you are right. I copied those lines from our documentation for the the mod_JK. The corrected lines (as entered during compilation) should be: $cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 $./buildconf.sh $./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} Thanks for pointing this out. At 09:42 PM 4/24/03 -0700, you wrote: >I see two problems here: >1) .../native is where mod_jk lives. Jk2 is in .../native2. >2) the configure option --with-apxs is for Apache 1.3.x. For Apache2 you >want --with-apxs2. > >"William Claxton" wrote in message >news:3.0.1.32.20030425105908.012d22d8@miami... >> Hi folks, >> >> Fairly new to compilation in Unix here, and trying to compile modJK2 >> connector, for Apache 2.0.40. Apparently, we have a library not found >> error, during linking. >> >> Our environment is RH Linux 8, Apache 2.0, and Tomcat 4.1.18. We have >> currently connected Apache and Tomcat using AJP13, but are trying JK2 >> because the output stream 'flush' function fails with standard modJK. >> >> To prepare for compilation, we're using the configure option, as follows: >> >> $cd /usr/lib/httpd/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native >> $./buildconf.sh >> $./configure --with-apxs=/usr/sbin/apxs --with-java-home=${JAVA_HOME} >> >> A 'Makefile' is created. Then we proceed with: >> >> $ make >> >> The compilation fails, apparently during linking. The last part of the >> screen output shows: >> >> /usr/bin/ld: cannot find -lapr-0 >> collect2: ld returned 1 exit status >> make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1 >> make: *** [jk2-build] Error 1 >> >> A quick check for the 'libapr.so' libraries finds them here: >> >> $ locate libapr >> /usr/lib/libapr.so.0.0.0 >> /usr/lib/libapr.so.0 >> /usr/lib/libaprutil.so.0.0.0 >> /usr/lib/libaprutil.so.0 >> /usr/lib/libaprutil.so >> /usr/lib/libapr.so >> >> Can anyone advise how to ensure that this library is found during linking, >> or what we may do to rectify the compilation problem. Thanks. >> >> >> >> >> >> Regards, Bill Claxton [williamc@openasia.net] >> OpenAsia Solutions provides streaming media & payment solutions. >> Check out http://www.openasia.net >> ........::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > Regards, Bill Claxton [williamc@openasia.net] OpenAsia Solutions provides streaming media & payment solutions. Check out http://www.openasia.net ........::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org