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

Bug 57283

Summary: mplayer-1.0-pre4 failed to emerge using gcc 3.3.3, syntax error before "__attribute__"
Product: Gentoo Linux Reporter: Rudo Thomas <rudo>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rudo Thomas 2004-07-16 05:20:47 UTC
mplayer-1.0-pre4 (-r4 gives the same results) failed to emerge when using gcc-3.3.3-r6. With gcc-3.3.2-r5 it succeeded.

First, it appeared to be a gcc bug, but more likely it is a problem with ffmpeg shipped with mplayer. See #55405.

The error output follows; emerge info is in the "additional information" box.

gcc -fno-pic -nopie -c -I../libvo/ -I../../libvo -O4 -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2   -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include      -o mencoder.o mencoder.c
In file included from libavcodec/avcodec.h:15,
                 from mencoder.c:77:
libavcodec/rational.h:35: error: syntax error before "__attribute__"
libavcodec/rational.h:43: error: syntax error before "__attribute__"
In file included from /usr/include/freetype2/freetype/config/ftstdlib.h:74,
                 from /usr/include/freetype2/freetype/config/ftconfig.h:44,
                 from /usr/include/freetype2/freetype/freetype.h:42,
                 from libvo/font_load.h:6,
                 from mencoder.c:170:
/usr/include/ctype.h:190: error: syntax error before "__attribute__"
/usr/include/ctype.h:196: error: syntax error before "__attribute__"
make: *** [mencoder.o] Error 1

!!! ERROR: media-video/mplayer-1.0_pre4 failed.
!!! Function src_compile, Line 263, Exitcode 2
!!! Failed to build MPlayer!


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 
2.6.7-ck-s79-packet_writing-rudo) 
================================================================= 
System uname: 2.6.7-ck-s79-packet_writing-rudo i686 AMD Athlon(TM) XP 1800+ 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe" 
DISTDIR="/home/ftp/gentoo-distfiles" 
FEATURES="autoaddcvs ccache notitles sandbox userpriv" 
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo 
http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" 
USE="3dnow X aalib alsa apm arts berkdb cdr crypt cscope cups curl dga doc dvd 
encode faad flac foomaticdb gd gdbm gif gpm imlib java jpeg kde libcaca libg++ 
libwww maildir mbox memlimit mikmod mmx mpeg ncurses nls nocardbus nptl 
oggvorbis opengl oss pam pdflib perl physfs pic png pwdb python qt quicktime 
readline samba scanner sdl slang speex spell sse ssl tcpd tetex tiff truetype 
x86 xml xml2 xmms xv zlib"
Comment 1 Rudo Thomas 2004-07-16 06:25:32 UTC
Still happens with mplayer-1.0_pre5.
Comment 2 Rudo Thomas 2004-07-22 17:48:27 UTC
It indeed turned out to be a problem of ffmpeg.
After emerging ffmpeg-0.4.9_pre1, mplayer successfully compiled.

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