Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 4928 invoked from network); 19 Dec 2000 19:48:08 -0000 Received: from unknown (HELO trumpet.ru.openpages.com) (62.105.133.20) by locus.apache.org with SMTP; 19 Dec 2000 19:48:08 -0000 Received: by TRUMPET with Internet Mail Service (5.5.2650.21) id ; Tue, 19 Dec 2000 17:02:47 +0300 Message-ID: <51ABE19B009DD4118D96005004BE008411FB0A@TRUMPET> From: Michael Klimkin To: "'tomcat-user@jakarta.apache.org'" Subject: mod_jk.so building Date: Tue, 19 Dec 2000 17:02:43 +0300 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="koi8-r" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > Hi! > > Help me if you can... > > I'm trying to build the mod_jk.so on Solaris 7: > > > #/usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS \ > -I${JAVA_HOME}/include/solaris \ > -I../jk -I${JAVA_HOME}/include \ > -l posix4 -c *.c ../jk/*.c > > This script writes such rows: > > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c mod_jk.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_ajp12_worker.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_ajp13.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_ajp13_worker.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_connect.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_jni_worker.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_lb_worker.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_map.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_msg_buff.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_nwmain.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_pool.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_sockbuf.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_uri_worker_map.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -DSOLARIS -c ../jk/jk_util.c > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED > -I/usr/local/apache/include -I/usr/java/include/solaris -I../jk > -I/usr/java/include -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 -lposix4 > apxs:Break: Command failed with rc=16777215 > > When i try to execute > > #gcc -shared -o mod_jk.so *.o , > > it returns > > Text relocation remains referenced > against symbol offset in file > 0x858 jk_ajp12_worker.o > 0x84c jk_ajp12_worker.o > 0x85c jk_ajp12_worker.o > 0x848 jk_ajp12_worker.o > 0x604 jk_ajp12_worker.o > 0x5e8 jk_ajp12_worker.o > 0x828 jk_ajp12_worker.o > 0x83c jk_ajp12_worker.o > 0x838 jk_ajp12_worker.o > 0x82c jk_ajp12_worker.o > 0x5ec jk_ajp12_worker.o > 0x600 jk_ajp12_worker.o > 0x2c jk_ajp12_worker.o > 0xe4 jk_ajp12_worker.o > 0xe8 jk_ajp12_worker.o > 0xf4 jk_ajp12_worker.o > memcpy 0xf18 jk_map.o > memcpy 0xee0 jk_map.o > memcpy 0x2e8 jk_pool.o > memcpy 0x108 jk_sockbuf.o > memcpy 0x3a4 jk_pool.o > memcpy 0x53c jk_pool.o > memcpy 0x1dc jk_sockbuf.o > memcpy 0x160 jk_connect.o > gethostbyname 0xfc jk_connect.o > close 0x3c4 jk_connect.o > setsockopt 0x2e0 jk_connect.o > recv 0x500 jk_connect.o > recv 0x6f0 jk_sockbuf.o > > Why??? > > > Thanks, > Michael