Date: Thu, 18 Mar 2004 01:40:23 +0800 (CST) From: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/64379: [PATCH] fix build with freetype 2.1.7 Message-ID: <20040317174023.D87CF17030@IRIS.sunpoet.net> Resent-Message-ID: <200403171750.i2HHoF9J024796@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 64379 >Category: ports >Synopsis: [PATCH] fix build with freetype 2.1.7 >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 17 09:50:15 PST 2004 >Closed-Date: >Last-Modified: >Originator: Sunpoet Po-Chuan Hsieh >Release: FreeBSD 5.2-CURRENT i386 >Organization: SUNPOET.net >Environment: System: FreeBSD IRIS.sunpoet.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sun Dec 21 18:12:22 CST 2003 root@:/usr/obj/usr/src/sys/sunpoet i386 >Description: As freetype upgrades from 2.1.5 to 2.1.6, it blocks direct inclusion of freetype.h. New documented scheme is: #include <ft2build.h> #include FT_FREETYPE_H >How-To-Repeat: Build lang/php4 with freetype 2.1.7 installed, you will get error message as follows: `ft2build.h' hasn't been included yet! Please always use macros to include FreeType header files. Example: #include <ft2build.h> #include FT_FREETYPE_H >Fix: % cat /usr/ports/lang/php4/files/patch-ext::gd::libgd::gdft.c --- ext/gd/libgd/gdft.c.orig Tue Jun 17 21:37:57 2003 +++ ext/gd/libgd/gdft.c Thu Mar 18 00:53:09 2004 @@ -60,7 +60,8 @@ #else #include "gdcache.h" -#include "freetype/freetype.h" +#include <ft2build.h> +#include FT_FREETYPE_H #include "freetype/ftglyph.h" /* number of fonts cached before least recently used is replaced */ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040317174023.D87CF17030>