libapache2-mod-jk2: build with --with-jni

Miguel Cabeça cabeca@ist.utl.pt
Wed Aug 25 21:27:02 2004


Hi,

Ok I've found some more info:

In this post from you on debian-java mailing list:

  http://lists.debian.org/debian-java/2004/01/msg00034.html

you give short instructions on how to build mod_jk2.

I've followed these instructions, but i came across this issue:

---------------------------
Making  in server/apache2
make[1]: Entering directory  
`/root/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/ 
apache2'
mkdir -p ../../../build/jk2/apache2/usr/lib/apache2/modules
/bin/sh /usr/bin/libtool --silent  --mode=compile gcc  -pipe  
-I/usr/include/xmltok -I/usr/include/openssl -O2 -pipe  
-I/usr/include/xmltok -I/usr/include/openssl -O2 -pthread    -DLINUX=2  
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE  
-D_GNU_SOURCE   -I../../include -I/usr/include/apache2  
-I/usr/include/apr-0  
-I/home/adconrad/LFS/apache2-2.0.50/build-tree/apache2-build/worker/ 
srclib/apr-util/include  
/home/adconrad/LFS/apache2-2.0.50/build-tree/apache2/srclib/apr-util/ 
include /usr/include/apr-0 -I /usr/local/lib/j2sdk/include -I  
/usr/local/lib/j2sdk/include/linux  -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5  
-DHAVE_JNI  -c ../../common/jk_channel.c -o  
../../../build/jk2/apache2/jk_channel.lo
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1
make[1]: Leaving directory  
`/root/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/ 
apache2'
make: *** [jk2-build] Error 1
----------------

I'm stuck! :-(

Can you help me?

I'm using jakarta-tomcat-connectors-jk2-2.0.4-src source dir.

Thanks

Miguel Cabeça


On 26 Aug, 2004, at 02:59, Miguel Cabeça wrote:

> Hi,
>
> Is it possible to compile this package with the configure option  
> --with-jni ?
> This will build an additional jkjni.so along with mod_jk2.so . This  =

> jkjni.so is required (if I understand correctly) to use the UNIX  
> socket channel in mod_jk2:
>
>    
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/ 
> configtcex.html
>
> I'm in a hurry to get this working and i would appreciate if you could =
 
> send me a .deb for me to test, or point me in the right direction on  =

> how to do my own modified .deb package.
>
> Thank you very much for your time.
>
> Miguel Cabeça