#20059 [Com]: PHP fails to compile with the GD library
| From: | stefan dot pietsch at web dot de | Date: | Thu, 24 Oct 2002 19:34:30 +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-23233@lists.php.net to get a copy of this message | ||
ID: 20059
Comment by: stefan.pietsch@web.de
Reported By: stefan.pietsch@web.de
Status: Bogus
Bug Type: Compile Failure
Operating System: Redhat Linux
PHP Version: 4.3.0-pre1
New Comment:
The configure script fails with 4.3.0-pre1:
./configure --prefix=/opt/php --with-apxs=/opt/apache/bin/apxs
--with-mysql=/opt/mysql --with-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
creating cache ./config.cache
[...]
configure: error: Unable to find gd.h anywhere under /usr/local /usr
The latest snapshot seems to work.
Previous Comments:
------------------------------------------------------------------------
[2002-10-24 13:50:23] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Bogus for the same reason as #20069. PHP already comes bundled with a
modified version of GD, which is based on GD 2.0.2 with some additions
made by PHP developers. Until the syncronization between the bundled GD
& GD 2.0.4 occurs, please use the bundled GD to avoid problems.
------------------------------------------------------------------------
[2002-10-24 13:45:45] matt@rp6.net
This is the correct solution and it does solve the problem. I posted
the exact same solution.
However, this affects (most likely) every single version of PHP.
------------------------------------------------------------------------
[2002-10-24 10:06:28] iliaa@php.net
If you use the bundled GD do you still experience the compilation
problem?
------------------------------------------------------------------------
[2002-10-24 08:57:07] Evgeny Stepanischev <se@e-kazan.ru>
I think this patch must solve the problem.
------------------------------------------------------------------------
[2002-10-24 08:53:33] se@e-kazan.ru
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);
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20059
--
Edit this bug report at http://bugs.php.net/?id=20059&edit=1