This where it fails: gcc -c -I../libvo/ -I../../libvo -O4 -march=pentium2 -mcpu=pentium2 -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 libmpdemux/dvbin.h:5, from cfg-common.h:380, from cfg-mencoder.h:5, from mencoder.c:256: libmpdemux/dvb_defaults.h:69:10: warning: #warning No DVB-T country defined in dvb_defaults.h, defaulting to UK. Ignore this if using Satellite or Cable. 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:173: /usr/include/ctype.h:190: error: syntax error before "__attribute__" /usr/include/ctype.h:196: error: syntax error before "__attribute__" mencoder.c: In function `main': mencoder.c:589: warning: assignment makes pointer from integer without a cast make: *** [mencoder.o] Error 1 !!! ERROR: media-video/mplayer-1.0_pre4-r7 failed. !!! Function src_compile, Line 312, Exitcode 2 !!! Failed to build MPlayer! !!! If you need support, post the topmost build error, NOT this status message. useflags: [ebuild UD] media-video/mplayer-1.0_pre4-r7 [1.0_pre5] +3dfx -3dnow -3dnowex +X -aalib +alsa (-altivec) -arts +bidi* +cdparanoia* -debug -directfb +divx4linux* -dvb -dvd -dvdread +edl* +encode -esd -fbcon -ggi +gif -gnome +gtk -ipv6 -joystick +jpeg -libcaca -lirc +live* +lzo* +mad +matroska* +matrox* +mmx -mmx2 +mpeg +mythtv* -nas +network* +nls +oggvorbis +opengl +oss +png +rtc* -samba +sdl -sse -sse2 -svga -tga +theora +truetype -v4l -v4l2 -xinerama +xmms +xv +xvid 0 kB
linux-headers 2.6 issue. Toss up your version, make sure it's the latest (cvs update and see if there's not another version out), try downgrading, etc. The error is spawned from ctype.h's handling of __atribute__ iirc.
Right you are.