Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295154 - MPlayer 1.2-rc2_p20090731 FreeType support fails because of a sandbox violation
Summary: MPlayer 1.2-rc2_p20090731 FreeType support fails because of a sandbox violation
Status: RESOLVED DUPLICATE of bug 291593
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-30 09:31 UTC by Canek Peláez Valdés
Modified: 2009-12-22 09:35 UTC (History)
0 users

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 Canek Peláez Valdés 2009-11-30 09:31:48 UTC
Trying to emerge MPlayer with ass and truetype USE flags, the configure script fails to properly detect freetype:

...
Checking for libcdio ... yes 
Checking for bitmap font support ... yes 
Checking for freetype >= 2.0.9 ... ./configure: line 96: 30158 Segmentation fault      "$TMPEXE" >> "$TMPLOG" 2>&1
no 
Checking for fontconfig ... no (FreeType support needed)
Checking for SSA/ASS support ... no (FreeType support needed)
...

When looking into configure.log, I see the following:

============ Checking for freetype >= 2.0.9 ============

#include <stdio.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#if ((FREETYPE_MAJOR < 2) || ((FREETYPE_MINOR == 0) && (FREETYPE_PATCH < 9)))
#error "Need FreeType 2.0.9 or newer"
#endif
int main(void) {
    FT_Library library;
    FT_Int major=-1,minor=-1,patch=-1;
    int err=FT_Init_FreeType(&library);
    if (err) {
        printf("Couldn't initialize freetype2 lib, err code: %d\n",err);
        exit(err);
    }
    FT_Library_Version(library,&major,&minor,&patch); // in v2.1.0+ only :(((
    printf("freetype2  header version: %d.%d.%d  library version: %d.%d.%d\n",
        FREETYPE_MAJOR,FREETYPE_MINOR,FREETYPE_PATCH,
        (int)major,(int)minor,(int)patch );
    if (major!=FREETYPE_MAJOR || minor!=FREETYPE_MINOR) {
        printf("Library and header version mismatch! Fix it in your distribution!\n");
        exit(1);
    }
    return 0;
}

x86_64-pc-linux-gnu-gcc -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/  -I/usr/include/SDL  -D_REENTRANT   -D_REENTRANT     -ffast-math   -lncurses -lsmbclient -lpng -lz -lmng -lz -ljpeg -lgif -lasound -ldl -lpthread -lcdio_cdda -lcdio -lcdio_paranoia    -lXext -lX11 -lpthread -lXss -lXv -lXvMC -lXvMCW -lXxf86vm -lXxf86dga -lGL -ldl -laa -L/usr/lib64 -lcaca -lSDL -lpthread -lesd   -laudio -lXt -lpulse   -lopenal  -o /tmp/portage/media-video/mplayer-1.0_rc2_p20090731/temp/mplayer-conf-6314-28555 /tmp/portage/media-video/mplayer-1.0_rc2_p20090731/temp/mplayer-conf-11210-28555.c -I/usr/include/freetype2 -lfreetype -lz


ACCESS DENIED  open_wr:      /dev/snd/controlC0
ACCESS DENIED  open_wr:      /var/log/sandbox/sandbox-28493.log
ACCESS DENIED  open_wr:      /var/log/sandbox/sandbox-28493.log
(repeated a lot of times)
ACCESS DENIED  open_wr:      /var/log/sandbox/sandbox-28493.log
ACCESS DENIED  open_wr:      /var/log/sandbox/sandbox-28493.log
Result is: no 
##########################################


Reproducible: Always

Steps to Reproduce:
1. Try to emerge MPlayer with fontconfig support
2. The configure step fails to recognize freetype
3. MPlayer has no fontconfig support because it needs freetype

Actual Results:  
MPlayer has no OSD support and neither displays external subtitles.

Expected Results:  
MPlyaer should display both the OSD and external subtitles.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-12-22 09:35:04 UTC

*** This bug has been marked as a duplicate of bug 291593 ***