Building mod_jk and mod_jk2 is a bit tricky, but not too bad. Here's how I accomplished it on Linux (Redhat 9 and Fedora Core 1).
mod_jk2 1. Download the latest source. 2. Uncompress and and untar it 3. cd to mod_jk2 native area cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 4. Set CPPFlAGS to the same that you had when building Apache. For me this meant the following: export "CPPFLAGS=-I/usr/kerberos/include -I/usr/openssl/include" (all on one line) 5. Run configure with the following: ./configure --with-apxs2=/home/apache/bin/apxs \ --with-tomcat41=/home/tomcat \ --with-os-type=include/linux \ --with-jni \ --with-pcre Replace the /home/apache/bin/apxs with your location of apxs. You will notice an error about command OS not being found. This is a bug in the configure script, and is also in an M4 macro file. It will not affect the configuration. 6. Change to the server/apache2 directory cd server/apache2 7. Edit the Makefile and change the following line from: JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre -lpcreposix to: JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre -lpcreposix -laprutil-0 This is a problem with the configure script (and another M4 file). 8. Change back to the native2 directory cd ../.. 9. Run make 10. jkjni.so and mod_jk2.so will be in: jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2 11. Copy them into your modules directory for Apache, change the permissions accordingly (so your Apache process owner can read them), and proceed to the configuration. This mod_jk2.so and jkjni.so supports both IP sockets and UNIX sockets on Linux. From previous discussions on this mailing list I think that in-process support will depend on a new MPM for the web server. The M4 script changes appear to be fairly trivial, but my first pass at the OS change seemed to break other stuff (concerning OS subdirectory detection for jkjni/java). I'm working on unravelling that (since I don't understand M4, yet) and I'll try to post my patches to Bugzilla. HTH /mde/ just my two cents . . . . __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]