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 06:16:37 UTC

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

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

And the directory /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include 
does exist and is populated.

I believe I understand that the "-c" in the compile line indicates that 
there wouldn't be linking anyway, but I'm unsure why the program stops. 
I've looked at some of the Make files and can't seem to find a place to 
edit to prevent the exit.

I've Googled, and scanned the archives here but can't seem to find a 
useful pointer to my problem.

Any insight would be very welcome. Thanks.

_tom


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


Re: 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:
> Mladen,
> 
> No luck, alas. Same error. But thank you for the pointer, all the same.
>

Seems that the space is not a problem, but
you have a strange entry:

 > -I/usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include
 > /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include ...

Seems like -I is missing from the last line.

Mladen.

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


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

Posted by "John P. Dodge" <do...@cruciate.ca.boeing.com>.
On Wed, 5 Jan 2005, Thomas Tinnes wrote:

> Mladen,
>
> No luck, alas. Same error. But thank you for the pointer, all the same.
>
> [root@host]# make
> Making all in common
> make[1]: Entering directory
> 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
>
>
> > Perhaps the error is caused by space between -I and /usr/local/java
> > Have no idea why this happening. I've tested the build on
> > RH9 not on RHE3.
> >
> > Edit the common/Makefile.in and remove the spaces:
> > From:
> > JAVA_INCL=-I @JAVA_HOME@/include -I @JAVA_HOME@/include/@OS@
> > To:
> > JAVA_INCL=-I@JAVA_HOME@/include -I@JAVA_HOME@/include/@OS@
> >
> > Tell me if that helps.
> >
> > Mladen.

Try running the buildconf.sh script to build the configure file. Then run
your configure operation. I generally don't have success with the bundled
configure file.


----------------------------------------
"Mon aƩroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


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


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

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

No luck, alas. Same error. But thank you for the pointer, all the same.

[root@host]# make
Making all in common
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


On Jan 4, 2005, at 11:30 PM, Mladen Turk wrote:

> Perhaps the error is caused by space between -I and /usr/local/java
> Have no idea why this happening. I've tested the build on
> RH9 not on RHE3.
>
> Edit the common/Makefile.in and remove the spaces:
> From:
> JAVA_INCL=-I @JAVA_HOME@/include -I @JAVA_HOME@/include/@OS@
> To:
> JAVA_INCL=-I@JAVA_HOME@/include -I@JAVA_HOME@/include/@OS@
>
> Tell me if that helps.
>
> Mladen.


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


Re: 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:
> 
> make[1]: Entering directory 
> `/tmp/jk/jakarta-tomcat-connectors-1.2.8-src/jk/native/common'
> -D_GNU_SOURCE -I /usr/local/java/include -I /usr/local/java/include/ -c 
> jk_ajp12_worker.c

Perhaps the error is caused by space between -I and /usr/local/java
Have no idea why this happening. I've tested the build on
RH9 not on RHE3.

Edit the common/Makefile.in and remove the spaces:
From:
JAVA_INCL=-I @JAVA_HOME@/include -I @JAVA_HOME@/include/@OS@
To:
JAVA_INCL=-I@JAVA_HOME@/include -I@JAVA_HOME@/include/@OS@

> Any insight would be very welcome. Thanks.
>

Tell me if that helps.

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 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


[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 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