PHP: Can't get support for png in GD

FreeBSD-4.9, PHP 4.3.4
Now i really have been trying everytying. Compiled gd, libpng, libjpeg from ports, tryied compiling them myself, and recompiled php several times with different changes.
phpinfo() still gives me:
gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
WBMP Support enabled

My configure is:
'./configure' '--enable-force-cgi-redirect' '--enable-cgi' '--with-curl' '--with-curl-dir=/usr/local/lib' '--with-gd=/usr/local' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-kerberos' '--with-mcrypt' '--with-mysql' '--with-pear' '--with-png-dir=/usr/local' '--with-xml' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-track-vars' '--with-mssql=/usr/local/' '--with-iconv' '--enable-mbstring' '--with-openssl=/usr/' '--with-dom-xslt' '--with-dom-exslt' '--with-dom' '--with-imap=/usr/local' '--with-imap-ssl=/usr' '--with-imagick' '--with-t1lib-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/include/freetype2--enable-gd-native-ttf' '--enable-gd-imgstrttf'
For example, imagecreatefrompng doesnt work:
Fatal error: Call to undefined function: imagecreatefrompng()

 

 

 

 

Top