You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marc-henri PAMISEUX <ma...@clg.fr> on 2001/05/03 17:12:51 UTC
Error when compiling mod_jk under HPUX 11.00 : jk_global.h
Hi,
I'm trying to compile mod_jk under HPUX 11.00 with gcc.
gcc (2.95.2) works find, i've ever compiled some opensources with it.
I've also installed binutils before gcc.
I've installed apache from the source and it works properly with a DSO
support.
I've download jakarta-tomcat-3.2.1-bin, and it work properly on hpux 11.00,
but now i'd like to compile mod_jk.
So, i've download jakarta-tomcat-3.2.1-src, and i went in
src/native/apache1.3 to compile mod_jk.
I'm trying to compile mod_jk with the following Makefile (Notes that all the
path are correct on my system):
OS=hp-ux
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
#ifndef APXS
APXS=/usr/sbin/apxs
#endif
JK=../jk/
SRCS=../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c
../jk/jk_util.c ../jk/jk_ajp13.c \
../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c
../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c \
../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c
all: mod_jk.so
mod_jk.so:
$(APXS) -I ../jk ${JAVA_INCL} -c -o $@ mod_jk.c $(SRCS)
clean:
rm *.o *.so
Then, i did a make, and the result is :
In file included from mod_jk.c:89:
../jk/jk_global.h:91: sys/select.h: No such file or directory
apxs:Break: Command failed with rc=1
*** Error exit code 1
Stop.
Daniel Brack said on Fri, 9 Mar 2001 on this list that he know that there
are problems compiling on HPUX11 and modifications in jk_global.h and
jk_pool.h are neccesary.
Ok, maybe, but i don't know what sort of modifications in jk_global.h and
jk_pool.h i need to apply ?
Of course, on hpux, there is no sys/select.h anywhere... It's a glibc lib !
Does anyone can help me, and show me these modifications ?
Regards,
Marc-Henri PAMISEUX
Administrateur Systèmes et Réseaux
marc-henri.pamiseux@clg.fr
CLG
34 Avenue des Champs Elysées
75008 Paris
Re: Error when compiling mod_jk under HPUX 11.00 : jk_global.h
Posted by Marc-henri PAMISEUX <ma...@clg.fr>.
Hi,
Ok, it works ...
I've only comment the line : #include <sys/select.h> in
../jk/jk_global.h
Then the make command never give me any error message.
So, i copy mod_jk.so in /usr/lib/apache, i modify
/etc/httpd/conf/httpd.conf, and add the following lines :
...
LoadModule jk_module /usr/lib/apache/mod_jk.so
...
AddModule mod_jk.c
...
JkWorkersFile /opt/jakarta/jakarta-tomcat/conf/workers.properties
JkLogFile /var/log/httpd/default/mod_jk.log
JkLogLevel warn
...
Before these modification, Apache works properly.
Now, when i start apache, i've got this error message :
# /usr/sbin/apachectl start
/usr/lib/dld.sl: Unresolved symbol: dlclose (code) from
/usr/lib/apache/mod_jk.so
/usr/lib/dld.sl: Unresolved symbol: dlopen (code) from
/usr/lib/apache/mod_jk.so
/usr/lib/dld.sl: Unresolved symbol: dlerror (code) from
/usr/lib/apache/mod_jk.so
/usr/lib/dld.sl: Unresolved symbol: dlsym (code) from
/usr/lib/apache/mod_jk.so
Syntax error on line 51 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/mod_jk.so into server: Unresolved external
/usr/sbin/apachectl start: httpd could not be started
The line 51 is : "LoadModule jk_module /usr/lib/apache/mod_jk.so"
Does anybody get this error ?
Regards,
Marc-Henri PAMISEUX
marc-henri.pamiseux@clg.fr