Re: Testers needed for bundled gd library in CVS

From: Date: Sat, 15 Jun 2002 17:26:25 +0000
Subject: Re: Testers needed for bundled gd library in CVS
References: 1 2 3  Groups: php.qa 
Request: Send a blank email to php-qa+get-5545@lists.php.net to get a copy of this message
At 15:59 15-6-2002, Markus Fischer shared with all of us:
Please try the snapshot, they come with their own ./configure
    and test if it still fails.
Current snapshot with freetype 2.1.1, compile failure, complaining about: In file included from /home/mdev/_src/php4-200206150600/ext/gd/libgd/gdft.c:44: /usr/local/include/freetype2/freetype/ftglyph.h:104: syntax error before `FT_Library' /usr/local/include/freetype2/freetype/ftglyph.h:106: syntax error before `FT_Glyph_Format' /usr/local/include/freetype2/freetype/ftglyph.h:157: syntax error before `FT_Int' /usr/local/include/freetype2/freetype/ftglyph.h:205: syntax error before `FT_Outline' /usr/local/include/freetype2/freetype/ftglyph.h:228: syntax error before `FT_Get_Glyph' /usr/local/include/freetype2/freetype/ftglyph.h:228: syntax error before `slot' /usr/local/include/freetype2/freetype/ftglyph.h:229: warning: data definition has no type or storage class I've already made two adjustments, but that didn't fix it. Looking into it, unless someone knows? The lines referenced and the resulting compile failure, look like perfectly valid struct definitions. Below some minor adjustments:
--- gdcache.h.dist      Sat Jun 15 19:12:57 2002
+++ gdcache.h Sat Jun 15 19:14:59 2002 @@ -40,7 +40,12 @@
 /* header                                                */
/*********************************************************/ +/* get rid of malloc warning in /usr/include/malloc.h line 2 */ +#ifdef __FreeBSD__ +#include <stdlib.h> +#else #include <malloc.h> +#endif /* !defined __FreeBSD__ */ #ifndef NULL #define NULL (void *)0 #endif --- gdft.c.dist Sun Apr 21 16:03:46 2002
+++ gdft.c      Sat Jun 15 19:23:43 2002
@@ -37,11 +37,20 @@ return "libgd was not built with FreeType font support\n"; } #else - #include "gdcache.h" + +/* Currently use CLFAGS=-DUSE_FTBUILD, but should be picked up in configure + * See for defails, the CHANGES file in freetype2 release 2.0.2, section II: + * CHANGES TO THE HIGH-LEVEL API + */ +#ifdef USE_FT2BUILD +#include "ft2build.h" +#include FT_FREETYPE_H +#include FT_GLYPH_H +#else #include "freetype/freetype.h" #include "freetype/ftglyph.h" - +#endif /* USE_FTBUILD */ /* number of fonts cached before least recently used is replaced */ #define FONTCACHESIZE 6 Met vriendelijke groeten / With kind regards, IDG.nl Melvyn Sopacua Webmaster

« previous php.qa (#5545) next »