From freddy@pegasus.dyndns.info  Thu Aug  3 09:19:28 2006
Return-Path: <freddy@pegasus.dyndns.info>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A978C16A4DD
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  3 Aug 2006 09:19:28 +0000 (UTC)
	(envelope-from freddy@pegasus.dyndns.info)
Received: from pegasus.dyndns.info (pegasus.corpex.de [213.203.247.248])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4047743D46
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  3 Aug 2006 09:19:28 +0000 (GMT)
	(envelope-from freddy@pegasus.dyndns.info)
Received: from freddy by pegasus.dyndns.info with local (Exim 4.63 (FreeBSD))
	(envelope-from <freddy@pegasus.dyndns.info>)
	id 1G8ZMT-000F5K-5L
	for FreeBSD-gnats-submit@freebsd.org; Thu, 03 Aug 2006 11:19:25 +0200
Message-Id: <E1G8ZMT-000F5K-5L@pegasus.dyndns.info>
Date: Thu, 03 Aug 2006 11:19:25 +0200
From: Frank Altpeter <frank@altpeter.de>
Sender: Frank Altpeter <freddy@pegasus.dyndns.info>
Reply-To: Frank Altpeter <frank@altpeter.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: unable to build static compiled version of php4-zlib
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         101309
>Category:       ports
>Synopsis:       unable to build static compiled version of php4-zlib
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 03 09:20:13 GMT 2006
>Closed-Date:    Mon Sep 04 08:07:47 GMT 2006
>Last-Modified:  Mon Sep 04 08:07:47 GMT 2006
>Originator:     Frank Altpeter
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD pegasus.dyndns.info 6.1-STABLE FreeBSD 6.1-STABLE #3: Wed Jul 5 15:16:31 CEST 2006 root@pegasus.dyndns.info:/usr/obj/usr/src/sys/kernconf.pegasus i386


	
>Description:

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 them 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 anyway?


>How-To-Repeat:
	portinstall archivers/php4-zlib
	put a compressed SWF file into your htdocs and do an
	getimagesize() on it.

>Fix:

	Provide option to let the user decide between statically linked or dynamically linked version of the php4 extension



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Aug 3 09:58:38 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101309 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Mon Sep 4 08:07:23 UTC 2006 
State-Changed-Why:  
It's now possible to build php4 with static zlib ext. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101309 
>Unformatted:
