LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 08-23-2005, 10:22 PM   #1
dunamin
LQ Newbie
 
Registered: May 2004
Location: Austin, TX
Distribution: SUSE 9.1
Posts: 15

Rep: Reputation: 0
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?
 
Old 08-24-2005, 12:18 AM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

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

Is your APACHE_HOME variable set?
 
Old 08-24-2005, 09:03 AM   #3
dunamin
LQ Newbie
 
Registered: May 2004
Location: Austin, TX
Distribution: SUSE 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
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/?
 
Old 08-27-2005, 12:05 AM   #4
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_jk build successful, but 500:internal error Lzolcsi Linux - Enterprise 2 11-29-2005 11:35 AM
hardened linux from scratch glibc build hardened-specs.sh problem behmjoe Linux From Scratch 2 09-04-2005 02:06 PM
linux from scratch build with linux-2.6.11 and my pktsetup problem! behmjoe Linux - Software 8 04-02-2005 03:32 AM
Build from scratch JROCK1980 Linux - Distributions 2 09-09-2003 07:28 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM


All times are GMT -5. The time now is 01:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration