#20059 [Com]: PHP fails to compile with the GD library
| From: | se at e-kazan dot ru | Date: | Thu, 24 Oct 2002 13:53:33 +0000 |
| Subject: | #20059 [Com]: PHP fails to compile with the GD library | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23192@lists.php.net to get a copy of this message | ||
ID: 20059
Comment by: se@e-kazan.ru
Reported By: stefan.pietsch@web.de
Status: Open
Bug Type: Compile Failure
Operating System: Redhat Linux
PHP Version: 4.3.0-pre1
New Comment:
Patch for PHP 4.3.0pre1 and GD-2.0.x:
[root@x gd]# diff gd.old.c gd.c
1036c1036
< io_ctx->free(io_ctx);
---
> io_ctx->gd_free(io_ctx);
1039c1039
< io_ctx->free(io_ctx);
---
> io_ctx->gd_free(io_ctx);
1216c1216
< io_ctx->free(io_ctx);
---
> io_ctx->gd_free(io_ctx);
[root@x gd]# diff gd_ctx.c gd_ctx.old.c
70c70
< ctx->gd_free = _php_image_output_ctxfree;
---
> ctx->free = _php_image_output_ctxfree;
98c98
< ctx->gd_free(ctx);
---
> ctx->free(ctx);
Previous Comments:
------------------------------------------------------------------------
[2002-10-24 08:20:36] stefan.pietsch@web.de
I used the following configure line:
./configure --prefix=/opt/php --with-apxs=/opt/apache/bin/apxs
--with-mysql=/opt/mysql --with-gd=/opt/gd --enable-gd-native-ttf
--with-freetype-dir=/opt/freetype --with-ming=/opt/ming
--with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr
GD 2.0.4 is installed under /opt/gd
The error message:
In file included from /home/stefan/php-4.3.0pre1/ext/gd/gd.c:90:
/home/stefan/php-4.3.0pre1/ext/gd/gd_ctx.c: In function
`_php_image_output_ctx':
/home/stefan/php-4.3.0pre1/ext/gd/gd_ctx.c:70: structure has no member
named `free'
/home/stefan/php-4.3.0pre1/ext/gd/gd_ctx.c:98: structure has no member
named `free'
/home/stefan/php-4.3.0pre1/ext/gd/gd.c: In function `_php_image_type':
/home/stefan/php-4.3.0pre1/ext/gd/gd.c:1036: structure has no member
named `free'
/home/stefan/php-4.3.0pre1/ext/gd/gd.c:1039: structure has no member
named `free'
/home/stefan/php-4.3.0pre1/ext/gd/gd.c: In function
`_php_image_create_from':
/home/stefan/php-4.3.0pre1/ext/gd/gd.c:1216: structure has no member
named `free'
PHP 4.2.3 and the latest snapshot(200210240300) also fail to compile.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20059&edit=1