I had the same with 2.07 and 4.2.3 with five occurances of 'structure has no member in free': __________________________________________ Making all in gd make[2]: Entering directory `/tmp/php-4.2.3/ext/gd' make[3]: Entering directory `/tmp/php-4.2.3/ext/gd' /bin/sh /tmp/php-4.2.3/libtool --silent --mode=compile gcc -I. -I/tmp/php-4.2.3/ext/gd -I/tmp/php-4.2.3/main -I/tmp/php-4.2.3 -I/u sr/include/apache -I/tmp/php-4.2.3/Zend -I/usr/local/include -I/usr/local/in clude/libxml2 -I/usr/include/freetype -I/usr/imap-2002a/c-client -I/usr/incl ude/mcal -I/usr/include/mysql -I/usr/include/ucd-snmp -I/usr/lib/libswf/incl ude -I/tmp/php-4.2.3/ext/xml/expat -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OF FSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -I/tmp/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 `/tmp/php-4.2.3/ext/gd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/php-4.2.3/ext/gd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/php-4.2.3/ext' make: *** [all-recursive] Error 1 ___________________________________________
In /path/to/src/ext/gd/gd_ctx.c and /path/to/src/ext/gd/gd.c I changed the five occurences of 'ctx->free' to 'ctx->gd_free'. After this the make ran through. I think this is a known bug, at least to some people heavily involved with GD. I don't know how this fix affects the functionality of GD within PHP, but at least the install will work... BV "Cj" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 006a01c2a4bd$ecb982b0$[EMAIL PROTECTED]">news:006a01c2a4bd$ecb982b0$[EMAIL PROTECTED]... > G'day All > I am trying to compile php with gdlib+gif support, > I am using gd 2.0.7 which as already been patched to add back in the gif > stuff. > When I run > ./configure --with-jpeg-dir=/usr/local/src/jpeg-6b --with-png-dir=/usr/local > /src/libpng-1.2.4 --with-zli > b --with-gd=/usr/local/src/gd-2.0.7gif --with-apache=../apache_1.3.26 --with > -pgsql=/usr/local/pgsql --wi > th-mysql=/usr/local/mysql --with-iodbc-dir=/usr/local/src/odbcsdk --enable-d > ebug=no --enable-track-vars > --enable-cli > > It runs through fine, no errors > > but when I run make I get the following message. > > gcc -I. -I/usr/local/src/php-4.2.2/ext/gd -I/usr/local/src/php-4.2.2/main -I > /usr/local/src/php-4.2.2 -I/usr/local/src/apache_1.3.26/src/include -I/usr/l > ocal/src/apache_1.3.26/src/os/unix -I/usr/local/src/php-4.2.2/Zend -I/usr/lo > cal/src/gd-2.0.7gif/ -I/usr/local/mysql/include -I/usr/local/pgsql/include - > I/usr/local/src/php-4.2.2/ext/xml/expat -I/usr/local/src/php-4.2.2/TSRM -g > -O2 -c gd.c && touch gd.lo > 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:1208: structure has no member named `free' > make[3]: *** [gd.lo] Error 1 > make[3]: Leaving directory `/usr/local/src/php-4.2.2/ext/gd' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/usr/local/src/php-4.2.2/ext/gd' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/src/php-4.2.2/ext' > make: *** [all-recursive] Error 1 > > I have tried php 4.2.2 and 4.2.3 I have also tried with clean copies of the > source code, so there isn't any thing left over from from previous attemps. > > any help would be much apreciated. > > > Thanks > CJ > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php