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

Bug 118902

Summary: mplayer fails to compile with fontconfig, without freetype
Product: Gentoo Linux Reporter: Brenden Conte <conteb.gentoo>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED NEEDINFO    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: movs the font_fontconfig variable outside the HAVE_FREETYPE define requirement

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