Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 15308 invoked from network); 21 Jul 2000 16:57:50 -0000 Received: from pop.gmx.net (HELO mail.gmx.net) (194.221.183.20) by locus.apache.org with SMTP; 21 Jul 2000 16:57:50 -0000 Received: (qmail 15369 invoked by uid 0); 21 Jul 2000 16:57:20 -0000 Received: from p3e9ed6dc.dip0.t-ipconnect.de (HELO abysstwo.abyssworld.de) (62.158.214.220) by mail.gmx.net with SMTP; 21 Jul 2000 16:57:20 -0000 Message-Id: <4.3.2.7.2.20000721185824.00abfc90@pop.gmx.net> X-Sender: 565549@pop.gmx.net X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Fri, 21 Jul 2000 19:05:19 +0200 To: tomcat-dev@jakarta.apache.org From: Daniel Haischt Subject: building mod_jk on freebsd 4.0 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N hello, with the Makefile provided with the latest tomcat source snapshot, i successfully build mod_jk. below is the modified which leads to a successful build. currently i'm using the linux jdk (v1.2.2) from the blackdown team. if you are using the native freebsd jdk (v1.1.8) you definitely have to change the JAVA_INCL line! for the one who originally wrote the Makefile: freebsd uses it's own make utility (which isn't gmake)! so i had to change %.o and %.c to *.o and *.c. ------------------------------------------------- Makefile ----------------------------------------------------- APACHE_HOME=/usr/local OS=freebsd APXS=/usr/local/sbin/apxs A13_FLAGS=-I${APACHE_HOME}/include ## I assume this one is set up already # JAVA_HOME= JAVA_INCL=-I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux 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 ## You need to edit this file - configure later :-) APACHE_HOME=/usr/local/apache OS=freebsd APXS=/usr/local/sbin/apxs A13_FLAGS=-I${APACHE_HOME}/include ## I assume this one is set up already # JAVA_HOME= JAVA_INCL=-I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux 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 JK=../jk/ SRCS=jk_ajp12_worker.c jk_connect.c jk_msg_buff.c jk_util.c jk_ajp13.c \ jk_jni_worker.c jk_pool.c jk_worker.c jk_ajp13_worker.c jk_lb_worker.c \ jk_sockbuf.c jk_map.c jk_uri_worker_map.c OBJS=${patsubst %.c,%.o,${SRCS}} *.o: ../jk/*.c ${CC} -c ${CFLAGS} ${JAVA_INCL} ${A13_FLAGS} $< -o $@ .c.o: ${APXS} -c ${JAVA_INCL} -DFREEBSD ${A13_FLAGS} -I../jk $< all: mod_jk.so mod_jk.so: ${OBJS} mod_jk.o $(APXS) -c -o mod_jk.so ${OBJS} mod_jk.o # $(CC) -shared -o mod_jk.so ${OBJS} mod_jk.o clean: rm *.o *.so -------------------------------------------------------------------------------------------------------------------- regards daniel haischt --