tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Braden" <mi...@nc.rr.com>
Subject RE: jk compilation help under solaris.
Date Fri, 04 May 2001 23:53:19 GMT
You should be posting this to the Tomcat-User list. This
list is for the Tomcat developers' discussions.

Are you using the Sun C Compiler (have you installed it?)

If not, then apxs is setup wrong.  You should try building
apache from source, since that is how apxs is configured.

You could also use the mod_jk from TC3.3, it is the latest.

There is more info in the updated mod_jk-howto in the nightly
build.

Mike.
--
Mike Braden
mikeb@nc.rr.com
mikeb@mwbinc.com

-----Original Message-----
From: mws@snugharbor.com [mailto:mws@snugharbor.com]
Sent: Friday, May 04, 2001 6:25 PM
To: tomcat-dev@jakarta.apache.org
Subject: jk compilation help under solaris.


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