Re: Compiling mod_jserv on AIX 4.3 for Apache 1.3.12
I have spent 3 days to make it work on my AIX Box !!! So : Autochange has not to be include in the mod_jserv so compile it with : apxs -c mod_jserv.c jserv*.c Then , I've some probleme with the linking so, you must modify the apxs script : my $CFG_LDFLAGS_SHLIB = q( -bexpall -bM:SRE -bnoentry -bI:/bin-gms/Binaries/AIX/apache_1.3.19/libexe c/httpd.exp -lc -ldl); # substituted via Makefile.tmpl If it doesn't work, I can send you my binary. I don't success to compile mod_jk, so if someone has any tips Here's the problem : gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/bin-gms/Bina ries/AIX/apache_1.3.19/include -I../jk -I/usr/jdk_base/include -I/usr/jdk_ba se/include/aix -c ../jk/jk_jni_worker.c ../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 --- In file included from /usr/jdk_base/include/aix/float_md.h:21, from /usr/jdk_base/include/aix/jni_md.h:22, from /usr/jdk_base/include/jni.h:36, ... - Original Message - From: Ron Parker [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 2:34 AM Subject: Compiling mod_jserv on AIX 4.3 for Apache 1.3.12 I have installed Jakarta-Tomcat 3.2.1 on an AIX 4.3 system. Standalone works fine. I'd like to run it under Apache 1.3.12, which is also installed with dso support. I followed instructions in Obtaining the Jserv Module (mod_jserv) section of online tomcat user's guide and executed: apxs -c -o mod_jserv.so *.c days to make This is the error I get: # /usr/local/apache/bin/apxs -c -o mod_jserv.so *.c cc -DAIX=43 -U__STR__ -DAIX_BIND_PROCESSOR -qnogenpcomp -qnousepcomp -DUSE_HSREG EX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c autochange.c autochange.c, line 72.5: 1506-046 (S) Syntax error. autochange.c, line 79.5: 1506-046 (S) Syntax error. autochange.c, line 79.64: 1506-191 (E) The character @ is not a valid C source character. autochange.c, line 79.69: 1506-191 (E) The character @ is not a valid C source character. autochange.c, line 79.8: 1506-045 (S) Undeclared identifier Parse. autochange.c, line 104.5: 1506-046 (S) Syntax error. autochange.c, line 104.8: 1506-045 (S) Undeclared identifier Print. autochange.c, line 107.5: 1506-046 (S) Syntax error. autochange.c, line 108.9: 1506-046 (S) Syntax error. autochange.c, line 109.5: 1506-046 (S) Syntax error. autochange.c, line 111.8: 1506-045 (S) Undeclared identifier Start. autochange.c, line 114.9: 1506-046 (S) Syntax error. autochange.c, line 114.12: 1506-045 (S) Undeclared identifier Increase. autochange.c, line 116.12: 1506-045 (S) Undeclared identifier Copy. autochange.c, line 119.9: 1506-046 (S) Syntax error. apxs:Break: Command failed with rc=65536 Can someone please tell me what I need to do about this. Thanks. -ron -- Ron Parker Software Creationshttp://www.scbbs.com TradeWinds Publishing http://www.intl-trade.com TradePoint Los Angeleshttp://www.tradepointla.org SiteDirector Security Server http://livepublish.scbbs.com Civil War Online Library http://civilwar.scbbs.com
mod_jk or mod_jserv on an AIX4.3.3, JDK1.1.8 Apache1.3.19
I'm using the gcc version 2.8.1 and I can't build the mod_jk or the mod_jserv. For the mod_jk, I try the command : apxs -I ../jk -I /usr/jdk_base/include -I /usr/jdk_base/include/aix -c -o mod_jk.so mod_jk.c ../jk/jk_ajp12_worker.c ../jk/j_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_orker.c ../jk/jk_lb_worker.c ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/bin-gms/Binaries/AIX/apache_1.3.19/include -I../jk -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c mod_jk.c all seems OK gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/bin-gms/Binaries/AIX/apache_1.3.19/include -I../jk -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c ../jk/jk_jni_worker.c ../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 --- In file included from /usr/jdk_base/include/aix/float_md.h:21, from /usr/jdk_base/include/aix/jni_md.h:22, from /usr/jdk_base/include/jni.h:36, from ../jk/jk_jni_worker.c:67: /usr/jdk_base/include/aix/longlong_md.h:350: conflicting types for `uint32_t' /usr/include/sys/inttypes.h:78: previous declaration of `uint32_t' /usr/jdk_base/include/aix/longlong_md.h:359: conflicting types for `int32_t' /usr/include/sys/inttypes.h:67: previous declaration of `int32_t' In file included from /usr/jdk_base/include/jni.h:36, from ../jk/jk_jni_worker.c:67: /usr/jdk_base/include/aix/jni_md.h:91: parse error before `*' /usr/jdk_base/include/aix/jni_md.h:91: warning: initialization makes pointer from integer without a cast /usr/jdk_base/include/aix/jni_md.h:91: initializer element is not constant /usr/jdk_base/include/aix/jni_md.h:91: warning: data definition has no type or storage class /usr/jdk_base/include/aix/jni_md.h:91: parse error before `if' /usr/jdk_base/include/aix/jni_md.h:91: parse error before `1' /usr/jdk_base/include/aix/jni_md.h:91: warning: data definition has no type or storage class /usr/jdk_base/include/aix/jni_md.h:91: parse error before `-' /usr/jdk_base/include/aix/jni_md.h:91: redefinition of `_currentSuspendState' /usr/jdk_base/include/aix/jni_md.h:91: `_currentSuspendState' previously defined here /usr/jdk_base/include/aix/jni_md.h:91: warning: data definition has no type or storage class /usr/jdk_base/include/aix/jni_md.h:91: parse error before `}' /usr/jdk_base/include/aix/jni_md.h:130: warning: This file contains more `}'s than `{'s. /usr/jdk_base/include/jni.h:1858: warning: This file contains more `}'s than `{'s. apxs:Break: Command failed with rc=1 For the mod_jserv, I try the command : apxs -c mod_jserv.c jserv*.c gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/bin-gms/Binaries/AIX/apache_1.3.19/include -c mod_jserv.c ...all seems OK between this... gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/bin-gms/Binaries/AIX/apache_1.3.19/include -c jserv_wrapper_win.cld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:/bin-gms/Binaries/AIX/apache_1.3.19/libexec/httpd.exp -lc -o mod_jserv.so jserv_wrapper_win.o jserv_wrapper_unix.o jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o mod_jserv.o ld: 0711-244 ERROR: No csects or exported symbols have been saved.apxs:Break: Command failed with rc=8It is only the linking who has a problem ! All the compilation has be done successfully... If someone could provide me any help, I would be very grateful. Thanks in advance. Charles