cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 -march=athlon-xp -mtune=athlon-xp -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -Inative -I../libmpdemux -I../loader -I../libavutil -I../libavcodec -D_GNU_SOURCE -o ve_xvid4.o ve_xvid4.c ve_xvid4.c: In function `profileFromName': ve_xvid4.c:222: warning: initialization discards qualifiers from pointer target type ve_xvid4.c: In function `dispatch_settings': ve_xvid4.c:807: error: `XVID_GLOBAL_DIVX5_USERDATA' undeclared (first use in this function) ve_xvid4.c:807: error: (Each undeclared identifier is reported only once ve_xvid4.c:807: error: for each function it appears in.) make[1]: *** [ve_xvid4.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0.20060217/work/mplayer-1.0.20060217/libmpcodecs' make: *** [libmpcodecs/libmpcodecs.a] Error 2 !!! ERROR: media-video/mplayer-1.0.20060217 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! Failed to build MPlayer! !!! If you need support, post the topmost build error, and the call stack if relevant. _________________ The XVID_GLOBAL_DIVX5_USERDATA actually isn't initialized, it isn't even used anywhere in the mplayer tree except in that file. I suspect this might be a gcc4 error, since it is more strict. Removing the affected lines made mplayer compile. Portage 2.1_pre5 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-nitro3 i686) ================================================================= System uname: 2.6.15-nitro3 i686 AMD Athlon(tm) Gentoo Base System version 1.12.0_pre16 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.2.3-r5, 2.3.5, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.91.0.6 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -frerun-cse-after-loop -falign-functions=4 -maccumulate-outgoing-args -fprefetch-loop-arrays" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -frerun-cse-after-loop -falign-functions=4 -maccumulate-outgoing-args -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.gentoo.no ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo 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 /usr/local/xgl-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X aac aalib acl acpi alsa apm avi berkdb bitmap-fonts cdda cddb cdio crypt cups dbus dga directfb divx4linux dv dvb dvd dvdr eds emboss encode esound fbcon ffmpeg flac foomaticdb fortran freetype gb gd gdbm gif gnome gnutls gpm gstreamer gtk gtk2 hal ieee1394 imap imlib ipv6 ithreads java jpeg kde kdeenablefinal libcaca libg++ libwww lm_sensors logitech-mouse lzo mad maildir mikmod mmx mmx2 mmxext motif mozilla mp3 mpeg mysql mythtv ncurses network nls nptl nptlonly nvidia offensive ogg oggvorbis openal opengl oss pam pdflib perl pic png python qt quicktime readline real samba sasl sblive sdl speex spell sse sse2 ssl stream svg svga tcltk tcpd theora threads tiff timidity truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vlm vorbis wifi win32codecs wxwindows xcomposite xine xinerama xml2 xmms xosd xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS and bushwakko ~ # emerge mplayer -pv These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] media-video/mplayer-1.0.20060217 USE="3dnow 3dnowext X aac aalib alsa dga directfb dv dvb dvd encode fbcon gif gtk ipv6 jpeg libcaca lzo mad mmx mmxext nls nvidia openal opengl oss png real samba sdl sse sse2 svga theora truetype v4l v4l2 vorbis win32codecs xinerama xmms xv xvid xvmc -3dfx -arts -bidi -bindist -bl -cdparanoia -cpudetection -custom-cflags -debug -doc -dts -dvdread -edl -esd -ggi -i8x0 -jack -joystick -lirc -live -livecd -matroska -matrox -musepack -nas -rtc -tga -xanim" 0 kB
your version of xvid?
Still get the error, my xvid version is: bushwakko ~ # emerge xvid -p These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-libs/xvid-1.1.0-r1
I cannot reproduce it, try to sync and update mplayer/xvid
I've of course done that many times.... Are you using gcc 4.1?
yes, make sure you don't have stray xvid headers in /usr/local/include
Still a bug in newer versions?