Date: Thu, 22 Jun 2000 16:01:18 +0100 (BST) From: Jan Grant <Jan.Grant@bristol.ac.uk> To: Joe Shevland <shevlandj@kpi.com.au> Cc: FreeBSD Mailing List <freebsd-java@freebsd.org> Subject: RE: mod_jserv and Tomcat Message-ID: <Pine.GHP.4.21.0006221553330.12683-100000@mail.ilrt.bris.ac.uk> In-Reply-To: <MJEMLFCFPOPOFFFLIIDGEECHCAAA.shevlandj@kpi.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 22 Jun 2000, Joe Shevland wrote: > I was just starting to look at this last night. > > When I attempted to compile mod_jserv from the Tomcat 3.1 source distribution, I received an error because I haven't used DSO support in Apache. Is there: > > i) a precompiled mod_jserv binary for 3.4/Apache 1.3.12 anywhere? > ii) another way to build this in the absense of DSO/apxs? Yes, this is what I've done. it was a bit hacky, but basically: (from memory and examining the entrails of my apache build directory) - untar the jserv stuff (from the tomcat distribution) into apache/src/modules/jserv. - config apache with "--activate-module=src/modules/jserv/libjserv.a" - run make (this'll fail; the makefile supplied doesn't know how to build libjserv.a) - cd into the apache/src/modules/jserv directory and run gcc directly on every .c file: gcc -c -I../../os/unix -I../../include \ -funsigned-char -DUSE_EXPAT \ -I../../lib/expat-lite -DNO_DL_NEEDED \ `../../apaci` *.c ..should do it. Then (I think, check the man page for ar for this) ar rc libjserv.a *.o ranlib libjserv.a cd back up and rerun the top-level make; everything should go from that point. It's ugly, but mod_jserv's makefile isn't set up to handle static compilation; this method is hacky but works. Drop me a line if you have any problems with this, I'll build apache again from source and give you a complete list of instructions. jan -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk Leverage that synergy! Ooh yeah, looking good! Now stretch - and relax. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GHP.4.21.0006221553330.12683-100000>