Click to See Complete Forum and Search --> : PHP 4.2.3 + GD 2.0.4 + FreeType 2.1.2


korksoft
11-02-2002, 10:01 AM
We're trying to setup PHP4.2.3 with GD 2.0.4 and FreeType 2.1.2, we contineously get the following error (see below).

The configure string is as follows:

./configure --with-fdftk --with-gettext --with-mysql --with-xml --enable-ftp --enable-sockets --enable-pclnt --with-apxs=/home/httpd/bin/apxs --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-freetype-dir=/usr/local --enable-gd-native-ttf --enable-gd-imgstrttf

We are enabling several other extensions at the same time as well, which, shouldn't effect the compilation.

While compiling, we get the following error. I reviewed the source code (briefly) and it seems to be OK. Following suggestions that we found elsewhere, we removed the previous version of GD 1.8.4 which was already installed on the server.

Any ideas? We've been working on this for DAYS now!

make[3]: Entering directory `/root/kits/php-4.2.3/ext/gd'
/bin/sh /root/kits/php-4.2.3/libtool --silent --mode=compile gcc -I. -I/root/kits/php-4.2.3/ext/gd -I/root/kits/php-4.2.3/main -I/root/kits/php-4.2.3 -I/home/httpd/include -I/root/kits/php-4.2.3/Zend -I/usr/local/include/freetype2/freetype -I/root/kits/php-4.2.3/ext/mysql/libmysql -I/root/kits/php-4.2.3/ext/xml/expat -DLINUX=22 -DMOD_SSL=208108 -DUSE_HSREGEX -DEAPI -I/root/kits/php-4.2.3/TSRM -g -O2 -prefer-pic -c gd.c
In file included from gd.c:83:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1209: structure has no member named `free'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/root/kits/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/kits/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/kits/php-4.2.3/ext'
make: *** [all-recursive] Error 1

mattwade
11-03-2002, 11:06 PM
Recently the GD folks have been making some changes to GD.....i would recommend using GD 2.0.1 rather than 2.0.4....if you really want to use 2.0.4, here is a message that was posted to the php.dev mailing list that will show you how to get it to work:

http://news.php.net/article.php?group=php.dev&article=90126