I have been trying to build mod_jk.so for Apache-1.3.12 under FreeBSD 4.1.
I have failed using the supplied makefile and the instructions in the HOWTO.
I have managed to isolate the problem and adjust the makefile accordingly.
Note that I have placed apache in /usr/local/apache (not typical for the
FreeBSD ports collection) and I am using native JDK 1.2.2 compiled from
source (see http://web.inter.nl.net/users/kjkoster/java/index.html ).
I assume that somebody out there may try this - so I have included the
makefile below.
Tom Veldhouse
veldy@veldy.net
##### BEGIN Makefile.freebsd ##########
APACHE_HOME=/usr/local/apache
OS=freebsd
APXS=${APACHE_HOME}/bin/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/${OS}
JAVA_LIB=-L${JAVA_HOME}/jre/lib/${ARCH} -L${JAVA_HOME}/lib/${ARCH}/native_th
reads
CFLAGS=-DHAVE_CONFIG_H -fpic -DSHARED_MODULE -O2 -DFREEBSD -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
clean:
rm *.o *.so
|