|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-10-25 06:48 UTC] maddog2k at maddog2k dot nl
At least PHP 4.2.2 and above (including php4-STABLE-200210250300) fail to build with GD 2.0.4 Making all in gd make[2]: Entering directory `/opt/install/APACHE/apache/php4-STABLE-200210250300/ext/gd' make[3]: Entering directory `/opt/install/APACHE/apache/php4-STABLE-200210250300/ext/gd' gcc -I. -I/opt/install/APACHE/apache/php4-STABLE-200210250300/ext/gd -I/opt/install/APACHE/apache/php4-STABLE-200210250300/main -I/opt/install/APACHE/apache/php4-STABLE-200210250300 -I/opt/install/APACHE/apache/apache_1.3.27/src/include -I/opt/install/APACHE/apache/apache_1.3.27/src/os/unix -I/opt/install/APACHE/apache/php4-STABLE-200210250300/Zend -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include/freetype2/freetype -I/opt/install/APACHE/apache/imap/c-client -I/usr/local/mysql/include/mysql -I/opt/install/APACHE/apache/swf/dist/include -I/opt/install/APACHE/apache/php4-STABLE-200210250300/ext/xml/expat -I/opt/install/APACHE/apache/php4-STABLE-200210250300/TSRM -g -O2 -c gd.c && touch gd.lo gd_ctx.c: In function `_php_image_output_ctx': In file included from gd.c:83: 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 `/opt/install/APACHE/apache/php4-STABLE-200210250300/ext/gd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/install/APACHE/apache/php4-STABLE-200210250300/ext/gd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/install/APACHE/apache/php4-STABLE-200210250300/ext' make: *** [all-recursive] Error 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
Folks, just got this with PHP4.22 and GD2.0.7 (the most recent versions as of 11/21/2002). It seems to be an issue with an updated gd call that the PHP doesn't yet know about. To diagnose, I had to look back at /usr/local/include/gd_io.h You will notice that the only free call is now: void (*gd_free)(struct gdIOCtx*); To fix, modify each ->free call in the 5 error lines to ->gd_free. So for instance, line gd_ctx.c:70 will now read: ctx->gd_free = _php_image_output_ctxfree; I recompiled, and voila, everything works again. Oh, btw, gd.c and gd_ctx.c are in yourphpinstalldir/ext/gd