PDA

View Full Version : PHP Compile Problems



BrandonTheG
November 28th, 2007, 20:53
ext/gd/gd.o: In function `zm_deactivate_gd':
/root/installs/php-4.4.7/ext/gd/gd.c:403: undefined reference to `gdFontCacheShutdown'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

I get that at the end of a PHP-Compile.

CentOS 5 / DirectAdmin / Apache 2.0.61!

My configure statement:


./configure --prefix=/php/php4 --with-config-file-path=/php/php4/lib --with-config-file-scan-dir=/php/php4/lib/php.ini.d --with-openssl=/usr --with-openssl-dir=/usr --with-zlib=/usr --with-bz2=/usr --with-curl=/usr --with-curlwrappers --enable-dba --enable-dbase --enable-exif --with-gd=/usr/local --with-freetype-dir=/usr --with-gettext=/usr --with-imap=/usr --with-imap-ssl=/usr --enable-mbstring=all --with-mcrypt=/usr --with-mhash=/usr --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/bin/mysql_config --enable-ftp --enable-gd-native-ttf --enable-force-cgi-redirect --with-pspell --with-sqlite=shared --with-ttf --with-xpm-dir=/usr --with-xsl=/usr --with-zlib --with-zlib-dir=/usr --enable-pdo=shared --with-pdo-sqlite=shared --with-pdo-mysql=shared --enable-sockets --enable-zip --enable-libxml --with-jpeg-dir=/usr --with-libxml-dir=/usr --with-kerberos

Starcraftmazter
November 29th, 2007, 07:06
Firstly, the PHP 4 line is obsolete and is no longer supported by the PHP Group. I would consider using it, to be a major liability.

As for the error, I feel that it might be a GD bug. What version of GD have you got installed?

BrandonTheG
November 29th, 2007, 11:45
php4 won't be default, it'll be secondary using (application/x-httpd-php4), nice to have as some people use it.

I have GD 2.0.35 installed, in case it is I am compiling GD 2.0.34 now to see if that works.

BrandonTheG
November 30th, 2007, 17:50
Hello,

Fixed it, needed the following dependency!

yum install libXfontcache libXfontcache-devel

Thanks!