gd errors after rebuilding PHP

Bas v.d. Wiel bas at kompasmedia.nl
Wed Mar 17 13:50:13 UTC 2010


On Wed, 17 Mar 2010 16:23:39 +0300, Антон Клесс
<antoniok.spb at gmail.com> wrote:
> I have updated PHP from ports, now it is:
> 
> # uname -a
> FreeBSD host.net 6.2-RC1 FreeBSD 6.2-RC1 #4: Fri Mar  5 01:37:03 MSK
> 2010     root at host.net:/usr/obj/usr/src/sys/MYKERN  amd64
> 
> $ php -v
> PHP 5.2.12 with Suhosin-Patch 0.9.7 (cli) (built: Feb 21 2010 23:16:07)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
> 
<snip>

This is a known issue. There's a PR for this filed under number 144403.

A sort of workaround (which I find a bit nasty), is to start Apache like
this:

#env LD_PRELOAD=/usr/local/lib/libpng.so.5 /usr/local/etc/rc.d/apache22
restart

Hope this helps!

Bas



More information about the freebsd-questions mailing list