Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76533 - clanlib 0.6.5-r2 does not compile with freetype 2.1.9-r1
Summary: clanlib 0.6.5-r2 does not compile with freetype 2.1.9-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-03 09:55 UTC by Jim Ramsay (lack) (RETIRED)
Modified: 2005-03-01 17:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Workaround patch (0.6.5-ft2.patch,322 bytes, patch)
2005-01-03 09:57 UTC, Jim Ramsay (lack) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 !