From owner-freebsd-java Thu Jun 22 8: 1:29 2000 Delivered-To: freebsd-java@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 06F4D37BCB2 for ; Thu, 22 Jun 2000 08:01:22 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Thu, 22 Jun 2000 16:01:19 +0100 Received: from localhost (cmjg@localhost) by mail.ilrt.bris.ac.uk (8.8.7/8.8.8) with ESMTP id QAA14239; Thu, 22 Jun 2000 16:01:18 +0100 (BST) Date: Thu, 22 Jun 2000 16:01:18 +0100 (BST) From: Jan Grant To: Joe Shevland Cc: FreeBSD Mailing List Subject: RE: mod_jserv and Tomcat In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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