Hey Doug,

I had a compile-error that looked quite similar to yours.
Maybe your JAVA_Home [JDK] is not set properly. 

Try this:

Overwrite the line that starts with "# JAVA_HOME=" in the 
"Makefile.linux" with "JAVA_HOME = <ThePathToYouJava>".

Now it should work.

In my case the error occured because the file "jni.h" your 
computer is looking for is placed somewhere in the JDK directorys.

Kind regards

        H.-Gerd




Doug Ferguson wrote:
> 
> Hi,
> 
> I am reinstalling tomcat and I am building mod_jk.so. When I try to run
> make it generates the following error.
> 
> Any ideas?
> 
> PS. please cc: me directly @ [EMAIL PROTECTED]
> 
> [root@thedug apache1.3]# make
> /usr/sbin/apxs -I ../jk -I /include -I /include/linux -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
> gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
> -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
> -I/include -I/include/linux  -c mod_jk.c
> gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
> -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
> -I/include -I/include/linux  -c ../jk/jk_ajp12_worker.c
> gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
> -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
> -I/include -I/include/linux  -c ../jk/jk_connect.c
> gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
> -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
> -I/include -I/include/linux  -c ../jk/jk_msg_buff.c
> gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
> -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
> -I/include -I/include/linux  -c ../jk/jk_util.c
> gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
> -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
> -I/include -I/include/linux  -c ../jk/jk_ajp13.c
> gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
> -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
> -I/include -I/include/linux  -c ../jk/jk_jni_worker.c
> ../jk/jk_jni_worker.c:67:17: jni.h: No such file or directory
> ../jk/jk_jni_worker.c:764:6: warning:     #warning
> -------------------------------------------------------
> ../jk/jk_jni_worker.c:765:6: warning:     #warning NO JAVA 2 HEADERS!
> SUPPORT FOR JAVA 2 FEATURES DISABLED
> ../jk/jk_jni_worker.c:766:6: warning:     #warning
> -------------------------------------------------------
> apxs:Break: Command failed with rc=1
> make: *** [mod_jk.so] Error 1
> [root@thedug apache1.3]#
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to