Greetings
I managed to compile the NSAPI connector for
Jackarta-Tomcat under the following configuration
(itried to find if someone managed to compile the
module but i found no answer).
Thi is my current configuration
* java version "1.3.0_01" Java(TM) 2 Runtime
Environment, Standard Edition (build 1.3.0_01)
Java HotSpot(TM) Client VM (build 1.3.0_01, mixed
mode)
* GNU Make version 3.76.1, by Richard Stallman and
Roland McGrath.
* Tomcat 3.2
* Netscape Enterprise Server 3.6
* SunOS xxxx 5.6 Generic_105181-23 sun4u sparc
SUNW,Ultra-250
Here are the steps to compile the NSAPI connector
using this modified Makefile:
1) Define the following 3 environment variables
(JAVA_HOME, JK_INCLUDE, SUITESOPT_HOME) (i'm using
tcsh on the example but you should change the
syntax on other shells. Also remeber to put your real
paths):
setenv JAVA_HOME /local/usr/j2se
setenv SUITESPOT_HOME /local/netscape/suitespot
setenv JK_DIR
/local5/src/jakarta_source/jakarta-tomcat/src/native/jk
2) Check the new Makefile just to see if everithing is
Ok:
#Modified by Jose Vicente Nunez Zuleta
([EMAIL PROTECTED]) on 07/02/2001
# Defines for example NSAPI programs running under
SOLARIS
CC_CMD=gcc -DNET_SSL -DSOLARIS -D_REENTRANT
LD_SHAREDCMD=ld -G
all:
OS_TYPE=solaris
INCLUDEDIR=$(SUITESPOT_HOME)/include
JAVA_INCLUDE=$(JAVA_HOME)/include
JK_INCLUDE=$(JK_DIR)
VPATH=$(JK_INCLUDE):'pwd'
JK_OBJS = jk_ajp12_worker.o jk_ajp13_worker.o
jk_jni_worker.o jk_map.o jk_nwmain.o \
jk_sockbuf.o jk_util.o jk_ajp13.o jk_connect.o \
jk_lb_worker.o jk_msg_buff.o jk_pool.o \
jk_uri_worker_map.o jk_worker.o jk_nsapi_plugin.o
INCLUDE_FLAGS=-I$(INCLUDEDIR) -I$(INCLUDEDIR)/base
-I$(INCLUDEDIR)/frame -I$(JAVA_INCLUDE)
-I$(JAVA_INCLUDE)/$(OS_TYPE) -I$(JK_INCLUDE)
COMMON_DEFS=-DMCC_HTTPD -DXP_UNIX -DSPAPI20 -DSOLARIS
-Wall
all: nsapi_redirector.so
nsapi_redirector.so: $(JK_OBJS)
$(LD_SHAREDCMD) $(JK_OBJS) -o
nsapi_redirector.so $(EXTRA_LDDEFINES)
.c.o:
$(CC_CMD) $(COMMON_DEFS) $(INCLUDE_FLAGS) -c $<
3) Compile the source the NSAPI redirector (i suppouse
yo are in the same directory as the Makefile):
make -f Makefile.solaris
4) Copy the nsapi_redirector.so file to the desired
location and follow the instructions at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-netscape-howto.html
I followed all the instructions and the NSAPI module
worked without a problem.
I hope this help anyone with the same problem i got :)
José Vicente Núñez Zuleta
=====
José Vicente Núñez Zuleta
System Engineer / Developer
Development Leader, Diario El Universal
http://www.eluniversal.com
http://www.autofuturo.com (current project)
_________________________________________________________
Do You Yahoo!?
Obtenga su dirección de correo-e gratis @yahoo.com
en http://correo.espanol.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
Modified Makefile NSAPI connector under Solaris 2.6 (hope thi s helps!)
Jos� Vicente N��ez Zuleta Thu, 08 Feb 2001 04:07:55 -0800
