From owner-freebsd-java Fri Dec 14 17: 4:30 2001 Delivered-To: freebsd-java@freebsd.org Received: from service.sh.cvut.cz (service.sh.cvut.cz [147.32.127.214]) by hub.freebsd.org (Postfix) with ESMTP id F350B37B419; Fri, 14 Dec 2001 17:04:22 -0800 (PST) Received: from Heptium.sh.cvut.cz (heptium.sh.cvut.cz [147.32.127.194]) by service.sh.cvut.cz (Postfix) with ESMTP id 668761E68C; Sat, 15 Dec 2001 02:04:21 +0100 (CET) Received: from sh.cvut.cz (viking.sh.cvut.cz [147.32.124.181]) by Heptium.sh.cvut.cz (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id CAA28886; Sat, 15 Dec 2001 02:04:21 +0100 X-Authentication-Warning: Heptium.sh.cvut.cz: Host viking.sh.cvut.cz [147.32.124.181] claimed to be sh.cvut.cz Message-ID: <3C1AA194.B96F7FA5@sh.cvut.cz> Date: Sat, 15 Dec 2001 02:04:20 +0100 From: "Arcadius A." Organization: CTU X-Mailer: Mozilla 4.77 [en] (X11; U; FreeBSD 4.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: dirk@FreeBSD.org, freebsd-java@FreeBSD.org Subject: linux-jdk1.3.1 & mod_jk ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello ! I hope I'm sending this email to the right address .... I've just installed the linux-jdk13 port on my FreeBSD4.4 box .... I've also built and installed tomcat with the linux-jdk13 port .... but I'm having troubles building the mod_jk with the linux-jdk .... Please , can someone tell me the steps to follow ? I have the most recent port collection. my modified Makefile looks like this : # New ports collection makefile for: mod_jk # Date created: Sun May 20 12:58:02 CEST 2001 # Whom: Dirk Froemberg # # $FreeBSD: ports/www/mod_jk/Makefile,v 1.3 2001/10/02 22:47:24 mharo Exp $ # PORTNAME= mod_jk PORTVERSION= 3.2.3 CATEGORIES= www MASTER_SITES= http://www.apache.org/dist/jakarta/jakarta-tomcat/release/v${PORTVERSION}/src/ DISTNAME= jakarta-tomcat-${PORTVERSION}-src MAINTAINER= dirk@FreeBSD.org BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 \ ${LOCALBASE}/linux-jdk1.3.1/bin/javac:${PORTSDIR}/java/linux-jdk13 RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 \ ${LOCALBASE}/tomcat/lib/webserver.jar:${PORTSDIR}/www/jakarta-tomcat USE_GMAKE= yes MAKEFILE= Makefile.freebsd WRKSRC= ${WRKDIR}/jakarta-tomcat-${PORTVERSION}-src/src/native/apache1.3 APXS?= ${LOCALBASE}/sbin/apxs do-install: ${APXS} -i -A -n jk ${WRKSRC}/mod_jk.so ${SED} -e "s#%%PREFIX%%#${PREFIX}#g" ${FILESDIR}/mod_jk.conf > ${WRKDIR}/mod_jk.conf ${INSTALL_DATA} ${WRKDIR}/mod_jk.conf ${PREFIX}/etc/apache @${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGMESSAGE} .include ## EOF Is this alright ? .... but the problem should be with the "patch-aa" file .... my "patch-aa" file looks like this : --- Makefile.freebsd.orig Tue Dec 12 23:51:55 2000 +++ Makefile.freebsd Sun May 20 15:50:41 2001 @@ -1,18 +1,18 @@ ## You need to edit this file - configure later :-) -APACHE_HOME=/usr/local/apache OS=freebsd -APXS=${APACHE_HOME}/bin/apxs +APXS=${PREFIX}/sbin/apxs -A13_FLAGS=-I${APACHE_HOME}/include +A13_FLAGS=-I${PREFIX}/include/apache ## I assume this one is set up already ## -# JAVA_HOME=/usr/local/linux-jdk1.3.1 +JAVA_HOME=${PREFIX}/linux-jdk1.3.1 JAVA_INCL=-I${JAVA_HOME}/include -I${JAVA_HOME}/include/${OS} JAVA_LIB=-L${JAVA_HOME}/jre/lib/${ARCH} -L${JAVA_HOME}/lib/${ARCH}/native_threads -CFLAGS=-DHAVE_CONFIG_H -g -fpic -DSHARED_MODULE -O2 -D_REENTRANT -pthread -DLINUX -Wall +XCFLAGS=${CFLAGS} +CFLAGS=-DHAVE_CONFIG_H -fpic -DSHARED_MODULE -DFREEBSD -Wall JK=../jk/ SRCS=jk_ajp12_worker.c jk_connect.c jk_msg_buff.c jk_util.c jk_ajp13.c \ @@ -23,7 +23,7 @@ OBJS=${patsubst %.c,%.o,${SRCS}} %.o: ../jk/%.c - ${CC} -c ${CFLAGS} ${JAVA_INCL} ${A13_FLAGS} $< -o $@ + ${CC} -c ${XCFLAGS} ${CFLAGS} ${JAVA_INCL} ${A13_FLAGS} $< -o $@ .c.o: ${APXS} -c ${JAVA_INCL} -DFREEBSD ${A13_FLAGS} -I../jk $< ## EOF when I make the built , I get the following error: arcad_root @ viking : /usr/ports/www/mod_jk # make build ===> Extracting for mod_jk-3.2.3 >> Checksum OK for jakarta-tomcat-3.2.3-src.tar.gz. ===> mod_jk-3.2.3 depends on file: /usr/local/sbin/apxs - found ===> mod_jk-3.2.3 depends on file: /usr/local/linux-jdk1.3.1/bin/javac - found ===> mod_jk-3.2.3 depends on executable: gmake - found ===> Patching for mod_jk-3.2.3 ===> Applying FreeBSD patches for mod_jk-3.2.3 patch: **** malformed patch at line 26: SRCS=jk_ajp12_worker.c jk_connect.c jk_msg_buff.c jk_util.c jk_ajp13.c \ >> Patch patch-aa failed to apply cleanly. *** Error code 1 Stop in /usr/ports/www/mod_jk. *** Error code 1 Stop in /usr/ports/www/mod_jk. *** Error code 1 Stop in /usr/ports/www/mod_jk. *** Error code 1 Stop in /usr/ports/www/mod_jk. *** Error code 1 Stop in /usr/ports/www/mod_jk. arcad_root @ viking : /usr/ports/www/mod_jk # But I havent's edited the line 26 at all !.... so , what have I done wrong ? Thanks.... Arcadius. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message