RE: mod_jk - undefined symbol
In compiling mod_jk you need to have all the *.c files accessible. Were you in the source/native/jk directory when you compiled and also referred to all the *.c it needs. When all are not included you will get the symbol errors. Mohamed -Original Message- From: Eric Paul [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 10:44 AM To: [EMAIL PROTECTED] Subject: mod_jk - undefined symbol Hi there. I'm trying to get Tomcat 3.2.1 working with Apache 1.3.14 on a Red Hat 6.2 Linux Box running 2.2.18 Kernel. Both Apache and Tomcat were working on this box before I started messing with mod_jk. I downloaded the latest stable source (jakarta-tomcat-3.2.1-src) and compiled mod_jk as per the FAQ. I had the error message talked about in the FAQ, but the gcc line generated the mod_jk.so with no problems. I copied this file into my libexec dir, and included the mod_jk.conf-auto in my httpd.conf file. I stopped apache and tomcat, restarted tomcat, and then tried to start apache and got this error message: Starting httpd: Syntax error on line 8 of /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto: Cannot load /usr/libexec/mod_jk.so into server: /usr/libexec/mod_jk.so: undefined symbol: jk_b_set_buffer_size Line 8 of the config file is: LoadModule jk_module libexec/mod_jk.so I'm guessing that there must have been a problem with the compile of mod_jk, but not knowing enough about the source I'm not in a good position to go poking around and trying to fix it. I did a search on the archive for jk_b_set_buffer_size but that turned up nothing. Any ideas? Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk - undefined symbol
I finally got it working on a sparc which did not have gcc on it, using the ucb c compiler/libs/includes instead of the other one they have on there. It was still painful, but it worked. -Original Message- From: Mike Braden [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 11:00 AM To: '[EMAIL PROTECTED]' Subject: RE: mod_jk - undefined symbol I gave up on getting mod_jk working on Solaris. I've had a similar problem with different builds. I'd make sure that before you build it that all of the object files are removed. My problem was that there was an object file in a different directory that wasn't removed. After checking all of the Makefiles and removing it and building again everything worked. I ran /usr/bin/file on the object file and it reported that it was an i386 object file - obviously not useful on a sparc. Thanks, Mike. -- Mike Braden CNE, MCP+I, MCSE, CCNA, Sun Comp 2k Enterprise E10k Utenzi 808 Aviation Parkway Suite 1100 PO Box 13479 Research Triangle Park, NC 27709 [EMAIL PROTECTED] -Original Message- From: Eric Paul [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 10:44 AM To: [EMAIL PROTECTED] Subject: mod_jk - undefined symbol Hi there. I'm trying to get Tomcat 3.2.1 working with Apache 1.3.14 on a Red Hat 6.2 Linux Box running 2.2.18 Kernel. Both Apache and Tomcat were working on this box before I started messing with mod_jk. I downloaded the latest stable source (jakarta-tomcat-3.2.1-src) and compiled mod_jk as per the FAQ. I had the error message talked about in the FAQ, but the gcc line generated the mod_jk.so with no problems. I copied this file into my libexec dir, and included the mod_jk.conf-auto in my httpd.conf file. I stopped apache and tomcat, restarted tomcat, and then tried to start apache and got this error message: Starting httpd: Syntax error on line 8 of /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto: Cannot load /usr/libexec/mod_jk.so into server: /usr/libexec/mod_jk.so: undefined symbol: jk_b_set_buffer_size Line 8 of the config file is: LoadModule jk_module libexec/mod_jk.so I'm guessing that there must have been a problem with the compile of mod_jk, but not knowing enough about the source I'm not in a good position to go poking around and trying to fix it. I did a search on the archive for jk_b_set_buffer_size but that turned up nothing. Any ideas? Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk - undefined symbol
Nope, I was in /native/apache1.3 when I did the compile as per the faq. However the command like I typed referred to the jk directory apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c *.c ../jk/*.c The error that came back was: gcc -O2 -DLINUX=2 -DMOD_SSL=207101 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c ../jk/jk_jni_worker.c ../jk/jk_jni_worker.c:67: jni.h: No such file or directory ../jk/jk_jni_worker.c:764: warning: #warning --- ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED ../jk/jk_jni_worker.c:766: warning: #warning --- apxs:Break: Command failed with rc=1 Any other ideas? At 10:57 AM 1/19/2001, you wrote: In compiling mod_jk you need to have all the *.c files accessible. Were you in the source/native/jk directory when you compiled and also referred to all the *.c it needs. When all are not included you will get the symbol errors. Mohamed -Original Message- From: Eric Paul [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 10:44 AM To: [EMAIL PROTECTED] Subject: mod_jk - undefined symbol Hi there. I'm trying to get Tomcat 3.2.1 working with Apache 1.3.14 on a Red Hat 6.2 Linux Box running 2.2.18 Kernel. Both Apache and Tomcat were working on this box before I started messing with mod_jk. I downloaded the latest stable source (jakarta-tomcat-3.2.1-src) and compiled mod_jk as per the FAQ. I had the error message talked about in the FAQ, but the gcc line generated the mod_jk.so with no problems. I copied this file into my libexec dir, and included the mod_jk.conf-auto in my httpd.conf file. I stopped apache and tomcat, restarted tomcat, and then tried to start apache and got this error message: Starting httpd: Syntax error on line 8 of /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto: Cannot load /usr/libexec/mod_jk.so into server: /usr/libexec/mod_jk.so: undefined symbol: jk_b_set_buffer_size Line 8 of the config file is: LoadModule jk_module libexec/mod_jk.so I'm guessing that there must have been a problem with the compile of mod_jk, but not knowing enough about the source I'm not in a good position to go poking around and trying to fix it. I did a search on the archive for jk_b_set_buffer_size but that turned up nothing. Any ideas? Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]