From owner-freebsd-ports Thu Oct 25 10:50:11 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EAFEC37B405 for ; Thu, 25 Oct 2001 10:50:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9PHo0465493; Thu, 25 Oct 2001 10:50:00 -0700 (PDT) (envelope-from gnats) Received: from cathbad.happygiraffe.net (myrddin.demon.co.uk [158.152.54.180]) by hub.freebsd.org (Postfix) with ESMTP id E679437B414 for ; Thu, 25 Oct 2001 10:48:13 -0700 (PDT) Received: by cathbad.happygiraffe.net (Postfix, from userid 1001) id EE3F65E14; Thu, 25 Oct 2001 00:05:15 +0100 (BST) Message-Id: <20011024230515.EE3F65E14@cathbad.happygiraffe.net> Date: Thu, 25 Oct 2001 00:05:15 +0100 (BST) From: Dominic Mitchell Reply-To: Dominic Mitchell To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/31494: mod_perl fixes for apache13 port Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31494 >Category: ports >Synopsis: mod_perl fixes for apache13 port >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 25 10:50:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Dominic Mitchell >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD cathbad.happygiraffe.net 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Mon Oct 22 13:27:15 BST 2001 root@cathbad.happygiraffe.net:/usr/obj/usr/src/sys/CATHBAD i386 >Description: At present, the apache13 port has 2 incompatibilities with the mod_perl port: 1. mod_perl under -CURRENT complains that Perl was built with largefile support, but apache wasn't. Part of this patch provides LARGEFILES option for compiling apache. 2. It includes expat-lite, which prevents XML::Parser from being used inside mod_perl. This is a real pain in the bum. :-) Apache 1.3.22 specifically included support for using a system copy of expat in place of its own builtin version, in order to reduce incompatibilities. This patch allows apache to look in /usr/local/include and /usr/local/lib to find expat. Possibly, it should be another option, WITH_EXPAT, which also uses a LIB_DEPEND? I'm not sure. >How-To-Repeat: 1. Install mod_perl on a -CURRENT machine and see the warning. 2. Inside mod_perl, write a script that uses XML::Parser and watch the core dumps fly! >Fix: Here's my patch. It may be a little simplistic, however... --- Makefile Wed Oct 24 23:56:53 2001 +++ Makefile.largefiles Wed Oct 24 13:52:27 2001 @@ -59,7 +59,15 @@ CFLAGS+= -O6 -fomit-frame-pointer .endif -CONFIGURE_ENV= OPTIM='${OPTIM}' +.if defined(LARGEFILES) +OPTIM+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +.endif + +# For expat. +CFLAGS+= -I${LOCALBASE}/include +LIBS+= -L${LOCALBASE}/libs + +CONFIGURE_ENV= OPTIM='${OPTIM}' LIBS='${LIBS}' MAN1= dbmmanage.1 htdigest.1 htpasswd.1 MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message