I followed Elizabeth's suggestion to build nsjk2 and got the
following compile error when I ran 'ant jkjni'.
jni:
[so] Compiling 35 out of 35
Compiling
/bwd/plin/jakarta-tomcat-connectors/jk/native2/common/jk_channel.c
[so] Compile failed 1
/bwd/plin/jakarta-tomcat-connectors/jk/native2/common/jk_channel.c
[so] Command:/bwd/plin/shared/apr/build/libtool
--mode=compile gcc -c -o /bwd/plin/jakarta-t
omcat-connectors/jk/native2/SunOS_5.8_DBG/jni/common/jk_channel.o
-I/bwd/plin/jakarta-tomcat-connec
tors/jk/native2/common
-I/bwd/plin/jakarta-tomcat-connectors/jk/native2/jni
-I/bwd/plin/jakarta-tom
cat-connectors/jk/native2/include
-I/winchester/bwd/java/testjava/j2sdk1.4.2_05/jre/../include
-I${
build.compiler.base}/include
-I/bwd/plin/shared/apr/include/apr-0
-I/bwd/plin/shared/apr/include/ap
r-0/httpd
-I/winchester/bwd/java/testjava/j2sdk1.4.2_05/jre/../include/solaris
-g -W -DHAS_APR -D_R
EENTRANT -DHAVE_JNI -DHAVE_SIGNAL
/bwd/plin/jakarta-tomcat-connectors/jk/native2/common/jk_channel.
c
[so] Output:
[so] libtool: compile: unable to infer tagged
configuration
[so] StdErr:
[so] libtool: compile: specify a tag with `--tag'
Does anyone know how to fix this problem?
Thanks,
Peter
|---------+---------------------------->
| | Elizabeth Thomas |
| | <[EMAIL PROTECTED]|
| | OM> |
| | Sent by: |
| | AOLserver |
| | Discussion |
| | <[EMAIL PROTECTED]|
| | RV.AOL.COM> |
| | |
| | |
| | 07/30/2004 10:16 |
| | AM |
| | Please respond to|
| | AOLserver |
| | Discussion |
| | |
|---------+---------------------------->
>----------------------------------------------------------------------------------|
| |
| To: [EMAIL PROTECTED] |
| cc: (bcc: Peter Lin/BNA Inc) |
| Subject: Re: [AOLSERVER] trying to build nsjk2 |
>----------------------------------------------------------------------------------|
Greg Wolff wrote on 7/30/04, 9:22 AM:
> We've been trying to build nsjk2 and having a few
troubles with it.
>
> What's with the APR and MOD_JK2? It seems evident that
we need to build
> Apache to get nsjk2 running in AOLserver. What's up with
that?
To clarify, its not Apache itself that is needed, but a
couple of the
utilities that made it possible to run Tomcat with the
Apache server. We
use these same utilities to make it possible to run Tomcat
with
AOLserver. These are the Apache Portable Runtime library
(APR) and the
Jakarta Tomcat connector (aka JK2).
Tomcat itself doesn't need to be built, you can just
download a binary
distribution from
http://jakarta.apache.org/builds/jakarta-tomcat/release
The apr (and apr-util source if your using Tomcat 5) source
can be
downloaded from apr.apache.org. Here are the configuration
options we
are currently using:
APR
configure --prefix=<ourinstalldir> --enable-shared
--enable-threads
--enable-symbols
APR-UTIL
configure --prefix=<ourinstalldir> --enable-shared
--enable-threads
--with-apr=<ourinstalldir>
then: "make all install" on each.
You will want to add a softlink from libapr-0.so to
libapr.so and
libaprutil-0.so to libaprutil.so
The good news is that once you build APR, you don't have to
rebuild it
with new nsjk2 distributions.
JK2.
Check out the source from jakarta's CVS.
cvs :pserver:[EMAIL PROTECTED]:/home/cvspublic co -r
<tag>
jakarta-tomcat-connectors
for Tomcat 4, we build with tag=TOMCAT_4_1_27
for Tomcat 5, we build with tag=jk2_2_0_4
Jk2 is built via the 'jkjni' target in the nsjk2 build.xml
You then just
need to update the nsjk2 build.properties file with your
directory
locations and:
"ant jkjni"
Then follow the instructions in the documentation to build
nsjk2 and
install from the resulting distribution tarball.
"ant all packager" builds everything else and creates the
tarball.
If you can, I recommend using Tomcat 5 and the latest tag of
nsjk2
(nsjk2_v2_beta3) as that is where our effort is concentrated
and new
enhancements are being added.
I agree that the documentation would benefit by including
the
information above. We'll scrub it accordingly :)
-Elizabeth
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to
<[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can
leave the Subject: field of your email blank.
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of
your email blank.