Hi Peoples,
We have just installed mod_jk for Solaris .. Here is my log of how I did it.
You will need:
+ apache_1.3.20 installed
+ The J2SDK (I used 1.3.1)
+ The src for tomcat-3.2.2
+ GNU gcc stuff
cd jakarta-tomcat-3.2.2-src/src/native/apache1.3
<** this line wraps **>
/usr/local/apache-1.3.20/bin/apxs -o mod_jk.so -DSOLARIS -I../jk
-I/usr/local/j2sdk1_3_1/include/
-I/usr/local/j2sdk1_3_1/include/solaris -c *.c
../jk/*.c
If you get apxs:Break: Command failed with rc=255
When you axps it after the linking .. then
mod the axps as below...
Change axps to add (Found @
http://w6.metronet.com/~wjm/tomcat/2001/Feb/msg00454.html)
my $CFG_CFLAGS_SHLIB = q( -fpic -DSHARED_MODULE ); #
substituted via Makefile.tmpl
my $CFG_LD_SHLIB = q(gcc); # substituted via
Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q( -shared ); # substituted via
Makefile.tmpl
and try again
then copy it to libexec dir
<do the appropriate mod_jk mods to the httpd.conf package .. I used
the tomcat autoconf
via an Include line.
Hope this helps
Ramon
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 July 2001 1:28 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: AW: Does any body have mod_jk for solaris?
Thomas,
Thanks. I just whatever files to get mod_jk.so working on Apache 1.3.14 and
Solaris 8.
Do you need both the mod_jk.c and mod_jk.o any where? Or do you just need
mod_jk.so in the apache/libexc directory?
ab
Thomas Bezdicek wrote:
> i got solaris 8 with apache 1.3.20 tomcat 3.2.1 and tomcat 3.2.2 if
> you need them
>
> btw: try to use gcc instead of cc. and include -lPOSIC before the -c
> part in the apxs - call.
>
> regards, tom
>
> > -----Ursprungliche Nachricht-----
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 12. Juli 2001 12:13
> > An: [EMAIL PROTECTED]
> > Betreff: Does any body have mod_jk for solaris?
> >
> >
> > hi, all,
> >
> > It is 0300 so my level of aggravation is pretty high. Fun to work at
this
> > time though, it is where you figure things out, however I am not
> > figuring out
> > this mod_jk thing for solaris, and wondering why the people want
> > people to use
> > this instead of jserv but they don't include any binaries for mod_jk.
> >
> > > I am attempting a pretty simple thing I thought. I wanted to
> > change from
> > > using the default jserv to mod_jk.
> > >
> > > I first could not find any binaries on the jakarta.apache site. That
is
> > > stupid Solaris has to be one of the most popular OS's on the
> > web. We can
> > > get tomcat
> > > for Solaris and apache, what is these jk guys problem?
> > >
> > > Any way, I said, ok, I will build it.
> > >
> > > I first tried to find the "build-solairs.sh" could not find it.
> > >
> > > Thus, I tried to build-unix.sh couldn't find that.
> > >
> > > So I was left with the third way to build mod_jk. That was using
apxs.
> > > That I tried to do.
> > >
> > > I get the following error when I try to build mod_jk. Any one has any
> > > idea?
> > >
> > > Thanks. F&*(^ really dumb and it is late.
> > >
> > > ab
> > >
> > > # build
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > "jk_jni_worker.c", line 731: warning: assignment type mismatch:
> > > pointer to function(pointer to pointer to pointer to
> > const struct
> > > JNIInd
> > > "jk_jni_worker.c", line 732: warning: assignment type mismatch:
> > > pointer to function(pointer to void) returning int "="
> > pointer to
> > > void
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > "jk_map.c", line 468: warning: newline not last character in file
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > "jk_nwmain.c", line 31: warning: empty translation unit
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
> > -I/usr/apache/include -I../jk
> > > -I/uc
> > > "jk_sockbuf.c", line 227: syntax error before or at: /
> > > "jk_sockbuf.c", line 233: cannot recover from previous errors
> > > cc: acomp failed for jk_sockbuf.c
> > > apxs:Break: Command failed with rc=131072
> > > #
> > >
> > > my build file is striaght from the tomcat documentation on the jakarta
> > > pages and is as follows:
> > >
> > > /usr/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk
-I/usr/java/include
> > > -I/usr/j
> > > ava/include/solaris -c *.c ../jk/*.c
> >