RE: Has anyone been successful building mod_jk on AIX 6.1 ?
NO luck there either. This is what I saw when I tried to load that file: httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libmod_jk.a into server: \t0509-022 Cannot load module /usr/local/apache2/modules/libmod_jk.a.\n\t0509-103 The module has an invalid magic number. -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Saturday, September 26, 2009 1:18 AM To: Tomcat Users List Subject: Re: Has anyone been successful building mod_jk on AIX 6.1 ? On 25.09.2009 21:29, Strickland, Lawrence P wrote: bash-3.00# file libmod_jk.a libmod_jk.a: archive (big format) What is this file? What am I looking for? Unfortunately I was hoping for a more self-explanatory output. I don't have an AIX system at hand right now, so I can't tell, whether that's a good answer or not. I would simply try loading it with LoadModule jk_module /path/to/that/file/libmod_jk.a For the build, did you use the new tarball and additionally the fixed libtool, or only the new tarball? Yes to both of these questions. I used the new tarball and I ran the fixed libtool. OK. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Has anyone been successful building mod_jk on AIX 6.1 ?
I ran the find commands and did not find any of these files. I ran the build with the new tools and this is what I got. Could this one be my shared object module? 180225 1053 -rw-r--r-- 1 root system 1077292 Sep 25 08:40 ./native/apache-2.0/.libs/libmod_jk.a bash-3.00# pwd /home/strickll/tomcat-connectors-1.2.28-new_autotools-src bash-3.00# find . -name \*mod_jk\* -ls 176652 109 -rw--- 1 51 develope111577 Mar 19 2009 ./native/apache-1.3/mod_jk.c 1766538 -rw--- 1 51 develope 7824 Jun 17 2007 ./native/apache-1.3/mod_jk.dsp 1766551 -rw--- 1 51 develope11 Sep 6 2002 ./native/apache-1.3/mod_jk.exp 177030 126 -rw--- 1 51 develope128597 Mar 19 2009 ./native/apache-2.0/mod_jk.c 1770318 -rw--- 1 51 develope 7757 Jun 17 2007 ./native/apache-2.0/mod_jk.dsp 180225 1053 -rw-r--r-- 1 root system 1077292 Sep 25 08:40 ./native/apache-2.0/.libs/libmod_jk.a 1802261 -rw-r--r-- 1 root system 756 Sep 25 08:40 ./native/apache-2.0/.libs/mod_jk.lai 1802271 lrwxrwxrwx 1 root system 12 Sep 25 08:40 ./native/apache-2.0/.libs/mod_jk.la - ../mod_jk.la 1770541 -rw-r--r-- 1 root system 765 Sep 25 08:17 ./native/apache-2.0/mod_jk.la. 177077 1053 -rw-r--r-- 1 root system 1077292 Sep 25 08:40 ./native/apache-2.0/libmod_jk.a 177073 155 -rw-r--r-- 1 root system 158506 Sep 25 08:40 ./native/apache-2.0/mod_jk.o 1770721 -rw-r--r-- 1 root system 297 Sep 25 08:40 ./native/apache-2.0/mod_jk.lo 1770741 -rw-r--r-- 1 root system 756 Sep 25 08:40 ./native/apache-2.0/mod_jk.la bash-3.00# ./buildconf.sh bash-3.00# pwd bash-3.00# -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thursday, September 24, 2009 6:06 PM To: Tomcat Users List Subject: Re: Has anyone been successful building mod_jk on AIX 6.1 ? On 25.09.2009 00:55, Strickland, Lawrence P wrote: If the shared object module in not called mod_jk.so then what is it called? Is it mod_jk.o? And, if that is the case where does it need to be? In the apache/modules directory? See the below find command. It could be mod_jk.so, mod_jk.a or mod_jk.so.0. But please note what I also wrote below. If you use the standard src download, even if the build works, it might not be a really good binary, because the platform detection doesn't work with the old config.guess and configure. And yes: once you've got a good shared object file for AIX, you can put it into the modules folder of httpd. Actually you can put it anywhere you like, but if you use the relative path modules/... in the LoadModule directive, then it has to be in the modules directory of httpd. Regards, Rainer From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thu 9/24/2009 4:24 PM To: Tomcat Users List Subject: Re: Has anyone been successful building mod_jk on AIX 6.1 ? Hi Lawrence, On 24.09.2009 22:48, Strickland, Lawrence P wrote: This is the output of my build run. So apparently I am building version 1.2.28 with XLC 10.1 and Apache 2.2.13 #./httpd -v Server version: Apache/2.2.13 (Unix) Server built: Sep 22 2009 13:27:47 # gmake -v GNU Make 3.80 /home/strickll/tomcat-connectors-1.2.28-src/native bash-3.00# CC=cc_r -qlanglvl=extc89 ./configure --with-apxs=/usr/local/apache2/bin/apxs ... Do the following commands find a build result: find /home/strickll/tomcat-connectors-1.2.28-src -name mod_jk.a -ls find /home/strickll/tomcat-connectors-1.2.28-src -name mod_jk.so.* -ls I once did build for AIX but using an own toolchain based on gcc. One of the things I had to fix, was that config.guess (and also configure etc.) was to old to detect AIX 6. I checked 1.2.28 and unfortunately we didn't use the updated autotools when doing the release. I ran buildconf.sh once more with newer autotools, so you might want to check whether the archive at http://people.apache.org/~rjung/mod_jk-dev/source/jk-1.2.28-aix/tomcat-c onnectors-1.2.28-new_autotools-src.tar.gz works better for you. But I vaguely also remember that there was also a problem with libtool. I don't really remember precisely, but on AIX it wanted to build shared libs as .a file instead of .so. It worked when applying the following ksh snipppet: for f in `find . -type f -name libtool` do echo Fixing $f... cp -p $f $f.aix_orig sed -e 's#hardcode_action=immediate#hardcode_action=relink#' \ -e 's#hardcode_direct=yes#hardcode_direct=no#' \ -e 's#hardcode_minus_L=no#hardcode_minus_L=yes#' \ $f.aix_orig $f done but maybe you won't need it using XLC. Concerning make install: don't really use it. You can copy over the mod_jk.so (or however the shared object file is called on AIX) to the modules directory. Let us know your
RE: Has anyone been successful building mod_jk on AIX 6.1 ?
bash-3.00# file libmod_jk.a libmod_jk.a: archive (big format) What is this file? What am I looking for? For the build, did you use the new tarball and additionally the fixed libtool, or only the new tarball? Yes to both of these questions. I used the new tarball and I ran the fixed libtool. -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Friday, September 25, 2009 1:07 PM To: Tomcat Users List Subject: Re: Has anyone been successful building mod_jk on AIX 6.1 ? On 25.09.2009 15:46, Strickland, Lawrence P wrote: I ran the find commands and did not find any of these files. I ran the build with the new tools and this is what I got. Could this one be my shared object module? 180225 1053 -rw-r--r-- 1 root system 1077292 Sep 25 08:40 ./native/apache-2.0/.libs/libmod_jk.a Yes, this could be it. It could either be a static library (not good) or a shared library (good). Most platforms use *.a for static libs, but I vaguely remember that AIX used it for shared. You could try file native/apache-2.0/.libs/libmod_jk.a to see what AIX says which type of file it is. Did you try loading it into the web server with LoadModule? For the build, did you use the new tarball and additionally the fixed libtool, or only the new tarball? Regards, Rainer bash-3.00# pwd /home/strickll/tomcat-connectors-1.2.28-new_autotools-src bash-3.00# find . -name \*mod_jk\* -ls 176652 109 -rw--- 1 51 develope111577 Mar 19 2009 ./native/apache-1.3/mod_jk.c 1766538 -rw--- 1 51 develope 7824 Jun 17 2007 ./native/apache-1.3/mod_jk.dsp 1766551 -rw--- 1 51 develope11 Sep 6 2002 ./native/apache-1.3/mod_jk.exp 177030 126 -rw--- 1 51 develope128597 Mar 19 2009 ./native/apache-2.0/mod_jk.c 1770318 -rw--- 1 51 develope 7757 Jun 17 2007 ./native/apache-2.0/mod_jk.dsp 180225 1053 -rw-r--r-- 1 root system 1077292 Sep 25 08:40 ./native/apache-2.0/.libs/libmod_jk.a 1802261 -rw-r--r-- 1 root system 756 Sep 25 08:40 ./native/apache-2.0/.libs/mod_jk.lai 1802271 lrwxrwxrwx 1 root system 12 Sep 25 08:40 ./native/apache-2.0/.libs/mod_jk.la - ../mod_jk.la 1770541 -rw-r--r-- 1 root system 765 Sep 25 08:17 ./native/apache-2.0/mod_jk.la. 177077 1053 -rw-r--r-- 1 root system 1077292 Sep 25 08:40 ./native/apache-2.0/libmod_jk.a 177073 155 -rw-r--r-- 1 root system 158506 Sep 25 08:40 ./native/apache-2.0/mod_jk.o 1770721 -rw-r--r-- 1 root system 297 Sep 25 08:40 ./native/apache-2.0/mod_jk.lo 1770741 -rw-r--r-- 1 root system 756 Sep 25 08:40 ./native/apache-2.0/mod_jk.la bash-3.00# ./buildconf.sh bash-3.00# pwd bash-3.00# -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thursday, September 24, 2009 6:06 PM To: Tomcat Users List Subject: Re: Has anyone been successful building mod_jk on AIX 6.1 ? On 25.09.2009 00:55, Strickland, Lawrence P wrote: If the shared object module in not called mod_jk.so then what is it called? Is it mod_jk.o? And, if that is the case where does it need to be? In the apache/modules directory? See the below find command. It could be mod_jk.so, mod_jk.a or mod_jk.so.0. But please note what I also wrote below. If you use the standard src download, even if the build works, it might not be a really good binary, because the platform detection doesn't work with the old config.guess and configure. And yes: once you've got a good shared object file for AIX, you can put it into the modules folder of httpd. Actually you can put it anywhere you like, but if you use the relative path modules/... in the LoadModule directive, then it has to be in the modules directory of httpd. Regards, Rainer From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thu 9/24/2009 4:24 PM To: Tomcat Users List Subject: Re: Has anyone been successful building mod_jk on AIX 6.1 ? Hi Lawrence, On 24.09.2009 22:48, Strickland, Lawrence P wrote: This is the output of my build run. So apparently I am building version 1.2.28 with XLC 10.1 and Apache 2.2.13 #./httpd -v Server version: Apache/2.2.13 (Unix) Server built: Sep 22 2009 13:27:47 # gmake -v GNU Make 3.80 /home/strickll/tomcat-connectors-1.2.28-src/native bash-3.00# CC=cc_r -qlanglvl=extc89 ./configure --with-apxs=/usr/local/apache2/bin/apxs ... Do the following commands find a build result: find /home/strickll/tomcat-connectors-1.2.28-src -name mod_jk.a -ls find /home/strickll/tomcat-connectors-1.2.28-src -name mod_jk.so.* -ls I once did build for AIX but using an own toolchain based on gcc. One of the things I had to fix, was that config.guess (and also configure etc.) was to old to detect AIX 6. I checked 1.2.28 and unfortunately we didn't use the updated
Should I use mod_jk or mod_proxy_ajp for my Apache2 to Tomcat5 connector on AIX ?
Should I use mod_jk or mod_proxy_ajp for my Apache2 to Tomcat5 connector on AIX ? I am having some problems building mod_jk on AIX and I see the same functionality is supported in mod_proxy_ajp. Does anyone have some good reason why I should use one over the other? Larry Strickland Lead Systems Administrator lawrence-strickl...@uiowa.edu University of Iowa Hospitals and Clinics
Has anyone been successful building mod_jk on AIX 6.1 ?
Has anyone been successful building mod_jk on AIX 6.1 ? If so, do you have any tips for me? I can't seem to get it to go. It fails to build mod_jk.so Larry Strickland Lead Systems Administrator lawrence-strickl...@uiowa.edu University of Iowa Hospitals and Clinics
RE: Has anyone been successful building mod_jk on AIX 6.1 ?
=install cp mod_jk.la /home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0/ libtool: install: warning: remember to run `libtool --finish /usr/local/apache2/modules' Warning! dlname not found in /home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0/mod_jk.la. Assuming installing a .so rather than a libtool archive. gmake[1]: Leaving directory `/home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0' gmake[1]: Entering directory `/home/strickll/tomcat-connectors-1.2.28-src/native' gmake[1]: Nothing to be done for `all-am'. gmake[1]: Leaving directory `/home/strickll/tomcat-connectors-1.2.28-src/native' target=all; \ list='common apache-2.0'; \ for i in $list; do \ echo Making $target in $i; \ if test $i != .; then \ (cd $i gmake $target) || exit 1; \ fi; \ done; Making all in common gmake[1]: Entering directory `/home/strickll/tomcat-connectors-1.2.28-src/native/common' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/home/strickll/tomcat-connectors-1.2.28-src/native/common' Making all in apache-2.0 gmake[1]: Entering directory `/home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0' ../scripts/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool --silent' mod_jk.la `pwd` rm -f /home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0/mod_jk.so /usr/local/apache2/build/libtool --silent --mode=install cp mod_jk.la /home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0/ libtool: install: warning: remember to run `libtool --finish /usr/local/apache2/modules' Warning! dlname not found in /home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0/mod_jk.la. Assuming installing a .so rather than a libtool archive. gmake[1]: Leaving directory `/home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0' bash-3.00# gmake install Making install in common gmake[1]: Entering directory `/home/strickll/tomcat-connectors-1.2.28-src/native/common' gmake[1]: Nothing to be done for `install'. gmake[1]: Leaving directory `/home/strickll/tomcat-connectors-1.2.28-src/native/common' Making install in apache-2.0 gmake[1]: Entering directory `/home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0' Installing files to Apache Modules Directory... /usr/local/apache2/bin/apxs -i mod_jk.la /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_jk.la /usr/local/apache2/modules rm -f /usr/local/apache2/modules/mod_jk.so /usr/local/apache2/build/libtool --mode=install cp mod_jk.la /usr/local/apache2/modules/ cp .libs/mod_jk.lai /usr/local/apache2/modules/mod_jk.la cp .libs/libmod_jk.a /usr/local/apache2/modules/libmod_jk.a chmod 644 /usr/local/apache2/modules/libmod_jk.a ranlib /usr/local/apache2/modules/libmod_jk.a -- Libraries have been installed in: /usr/local/apache2/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: See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. -- Warning! dlname not found in /usr/local/apache2/modules/mod_jk.la. Assuming installing a .so rather than a libtool archive. chmod 755 /usr/local/apache2/modules/mod_jk.so chmod: /usr/local/apache2/modules/mod_jk.so: A file or directory in the path name does not exist. apxs:Error: Command failed with rc=65536 . gmake[1]: *** [install_dynamic] Error 1 gmake[1]: Leaving directory `/home/strickll/tomcat-connectors-1.2.28-src/native/apache-2.0' gmake: *** [install-recursive] Error 1 -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, September 24, 2009 11:54 AM To: Tomcat Users List Subject: Re: Has anyone been successful building mod_jk on AIX 6.1 ? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Larry, On 9/24/2009 11:58 AM, Strickland, Lawrence P wrote: Has anyone been successful building mod_jk on AIX 6.1 ? If so, do you have any tips for me? I can't seem to get it to go. It fails to build mod_jk.so Could you provide some more details? How about providing us with the output of 'configure' and 'make'? Also, what version are you trying to build? What C compiler are you using, and what version? Are you using GNU make? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkq7pAoACgkQ9CaO5/Lv0PD9AQCgwJSfbJ0DmNasa70+cR9l9mtJ oGcAoKqlGAp9D/qq2NcI3I5Hka4r7mMD =KBkJ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h
RE: Has anyone been successful building mod_jk on AIX 6.1 ?
If the shared object module in not called mod_jk.so then what is it called? Is it mod_jk.o? And, if that is the case where does it need to be? In the apache/modules directory? From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thu 9/24/2009 4:24 PM To: Tomcat Users List Subject: Re: Has anyone been successful building mod_jk on AIX 6.1 ? Hi Lawrence, On 24.09.2009 22:48, Strickland, Lawrence P wrote: This is the output of my build run. So apparently I am building version 1.2.28 with XLC 10.1 and Apache 2.2.13 #./httpd -v Server version: Apache/2.2.13 (Unix) Server built: Sep 22 2009 13:27:47 # gmake -v GNU Make 3.80 /home/strickll/tomcat-connectors-1.2.28-src/native bash-3.00# CC=cc_r -qlanglvl=extc89 ./configure --with-apxs=/usr/local/apache2/bin/apxs ... Do the following commands find a build result: find /home/strickll/tomcat-connectors-1.2.28-src -name mod_jk.a -ls find /home/strickll/tomcat-connectors-1.2.28-src -name mod_jk.so.* -ls I once did build for AIX but using an own toolchain based on gcc. One of the things I had to fix, was that config.guess (and also configure etc.) was to old to detect AIX 6. I checked 1.2.28 and unfortunately we didn't use the updated autotools when doing the release. I ran buildconf.sh once more with newer autotools, so you might want to check whether the archive at http://people.apache.org/~rjung/mod_jk-dev/source/jk-1.2.28-aix/tomcat-connectors-1.2.28-new_autotools-src.tar.gz works better for you. But I vaguely also remember that there was also a problem with libtool. I don't really remember precisely, but on AIX it wanted to build shared libs as .a file instead of .so. It worked when applying the following ksh snipppet: for f in `find . -type f -name libtool` do echo Fixing $f... cp -p $f $f.aix_orig sed -e 's#hardcode_action=immediate#hardcode_action=relink#' \ -e 's#hardcode_direct=yes#hardcode_direct=no#' \ -e 's#hardcode_minus_L=no#hardcode_minus_L=yes#' \ $f.aix_orig $f done but maybe you won't need it using XLC. Concerning make install: don't really use it. You can copy over the mod_jk.so (or however the shared object file is called on AIX) to the modules directory. Let us know your findings, so that we will at least ensure that we use the right autotools for the future releases. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How do I uninstall Tomcat 6.0 so that I can down level it to 5.5 ?
How do I uninstall Tomcat 6.0 so that I can down level it to 5.5? This is on a UNIX operating system. Larry Strickland Lead Systems Administrator lawrence-strickl...@uiowa.edu University of Iowa Hospitals and Clinics
RE: How do I uninstall Tomcat 6.0 so that I can down level it to 5.5 ?
I did the rm since I want to conserve space. Thank you. -Original Message- From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] Sent: Thursday, September 03, 2009 8:00 AM To: Tomcat Users List Subject: Re: How do I uninstall Tomcat 6.0 so that I can down level it to 5.5 ? On Thu, Sep 3, 2009 at 5:55 AM, Strickland, Lawrence Plawrence-strickl...@uiowa.edu wrote: How do I uninstall Tomcat 6.0 so that I can down level it to 5.5? This is on a UNIX operating system. If it's a normal install, `rm -rf $CATALINA_HOME` would probably do it just fine. :-) But do you really need to remove it? Just install any other version in a different directory and set the appropriate CATALINA_HOME. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org