Date: Wed, 13 Mar 2002 01:16:56 -0500 From: Brian T.Schellenberger <bts@babbleon.org> To: Calvin NG <calvinng@brel.com>, "jochem@CC40670-a.groni1.gr.nl.home.com" <JochemKossen@brel.com> Cc: ports@FreeBSD.ORG Subject: Re: Mozilla and FreeType2 Message-ID: <20020313061656.E7729BB35@i8k.babbleon.org> In-Reply-To: <20020313140456.D18729@brel.com> References: <20020313140456.D18729@brel.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Surely it would be easier to fix this with something like CFLAGS += -I/usr/local/include/freetype2 in the Makefile? On Wednesday 13 March 2002 01:04 am, Calvin NG wrote: | Greetings, | | I saw your post regarding problem compiling Mozilla 0.9.9. | I encountered exactly the same error as you did. | | I have traced down to some problems with the freetype2 port. | I have the latest freetype2 port freetype2-2.0.9/ | One of the header file is wrong. It is, | /usr/local/include/freetype2/freetype/config/ftheader.h | | basically the path is defined wrongly, all #defines | with path <freetype/......h> should be replaced with | <freetype2/freetype/......h> , yes, the freetype2 part | of the path is missing, and causing the wrong header file | from the freetype port to be included, (freetype.h), thus | causing the error we are seeing. | | The unified diffs follows, can you send a pr for this | please, I am cc: this to the freebsd-ports mailing list | which I am not subscribed to. Hopefully the maintainer | of port freetype2 will see this. | | Regards, | /calvin | | --- ftheader.h-orig Wed Mar 13 11:46:58 2002 | +++ ftheader.h Wed Mar 13 13:53:42 2002 | @@ -104,7 +104,7 @@ | /* FreeType 2 configuration data. | */ /* | */ #ifndef FT_CONFIG_CONFIG_H | -#define FT_CONFIG_CONFIG_H <freetype/config/ftconfig.h> | +#define FT_CONFIG_CONFIG_H <freetype2/freetype/config/ftconfig.h> | #endif | | | @@ -118,7 +118,7 @@ | /* FreeType 2 project-specific configuration options. | */ /* | */ #ifndef FT_CONFIG_OPTIONS_H | -#define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h> | +#define FT_CONFIG_OPTIONS_H <freetype2/freetype/config/ftoption.h> | #endif | | | @@ -133,7 +133,7 @@ | /* library instances in @FT_Init_FreeType. | */ /* | */ #ifndef FT_CONFIG_MODULES_H | -#define FT_CONFIG_MODULES_H <freetype/config/ftmodule.h> | +#define FT_CONFIG_MODULES_H <freetype2/freetype/config/ftmodule.h> | #endif | | /* public headers */ | @@ -147,7 +147,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the base FreeType 2 API. | */ /* | */ -#define FT_FREETYPE_H <freetype/freetype.h> | +#define FT_FREETYPE_H <freetype2/freetype/freetype.h> | | | | /*************************************************************************/ | @@ -161,7 +161,7 @@ | /* | */ /* It is included by @FT_FREETYPE_H. | */ /* | */ -#define FT_ERRORS_H <freetype/fterrors.h> | +#define FT_ERRORS_H <freetype2/freetype/fterrors.h> | | | | /*************************************************************************/ | @@ -173,7 +173,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the list of FreeType 2 module error offsets (and messages). | */ /* | */ -#define FT_MODULE_ERRORS_H <freetype/ftmoderr.h> | +#define FT_MODULE_ERRORS_H <freetype2/freetype/ftmoderr.h> | | | | /*************************************************************************/ | @@ -188,7 +188,7 @@ | /* | */ /* It is included by @FT_FREETYPE_H. | */ /* | */ -#define FT_SYSTEM_H <freetype/ftsystem.h> | +#define FT_SYSTEM_H <freetype2/freetype/ftsystem.h> | | | | /*************************************************************************/ | @@ -203,7 +203,7 @@ | /* | */ /* It is included by @FT_FREETYPE_H. | */ /* | */ -#define FT_IMAGE_H <freetype/ftimage.h> | +#define FT_IMAGE_H <freetype2/freetype/ftimage.h> | | | | /*************************************************************************/ | @@ -217,7 +217,7 @@ | /* | */ /* It is included by @FT_FREETYPE_H. | */ /* | */ -#define FT_TYPES_H <freetype/fttypes.h> | +#define FT_TYPES_H <freetype2/freetype/fttypes.h> | | | | /*************************************************************************/ | @@ -231,7 +231,7 @@ | /* | */ /* (Most applications will never need to include this file.) | */ /* | */ -#define FT_LIST_H <freetype/ftlist.h> | +#define FT_LIST_H <freetype2/freetype/ftlist.h> | | | | /*************************************************************************/ | @@ -243,7 +243,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the scalable outline management API of FreeType 2. | */ /* | */ -#define FT_OUTLINE_H <freetype/ftoutln.h> | +#define FT_OUTLINE_H <freetype2/freetype/ftoutln.h> | | | | /*************************************************************************/ | @@ -255,7 +255,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the API used to manage multiple @FT_Size objects per face. | */ /* | */ -#define FT_SIZES_H <freetype/ftsizes.h> | +#define FT_SIZES_H <freetype2/freetype/ftsizes.h> | | | | /*************************************************************************/ | @@ -267,7 +267,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the module management API of FreeType 2. | */ /* | */ -#define FT_MODULE_H <freetype/ftmodule.h> | +#define FT_MODULE_H <freetype2/freetype/ftmodule.h> | | | | /*************************************************************************/ | @@ -279,7 +279,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the renderer module management API of FreeType 2. | */ /* | */ -#define FT_RENDER_H <freetype/ftrender.h> | +#define FT_RENDER_H <freetype2/freetype/ftrender.h> | | | | /*************************************************************************/ | @@ -291,7 +291,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the types and API specific to the Type 1 format. | */ /* | */ -#define FT_TYPE1_TABLES_H <freetype/t1tables.h> | +#define FT_TYPE1_TABLES_H <freetype2/freetype/t1tables.h> | | | | /*************************************************************************/ | @@ -306,7 +306,7 @@ | /* constant macro definitions, taken from the TrueType and OpenType | */ /* specifications. | */ /* | */ -#define FT_TRUETYPE_IDS_H <freetype/ttnameid.h> | +#define FT_TRUETYPE_IDS_H <freetype2/freetype/ttnameid.h> | | | | /*************************************************************************/ | @@ -319,7 +319,7 @@ | /* the types and API specific to the TrueType (as well as OpenType) | */ /* format. | */ /* | */ -#define FT_TRUETYPE_TABLES_H <freetype/tttables.h> | +#define FT_TRUETYPE_TABLES_H <freetype2/freetype/tttables.h> | | | | /*************************************************************************/ | @@ -332,7 +332,7 @@ | /* the definitions of TrueType 4-byte `tags' used to identify blocks | */ /* in SFNT-based font formats (i.e. TrueType and OpenType). | */ /* | */ -#define FT_TRUETYPE_TAGS_H <freetype/tttags.h> | +#define FT_TRUETYPE_TAGS_H <freetype2/freetype/tttags.h> | | | | /*************************************************************************/ | @@ -344,7 +344,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the API of the optional glyph management component. | */ /* | */ -#define FT_GLYPH_H <freetype/ftglyph.h> | +#define FT_GLYPH_H <freetype2/freetype/ftglyph.h> | | | | /*************************************************************************/ | @@ -356,7 +356,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the API of the optional exact bounding box computation routines. | */ /* | */ -#define FT_BBOX_H <freetype/ftbbox.h> | +#define FT_BBOX_H <freetype2/freetype/ftbbox.h> | | | | /*************************************************************************/ | @@ -369,7 +369,7 @@ | /* a small useful API to handle bezier arcs. Note that you _must_ | */ /* include FT_FREETYPE_H or FT_IMAGE_H before this header. | */ /* | */ -#define FT_BEZIER_H <freetype/ftbezier.h> | +#define FT_BEZIER_H <freetype2/freetype/ftbezier.h> | | | | /*************************************************************************/ | @@ -381,7 +381,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the API of the optional FreeType 2 cache sub-system. | */ /* | */ -#define FT_CACHE_H <freetype/ftcache.h> | +#define FT_CACHE_H <freetype2/freetype/ftcache.h> | | | | /*************************************************************************/ | @@ -397,7 +397,7 @@ | /* see the API defined in @FT_CACHE_SMALL_BITMAPS_H if you only need | */ /* to store small glyph bitmaps, as it will use less memory. | */ /* | */ -#define FT_CACHE_IMAGE_H <freetype/cache/ftcimage.h> | +#define FT_CACHE_IMAGE_H <freetype2/freetype/cache/ftcimage.h> | | | | /*************************************************************************/ | @@ -414,7 +414,7 @@ | /* in @FT_CACHE_IMAGE_H if you want to cache arbitrary glyph images, | */ /* including scalable outlines. | */ /* | */ -#define FT_CACHE_SMALL_BITMAPS_H <freetype/cache/ftcsbits.h> | +#define FT_CACHE_SMALL_BITMAPS_H <freetype2/freetype/cache/ftcsbits.h> | | | | /*************************************************************************/ | @@ -426,7 +426,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the `charmap' API of the FreeType 2 cache sub-system. | */ /* | */ -#define FT_CACHE_CHARMAP_H <freetype/cache/ftccmap.h> | +#define FT_CACHE_CHARMAP_H <freetype2/freetype/cache/ftccmap.h> | | | | /*************************************************************************/ | @@ -443,7 +443,7 @@ | /* applications compiled on the Mac (note that the base API still | */ /* works though). | */ /* | */ -#define FT_MAC_H <freetype/ftmac.h> | +#define FT_MAC_H <freetype2/freetype/ftmac.h> | | | | /*************************************************************************/ | @@ -455,7 +455,7 @@ | /* A macro used in #include statements to name the file containing | */ /* the optional multiple-masters management API of FreeType 2. | */ /* | */ -#define FT_MULTIPLE_MASTERS_H <freetype/ftmm.h> | +#define FT_MULTIPLE_MASTERS_H <freetype2/freetype/ftmm.h> | | | | /*************************************************************************/ | @@ -468,22 +468,22 @@ | /* the optional FreeType 2 API used to access embedded `name' strings | */ /* in SFNT-based font formats (i.e. TrueType and OpenType). | */ /* | */ -#define FT_SFNT_NAMES_H <freetype/ftsnames.h> | +#define FT_SFNT_NAMES_H <freetype2/freetype/ftsnames.h> | | /* */ | | -#define FT_TRIGONOMETRY_H <freetype/fttrigon.h> | -#define FT_SYNTHESIS_H <freetype/ftsynth.h> | +#define FT_TRIGONOMETRY_H <freetype2/freetype/fttrigon.h> | +#define FT_SYNTHESIS_H <freetype2/freetype/ftsynth.h> | | -#define FT_CACHE_MANAGER_H <freetype/cache/ftcmanag.h> | +#define FT_CACHE_MANAGER_H <freetype2/freetype/cache/ftcmanag.h> | | -#define FT_CACHE_INTERNAL_LRU_H <freetype/cache/ftlru.h> | -#define FT_CACHE_INTERNAL_GLYPH_H <freetype/cache/ftcglyph.h> | -#define FT_CACHE_INTERNAL_CACHE_H <freetype/cache/ftccache.h> | +#define FT_CACHE_INTERNAL_LRU_H <freetype2/freetype/cache/ftlru.h> | +#define FT_CACHE_INTERNAL_GLYPH_H <freetype2/freetype/cache/ftcglyph.h> | +#define FT_CACHE_INTERNAL_CACHE_H <freetype2/freetype/cache/ftccache.h> | | - /* now include internal headers definitions from <freetype/internal/...> | */ + /* now include internal headers definitions from | <freetype2/freetype/internal/...> */ | | -#define FT_INTERNAL_INTERNAL_H <freetype/internal/internal.h> | +#define FT_INTERNAL_INTERNAL_H | <freetype2/freetype/internal/internal.h> #include FT_INTERNAL_INTERNAL_H | | | | | To Unsubscribe: send mail to majordomo@FreeBSD.org | with "unsubscribe freebsd-ports" in the body of the message -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) ME --> http://www.babbleon.org http://www.eff.org <-- GOOD GUYS --> http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020313061656.E7729BB35>