mod_jk for Apache 2.0 not building on Red Hat 6
I'm sorry if this is the wrong mailing list to request help for mod_jk for Apache 2.0. If it is, please point me in the proper direction. I am attempting to build mod_jk for Apache 2.0 on Red Hat 6.0. I'm using the build-unix.sh script. Unfortunately, the command $APXS -c -o mod_jk.so $INCLUDE $LIB $SRC does not produce an output file mod_jk.so and it does not indicate why. The file .libs/libmod_jk.a is being produced. Does anyone have any suggestions as to where I should look to determine why the .so file is not being produced? Thanks. Jeffrey Altman * Sr.Software Designer C-Kermit 7.1 Alpha available The Kermit Project @ Columbia University includes Secure Telnet and FTP http://www.kermit-project.org/ using Kerberos, SRP, and [EMAIL PROTECTED] OpenSSL. SSH soon to follow.
RE: mod_jk for Apache 2.0 not building on Red Hat 6
Something I know well :) Which version of Apache 2.0 have you ? Up to the latest, the apxs was broken. I recommand you take a look at Makefile.linux in TC 3.3 :) Thanks for your help. The Apache version is 2.0.16 I've looked at the Makefile.linux and that apparently has less luck than build_unix.sh. It calls mod_jk.so: $(APXS) -I ${JK} ${JAVA_INCL} -c -o mod_jk.la mod_jk.c $(SRCS) mv .libs/mod_jk.so . And then APXS fails with: ./apxs -I ../common -I /opt/IBMJava2-13/include -I /opt/IBMJava2-13/include/linu x -c -o mod_jk.la mod_jk.c ../common/jk_ajp12_worker.c ../common/jk_connect.c .. /common/jk_msg_buff.c ../common/jk_util.c ../common/jk_ajp13.c ../common/jk_jni_ worker.c ../common/jk_pool.c ../common/jk_worker.c ../common/jk_ajp13_worker.c . ./common/jk_lb_worker.c ../common/jk_sockbuf.c ../common/jk_map.c ../common/jk_ uri_worker_map.c libtool --mode=compile gcc -pthread -I/usr/local/apache2/include -I../common -I/ opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c mod_jk.c touch m od_jk.slo gcc -pthread -I/usr/local/apache2/include -I../common -I/opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c mod_jk.c -o mod_jk.o echo timestamp mod_jk.lo libtool --mode=link gcc -pthread -o mod_jk.la -rpath /usr/local/apache2/modules -module -avoid-version mod_jk.lo rm -fr .libs/mod_jk.la .libs/libmod_jk.* .libs/libmod_jk.* ar cru .libs/libmod_jk.a mod_jk.o ranlib .libs/libmod_jk.a creating mod_jk.la (cd .libs rm -f mod_jk.la ln -s ../mod_jk.la mod_jk.la) libtool --mode=compile gcc -pthread -I/usr/local/apache2/include -I../common -I/ opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c ../common/jk_ajp12_ worker.c touch ../common/jk_ajp12_worker.slo gcc -pthread -I/usr/local/apache2/include -I../common -I/opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c ../common/jk_ajp12_worker.c -o jk_ajp12_wor ker.o echo timestamp jk_ajp12_worker.lo libtool --mode=link gcc -pthread -o ../common/jk_ajp12_worker.la -rpath /usr/loc al/apache2/modules -module -avoid-version ../common/jk_ajp12_worker.lo rm -fr ../common/.libs/jk_ajp12_worker.la ../common/.libs/libjk_ajp12_worker.* . ./common/.libs/libjk_ajp12_worker.* (cd ../common ln -s jk_ajp12_worker.lo jk_ajp12_worker.o) ar cru ../common/.libs/libjk_ajp12_worker.a ../common/jk_ajp12_worker.o ar: ../common/jk_ajp12_worker.o: No such file or directory apxs:Break: Command failed with rc=65536 make: *** [mod_jk.so] Error 1 Jeffrey Altman * Sr.Software Designer C-Kermit 7.1 Alpha available The Kermit Project @ Columbia University includes Secure Telnet and FTP http://www.kermit-project.org/ using Kerberos, SRP, and [EMAIL PROTECTED] OpenSSL. SSH soon to follow.
Re: mod_jk for Apache 2.0 not building on Red Hat 6
Other idea is a broken libtool... try with the one that is in APR. I'm sorry. APR? Jeffrey Altman * Sr.Software Designer C-Kermit 7.1 Alpha available The Kermit Project @ Columbia University includes Secure Telnet and FTP http://www.kermit-project.org/ using Kerberos, SRP, and [EMAIL PROTECTED] OpenSSL. SSH soon to follow.
RE: mod_jk for Apache 2.0 not building on Red Hat 6
APR is Apache Portable Runtime (apr.apache.org) Could you give us the libtool version ? I've used Redhat 6.0 and many things were damaged. actually, it is RH 6.1 The libtool version is ### BEGIN LIBTOOL CONFIG # Libtool was configured as follows, on host foo: # # CC=gcc CFLAGS=-O -O2 -m486 -fno-strength-reduce CPPFLAGS= \ # LD=/usr/bin/ld LDFLAGS= LIBS= \ # NM=/usr/bin/nm -B RANLIB=ranlib LN_S=ln -s \ # DLLTOOL= OBJDUMP= AS= \ # ./ltconfig --cache-file=./config.cache --with-gcc --with-gnu-ld # --no-verify ./ltmain.sh i686-unknown-linux # # Compiler and other test output produced by ltconfig, useful for # debugging ltconfig, is in ./config.log if it exists. # The version of ltconfig that generated this script. LTCONFIG_VERSION=1.3.4 I tried to find an Apache 2.0.18 distribution at www.apache.org but the latest that is there is 2.0.16. Jeffrey Altman * Sr.Software Designer C-Kermit 7.1 Alpha available The Kermit Project @ Columbia University includes Secure Telnet and FTP http://www.kermit-project.org/ using Kerberos, SRP, and [EMAIL PROTECTED] OpenSSL. SSH soon to follow.
RE: mod_jk for Apache 2.0 not building on Red Hat 6
I applied the patch to APXS. I replaced /usr/bin/libtool (version 1.3.4) with the one from the Apache 2.0 distribution (version 1.3.4-freebsd-ports). ./build-unix.sh now completes successfully and produces [root@IAM40 apache2.0]# ls -l /usr/local/apache2/modules/ total 12 -rw-r--r-- 1 root root10802 Jun 1 07:45 libmod_jk.a but no mod_jk.so file. Anyway to convert from .a to .so? make -f Makefile.linux is still failing. So I wonder, which version of libtool are you using? BEGIN make -f Makefile.linux ./apxs -I ../common -I /opt/IBMJava2-13/include -I /opt/IBMJava2-13/include/linux -c -o mod_jk.la mod_jk.c ../common/jk_ajp12_worker.c ../common/jk_connect.c .. /common/jk_msg_buff.c ../common/jk_util.c ../common/jk_ajp13.c ../common/jk_jni_worker.c ../common/jk_pool.c ../common/jk_worker.c ../common/jk_ajp13_worker.c . ./common/jk_lb_worker.c ../common/jk_sockbuf.c ../common/jk_map.c ../common/jk_uri_worker_map.c libtool --mode=compile gcc -pthread -I/usr/local/apache2/include -I../common -I/ opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c mod_jk.c touch mod_jk.slo mkdir .libs gcc -pthread -I/usr/local/apache2/include -I../common -I/opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c mod_jk.c -fPIC -DPIC -o .libs/mod_jk.lo gcc -pthread -I/usr/local/apache2/include -I../common -I/opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c mod_jk.c -o mod_jk.o /dev/null 21 mv -f .libs/mod_jk.lo mod_jk.lo libtool --mode=link gcc -pthread -o mod_jk.la -rpath /usr/local/apache2/modules -module -avoid-version mod_jk.lo rm -fr .libs/mod_jk.la .libs/mod_jk.* .libs/mod_jk.* gcc -shared -Wl,--rpath -Wl,/usr/local/apache2/modules mod_jk.lo -pthread -lc -Wl,-soname -Wl,mod_jk.so -o .libs/mod_jk.so creating mod_jk.la (cd .libs rm -f mod_jk.la ln -s ../mod_jk.la mod_jk.la) libtool --mode=compile gcc -pthread -I/usr/local/apache2/include -I../common -I/ opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c ../common/jk_ajp12_worker.c touch ../common/jk_ajp12_worker.slo rm -f .libs/jk_ajp12_worker.lo gcc -pthread -I/usr/local/apache2/include -I../common -I/opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c ../common/jk_ajp12_worker.c -fPIC -DPIC -o .libs/jk_ajp12_worker.lo gcc -pthread -I/usr/local/apache2/include -I../common -I/opt/IBMJava2-13/include -I/opt/IBMJava2-13/include/linux -c ../common/jk_ajp12_worker.c -o jk_ajp12_worker.o /dev/null 21 mv -f .libs/jk_ajp12_worker.lo jk_ajp12_worker.lo libtool --mode=link gcc -pthread -o ../common/jk_ajp12_worker.la -rpath /usr/local/apache2/modules -module -avoid-version ../common/jk_ajp12_worker.lo rm -fr ../common/.libs/jk_ajp12_worker.la ../common/.libs/jk_ajp12_worker.* ../common/.libs/jk_ajp12_worker.* (cd ../common ln -s jk_ajp12_worker.lo jk_ajp12_worker.o) gcc -shared -Wl,--rpath -Wl,/usr/local/apache2/modules ../common/jk_ajp12_worker.lo -pthread -lc -Wl,-soname -Wl,jk_ajp12_worker.so -o ../common/.libs/jk_ajp12_worker.so gcc: ../common/jk_ajp12_worker.lo: No such file or directory apxs:Break: Command failed with rc=65536 make: *** [mod_jk.so] Error 1 ###END Jeffrey Altman * Sr.Software Designer C-Kermit 7.1 Alpha available The Kermit Project @ Columbia University includes Secure Telnet and FTP http://www.kermit-project.org/ using Kerberos, SRP, and [EMAIL PROTECTED] OpenSSL. SSH soon to follow.
RE: mod_jk for Apache 2.0 not building on Red Hat 6
Thanks all. The APXS patch which I applied was not being used. After I ensured that the patched version was being executed, the mod_jk.so built properly. The changes to libtool were not necessary. Jeffrey Altman * Sr.Software Designer C-Kermit 7.1 Alpha available The Kermit Project @ Columbia University includes Secure Telnet and FTP http://www.kermit-project.org/ using Kerberos, SRP, and [EMAIL PROTECTED] OpenSSL. SSH soon to follow.