mplayer-1.0_pre4-r4 build failed during emerge -e world with the following - gcc -fno-pic -nopie -c -I../libvo/ -I../../libvo -O4 -march=athlon-4 -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -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-r4 failed. !!! Function src_compile, Line 295, Exitcode 2 !!! Failed to build MPlayer! Downgraded back to linux-headers-2.6.6-r1 and mplayer builds OK. Reproducible: Always Steps to Reproduce: 1. 2. 3. emerge info Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-alsa) ================================================================= System uname: 2.6.7-alsa i686 AMD Athlon(tm) XP Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O2 -msse -m3dnow -mmmx -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O2 -msse -m3dnow -mmmx -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://www.mirror.ac.uk/sites/www.ibiblio.org/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 acpi alsa avi berkdb cdr crypt cups dga divx4linux dvd encode esd flac foomaticdb gdbm gif gnome gpm gtk gtk2 imlib joystick jpeg libg++ libwww linguas_en_GB mad mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline sdl slang spell sse ssl svga tcpd tiff truetype unicode usb x86 xml2 xmms xv xvid zlib"
Mplayer only fails when compiled with the use flag "encode", so if you're really dead set on using the new headers, you can still emerge it with USE="-encode". Mythfrontend (and presumably mythtv) also fail to compile against 2.6.7.
Encoding is more important than 2.6.7 headers so I will stick with 2.6.6-r1. I'm also having some xine problems which I'm pretty sure are 2.6.7 header related.
I'm having the same error here: Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r6) ================================================================= System uname: 2.6.7-gentoo-r6 i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" 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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://mirror.pudas.net/gentoo ftp://mirror.gentoo.ru/pub/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acpi alsa apm arts avi berkdb cdr crypt cups divx4linux dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx motif mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd truetype usb x86 xml2 xmms xv xvid zlib"
*** Bug 55307 has been marked as a duplicate of this bug. ***
mplayer compiles & runs OK now here with linux-headers-2.6.7-r1
Also compiles & runs fine here with linux26-headers-2.6.7-r1.
mplayer compiled fine using the linux26-headers-2.6.7-r1. Using the 2.6.7-r2 headers the same problem occurs again.
This was fixed in -r3 I believe. Latest is -r4. Closing.