LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   mod_jk build from scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/mod_jk-build-from-scratch-356348/)

dunamin 08-23-2005 10:22 PM

mod_jk build from scratch
 
I am trying to build mod_jk for apache on a very tiny Linux system. I have installed gcc, apache2, the JDK1.5 and Tomcat, but I just can't get the thing to compile. I know that ./configure is failing, but it doesn't say why. Here's what I see:
./configure --with-apxs=/opt/apache2/bin/apxs
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc option to produce PIC... (cached) -fPIC
checking if gcc PIC flag -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.lo... (cached) 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 for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) no
checking whether -lc should be explicitly linked in... (cached) no
creating libtool
checking for test... (cached) /bin:/usr/local/bin:/usr/bin:.:/usr/local/apache/bin
checking for rm... (cached) /bin/rm
checking for grep... (cached) /bin/grep
checking for echo... (cached) /bin/echo
checking for sed... (cached) /bin/sed
checking for cp... (cached) /bin/cp
checking for mkdir... (cached) /bin/mkdir
checking size of uint32_t... (cached) 0
checking size of u_int32_t... (cached) 0
checking size of unsigned long... (cached) 4
checking size of unsigned int... (cached) 4
checking size of unsigned long long... (cached) 8
checking size of unsigned longlong... (cached) 0
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for flock... (cached) yes
checking for setsockopt in -lsocket... (cached) no
checking whether to use SO_RCVTIMEO with setsockopt()... checking whether to use SO_SNDTIMEO with setsockopt()... no
./configure: /bin:/usr/local/bin:/usr/bin:.:/usr/local/apache/bin: No such file or directory
checking for target platform... unix
no apache given
./configure: /bin:/usr/local/bin:/usr/bin:.:/usr/local/apache/bin: No such file or directory
./configure: /bin:/usr/local/bin:/usr/bin:.:/usr/local/apache/bin: No such file or directory
./configure: /bin:/usr/local/bin:/usr/bin:.:/usr/local/apache/bin: No such file or directory
./configure: /bin:/usr/local/bin:/usr/bin:.:/usr/local/apache/bin: No such file or directory
./configure: /bin:/usr/local/bin:/usr/bin:.:/usr/local/apache/bin: No such file or directory
./configure: /bin:/usr/local/bin:/usr/bin:.:/usr/local/apache/bin: No such file or directory
updating cache ./config.cache
creating ./config.status
creating Makefile
creating apache-1.3/Makefile
creating apache-1.3/Makefile.apxs
creating apache-2.0/Makefile
creating apache-2.0/Makefile.apxs
creating common/Makefile
creating common/list.mk
creating jni/Makefile
creating common/portable.h
common/portable.h is unchanged


------------------------------------------------------------------------------

/bin:/usr/local/bin:/usr/bin:.:/usr/local/apache/bin is my path. What is it trying to run? If I do a make, there are no mod_jk.so created.

Any suggestions?

kjordan 08-24-2005 12:18 AM

http://jakarta.apache.org/tomcat/tom...howto.html#s64

Is your APACHE_HOME variable set?

dunamin 08-24-2005 09:03 AM

echo $APACHE_HOME gets
/opt/apache2

The link above helped, but seemed outdated. I was actually building from the latest source (jakarta-tomcat-connectors-1.2.14.1-src). The document you referenced has a section "mod_jk Binaries" that almost makes it sound that any mod_jk.so for linux would work. What do you think? Could I just install one from http://mirror.ipaska.net/apache/jaka...nux/jk-1.2.6/?

shotokan 08-27-2005 12:05 AM

It doesn't look like the configure script is using the APACHE_HOME variable.
Quote:

/usr/local/apache/bin: No such file or directory
It might help to find out why. (Try looking in the configure script)


All times are GMT -5. The time now is 08:48 PM.