Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389121 - dev-libs/m17n-lib-1.5.2 fails to compile with dev-libs/fribidi-0.19.2-r1
Summary: dev-libs/m17n-lib-1.5.2 fails to compile with dev-libs/fribidi-0.19.2-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 17:47 UTC by Faustus
Modified: 2011-11-20 14:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Faustus 2011-10-31 17:47:24 UTC
USE flags: -gd

draw.c: In function ‘mdraw__init’:
draw.c:1753:26: error: ‘TRUE’ undeclared (first use in this function)

There is only one occurrence of TRUE in draw.c:

#ifdef HAVE_FRIBIDI
  fribidi_set_mirroring (TRUE);
#endif

and apparently TRUE is undefined in newer fribidi headers. Replacing TRUE with 1 (I am only assuming that's the intended value) makes the compilation succeed.

Tested using "./configure && make" as well.
Comment 1 Naohiro Aota gentoo-dev 2011-11-20 14:40:49 UTC
upstream have fix this with:
#ifdef HAVE_FRIBIDI
#if FRIBIDI_INTERFACE_VERSION < 3
  fribidi_set_mirroring (TRUE);
#else
  fribidi_set_mirroring (1);
#endif
#endif

I've added this patch to the ebuild. Thanks.