From owner-freebsd-ports Tue Mar 12 22: 5:19 2002 Delivered-To: freebsd-ports@freebsd.org Received: from hobbits.brel.com (hobbits.brel.com [203.127.231.61]) by hub.freebsd.org (Postfix) with ESMTP id 5C15737B402 for ; Tue, 12 Mar 2002 22:05:00 -0800 (PST) Received: by hobbits.brel.com (Postfix, from userid 1001) id 0CC13330D; Wed, 13 Mar 2002 14:04:57 +0800 (SGT) Date: Wed, 13 Mar 2002 14:04:56 +0800 From: Calvin NG To: "jochem@CC40670-a.groni1.gr.nl.home.com" Cc: ports@freebsd.org Subject: Mozilla and FreeType2 Message-ID: <20020313140456.D18729@brel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 should be replaced with , 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 +#define FT_CONFIG_CONFIG_H #endif @@ -118,7 +118,7 @@ /* FreeType 2 project-specific configuration options. */ /* */ #ifndef FT_CONFIG_OPTIONS_H -#define FT_CONFIG_OPTIONS_H +#define FT_CONFIG_OPTIONS_H #endif @@ -133,7 +133,7 @@ /* library instances in @FT_Init_FreeType. */ /* */ #ifndef FT_CONFIG_MODULES_H -#define FT_CONFIG_MODULES_H +#define FT_CONFIG_MODULES_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 +#define FT_FREETYPE_H /*************************************************************************/ @@ -161,7 +161,7 @@ /* */ /* It is included by @FT_FREETYPE_H. */ /* */ -#define FT_ERRORS_H +#define FT_ERRORS_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 +#define FT_MODULE_ERRORS_H /*************************************************************************/ @@ -188,7 +188,7 @@ /* */ /* It is included by @FT_FREETYPE_H. */ /* */ -#define FT_SYSTEM_H +#define FT_SYSTEM_H /*************************************************************************/ @@ -203,7 +203,7 @@ /* */ /* It is included by @FT_FREETYPE_H. */ /* */ -#define FT_IMAGE_H +#define FT_IMAGE_H /*************************************************************************/ @@ -217,7 +217,7 @@ /* */ /* It is included by @FT_FREETYPE_H. */ /* */ -#define FT_TYPES_H +#define FT_TYPES_H /*************************************************************************/ @@ -231,7 +231,7 @@ /* */ /* (Most applications will never need to include this file.) */ /* */ -#define FT_LIST_H +#define FT_LIST_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 +#define FT_OUTLINE_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 +#define FT_SIZES_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 +#define FT_MODULE_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 +#define FT_RENDER_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 +#define FT_TYPE1_TABLES_H /*************************************************************************/ @@ -306,7 +306,7 @@ /* constant macro definitions, taken from the TrueType and OpenType */ /* specifications. */ /* */ -#define FT_TRUETYPE_IDS_H +#define FT_TRUETYPE_IDS_H /*************************************************************************/ @@ -319,7 +319,7 @@ /* the types and API specific to the TrueType (as well as OpenType) */ /* format. */ /* */ -#define FT_TRUETYPE_TABLES_H +#define FT_TRUETYPE_TABLES_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 +#define FT_TRUETYPE_TAGS_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 +#define FT_GLYPH_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 +#define FT_BBOX_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 +#define FT_BEZIER_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 +#define FT_CACHE_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 +#define FT_CACHE_IMAGE_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 +#define FT_CACHE_SMALL_BITMAPS_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 +#define FT_CACHE_CHARMAP_H /*************************************************************************/ @@ -443,7 +443,7 @@ /* applications compiled on the Mac (note that the base API still */ /* works though). */ /* */ -#define FT_MAC_H +#define FT_MAC_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 +#define FT_MULTIPLE_MASTERS_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 +#define FT_SFNT_NAMES_H /* */ -#define FT_TRIGONOMETRY_H -#define FT_SYNTHESIS_H +#define FT_TRIGONOMETRY_H +#define FT_SYNTHESIS_H -#define FT_CACHE_MANAGER_H +#define FT_CACHE_MANAGER_H -#define FT_CACHE_INTERNAL_LRU_H -#define FT_CACHE_INTERNAL_GLYPH_H -#define FT_CACHE_INTERNAL_CACHE_H +#define FT_CACHE_INTERNAL_LRU_H +#define FT_CACHE_INTERNAL_GLYPH_H +#define FT_CACHE_INTERNAL_CACHE_H - /* now include internal headers definitions from */ + /* now include internal headers definitions from */ -#define FT_INTERNAL_INTERNAL_H +#define FT_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