ID:               15697
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         GD related
 Operating System: linux 2.4.17
 PHP Version:      4.0CVS-2002-02-24
 New Comment:

Rui reverted his patch, so this bug is closed for now


Previous Comments:
------------------------------------------------------------------------

[2002-02-25 10:52:51] [EMAIL PROTECTED]

>From the Changelog

2002-02-23  Rui Hirokawa  <[EMAIL PROTECTED]>
      [...]
     * ext/gd/config.m4: fixed configure error with freetype1.

The changes introduced by Rui break the recognition of GD 2.0.1 and
Freetype2 at least on SuSE Linux 7.3, leading not only to the infamous
GdIOCTX bug but also seem to confuse 'configure' (mcrypt version can't
be detected). I'm not an autoconf/automake expert, so I can't say what
exactly is wrong here, but people hit by this bug should just revert
Rui's patch -- everything works fine then...;->...

======revert-gd-patch=================================
--- config.m4   Sat Feb 23 02:36:55 2002
+++ config.m4   Sun Feb 24 14:05:54 2002
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: config.m4,v 1.83 2002/02/23 01:36:55 hirokawa Exp $
+dnl $Id: config.m4,v 1.82 2002/01/13 06:25:18 hirokawa Exp $
 dnl
 
 AC_DEFUN(PHP_GD_JPEG,[
@@ -125,10 +125,6 @@
 AC_DEFUN(PHP_GD_FREETYPE2,[
   PHP_ARG_WITH(freetype-dir, for freetype(2),
   [  --with-freetype-dir=DIR   GD: Set the path to freetype2 install
prefix.])
-
-  if test "$PHP_TTF" != "no"; then
-    PHP_FREETYPE_DIR="no"
-  fi
 
   if test "$PHP_FREETYPE_DIR" != "no"; then
     for i in /usr /usr/local $PHP_FREETYPE_DIR; do

------------------------------------------------------------------------

[2002-02-24 12:35:36] [EMAIL PROTECTED]

This issue is very likely due to 'configure' not being able to detect
gd 2.0.1 correctly.

In php_config.h my gd now is detected as gd 1, while previous versions
of configure detected it correctly as gd 2. Because now HAVE_GD15 is
not defined, the wrong redefinition of GdioCTX is performed.

------------------------------------------------------------------------

[2002-02-24 11:59:39] [EMAIL PROTECTED]

gd support (static) fails to compile.

gd version installed is 2.0.1b, installed in /usr/lib and /usr/include.
Did compile on CVS checked out three weeks ago. This seems to be the
same error as in bug #15303. I tested CVS snap and CVS checkout, both
do fail.

Error messages:

In file included from gd.c:36:
php_gd.h:69: warning: static declaration for `gdImageColorResolve'
follows non-static
gd.c:92: conflicting types for `gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15697&edit=1

Reply via email to