|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-10-27 11:50 UTC] atz at atz dot msk dot ru
I have downloaded last PHP version: php4-STABLE-200210270600
My configure line is:
./configure
--cache-file=/dev/null
--enable-sockets
--enable-gd-native-ttf
--with-gd=/usr/local
--with-jpeg-dir=/usr/local
--with-png-dir=/usr/local
--with-pgsql=/usr/local/pgsql
--with-freetype-dir=/usr/local
--with-t1lib=/usr/local
--with-zlib=/usr/local
--without-mysql
--with-apache=../apache_1.3.27
--enable-track-vars
configure has passed successfully
When I try to "make", I have received the following error string
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'
*** Error code 1
Stop in /usr/distfiles/php4-STABLE-200210270600/ext/gd.
*** Error code 1
Stop in /usr/distfiles/php4-STABLE-200210270600/ext/gd.
*** Error code 1
Stop in /usr/distfiles/php4-STABLE-200210270600/ext.
*** Error code 1
Stop in /usr/distfiles/php4-STABLE-200210270600.
My version og GD is latest - 2.04 !!! (pay your attention)
In gd.c in header "This source file is subject to version 2.02 of the PHP ..."
You know about latest release GD 2.04?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 28 16:00:01 2025 UTC |
here is patch for the current CVS PHP: Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.1 php4/ext/gd/gd.c:1.2 --- php4/ext/gd/gd.c:1.1 Sun Oct 27 19:27:59 2002 +++ php4/ext/gd/gd.c Sun Oct 27 19:36:43 2002 @@ -1036,10 +1036,10 @@ io_ctx = gdNewDynamicCtx (8, data); if (io_ctx) { if (getmbi((int(*)(void*))gdGetC, io_ctx) == 0 && skipheader((int(*)(void*))gdGetC, io_ctx) == 0 ) { - io_ctx->free(io_ctx); + io_ctx->gd_free(io_ctx); return PHP_GDIMG_TYPE_WBM; } else - io_ctx->free(io_ctx); + io_ctx->gd_free(io_ctx); } } #endif @@ -1216,7 +1216,7 @@ } else { im = (*ioctx_func_p)(io_ctx); } - io_ctx->free(io_ctx); + io_ctx->gd_free(io_ctx); #endif } else { Index: php4/ext/gd/gd_ctx.c diff -u php4/ext/gd/gd_ctx.c:1.1 php4/ext/gd/gd_ctx.c:1.2 --- php4/ext/gd/gd_ctx.c:1.1 Sun Oct 27 19:27:59 2002 +++ php4/ext/gd/gd_ctx.c Sun Oct 27 19:36:43 2002 @@ -67,7 +67,7 @@ ctx = emalloc(sizeof(gdIOCtx)); ctx->putC = _php_image_output_putc; ctx->putBuf = _php_image_output_putbuf; - ctx->free = _php_image_output_ctxfree; + ctx->gd_free = _php_image_output_ctxfree; #if APACHE && defined(CHARSET_EBCDIC) /* XXX this is unlikely to work any more thies@thieso.net */ @@ -95,7 +95,7 @@ break; } - ctx->free(ctx); + ctx->gd_free(ctx); if(fp) { fflush(fp); Please Added this to CVS... (I patch this on my CVS...)