tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AC <s...@lisea.com>
Subject Re: TOMCAT 3.2.1 and mod_jserv for FreeBSD
Date Wed, 18 Apr 2001 10:30:11 GMT

At 12.16 18/04/2001 +0200, you wrote:
>Hi !
>
>I´m a new user of the TOMCAT 3.2.1 system and
>I´ve some problems:
>
>first:
>
>I run it on an FreeBSD 4.2 release with
>Apache/1.3.12 OpenSSL/0.9.5a (Unix) installed and in use.
>As a stand alone system TOMCAT will start but
>when i try to compile the mod_jserv.so module
>i get this messages:
>
>
>joshua2% apxs -c -o mod_jserv.so *.c
>gcc -DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE -funsigned-char -fpi
>c -DSHARED_MODULE -I/usr/local/apache/1.2.6/include  -c autochange.c
>gcc -DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE -funsigned-char -fpi
>c -DSHARED_MODULE -I/usr/local/apache/1.2.6/include  -c jserv_ajpv11.c
>In file included from jserv_ajpv11.c:61:
>jserv.h:397: unterminated comment
>jserv.h:61: unterminated `#if' conditional
>apxs:Break: Command failed with rc=65536
>joshua2%
>
>is this a result of a wrong (old) apxs configuration ?
>


Hi
I remember there was a problem compiling mod_jk.so for freebsd.
This is an old response that should work ...

----
The location of the apxs is (in my configuration) /usr/local/sbin/ instead 
of ${APACHE_HOME}/bin/
After correcting this I launch the Makefile that compile the mod_jk.so 
(make all). The script launch :

/usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
-I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include 
-I../jk mod_jk.c

As you can see it compiles only the mod_jk.c. The command you have to 
launch is:

/usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
-I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include 
-I../jk mod_jk.c ../jk/*.c

If you use a different jdk just yank the apxs command and add ../jk/*.c at 
the end as I did.

It works with all the jdk (1.1.8, 1.2 beta native and 1.2 linux)


regards

---




>second:
>
>in the prebuild binaries for TOMCAT 3.2.1 there are two .so files in
>x86/Linux
>
>mod_jk.so
>mod_jserv_tomcat.so
>
>why exists two files ?
>why not mod_jserv.so ?
>maybe,work these files on a FreeBSD 4.2 System ?
>

You need the native mod_jk.....



>with thanks
>
>Detlev Schlereth


Mime
View raw message