Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 76533

Summary: clanlib 0.6.5-r2 does not compile with freetype 2.1.9-r1
Product: Gentoo Linux Reporter: Jim Ramsay (lack) (RETIRED) <lack>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: blaster999
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Workaround patch

Description Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-01-03 09:55:53 UTC
I get the following error when compiling clanlib-0.6.5-r2:

In file included from Sources/TTF/font_ttf.cpp:24:
/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"

This looks to be an issue with ClanLib itself, and I'm not sure which freetype2 version would be the first to cause this error, but 2.1.9-r1 does for sure.
Comment 1 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-01-03 09:57:13 UTC
Created attachment 47499 [details, diff]
Workaround patch

Here is a patch that makes it compile by changing how <freetype/freetype.h> is
included in the appropriate file.  There are still some compiler warnings in
that file, but they don't seem to interfere with compilation.  Haven't tried
running it  yet.
Comment 2 Stefan Sperling 2005-02-07 14:59:51 UTC
Works fine here.
The fix should be in the tree, this bug breaks games-puzzle/pingus !!!!! ;)
Comment 3 Gleb Litvjak 2005-02-08 07:59:22 UTC
i can confirm - the patch seems to work OK, clanlib compiled w/o any problems. Emerging pingus right now.
Comment 4 Oldrich Jedlicka 2005-02-11 05:00:12 UTC
Same for me. Patch work perfectly.
Comment 5 SpanKY gentoo-dev 2005-03-01 17:50:36 UTC
added patch to cvs, thanks !