I followed suggestions from our tomcat-users (thanks).

These are what I did.

1. create all the object files using "apxs" as outlined in
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

/usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk
-I/usr/j2se/include -I/usr/j2se/include/solaris -lposix4 -c *.c ../jk/*.c

If it works you do not need step 2.

2. create mod_jk.so

gcc -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

Scott

jun xu sun wrote:

> Scott:
> how do you resolve it? thanks a lot for your helping.
>
> rgds
> brent
>
> -----Original Message-----
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Tuesday, December 05, 2000 2:25 AM
> Subject: Re: It is getting closer to make "mod_jk.so", but??
>
> >Thanks all. It is solved.
> >
> >Scott
> >Quoting [EMAIL PROTECTED]:
> >
> >> Hi All,
> >>
> >> I downloaded a precompiled "mod_jk.so" for solaris 2.6 offered
> >> by a tomcat-user and it did not work on my system. I still need
> >> to compile it myself. It is almost there.
> >>
> >> Solaris 2.6/tomcat3.2/perl5/apache1.3.14
> >>
> >> command used to build "mod_jk.so":
> >>
> >> /usr/local/apache/bin/apxs  -o mod_jk.so -DSOLARIS -I../jk
> >> -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -c *.c ../jk/*.c
> >>
> >> log result with error "apxs:Break: Command failed with rc=16777215":
> >>
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13_worker.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_connect.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_jni_worker.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_lb_worker.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_map.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_msg_buff.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_nwmain.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_pool.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_sockbuf.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_uri_worker_map.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_util.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_worker.c
> >>   -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
> >> apxs:Break: Command failed with rc=16777215
> >>
> >> Thanks,
> >>
> >> Scott
> >>

--
Scott Liu
Software Developer
831 440 5718
.....................................................................

TAPESTRY.NET - On Target, Online Recruiting
100 Enterprise Way, Suite C1, Scotts Valley, CA 95066

Visit our web sites at:
http://www.tapestry.net
http://www.asia-net.com      Bilingual Professionals
http://www.developers.net    Software Developers
http://www.itinfo.net        IT Professionals


Reply via email to