Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 94209 invoked from network); 1 Sep 2003 06:45:50 -0000 Received: from unknown (HELO web00.computing-oasis.com) (67.36.155.174) by daedalus.apache.org with SMTP; 1 Sep 2003 06:45:50 -0000 Content-Class: urn:content-classes:message Subject: Problem building mod_jk2 on Freebsd 4.8-RELEASE MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 1 Sep 2003 02:43:09 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: <819E8DE0BA5B76408A9D7C9AC5866FC3F620@web00.computing-oasis.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem building mod_jk2 on Freebsd 4.8-RELEASE thread-index: AcNwUP3tbqf9DX69SxO6CIg5Da20IwAAGYFw From: "Dean Searle" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello All! I am new to this mailing list and somewhat new to Apache and Tomcat. I recently have rebuilt my server from the ground up and need to rebuild mod_jk2. Here is what I have so far: Freebsd 4.8 Release Apache 2.0.47 Tomcat 4.1.27 Ant 1.5.4 JDK 1.4.1p3_3 I was following the instructions outline in the book called "Tomcat: The Definitive Guide" by O'Reilly: ---BEGIN SNIPPET--- 1. Download a new source code release of jakarta-tomcat-connectors from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release. 2. Unpack the archive and change directory into the new jakarta-tomcat-connectors source directory: # gunzip jakarta-tomcat-connectors-4.1.24-src.tar.gz # tar xvf jakarta-tomcat-connectors-4.1.24-src.tar # cd jakarta-tomcat-connectors-4.1.24-src 3. Make sure that your PATH environment variable points to the bin/ directory of the latest release of Apache Ant. Download Ant from http://ant.apache.org and add $ANT_HOME/bin to your PATH if you haven't already: # PATH=3D$PATH:/usr/local/apache-ant-1.5.2 # export PATH # which ant /usr/local/apache-ant-1.5.2/bin/ant 4. Make sure that your JAVA_HOME environment variable is set and points to your JDK: # JAVA_HOME=3D/usr/local/jdk1.3.1_02 # export JAVA_HOME # echo $JAVA_HOME /usr/local/jdk1.3.1_02 5. Create a usable copy of the util/build.properties file: # cp util/build.properties.sample util/build.properties 6. Create a usable copy of the jk/build.properties file: # cp jk/build.properties.sample jk/build.properties 7. Edit the new jk/build.properties file, changing only the lines that apply to the Tomcat and Apache httpd versions that you have and want to use. For example, if you have Tomcat 4.1 and Apache httpd 2, change the following lines to point to where yours are installed (leave everything else in this file alone): tomcat41.home=3D/usr/local/jakarta-tomcat-4.1.24 apache2.home=3D/usr/local/apache2 8. Create a usable copy of the coyote/build.properties file: # cp coyote/build.properties.sample coyote/build.properties 9. Edit the new coyote/build.properties file, changing the value of catalina.home to point to your Tomcat installation directory: catalina.home=3D/usr/local/jakarta-tomcat-4.1.24 10. Run ant from the top level of the jakarta-tomcat-connectors source directory to build mod_jk2 and the Java side of the connector: # cd /usr/local/jakarta-tomcat-connectors-4.1.24-src # ant 11. If you're building on Linux, copy the linux headers into the root of the JDK's include directory (this will allow you to avoid a known build problem with mod_jk2 and Linux): # cd $JAVA_HOME/include # cp linux/* . 12. Build mod_jk2 by calling the native build target from within the jk directory: # cd jk # ant native ---END SNIPPET--- When I ran "ant native" here is the response I get: fbsd2# ant native Buildfile: build.xml jkant: [mkdir] Created dir: /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/class es [mkdir] Created dir: /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/class es/META-INF [mkdir] Created dir: /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/lib [javac] Compiling 17 source files to /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/class es [copy] Copying 1 file to /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/class es/META-INF [jar] Building jar: /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/lib/j kant.jar detect: [echo] -------- jakarta-tomcat-connectors -------- report: [echo] Tomcat33: ${tomcat33.detect} ../../jakarta-tomcat/build/tomcat [echo] Tomcat40: ${tomcat40.detect} ../../jakarta-tomcat-4.0/build [echo] Tomcat41: true /usr/local/jakarta-tomcat4.1 [echo] Tomcat5: ${tomcat5.detect} ../../jakarta-tomcat-5/build [echo] Apache13: ${apache13.detect} /opt/apache13 [echo] Apache2: true /usr/local [echo] iPlanet: ${iplanet.detect} /opt/iplanet6 [echo] IIS: ${iis.detect} ${iis.home} native: init: [echo] /root [mkdir] Created dir: /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/jk apache20: [mkdir] Created dir: /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/jk/ap ache2 [so] Compiling 19 out of 19 Compiling /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_msg_buff.c Compiling /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_ajp13_worker.c Compiling /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c [so] Compile failed 1 /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c [so] Command:libtool --mode=3Dcompile cc -c -o /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/jk/ap ache2/common/jk_md5.o -I/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/co mmon -I/usr/local/include -I/usr/local/jdk1.4.1/jre/../include -g -W -D_REENTRANT -DCHUNK_SIZE=3D4096 -DREUSE_WORKER -DUSE_APACHE_MD5 /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c [so] Output: [so] cc -c -I/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/co mmon -I/usr/local/include -I/usr/local/jdk1.4.1/jre/../include -g -W -D_REENTRANT -DCHUNK_SIZE=3D4096 -DREUSE_WORKER -DUSE_APACHE_MD5 /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c -fPIC -DPIC -o /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/jk/ap ache2/common/.libs/jk_md5.o [so] StdErr: [so] /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c:477: httpd.h: No such file or directory [so] /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c:478: http_config.h: No such file or directory [so] /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c:490: ap_md5.h: No such file or directory BUILD FAILED file:/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native /build.xml:134: Compile failed /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c Total time: 7 seconds ---END SNIPPET--- Am I missing something here or have I done something completely wrong? I apologize for the length of this email. Any help is appreciated. If you require more information please let me know. Thank you in advance. Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f)