Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118902 - mplayer fails to compile with fontconfig, without freetype
Summary: mplayer fails to compile with fontconfig, without freetype
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-13 10:52 UTC by Brenden Conte
Modified: 2006-06-26 16:20 UTC (History)
0 users

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


Attachments
movs the font_fontconfig variable outside the HAVE_FREETYPE define requirement (mplayer-1.0_pre7-fontconfig.patch,532 bytes, patch)
2006-01-13 10:54 UTC, Brenden Conte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brenden Conte 2006-01-13 10:52:27 UTC
The problem lies in the fact that mplayer (and mencoder, acutally) import the external variable 'font_fontconfig' from a different define variable than the variable is exported with in libvo/font_load_ft.c. The variable is only declared if HAVE_FREETYPE is configured - and while freetype may be configured and installed, its rejected without iconv support - yet fontconfig is still configured for use:

Code:
Checking for freetype >= 2.0.9 ... no (iconv support needed)
Checking for fontconfig ... yes


The problem lies in the fact that the font_fontconfig variable is declared in the libvo.a library if HAVE_FREETYPE is defined - but mplayer/mencoder declare its external existance if HAVE_FONTCONFIG exists.
Comment 1 Brenden Conte 2006-01-13 10:54:30 UTC
Created attachment 77018 [details, diff]
movs the font_fontconfig variable outside the HAVE_FREETYPE define requirement

In reality, the font_fontconfig variable is never set beyond its initial value of 0.  That whole requirement could be removed, however i was unsure if this was leftover bit-rot from preivous versions, or the infrastructure-setup of some additional font support.  So i just moved the variable.
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2006-06-26 16:20:58 UTC
Brenden,

Is this fixed in recent versions of mplayer (>=1.0_pre8)?

Thanks