ports/64379: [PATCH] fix build with freetype 2.1.7
Sunpoet Po-Chuan Hsieh
sunpoet at sunpoet.net
Wed Mar 17 17:50:15 UTC 2004
>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:
More information about the freebsd-ports-bugs
mailing list