From owner-freebsd-questions@FreeBSD.ORG Tue Aug 1 12:34:15 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC40916A4DA for ; Tue, 1 Aug 2006 12:34:15 +0000 (UTC) (envelope-from frank@altpeter.de) Received: from mx1.corpex-net.de (mx1.corpex-net.de [62.67.202.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EC4943D45 for ; Tue, 1 Aug 2006 12:34:15 +0000 (GMT) (envelope-from frank@altpeter.de) Received: from [213.203.247.248] (helo=pegasus.dyndns.info) by mx1.corpex-net.de with asmtp (Exim 4.24; FreeBSD) id 1G7tRv-0008S6-BY for freebsd-questions@freebsd.org; Tue, 01 Aug 2006 14:34:15 +0200 Received: by pegasus.dyndns.info (sSMTP sendmail emulation); Tue, 1 Aug 2006 14:34:13 +0200 Date: Tue, 1 Aug 2006 14:34:13 +0200 From: Frank Altpeter To: freebsd-questions@freebsd.org Message-ID: <20060801123412.GM1069@corpex.de> Mail-Followup-To: Frank Altpeter , freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.11 Subject: static compilation of php4-zlib X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2006 12:34:15 -0000 [please include me in replies since i'm not (yet) subscribed] Hi there, I just hit a little problem with the php4 port archivers/php4-zlib. For a customer, i've set up a machine with apache and php4, which includes php4-zlib (via the metaport php4-extensions). Everything was running fine, until the customer uploaded compressed SWF files (and he stated that he doesn't have any way to get away from them, so uncompressing is not an option). So, i now get the expected error message: getimagesize(): The image is a compressed SWF file, but you do not have a static version of the zlib extension enabled. While trying to get php4-zlib to get statically linked, i failed so far. I tried to add '--enable-static' and '--disable-shared' to the lang/php4 Makefile but configure still tells me to enable shared linking. Even $search_engine didn't get me any good advise other than "Agree, compiling *all* extensions as shared is stupid, please address to the FreeBSD port maintainer." Could someone provide me with some hint how to get a static version of the zlib extension? Besides that: why does a compressed SWF file require a static version of zlib? Tìoraidh an-dràsda, Frank Altpeter -- *** FA-RIPE *** http://blog.foxalpha.de/ *** SIG at 11 ***