PHP gd issues

mediaslut von abfab m3diaslut at gmail.com
Thu Jul 23 09:11:40 UTC 2009


I had the same fatallibpngerror discovered yesterday.

It seems like libpng version 1.2.37 was buggy. And version 1.2.38 is
not available yet on FreeBSD Ports (although, I don't know if this bug
is fixed in the newest version?).
I have downgraded to version 1.2.35 and the error has gone away.

Here's just a little how-to, if anyone else needs help with downgrading:

If you haven't portdowngrade installed, install it first:
 cd /usr/ports/ports-mgmt/portdowngrade
 make install clean

After that, use portdowngrade to downgrade libpng:

 portdowngrade graphics/png$
-s:pserver:anoncvs at anoncvs.tw.FreeBSD.org:/home/ncvs


On Step 4, choose the following version (press <enter> first in order
to be able to insert the number)

 3  2009/02/24 04:01:48  1.2.35       Upgrade to 1.2.35
 <Enter>
 Enter version number to change port to (0: exit): 3

The port will now be downgraded to version 1.2.35. Now you need to
downgrade the Software:

 portsdb -Uu             # (that one takes very long!)
 portupgrade -f png

Now Reinstall everything that depends on libpng:

 portupgrade -fr png

After everything is reinstalled, restart Apache

 apachectl restart

done! :o)


More information about the freebsd-ports mailing list