Please help me,

I have compiled GD 2.0.4 and libs PNG, JPEG, FreeType, z .They all compiled fine.
WHen I ran ./configure with PHP I did this:

NOTE: /usr/src/gd-2.0.4 IS where gd is compiled.

/configure --with-zlib --enable-calendar --with-gd=/usr/src/gd-2.0.4 
--with-freetype-dir=/usr/local/lib --enable-gd-native-tt --enable-gd-imgstrttf 
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/local/lib --with-mysql 
--with-apxs=/apache1326/bin/apxs

When I run make I get the following error. What am I doing wrong? I am using GD 1.3 at 
the moment and it works fine. I am using Mandrake 8.1, Apache 1.3.26, PHP 4.2.3.

Making all in gd
make[2]: Entering directory `/usr/src/php-4.2.3/ext/gd'
make[3]: Entering directory `/usr/src/php-4.2.3/ext/gd'
/bin/sh /usr/src/php-4.2.3/libtool --silent --mode=compile gcc  -I. 
-I/usr/src/php-4.2.3/ext/gd -I/usr/src/php-4.2.3/main -I/usr/src/php-4.2.3 
-I/apache1326/include -I/usr/src/php-4.2.3/Zend 
-I/usr/local/include/freetype2/freetype -I/usr/src/gd-2.0.4/ 
-I/usr/src/php-4.2.3/ext/mysql/libmysql -I/usr/src/php-4.2.3/ext/xml/expat  -DLINUX=22 
-DUSE_HSREGEX -DUSE_EXPAT -I/usr/src/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 `/usr/src/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.2.3/ext'
make: *** [all-recursive] Error 1


Reply via email to