tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Stelmashenko <i...@visoftware.com>
Subject Re: mod_jk does not compile (3.2b7)
Date Mon, 13 Nov 2000 22:06:23 GMT
I'm having the same problem on solaris(apache_1.3.14, gcc version 2.95.2 19991024 (release))

Any tips or pointers are greatly appreciated! I've tried everything mentioned on
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html
I have also collected kernel trace - apxs tries execute "-o" ?! If I
run manually (gcc -shared -o mod_jk.so *.o) afterwards - I get 10 pages worth 
of "undefined" stuff.


apxs -o mod_jk.so -DSOLARIS -I../jk -I/opt/java/include -I/opt/java/include/solaris -c *.c
../jk/*.c

.... good messages ....
and then: 

 ---try execute   -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  
Can't exec "-o": No such file or directory at /usr/local/apache/bin/apxs line 246.
apxs:Break: Command failed with rc=255
[root@aurora apache1.3]# 

[root@aurora apache1.3]# uname -a[root@aurora apache1.3]# gcc -shared -o mod_jk.so *.o
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x85c       jk_ajp12_worker.o
<unknown>                           0x858       jk_ajp12_worker.o
<unknown>                           0x828       jk_ajp12_worker.o
<unknown>                           0x84c       jk_ajp12_worker.o


SunOS aurora 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-80

carnell wrote:
> 
> cd /opt/tomcat/jakarta-tomcat/src/native/apache1.3
> 
> /opt/apache/bin/apxs -o
> mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
> -lposix4 -c *.c ../jk/*.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c mod_jk.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_ajp13.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_ajp13_worker.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_connect.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_jni_worker.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_lb_worker.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_map.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_msg_buff.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_nwmain.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_pool.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_sockbuf.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_uri_worker_map.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_util.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/
> opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so
> laris -DSOLARIS  -c ../jk/jk_worker.c
> ld -G -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=16711680
> 
> And it worked under 3.2 b6 :( Any ideas?
> 
> Craig.

Mime
View raw message