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/11 14:42:32 UTC

mod_jk tomcat-3.2.1 still not work on HPUX

Hi Yang,
Hi Everybody,

I've explain to you how to build a mod_jk.so under HPUX 11, as Matchim Brian
wrote on Mon, 11 Dec 2000 on
http://mikal.org/interests/java/tomcat/archive/view?mesg=13351, and you do
it with success, but i still cannot compile it on my HPUX !
How did you ?

I'm using a HP9000/800 Model L1000 using HPUX 11.00;
I try to compile using gcc-2.95.2, but it doesn't works. So i've just
install gcc-2.95.3, and the result is the same.
I've ever compiled a programm using this gcc version on this system (eg
Apache), and it works find...
What i did :

- I went in jakarta-tomcat-3.2.1-src/src/native/apache1.3 directory.
- I tried to compile using the command :         /usr/sbin/apxs -I ../jk -I
/usr/lib/apache/lib -I /usr/local/java/include \
                                                                            
                    -I /usr/local/java/include/hp-ux -c -o mod_jk.so \

mod_jk.c ../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
(I reality, i modify Makefile.linux and copy it under Makefile, and i've run
a simple make command...)
- I get the following error messages :
        gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic
                -DSHARED_CORE -DSHARED_MODULE -I/usr/lib/apache/lib
                -I../jk -I/usr/lib/apache/lib -I/usr/local/java/include -I/u
sr/local/java/include/hp-ux  -c mod_jk.c
        In file included from /usr/lib/apache/lib/ap_config.h:1090,
                 from mod_jk.c:66:

/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28:
warning: `__va__list' redefined

/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30:
warning: this is the location of the previous definition
- But the make command give me a mod_jk.so !!!
- I've copy this module in /usr/lib/apache, and modify my apache httpd.conf
file, as i've allready done it under Linux (Nota that it works on Linux).
- When i run apache, it said :
    /usr/sbin/apachectl start: httpd could not be started
    /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
- Ok, i've read somewhere on this list that it's better to get Tomcat-3.3
Milestone 2, and went on /src/native/mod_jk/apache1.3 directory, and run the
build-hpux.sh script... As i'm curious, i've adapted this script for my
configuration (eg the path to apache), and i run it.
IT WORKS !!!
So i'm happy, but the mod_jk.so giving with tomcat-3.2.1 does not.

Thank for all of those who wrote on this list
regards,

Marc-Henri PAMISEUX
Administrateur Systèmes et Réseaux
marc-henri.pamiseux@clg.fr

CLG
34 Avenue des Champs Elysées
75008 Paris
Tel : +33.1.45.74.98.30