May I ask is there a reason that you need Apache?
If yes, then is there any special reason for jk rather than mod_proxy(I think)?
Just thought it might save you some headaches, that is unless you like that kind of thing.
Doug
----- Original Message ----- From: "Glenn Parsons" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, January 10, 2005 5:04 PM
Subject: Can't compile mod_jk 1.2.8
Hello All,
I know just enough to be dangerous.. not enough to know what is blowing my mod_jk build.
I am on a super-fast dual 3.2GHz machine running CentOS (RedHat ES 3.0) with Apache 2.0.46-38, JDK 1.5.0_01, Tomcat 5.5.4 and Ant 1.6.2.
Neither Apache, nor Tomcat have been fully configured yet, so they aren't running, but all environment variables are in place.
I downloaded source and attempted to build from $(Source_dircetory)/jk/native, first with .configure, then make. Configure seems to do okay, except it does not find Apache. I told it to use apxs anyway. Make always breaks, see my output:
./configure --with-apxs=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 -enable-jni checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes 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 for style of include used by make... GNU 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... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking for a sed that does not truncate output... /bin/sed checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking command to parse /usr/bin/nm -B output... ok 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... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... no creating libtool checking for test... /usr/bin/test checking for rm... /bin/rm checking for grep... /bin/grep checking for echo... /bin/echo checking for sed... /bin/sed checking for cp... /bin/cp checking for mkdir... /bin/mkdir checking for snprintf... yes checking for vsnprintf... yes 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 jni enable (need JDK) checking for JDK location (please wait)... /usr/java/jdk1.5.0_01 checking Java platform... forced Java 2 checking os_type directory... linux 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: creating common/portable.h config.status: executing depfiles commands [EMAIL PROTECTED] native]# make Making all in common make[1]: Entering directory `/root/jakarta-tomcat-connectors-1.2.8-src/jk/native/common' /bin/sh /usr/bin/libtool --silent --mode=compile gcc -I/usr/include/httpd -g -O2 -DHAVE_JNI -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread -DHAVE_APR -I/rpmbuild/skvidal/rpm/BUILD/httpd-2.0.46/prefork/srclib/apr/include /rpmbuild/skvidal/rpm/BUILD/httpd-2.0.46/srclib/apr/include -g -O2 -DHAVE_JNI -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/jdk1.5.0_01/include -I /usr/java/jdk1.5.0_01/include/linux -c jk_ajp12_worker.c gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [jk_ajp12_worker.lo] Error 1 make[1]: Leaving directory `/root/jakarta-tomcat-connectors-1.2.8-src/jk/native/common' make: *** [all-recursive] Error 1
Any help or suggestions would be kindly appreciated!
Thanks, Glenn Parsons
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. http://www.sng.ecs.soton.ac.uk/mailscanner/ Configuration by Glenn Parsons dnsadmin-at-1bigthink.com
--------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
