tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Delamere" <h...@michael-delamere.de>
Subject mod_jk2 connector
Date Sun, 28 Apr 2002 11:07:54 GMT
Hi,

I don´t want to waste your time but I really would like to get mod_jk2
compiled.
Unfortunately, no matter what I try I don´t seem to be able to achieve this.
The instructions in the README read as follows:

* Run "ant". It'll build modules for all the detected containers.

* If your system have a current working version of libtool, run "ant
native".
  This will build the native connectors for the detected servers ( both jk
  and jk2).

The above doesn´t work.

When I try going running "make" manually from the
"connectors/jk/native2/server/apache2" directory I get the following compile
error:

make
mkdir -p ../../../build/jk2/apache2
/usr/local/apache2.0.35/build/libtool  --mode=compile
  -g -O2 -pthread    -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURC
E -D_SVID_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER  -I../../include -I/usr/lo
cal/apache2.0.35/include -I/usr/local/java/j2sdk1.4.0/include -I/usr/local/j
ava/j2sdk1.4.0/include\linux -I/usr/local/java/j2sdk1.4.0/include\hp-ux  -I.
 -I/os/unix -I/server/mpm/prefork -I/modules/http -I/modules/proxy -I/includ
e -I/srclib/apr/include -I/srclib/apr-util/include -I/modules/dav/main -I/IN
STALL/httpd-2.0.35/srclib/apr-util/include -I/INSTALL/httpd-2.0.35/srclib/ap
r-util/xml/expat/lib -prefer-pic -c ../../common/jk_channel_apr_socket.c -o
../../../build/jk2/apache2/jk_channel_apr_socket.lo
rm -f ../../../build/jk2/apache2/.libs/jk_channel_apr_socket.lo
gcc -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
 -D_SVID_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I../../include -I/usr/loca
l/apache2.0.35/include -I/usr/local/java/j2sdk1.4.0/include -I/usr/local/jav
a/j2sdk1.4.0/includelinux -I/usr/local/java/j2sdk1.4.0/includehp-ux -I. -I/o
s/unix -I/server/mpm/prefork -I/modules/http -I/modules/proxy -I/include -I/
srclib/apr/include -I/srclib/apr-util/include -I/modules/dav/main -I/INSTALL
/httpd-2.0.35/srclib/apr-util/include -I/INSTALL/httpd-2.0.35/srclib/apr-uti
l/xml/expat/lib -prefer-pic -c
../../common/jk_channel_apr_socket.c  -fPIC -DPIC -o
../../../build/jk2/apache2/.libs/jk_channel_apr_socket.lo
----------------------------------------------------------------------------
---------------
Error:
----------------------------------------------------------------------------
---------------
gcc: unrecognized option `-prefer-pic'
In file included from /usr/local/apache2.0.35/include/apr_network_io.h:67,
                 from ../../common/jk_channel_apr_socket.c:84:
/usr/local/apache2.0.35/include/apr.h:176: redefinition of `apr_byte_t'
../../include/jk_global.h:164: `apr_byte_t' previously declared here
/usr/local/apache2.0.35/include/apr.h:178: redefinition of `apr_int16_t'
../../include/jk_global.h:165: `apr_int16_t' previously declared here
/usr/local/apache2.0.35/include/apr.h:179: redefinition of `apr_uint16_t'
../../include/jk_global.h:166: `apr_uint16_t' previously declared here
/usr/local/apache2.0.35/include/apr.h:181: redefinition of `apr_int32_t'
../../include/jk_global.h:167: `apr_int32_t' previously declared here
/usr/local/apache2.0.35/include/apr.h:182: redefinition of `apr_uint32_t'
../../include/jk_global.h:168: `apr_uint32_t' previously declared here
In file included from /usr/local/apache2.0.35/include/apr_pools.h:85,
                 from /usr/local/apache2.0.35/include/apr_network_io.h:68,
                 from ../../common/jk_channel_apr_socket.c:84:
/usr/local/apache2.0.35/include/apr_errno.h:81: redefinition of
`apr_status_t'
../../include/jk_global.h:160: `apr_status_t' previously declared here
In file included from /usr/local/apache2.0.35/include/apr_pools.h:85,
                 from /usr/local/apache2.0.35/include/apr_network_io.h:68,
                 from ../../common/jk_channel_apr_socket.c:84:
/usr/local/apache2.0.35/include/apr_errno.h:159:1: warning:
"APR_OS_START_USEERR" redefined
../../include/jk_global.h:162:1: warning: this is the location of the
previous definition
/usr/local/apache2.0.35/include/apr_errno.h:177:1: warning: "APR_SUCCESS"
redefined
../../include/jk_global.h:161:1: warning: this is the location of the
previous definition
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_close':
../../common/jk_channel_apr_socket.c:385: warning: assignment makes pointer
from integer without a cast
../../common/jk_channel_apr_socket.c:386: warning: return makes integer from
pointer without a cast
make: *** [../../../build/jk2/apache2/jk_channel_apr_socket.lo] Error 1
----------------------------------------------------------------------------
------------------

I´ve included the whole output so that you can see what is going on.

PLEASE HELP!

Thank you.

Michael Delamere






--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message