You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Larson, Ryan" <RL...@dantis.com> on 2000/12/21 19:51:18 UTC

Can't get mod_jk to compile on solaris

I am having a problem getting mod_jk.so to compile on solaris 7.  Here is
the exact output 

/opt/apache/bin/apxs -o mod_jk.c -DSOLARIS -I../jk -I /usr/java1.2/include
-I /usr/java1.2/include/solaris -c -l posix4 ../jk/*.c 

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp13_worker.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_connect.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_jni_worker.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_lb_worker.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_map.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_msg_buff.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_nwmain.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_pool.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_sockbuf.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_uri_worker_map.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_util.c

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/apache/include -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_worker.c

  -o mod_jk.c 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 -lposix4 

apxs:Break: Command failed with rc=255 
*** Error code 1 
make: Fatal error: Command failed for target `mod_jk.so' 

Here is my Makefile 

JAVA_HOME=/usr/java1.2 
OS=solaris 

JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS} 
JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L
${JAVA_HOME}/lib/${ARCH}/native_threads 
#ifndef APXS 
APXS=/opt/apache/bin/apxs 
#endif 

JK=../jk/ 
SRCS=../jk/*.c 

all: mod_jk.so 

mod_jk.so: 
        $(APXS) -o mod_jk.c -DSOLARIS -I../jk ${JAVA_INCL} -c -l posix4
$(SRCS) 

clean: 
        rm *.o *.so 

Here is the system info from uname -a and gcc -v 

SunOS de01 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-80 

Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs 
gcc version 2.95.2 19991024 (release) 

apache is version 1.3.14 from src. 

Anyone able to fix this or supply me with a binary for solaris 7 would help
me a lot. 

Thanks 

Ryan Larson 

Ryan Larson
Dantis, Inc -- Chicago, IL
312-601-2711