Re: building mod_jk on freebsd 4.0

2000-12-06 Thread Palle Girgensohn

Hi Jeremy!

I have exactly the same setup as you, and it works fine after
som tweaking. Here's what I had to do to Makefile.freebsd to
make it work. Maybe it will help?

--- Makefile.freebsd.orig   Tue Dec  5 18:51:22 2000
+++ Makefile.freebsdTue Dec  5 19:24:07 2000
@@ -1,18 +1,18 @@
 ## You need to edit this file - configure later :-)
 
-APACHE_HOME=/usr/local/apache
+APACHE_HOME=`apxs -q PREFIX`
 OS=freebsd
-APXS=${APACHE_HOME}/bin/apxs
+APXS=${APACHE_HOME}/sbin/apxs
 
-A13_FLAGS=-I${APACHE_HOME}/include
+A13_FLAGS=-I${APACHE_HOME}/include/apache
 
 ## I assume this one is set up already
-# JAVA_HOME=
+JAVA_HOME?=/usr/local/jdk1.2.2
 
 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
+CFLAGS=-DHAVE_CONFIG_H -g -fpic  -DSHARED_MODULE -O -DFREEBSD
-Wall
 
 JK=../jk/
 SRCS=jk_ajp12_worker.c jk_connect.c jk_msg_buff.c jk_util.c
jk_ajp13.c \
@@ -32,7 +32,7 @@
 
 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:



Re: building mod_jk on freebsd 4.0

2000-12-06 Thread Jeremy Hopkins

Hello there,
I am currently tasked with upgrading our current tomcat 3.1 deployment
to tomcat 3.2.  So far I am pleased with both versions of tomcat. 
Although, while attempting to switch over to the recomended mod_jk.so
from the older mod_jserv.so  I run into errors loading mod_jk.so into my
apache1.3.14 webserver.  I am getting the same errors that have been
previously mentioned on this list.
here is my output from an apache configtest.

root@hoodlum (/usr/local/etc/apache)$ apachectl configtest
Syntax error on line 2 of
/usr/local/jakarta/tomcat-3.2/conf/mod_jk.conf:
Cannot load /usr/local/libexec/apache/mod_jk.so into server:
/usr/local/libexec/apache/mod_jk.so: Undefined symbol "map_name_at"


It looks as if this became in issue back in July, and surely there is a
fix by now, but I haven't been able to locate one.  A little info about
my current system environment.

OS-  FreeBSD4.2-STABLE
JAVA- jdk1.2.2 for Freebsd (from ports) - and of course the
jdk1.1.8,linux-1.2.2, etc. ports to get 1.2.2 working in the first
place.
APACHE- apache+mod_ssl-1.3.14+2.7.1_1 (also from ports)


Has this issue been solved yet?  Thanks in advance!!

Jeremy

-- 
Jeremy Hopkins  - Systems Administrator - RTCI  - Cary, NC
www.rtci.com- [EMAIL PROTECTED]
www.ghettoweb.net   - [EMAIL PROTECTED]
FreeBSD -- Makes the net go round.