You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thomas Tinnes <to...@tinnes.us> on 2005/01/05 22:45:00 UTC

[FIXED] Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error

Hello,

Just a follow up to let you know how this got resolved.
First, thanks to all my respondents. It all helped.

I tried using ./buildconf.sh, but got the same result. The Rosetta Stone
came from Mladden when it was pointed out that the second value of
-DHAVE_APR hadn't a "-I" before the second value string.

I traced this back to the config which got these values by querying the
apxs:
APRINCLUDEDIR="-I`$APXS -q APR_INCLUDEDIR`"
the value of which is:
[root@host]# /usr/sbin/apxs -q APR_INCLUDEDIR
/usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include 
/usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include

This gave value to APR_INCLUDEDIR, which begat APRINCLUDEDIR, which 
begat
-DHAVE_APR ${APRINCLUDEDIR} which begat the problem:
-DHAVE_APR 
-I/usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include 
/usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include

The solution was to go to each Makefile (./common, ./apache-1.3, 
./apache-2.0) and just vi and add the missing "-I".

It seems to have compiled and installed fine.

Thanks, again, to all.

_tom

On Jan 4, 2005, at 9:16 PM, Thomas Tinnes wrote:

> Hello,
>
> Getting a compile error I'm having trouble understanding.
> Here's my setup:
>
> Installing jakarta-tomcat-connectors-1.2.8-src.tar.gz from the Jakarta 
> site.
> On a Linux Red Hat Enterprise 3 (Taroon) on an i386 arch & i686 cpu.
> I'm using gcc version 3.4.3 20041212 (Red Hat 3.4.3-10).
> There's Apache 2.0.46-44 running with source objects in
> /usr/src/redhat/BUILD/httpd-2.0.46.
>
> I unzip and untar and cd to 
> jakarta-tomcat-connectors-1.2.8-src/jk/native
> and do "./configure --with-apxs=/usr/sbin/apxs".
>
> The config runs without errors but when I run "make", I get an "Error 
> 1":
>
> make[1]: Entering directory 
> `/tmp/jk/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 -O2 -g -pipe -march=i386 -mcpu=i686 
> -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread -DHAVE_APR 
> -I/usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include 
> /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include -g -O2 -DLINUX=2 
> -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
> -D_GNU_SOURCE -I /usr/local/java/include -I /usr/local/java/include/ 
> -c jk_ajp12_worker.c
> gcc: /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include: linker 
> input file unused because linking not done
> cc1: /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include: No such 
> file or directory
> make[1]: *** [jk_ajp12_worker.lo] Error 1
> make[1]: Leaving directory 
> `/tmp/jk/jakarta-tomcat-connectors-1.2.8-src/jk/native/common'
> make: *** [all-recursive] Error 1


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [FIXED] Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error

Posted by Thomas Tinnes <to...@tinnes.us>.
>

Hello,

Just a brief epilog.

Yes, Mladen, that's exactly what I had to do, in the end. I was trying 
to stay within the client's framework of crumbling, elderly programs 
and not take apps forward (in version), but in the end it proved 
impossible. It took four hours to compile the elderly Apache with 
mod_jk (I had to work through error after error) and when it was 
finally done the compiled httpd daemon gave seg faults.  So, I 
downloaded 2.0.52 and it's all up to date now. Thanks, again.


> Yes, seems like Apache 2.0.46 reports two APR_INCLUDEDIRs,
> instead just one on RHES3.
> Did you tried the later Apache versions like 2.0.50+?
>
> Mladen.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [FIXED] Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error

Posted by Mladen Turk <ml...@jboss.com>.
Thomas Tinnes wrote:
> Hello,
> 
> Just a follow up to let you know how this got resolved.
> First, thanks to all my respondents. It all helped.
> 
> I tried using ./buildconf.sh, but got the same result. The Rosetta Stone
> came from Mladden when it was pointed out that the second value of
> -DHAVE_APR hadn't a "-I" before the second value string.
> 
> I traced this back to the config which got these values by querying the
> apxs:
> APRINCLUDEDIR="-I`$APXS -q APR_INCLUDEDIR`"
> the value of which is:
> [root@host]# /usr/sbin/apxs -q APR_INCLUDEDIR
> /usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include 
> /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include
> 

Yes, seems like Apache 2.0.46 reports two APR_INCLUDEDIRs,
instead just one on RHES3.
Did you tried the later Apache versions like 2.0.50+?

Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org