From owner-freebsd-apache@FreeBSD.ORG Thu Aug 11 13:58:26 2005 Return-Path: X-Original-To: apache@freebsd.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A866216A41F; Thu, 11 Aug 2005 13:58:26 +0000 (GMT) (envelope-from martin@gneto.com) Received: from av9-1-sn2.hy.skanova.net (av9-1-sn2.hy.skanova.net [81.228.8.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01CB643D46; Thu, 11 Aug 2005 13:58:25 +0000 (GMT) (envelope-from martin@gneto.com) Received: by av9-1-sn2.hy.skanova.net (Postfix, from userid 502) id D9F5D3804F; Thu, 11 Aug 2005 15:58:23 +0200 (CEST) Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av9-1-sn2.hy.skanova.net (Postfix) with ESMTP id B91CA37E7B; Thu, 11 Aug 2005 15:58:23 +0200 (CEST) Received: from [192.168.2.130] (h99n2fls34o985.telia.com [213.66.202.99]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 9235137E50; Thu, 11 Aug 2005 15:58:23 +0200 (CEST) Message-ID: <42FB597D.1020405@gneto.com> Date: Thu, 11 Aug 2005 15:58:21 +0200 From: Martin Nilsson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: sv, en-us, en MIME-Version: 1.0 To: "Andrey A. Chernov" Content-Type: multipart/mixed; boundary="------------080509080909020104050701" Cc: apache@freebsd.org Subject: www/apache13-modperl does not work with external expat X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2005 13:58:26 -0000 This is a multi-part message in MIME format. --------------080509080909020104050701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm unable to make this port work with external expat. I have the following in make.conf # Apache 1.3 + mod_perl WITHOUT_APACHE_EXPAT=no WITH_APACHE_INTERNAL_EXPAT=no This is what I want: www# ldd /usr/local/sbin/httpd-1.3.33+mod_perl-1.29 /usr/local/sbin/httpd-1.3.33+mod_perl-1.29: libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x280bf000) libperl.so => /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so (0x280d8000) libm.so.2 => /usr/lib/libm.so.2 (0x281d1000) libutil.so.3 => /usr/lib/libutil.so.3 (0x281ed000) libexpat.so.5 => /usr/local/lib/libexpat.so.5 (0x281f6000) libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28214000) Without the attached patch I get this: www# ldd /usr/local/sbin/httpd /usr/local/sbin/httpd: libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x280d2000) libperl.so => /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so (0x280eb000) libm.so.2 => /usr/lib/libm.so.2 (0x281e4000) libutil.so.3 => /usr/lib/libutil.so.3 (0x28200000) libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28209000) This breaks SOAP::Lite which includes the sytem expat. The attached patch makes this port work the same way as www/apache13 Thanks in advance for fixing this! /Martin --------------080509080909020104050701 Content-Type: text/plain; name="expat_working.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="expat_working.diff" --- Makefile.orig Tue May 17 17:22:12 2005 +++ Makefile Tue May 17 17:22:24 2005 @@ -48,10 +48,12 @@ WRKSRC_MODPERL= ${WRKDIR}/mod_perl-${VERSION_MODPERL} .if defined(WITHOUT_APACHE_EXPAT) && ${WITHOUT_APACHE_EXPAT} == yes -EXPAT_CONF+= --disable-rule=EXPAT +EXPAT_CONF+= --disable-rule=EXPAT .else -LIB_DEPENDS+= expat.5:${PORTSDIR}/textproc/expat2 -EXPAT_CONF+= --enable-rule=EXPAT +.if !defined(WITH_APACHE_INTERNAL_EXPAT) || ${WITH_APACHE_INTERNAL_EXPAT} != yes +LIB_DEPENDS+= expat.5:${PORTSDIR}/textproc/expat2 +.endif +EXPAT_CONF+= --enable-rule=EXPAT .endif .if defined(WITH_APACHE_SUEXEC) && ${WITH_APACHE_SUEXEC} == yes @@ -124,11 +126,14 @@ 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}' + +.if (!defined(WITHOUT_APACHE_EXPAT) || ${WITHOUT_APACHE_EXPAT} != yes) && \ + (!defined(WITH_APACHE_INTERNAL_EXPAT) || ${WITH_APACHE_INTERNAL_EXPAT} != yes) +CONFIGURE_ENV+= \ + INCLUDES=-I${LOCALBASE}/include \ + LDFLAGS=-L${LOCALBASE}/lib +.endif MAN1= dbmmanage.1 htdigest.1 htpasswd.1 --------------080509080909020104050701--