Hi Marc-henri,

Thanks for the information. I added code segments for jk_global.h and jk_pool.h
shown at

http://mikal.org/interests/java/tomcat/archive/view?mesg=13351

 and the compilation finished with no problem and tomcat are doing well with apache.

BTW,  I did not add code segment  for jk_jni_worker.c because of  "no such variable
defined"
error for handle.

Regards,

Yang Wei

----- Original Message -----
From: "Marc-henri PAMISEUX" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 6:15 PM
Subject: Re: Compilation error of tomcat3.2.1 integrating with apache1.3.19


> Hi,
>
> Yesturday, i've got the same problem...
> The reason ? There is no sys/select.h under HPUX !
> I've post it in this Mailing List, and the answer of john P. Dodge was :
>
> >Another alternative is to add an extra #ifndef in jk_global.h, that way
> >the same script will continue to work on other platforms. Change
> >jk_global.h to look like...
> >
> >(jk_global.h somewhere near line 86)
> >
> >    #ifndef NETWARE
> >        #include <netinet/tcp.h>
> >        #include <arpa/inet.h>
> >        #include <sys/un.h>
> >        #include <sys/socketvar.h>
> >        ---- do not include sys/select.h if using HPUX11 ----
> >        #ifndef HPUX11
> >          #include <sys/select.h>
> >        #endif
> >
> >    #endif
>
> That's OK, if you do this, you can generate a mod_jk.so, but it don't works
> with Apache.
> I've seen on the archive of this list that it's a problem with 32 -> 64 bits
> compilation.
> Matchim, Brian wrote on Mon, 11 Dec 2000 (let see
> http://mikal.org/interests/java/tomcat/archive/view?mesg=13351 ):
>
> >I far as I can tell, the reason is that HPUX11 is a 64-bit OS, but it uses
> 32-bit compilers as default.
> >Tomcat's distribution code attempts to use the following dl operations:
> dlopen(), dlload(), dlerror(),
> >and dlsym().  Though the code will compile using a 32-bit compiler, it will
> not operate correctly
> >and Apache will refuse to start.
> >There are two ways around this of course, use a 64-bit compiler (such as
> gcc),
> >or you can modify the code to use the 32-bit equivalents, that is,
> shl_load(), shl_open(), etc.
>
> Well done, but i'm using gcc 2.95.2 on hpux, and it doesn't works...
> So, i decide to go on the gnu gcc site, and i've seen the page
> http://gcc.gnu.org/install/specific.html#hppa*-hp-hpux11 that specify :
>
> >GCC 2.95.2 does not support HP-UX 11, and it cannot generate 64-bit object
> files. Current (as of late 2000)
> >snapshots and GCC 3.0 do support HP-UX 11.
>
> What should we do ?
>
> I hope i give you some informations to continue, and i hope you'll help me
> to if you find before ;o)) ...
>
> Regards,
>
> Marc-Henri PAMISEUX
> [EMAIL PROTECTED]
>
>
> ----- Original Message -----
> From: "Wei Yang" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, 04 May 2001 02:49
> Subject: Compilation error of tomcat3.2.1 integrating with apache1.3.19
>
>
> > Hi everone,
> >
> > I am facing a compilation problem of mod_jk.c to integrate
> > with apache web server. The system configuration is :
> >
> > 1. OS : HP-UX 11
> > 2.Web Server : Apache 1.3.19 in /opt/scs/apache
> > 3.Tomcat: version 3.2.1 in /opt/scs/tomcat
> > 4.Java: PA2.0 build 1.2.2.04-00/04/14-PA_RISC2.0 in /opt/java
> > 5.GCC: version 2.95.3 in /opt/gcc
> >
> > The command I used to compile mod_jk.c was as below:
> >
> > %/opt/scs/apache/bin/apxs -o mod_jk.so -I../jk
> > -I/opt/java/include -I/opt/java/include/hp-ux -c *.c ../jk/*.c
> >
> > and the error message was:
> >
> >
> %gcc -fpic -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -O -DSHARE
> D_MODULE -I/
> >
> opt/scs/apache/include -I../jk -I/opt/java/include -I/opt/java/include/hp-ux
>   -c
> > mod_jk.c
> > In file included from /opt/scs/apache/include/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
> > 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
> >
> > Any suggestion or idea will be appreciated.
> >
> > Thanks in advance.
> >
> > Yang Wei
> >
> >
> >
>


Reply via email to