From owner-freebsd-ports Sun Jan 5 9:20: 4 2003 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDA1A37B401 for ; Sun, 5 Jan 2003 09:20:01 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9F3A43EA9 for ; Sun, 5 Jan 2003 09:20:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h05HK0NS088349 for ; Sun, 5 Jan 2003 09:20:00 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h05HK0oO088348; Sun, 5 Jan 2003 09:20:00 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67DD937B401 for ; Sun, 5 Jan 2003 09:11:10 -0800 (PST) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 029C843EDC for ; Sun, 5 Jan 2003 09:11:10 -0800 (PST) (envelope-from dirkx@skutsje.san.webweaving.org) Received: from skutsje.san.webweaving.org (localhost [127.0.0.1]) by skutsje.san.webweaving.org (8.12.6/8.12.6) with ESMTP id h05H6Vdu054600 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 5 Jan 2003 09:06:31 -0800 (PST) (envelope-from dirkx@skutsje.san.webweaving.org) Received: (from root@localhost) by skutsje.san.webweaving.org (8.12.6/8.12.6/Submit) id h05H6VrD054599; Sun, 5 Jan 2003 09:06:31 -0800 (PST) (envelope-from dirkx) Message-Id: <200301051706.h05H6VrD054599@skutsje.san.webweaving.org> Date: Sun, 5 Jan 2003 09:06:31 -0800 (PST) From: Dirk-Willem van Gulik Reply-To: Dirk-Willem van Gulik To: FreeBSD-gnats-submit@FreeBSD.org Cc: Dirk-Willem van Gulik X-Send-Pr-Version: 3.113 Subject: ports/46786: expat and expat light problems aroudn apache 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: 46786 >Category: ports >Synopsis: expat and expat light problems aroudn apache >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jan 05 09:20:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: Dirk-Willem van Gulik >Release: FreeBSD 4.6-STABLE-20020831 i386 >Organization: WebWeaving >Environment: System: FreeBSD skutsje.san.webweaving.org 4.6-STABLE-20020831 FreeBSD 4.6-STABLE-20020831 #1: Tue Sep 3 13:24:42 PDT 2002 root@skutsje.san.webweaving.org:/usr/src/sys/compile/SKUTSJE i386 >Description: Apache is compiled with its default expat-lite. Other apache modules such ad mod_dav use the expat-lite of apache. However XML parsers in PHP, python or the perl one of mod_perl XML::Parser will need to use the real expat; and once linked into the binary will cause a symbol clash. Generally few module actually use the apache build in expat; with mod_dav as the known exception. But all modules will also work with the real expat. >How-To-Repeat: cd /usr/ports (cd www/apache13; make all install) And then add things using xml such as php, mod_perl/XML::Parser from ports. Any will do. >Fix: Solution 1 Let all apache compiles have the line --disable-rule=EXPAT added to their CONFIGURE args. add expat as a dependency for the *ONLY* user it has; mod_dav with --enable=expat=/usr/local on ports/www/mod_dav. All other dependencies already asume expat. This is a slightly larger fix; and has the risk that some other port module also relies on expat (which we would need to add). But it reduces footprint and makes nice use of the DSO and shared lib. Which is good. Solution 2 Set the rule in apache to be the system expat and add a dependency to apache ports for exapt. This is a smaller change; but means that apaches binary is slightly more bloated. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message