You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tom Samplonius <to...@sdf.com> on 2000/08/08 06:10:38 UTC

Re: Problems building mod_jk.so on Solaris 7

On Tue, 11 Jul 2000, Jonathan Eric Miller wrote:

> I'm attempting to build mod_jk (using Jakarta Tomcat 3.2b2) following the
> instructions that are located in TOMCAT_HOME/doc/mod_jk-howto.html.
> 
> When I run the following command, which is the command listed in the
> instructions, I get the following errors.

  If by "instructions" you mean mod_jk-howto.html, I believe the apxs
command listed is wrong.  The "-I" param is in the wrong place.  This
command makes more sense:

apxs -c -o mod_jk.so -I ../jk/ *.c

...
> For some reason it isn't finding the ../jk directory, so, I copied the
> contents of that the directory over and then I get the following error.

  I had the same problem.  The above apxs command gets past that problem.

> ~/jakarta-tomcat/src/native/apache1.3 (shark) %
> /usr/local/apache/bin/apxs -o mod_jk.so -c *.c ../jk/ *.c -I ../jk/
> gcc -DSOLARIS2=270 -DMOD_SSL=206102 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -
> fPIC -DSHARED_MODULE -I/usr/local/apache/include -c jk_
> ajp12_worker.c
> In file included from jk_service.h:70,
> from jk_ajp12_worker.h:66,
> from jk_ajp12_worker.c:63:
> jk_pool.h:112: parse error before `jk_pool_atom_t'
> apxs:Break: Command failed with rc=65536
> ~/jakarta-tomcat/src/native/apache1.3 (shark) %
> 
> Any idea what could be wrong? I'm running Solaris 2.7 on SPARC and I'm using
> Apache 1.3.12. Has anyone else got this to work?

  My build stopped at the same place with the same error.  I'm using
FreeBSD 4.1 though.  I suspect that mod_jk code as included with 3.2beta
is hosed.


Tom


Re: Problems building mod_jk.so on Solaris 7

Posted by Tom Samplonius <to...@sdf.com>.


On Tue, 8 Aug 2000, Tim Kientzle wrote:

> Tom Samplonius wrote:
> > > jk_pool.h:112: parse error before `jk_pool_atom_t'
> > > apxs:Break: Command failed with rc=65536
> > > ~/jakarta-tomcat/src/native/apache1.3 (shark) %
> > 
> >   My build stopped at the same place with the same error.  I'm using
> > FreeBSD 4.1 though.  I suspect that mod_jk code as included with 3.2beta
> > is hosed.
> 
> Hmm...  Let's just call it "immature".  ;-)
> 
> There are special-case #ifdefs for a couple of specific systems.
> FreeBSD is not one of them, and the default seems to be Windows.
> Needless to say, the Windows definitions don't work on FreeBSD.
> I was able to compile it on FreeBSD by making some ugly ad-hoc
> source changes, but I threw all that away because it didn't
> address any of the problems I was having with mod_jserv.
> 
> The mod_jk source needs to be scrubbed a bit before it's
> ready for prime time.
> 
> 				- Tim Kientzle

  I like the new mod_jk directives for httpd.conf.  Much cleaner that the
old APJServMount directive.

  I have it on good authority the mod_jk builds for Solaris by adding a
-DSOLARIS so there must be decent Unix support for it.

  Any idea if there is a better source of resource on mod_jk... perhaps
the developer's list?

Tom


Re: Problems building mod_jk.so on Solaris 7

Posted by Tim Kientzle <ki...@acm.org>.
Tom Samplonius wrote:
> > jk_pool.h:112: parse error before `jk_pool_atom_t'
> > apxs:Break: Command failed with rc=65536
> > ~/jakarta-tomcat/src/native/apache1.3 (shark) %
> 
>   My build stopped at the same place with the same error.  I'm using
> FreeBSD 4.1 though.  I suspect that mod_jk code as included with 3.2beta
> is hosed.

Hmm...  Let's just call it "immature".  ;-)

There are special-case #ifdefs for a couple of specific systems.
FreeBSD is not one of them, and the default seems to be Windows.
Needless to say, the Windows definitions don't work on FreeBSD.
I was able to compile it on FreeBSD by making some ugly ad-hoc
source changes, but I threw all that away because it didn't
address any of the problems I was having with mod_jserv.

The mod_jk source needs to be scrubbed a bit before it's
ready for prime time.

				- Tim Kientzle