http://www.ccl.net/cca/software/UNIX/apache/solaris-t3.2/files/mod_jk.so
let me know if this one works for you, otherwise I have compiled one for
Apache 1.3.14. SunOS 5.8 myself
Filip
----- Original Message -----
From: Chris Stavros
To: [EMAIL PROTECTED]
Sent: Tuesday, January 09, 2001 10:31 AM
Subject: Building mod_jk fails with odd apxs error: "apxs:Break: Command
failed with rc=255"
Hi All,
OK, I have just about given up on trying to build mod_jk for Solaris. The
history is below if anybody is interested in taking a stab at this. However,
all of the suggestions I have received thus far are basically the
"standards". That is, I have tried finishing the build with both apxs and
gcc, I have tried reordering the arguments in the apxs command, I have even
tried fiddling with my $PATH and $CLASSPATH structures. Still no luck. I
have found only two other messages pertaining to this specific error (in
this group and across the web via Google), and neither user appears to have
found a solution.
So, unless somebody sees something new and different about this problem,
does anybody just have a built version of mod_jk for use with Apache 1.3.14
on Solaris 7? Can I have a copy please? Or, can somebody confirm for me that
a copy compiled for Apache 3.1.12 and Solaris 8 will work just the same on
my system? I do have a copy of this but am concerned that it may break
something because it was compiled on a newer platform with an older version
of Apache. Opinions? Thanks in advance for any help! :>)
History:
Hello,
I am trying to build mod_jk for Apache from the jakarta-tomcat 3.2.1 source.
Apache 1.3.14 is installed in the default directory (/usr/local/apache). I'm
running Solaris 2.7 (generic) for Sparc.
When I use apxs to build mod_jk (according to the current documentation), I
get:
# apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1.2/
include/solaris -c *.c ../jk/*.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c mod_jk.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_ajp12_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_ajp13.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_ajp13_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_connect.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_jni_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_lb_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_msg_buff.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_nwmain.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_pool.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_sockbuf.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_uri_worker_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_util.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_worker.c
-o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o
jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o
apxs:Break: Command failed with rc=255
Similarly, adjusting the apxs command syntax to adhear to the structure
outlined by "apxs -h" produces the result:
# apxs -c -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1
.2/include/solaris *.c ../jk/*.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c mod_jk.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_ajp12_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_ajp13.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_ajp13_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_connect.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_jni_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_lb_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_msg_buff.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_nwmain.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_pool.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_sockbuf.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_uri_worker_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_util.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc
al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola
ris -DSOLARIS -c ../jk/jk_worker.c
-o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o
jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o
apxs:Break: Command failed with rc=255
In both instances the build appears to fail with the same error.
Running gcc -shared -o mod_jk.so *.o does not finish the build. Instead I
get:
<message below is repeated with varying hex values servral times for each
(*.o) in dir>. . .
<unknown> 0x5bc mod_jk.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
As best as I can tell, all the pertintent environment variables are set
correctly:
TOMCAT_HOME=/export/home/java/jakarta-tomcat
JAVA_HOME=/export/home/java/java1.2
JAKARTA_HOME=/export/home/downloads/jakarta/tomcat/jakarta-tomcat
CLASSPATH=/export/home/java/java1.2/bin
Anybody have a suggestion as to what I'm missing?
-Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]