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 Valine <to...@sixpack1.Eng.Sun.COM> on 2001/05/09 01:14:00 UTC

Can't compile mod_jk

I can't compile mod_jk.  I am using

perl 5.6.1 gcc 2.95.3 on an Ultra60 running Solaris 7

I type:
apxs -o mod_jk.so -DSOLARIS -I../jk -I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/sol
aris -c *.c ../jk/*.c

and get...

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c mod_jk.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c
../jk/jk_ajp12_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c
../jk/jk_ajp13_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c
../jk/jk_connect.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c
../jk/jk_jni_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c
../jk/jk_lb_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c ../jk/jk_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c
../jk/jk_msg_buff.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c ../jk/jk_nwmain.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c ../jk/jk_pool.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c
../jk/jk_sockbuf.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c
../jk/jk_uri_worker_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c ../jk/jk_util.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/home/tomv/programs/apache/include -I../jk
-I/home/tomv/programs/java/include
-I/home/tomv/programs/java/include/solaris -DSOLARIS  -c ../jk/jk_worker.c
gcc -shared -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 
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x848       jk_worker.o
<unknown>                           0x844       jk_worker.o
worker_map                          0x6d0       jk_worker.o
worker_map                          0x6d4       jk_worker.o
worker_map                          0x540       jk_worker.o
blah.....
blahhh....
unknown>                           0x730       jk_ajp13.o
<unknown>                           0x72c       jk_ajp13.o
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
apxs:Break: Command failed with rc=1
 
Please help
Tom
 
+--------------------------------------------------------+
|                              Tom Valine                |
|     _/_/_/  _/  _/  _/   _/  Member of Technical Staff |
|    _/      _/  _/  _/_/ _/   Processor Products Group  |
|   _/_/_/  _/  _/  _/ _/_/                              |
|      _/  _/  _/  _/   _/     thomas.valine@eng.sun.com |
| _/_/_/   _/_/   _/   _/      408.720.4838 Direct       |
|                              408.774.2099 Fax          |
+--------------------------------------------------------+
| Sun Microsystems' UltraSPARC III processor is the      |
| second generation 64-bit SPARC V9 architecture         |
| specifically crafted to support the most aggressive    |
| real-world networking environments such as e-commerce, |
| large corporate intranets, high-capacity Web servers   |
| and online transaction processing.                     |
|                                                        |
| Find out more at:                                      |
| http://www.sun.com/sparc/UltraSPARC-III/               |
+--------------------------------------------------------+