tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parsons Technical Services" <parsonstechni...@earthlink.net>
Subject Re: mod_jk2 2.0.4 compiler error on RHEL 3.0, Apache 2.0.46
Date Tue, 06 Apr 2004 16:30:22 GMT
Chris,

Check the version of gcc on each machine.

Just a quick thought.

Doug

----- Original Message ----- 
From: "Chris Egolf" <cegolf@ugholf.net>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, April 06, 2004 12:24 PM
Subject: mod_jk2 2.0.4 compiler error on RHEL 3.0, Apache 2.0.46


> All -
>
> I've successfully compiled the 2.0.4 mod_jk2 connector for use w/ the RPM
> version of Apache 2.0.46/Tomcat 4.1.29/30 on Redhat Enterprise Linux 3.0
(ES and
> WS) as well as the RPM version of Apache on Fedora Core 1, so I'm a bit
stumped
> by this one.  This works on one machine, but doesn't on two others.  All
three
> are RHEL 3.0 and running the following:
>
> Sun JDK 1.4.2 (j2sdk-1.4.2-fcs)
> httpd-devel-2.0.46-26.ent
> httpd-2.0.46-26.ent
> Tomcat 4.1.29
>
> I've untarred the 2.0.4 jk2 connector, and get the following when I run
make:
>
> ==============================
> [cegolf@goatweed native2]$ pwd
> /usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2
> [cegolf@goatweed native2]$ ./buildconfig
> [cegolf@goatweed native2]$ ./configure --with-apxs2=/usr/sbin/apxs
> [cegolf@goatweed native2]$ make
> list=' server/apache2'; \
> for i in $list; do \
>          echo "Making $target in $i"; \
>          if test "$i" != "."; then \
>          (cd $i && make) || exit 1; \
> fi; \
> done;
> Making  in server/apache2
> make[1]: Entering directory
>
`/usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/serve
r/apache2'
> mkdir -p ../../../build/jk2/apache2/usr/lib/httpd/modules
> /bin/sh /usr/bin/libtool --silent  --mode=compile
gcc  -O2 -g -pipe -march=i386
> -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread
> -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
> -D_GNU_SOURCE  -I../../include -I/usr/include/httpd
> -I/usr/src/build/324798-i386/BUILD/httpd-2.0.46/prefork/srclib/apr-util/in
clude
> /usr/src/build/324798-i386/BUILD/httpd-2.0.46/srclib/apr-util/include
> -I/usr/src/build/324798-i386/BUILD/httpd-2.0.46/prefork/srclib/apr/include
> /usr/src/build/324798-i386/BUILD/httpd-2.0.46/srclib/apr/include
> -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5   -c
../../common/jk_channel_apr_socket.c -o
> ../../../build/jk2/apache2/jk_channel_apr_socket.lo
> gcc: cannot specify -o with -c or -S and multiple compilations
> make[1]: *** [../../../build/jk2/apache2/jk_channel_apr_socket.lo] Error 1
> make[1]: Leaving directory
>
`/usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/serve
r/apache2'
> make: *** [jk2-build] Error 1
>
> =================================
>
>
> Any ideas what this 'gcc: cannot specify -o with -c or -S and multiple
> compilations' means and how to fix it?  All three machines have been
upgraded to
> RHEL 3.0 from various versions of Redhat (7.3 - 9.0) over time, so I
suspect
> it's some legacy junk hanging around that's causing the grief.  Any help
would
> be appreciated.
>
> Thanks.
> -- 
>
============================================================================
>                                 Chris Egolf
>               http://www.ugholf.net     cegolf@ugholf.net
>
============================================================================
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



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


Mime
View raw message