tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@snugharbor.com
Subject jk compilation help under solaris.
Date Fri, 04 May 2001 22:25:12 GMT
I'm nearly there with a working apache/tomcat config, but I'm new to
using apxs, so have NO idea how to fix the following error. The environment
is a Sun Netra T1, running a fully patched Solaris 2.8. I've included the full
context of the error, and my Makefile below:

Any help would be greatly appreciated!

bash-2.03# pwd
/usr/local/jakarta/jakarta-tomcat-3.2.1-src/src/native/apache1.3
bash-2.03# make
/usr/local/apache/bin/apxs -I ../jk -I /usr/j2se/include -I /usr/j2se/include/solaris -DSOLARIS
-c -o mod_jk.so mod_jk.c ../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c ../jk/jk_util.c
../jk/jk_ajp13.c ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c ../jk/jk_ajp13_worker.c
../jk/jk_lb_worker.c ../jk/jk_sockbuf.c  ../jk/jk_map.c ../jk/jk_uri_worker_map.c        
  
cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include -I../jk -I/usr/j2se/include
-I/usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
apxs:Break: Command failed with rc=16711680
make: *** [mod_jk.so] Error 1

***Start of Makefile ***

bash-2.03# more Makefile
## You need to edit this file - configure later :-)

## I assume this one is set up already
# JAVA_HOME=
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=/usr/apache/bin/apxs
#endif

JK=../jk/
SRCS=../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c ../jk/jk_util.c ../
jk/jk_ajp13.c \
     ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c ../jk/jk_ajp13_worker.c ..
/jk/jk_lb_worker.c \
     ../jk/jk_sockbuf.c  ../jk/jk_map.c ../jk/jk_uri_worker_map.c          


all: mod_jk.so

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

clean:
        rm *.o *.so
bash-2.03# 
-- 
"A human being should be able to change a diaper, plan an invasion,
 butcher a hog, conn a ship, design a building, write a sonnet, 
 balance accounts, build a wall, set a bone, comfort the dying, 
 take orders, give orders, cooperate, act alone, solve equations,
 analyze a new problem, pitch manure, program a computer, cook a
 tasty meal, fight efficiently, die gallantly. Specialization is
 for insects."
		Robert A. Heinlein, "The Notebooks of Lazarus Long"

Mime
View raw message