Date: Thu, 25 Oct 2001 00:05:15 +0100 (BST) From: Dominic Mitchell <dom@happygiraffe.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/31494: mod_perl fixes for apache13 port Message-ID: <20011024230515.EE3F65E14@cathbad.happygiraffe.net>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011024230515.EE3F65E14>