Date: Sat, 15 Dec 2001 02:04:20 +0100 From: "Arcadius A." <ahouans@sh.cvut.cz> To: dirk@FreeBSD.org, freebsd-java@FreeBSD.org Subject: linux-jdk1.3.1 & mod_jk ? Message-ID: <3C1AA194.B96F7FA5@sh.cvut.cz>
next in thread | raw e-mail | index | archive | help
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 <dirk@FreeBSD.org> # # $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 <bsd.port.mk> ## 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C1AA194.B96F7FA5>