DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17332>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17332 Problem in Building mod_jk.so in AIX 4.3.3 (Tomcat 4.0.4)..! Summary: Problem in Building mod_jk.so in AIX 4.3.3 (Tomcat 4.0.4)..! Product: Tomcat 4 Version: 4.0.4 Final Platform: Other OS/Version: AIX Status: NEW Severity: Major Priority: Other Component: Connector:JK/AJP (deprecated) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] I'm trying to build mod_jk.so for AIX 4.3.3 and Apache 2.0.40 and Tomcat Connector 4.0.4, for integrating Apache-Tomcat in AIX 4.3.3. (No compiled version of mod_jk is available in the Web for AIX of this version) But, I'm not succeed in that, following are the list of things I did (CONSOLE OUTPUT). Installed all the required utilities (autoconf, automake, gcc, make, etc.,) System Details :: IBM - AIX 4.3.3 :: Apache 2.0.40 Tomcat Connector 4.0.4 bash-2.05a# echo $PATH Chithu/aixnew/install/build:/Chithu/aixnew/install/bin:/var/gcc/usr/local/bin:/v ar/gnumake/usr/local/bin:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bi n/X11:/sbin Steps in building mod_jk.so (as per README):: ## Compiled Apache 2.0.40 (/Chithu/aixnew/install). ## Downloaded jakarta-tomcat-connectors-4.0.4-src.zip from the following location (http://jakarta.apache.org/builds/jakarta-tomcat- 4.0/archives/v4.0.4/src/jakarta-tomcat-connectors-4.0.4-src.zip ) ## Unzip the file in a directory. (/Chithu/test/) ## Go to <Connector_home>/jk/native directory (/Chithu/test/jakarta-tomcat- connectors-4.0.4-src/jk/native) and Run the ./buildconf.sh file. A file 'configure' will be created. Run the following command ./configure --with-apxs=<Apache Home>/bin/axps (./configure --with-apxs=/Chithu/aixnew/install/bin/apxs) make make install NOTE :: All Console output for the above commands are attached at the bottom ==> where Apache Home is the installation directory of Apache 2.0.40 -- /Chithu/aixnew/install/ Errors are thrown. Is there any specific configuration needed for AIX ? mod_jk.so is not at all created. What is wrong here ? Your help is needed to solve this. Any help is really appriciated. --------------------------------------------------------- bash-2.05a# ./buildconf.sh libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy apache-1.3/Makefile.am: object `mod_jk.lo' created both with libtool and without autoconf ------------------------------------------------------- bash-2.05a# ./configure -with-apxs=/Chithu/aixnew/install/bin/apxs checking for a BSD-compatible install... scripts/build/unix/install-sh -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking build system type... powerpc-ibm-aix4.3.3.0 checking host system type... powerpc-ibm-aix4.3.3.0 checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... none checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking how to run the C++ preprocessor... g++ -E checking the maximum length of command line arguments... 8192 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking dynamic linker characteristics... aix4.3.3.0 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking dynamic linker characteristics... aix4.3.3.0 ld.so appending configuration tag "GCJ" to libtool checking if gcj supports -fno-rtti -fno-exceptions... (cached) yes checking for gcj option to produce PIC... checking if gcj supports -c -o file.o... no checking whether the gcj linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking dynamic linker characteristics... aix4.3.3.0 ld.so checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking dependency style of gcc... (cached) none checking for ld used by GCC... (cached) /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... (cached) no checking for test... /usr/bin/test checking for rm... /usr/bin/rm checking for grep... /usr/bin/grep checking for echo... /usr/bin/echo checking for sed... /usr/bin/sed checking for cp... /usr/bin/cp checking for mkdir... /usr/bin/mkdir need to check for Perl first, apxs depends on it... checking for perl... /usr/bin/perl building connector for "apache-2.0" checking for target platform... unix no apache given configure: creating ./config.status config.status: creating Makefile config.status: creating apache-1.3/Makefile config.status: creating apache-1.3/Makefile.apxs config.status: creating apache-2.0/Makefile config.status: creating apache-2.0/Makefile.apxs config.status: creating common/Makefile config.status: creating common/list.mk config.status: creating jni/Makefile config.status: executing depfiles commands --------------------------------------------------------- bash-2.05a# make Making all in common make[1]: Entering directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk /native/common' /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp12_worker.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp12 _worker.c -DPIC -o .libs/jk_ajp12_worker.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_connect.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_conne ct.c -DPIC -o .libs/jk_connect.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_msg_buff.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_msg_b uff.c -DPIC -o .libs/jk_msg_buff.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_util.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_util. c -DPIC -o .libs/jk_util.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp13.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp13 .c -DPIC -o .libs/jk_ajp13.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_pool.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_pool. c -DPIC -o .libs/jk_pool.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_worker.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_worke r.c -DPIC -o .libs/jk_worker.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp13_worker.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp13 _worker.c -DPIC -o .libs/jk_ajp13_worker.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_lb_worker.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_lb_wo rker.c -DPIC -o .libs/jk_lb_worker.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_sockbuf.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_sockb uf.c -DPIC -o .libs/jk_sockbuf.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_map.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_map.c -DPIC -o .libs/jk_map.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_uri_worker_map.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_uri_w orker_map.c -DPIC -o .libs/jk_uri_worker_map.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp14.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp14 .c -DPIC -o .libs/jk_ajp14.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp14_worker.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp14 _worker.c -DPIC -o .libs/jk_ajp14_worker.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_md5.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_md5.c -DPIC -o .libs/jk_md5.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp_common.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_ajp_c ommon.c -DPIC -o .libs/jk_ajp_common.o /bin/sh ../libtool --mode=compile gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_context.c gcc -I/Chithu/aixnew/install/include -g -O2 -I /include -I /include/ -c jk_conte xt.c -DPIC -o .libs/jk_context.o make[1]: Leaving directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk/ native/common' Making all in apache-2.0 make[1]: Entering directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk /native/apache-2.0' /bin/sh /Chithu/aixnew/install/build/libtool --silent --mode=compile gcc -I/Chit hu/aixnew/install/include -g -O2 -DUSE_APACHE_MD5 -I ../common -I /include -I / include/unix -D_REENTRANT -Wall -g -O2 -U__STR__ -D_USE_IRS -D_THREAD_SAFE -D_32 KERMODE -c mod_jk.c mod_jk.c: In function `ws_start_response': mod_jk.c:228: warning: implicit declaration of function `strcasecmp' mod_jk.c: In function `ws_write': mod_jk.c:323: warning: unused variable `w' mod_jk.c: In function `jk_worker_property': mod_jk.c:742: warning: unused variable `statbuf' mod_jk.c:744: warning: unused variable `rc' mod_jk.c: In function `jk_handler': mod_jk.c:1193: warning: suggest parentheses around assignment used as truth valu e mod_jk.c: In function `jk_apr_pool_cleanup': mod_jk.c:1359: warning: control reaches end of non-void function mod_jk.c: In function `jk_child_init': mod_jk.c:1505: warning: unused variable `conf' /bin/sh /Chithu/aixnew/install/build/libtool --silent --mode=link gcc -I/Chithu/ aixnew/install/include -g -O2 -DUSE_APACHE_MD5 -I ../common -I /include -I /inc lude/unix -D_REENTRANT -Wall -g -O2 -U__STR__ -D_USE_IRS -D_THREAD_SAFE -D_32KER MODE -o mod_jk.la -module -rpath /Chithu/aixnew/install/modules -avoid-version m od_jk.lo ../common/jk_ajp12_worker.lo ../common/jk_connect.lo ../common/jk_msg_b uff.lo ../common/jk_util.lo ../common/jk_ajp13.lo ../common/jk_pool.lo ../common /jk_worker.lo ../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo ../common/j k_sockbuf.lo ../common/jk_map.lo ../common/jk_uri_worker_map.lo ../common/jk_ajp 14.lo ../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_ajp_common.l o ../common/jk_context.lo /bin/sh /Chithu/aixnew/install/build/libtool --silent --mode=install cp mod_jk.l a `pwd`/mod_jk.so libtool: install: warning: remember to run `libtool --finish /Chithu/aixnew/inst all/modules' make[1]: Leaving directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk/ native/apache-2.0' make[1]: Entering directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk /native' make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk/ native' target="all"; \ list='common apache-2.0'; \ for i in $list; do \ echo "Making $target in $i"; \ if test "$i" != "."; then \ (cd $i && make $target) || exit 1; \ fi; \ done; Making all in common make[1]: Entering directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk /native/common' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk/ native/common' Making all in apache-2.0 make[1]: Entering directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk /native/apache-2.0' /bin/sh /Chithu/aixnew/install/build/libtool --silent --mode=install cp mod_jk.l a `pwd`/mod_jk.so libtool: install: warning: remember to run `libtool --finish /Chithu/aixnew/inst all/modules' make[1]: Leaving directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk/ native/apache-2.0' --------------------------------------------------------- bash-2.05a# make install Making install in common make[1]: Entering directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk /native/common' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk/ native/common' Making install in apache-2.0 make[1]: Entering directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk /native/apache-2.0' Installing files to Apache Modules Directory... /Chithu/aixnew/install/bin/apxs -i mod_jk.la /Chithu/aixnew/install/build/instdso.sh SH_LIBTOOL='/Chithu/aixnew/install/build /libtool' mod_jk.la /Chithu/aixnew/install/modules rm -f /Chithu/aixnew/install/modules/mod_jk.so /Chithu/aixnew/install/build/libtool --mode=install cp mod_jk.la /Chithu/aixnew/ install/modules/ cp .libs/mod_jk.lai /Chithu/aixnew/install/modules/mod_jk.la cp .libs/libmod_jk.a /Chithu/aixnew/install/modules/libmod_jk.a ranlib /Chithu/aixnew/install/modules/libmod_jk.a chmod 644 /Chithu/aixnew/install/modules/libmod_jk.a ---------------------------------------------------------------------- Libraries have been installed in: /Chithu/aixnew/install/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LIBPATH' environment variable during execution - use the `-Wl,-blibpath:LIBDIR:/usr/lib:/lib' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- mv: 0653-401 Cannot rename /Chithu/aixnew/install/modules/ to /Chithu/aixnew/ins tall/modules/mod_jk.so: A system call received a parameter that is not valid. chmod 755 /Chithu/aixnew/install/modules/mod_jk.so chmod: /Chithu/aixnew/install/modules/mod_jk.so: A file or directory in the path name does not exist. apxs:Error: Command failed with rc=65536 . make[1]: *** [install_dynamic] Error 1 make[1]: Leaving directory `/Chithu/test/jakarta-tomcat-connectors-4.0.4-src/jk/ native/apache-2.0' make: *** [install-recursive] Error 1 --------------------------------------------------------- bash-2.05a# --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]