I am trying to compile mod_jk.so from jakarta-tomcat-3.2.3 Source code on
solaris 8. I get some compilation warnings, but mod_jk.so is generated. If I
use this mod_jk.so with Apache1.3.20 and Tomcat 3.2.3 I get following error
on starting Apache-
******************
Can't locate API module structure `jk_module' in file
/opt/apache1320/libexec/mo
d_jk.so: ld.so.1: /opt/apache1320/bin/httpd: fatal: jk_module: can't find
symbo
******************
Warnigs on mod_jk compilation
*********
MODULE -I/opt/apache1320/include
-I/opt/tomcatsource/jakarta-tomcat-3.2.3-src/sr
c/native/jk -I/usr/java1.3.1/j2sdk1_3_1/include
-I/usr/java1.3.1/j2sdk1_3_1/incl
ude/solaris -DSOLARIS -c
/opt/tomcatsource/jakarta-tomcat-3.2.3-src/src/native/
jk/jk_worker.c
ld -G -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
jk_poo
l.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o
jk_connect
.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o jk_worker.o jk_util.o
jk_uri_w
orker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o
jk_lb_work
er.o jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o
jk_ajp12_worker.o
-L/lib -lposix4
ld: warning: file jk_worker.o: attempted multiple inclusion of file
ld: warning: file jk_util.o: attempted multiple inclusion of file
ld: warning: file jk_uri_worker_map.o: attempted multiple inclusion of file
ld: warning: file jk_sockbuf.o: attempted multiple inclusion of file
ld: warning: file jk_pool.o: attempted multiple inclusion of file
ld: warning: file jk_nwmain.o: attempted multiple inclusion of file
ld: warning: file jk_msg_buff.o: attempted multiple inclusion of file
ld: warning: file jk_map.o: attempted multiple inclusion of file
ld: warning: file jk_lb_worker.o: attempted multiple inclusion of file
ld: warning: file jk_jni_worker.o: attempted multiple inclusion of file
ld: warning: file jk_connect.o: attempted multiple inclusion of file
ld: warning: file jk_ajp13_worker.o: attempted multiple inclusion of file
ld: warning: file jk_ajp13.o: attempted multiple inclusion of file
ld: warning: file jk_ajp12_worker.o: attempted multiple inclusion of file
************
Make file that I am using to compile mod_jk.so
***********************
APACHE_HOME=/opt/apache1320
APXS=${APACHE_HOME}/bin/apxs
TOMCAT_SRC=/opt/tomcatsource/jakarta-tomcat-3.2.3-src
JK=${TOMCAT_SRC}/src/native/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
all: mod_jk.so
mod_jk.so:
-$(APXS) -o mod_jk.so -DSOLARIS -I${JK} -I${JAVA_HOME}/include \
-I${JAVA_HOME}/include/solaris -L/lib -lposix4 -c ${JK}/*.c
${JK}/*.c
install:
cp mod_jk.so ${APACHE_HOME}/libexec/.
clean:
-rm *.o *.so
********************
I will highly appreciate any help or clue...
> Vinay Singh
> Sapient New Delhi
> Cell : +91-9810530548
> Home : +91-11-6287733
>