Trying to update mplayer using emerge -uDv world leads to the following: ACCESS DENIED open_wr: /usr/src/linux-2.6.5-gentoo-r1/include/linux/version.h.tmp /bin/sh: line 1: include/linux/version.h.tmp: Permission denied UPD include/linux/version.h mv: cannot stat `include/linux/version.h.tmp': No such file or directory make[2]: *** [include/linux/version.h] Error 1 make[2]: Leaving directory `/usr/src/linux-2.6.5-gentoo-r1' make[1]: *** [mga_vid.ko] Error 2 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre4-r2/work/MPlayer-1.0pre4/drivers' make: *** [all] Error 2 !!! ERROR: media-video/mplayer-1.0_pre4-r2 failed. !!! Function src_compile, Line 282, Exitcode 2 !!! Failed to build matrox driver! --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-media-video_-_mplayer-1.0_pre4-r2-14703.log" open_wr: /usr/src/linux-2.6.5-gentoo-r1/include/linux/version.h.tmp -------------------------------------------------------------------------------- Reproducible: Always Steps to Reproduce: 1.Install previous version of mplayer (2004.0) in gnome 2.6 2.Try to emerge -uDv world 3.Watch mplayer die in the sandbox from access denial Actual Results: postprocess.c: In function `isHorizDC': postprocess.c:213: warning: comparison between signed and unsigned postprocess.c:214: warning: comparison between signed and unsigned postprocess.c:215: warning: comparison between signed and unsigned postprocess.c:216: warning: comparison between signed and unsigned postprocess.c:217: warning: comparison between signed and unsigned postprocess.c:218: warning: comparison between signed and unsigned postprocess.c:219: warning: comparison between signed and unsigned postprocess.c: In function `isVertDC_C': postprocess.c:237: warning: comparison between signed and unsigned postprocess.c:238: warning: comparison between signed and unsigned postprocess.c:239: warning: comparison between signed and unsigned postprocess.c:240: warning: comparison between signed and unsigned postprocess.c:241: warning: comparison between signed and unsigned postprocess.c:242: warning: comparison between signed and unsigned postprocess.c:243: warning: comparison between signed and unsigned postprocess.c:244: warning: comparison between signed and unsigned postprocess.c: In function `isHorizMinMaxOk': postprocess.c:255: warning: comparison between signed and unsigned postprocess.c:257: warning: comparison between signed and unsigned postprocess.c:259: warning: comparison between signed and unsigned postprocess.c:261: warning: comparison between signed and unsigned postprocess.c: In function `isVertMinMaxOk_C': postprocess.c:281: warning: comparison between signed and unsigned postprocess.c:282: warning: comparison between signed and unsigned postprocess.c:283: warning: comparison between signed and unsigned postprocess.c:284: warning: comparison between signed and unsigned In file included from postprocess.c:520: postprocess_template.c: In function `postProcess_MMX2': postprocess_template.c:2792: warning: unused variable `mbWidth' gcc -shared -Wl,-soname,libpostproc.so.0 \ -o libpostproc.so postprocess_pic.o make mga_vid.ko mga_vid_test make[1]: Entering directory `/var/tmp/portage/mplayer-1.0_pre4-r2/work/MPlayer-1.0pre4/drivers' make -C /lib/modules/2.6.5-gentoo-r1/build SUBDIRS=/var/tmp/portage/mplayer-1.0_pre4-r2/work/MPlayer-1.0pre4/drivers modules make[2]: Entering directory `/usr/src/linux-2.6.5-gentoo-r1' CHK include/linux/version.h ACCESS DENIED open_wr: /usr/src/linux-2.6.5-gentoo-r1/include/linux/version.h.tmp /bin/sh: line 1: include/linux/version.h.tmp: Permission denied UPD include/linux/version.h mv: cannot stat `include/linux/version.h.tmp': No such file or directory make[2]: *** [include/linux/version.h] Error 1 make[2]: Leaving directory `/usr/src/linux-2.6.5-gentoo-r1' make[1]: *** [mga_vid.ko] Error 2 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre4-r2/work/MPlayer-1.0pre4/drivers' make: *** [all] Error 2 !!! ERROR: media-video/mplayer-1.0_pre4-r2 failed. !!! Function src_compile, Line 282, Exitcode 2 !!! Failed to build matrox driver! --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-media-video_-_mplayer-1.0_pre4-r2-14703.log" open_wr: /usr/src/linux-2.6.5-gentoo-r1/include/linux/version.h.tmp -------------------------------------------------------------------------------- Expected Results: Updated Mplayer successfully. The emerge info is: Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(TM) XP1600+ Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -msse -mmmx -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -finline-limit=600 -mfpmath=387 -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/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -msse -mmmx -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -finline-limit=600 -mfpmath=387 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo ftp://ibiblio.org/pub/Linux/distributions/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ ftp://gentoo.agsn.ca/ ftp://gentoo.mirrored.ca/ ftp://gentoo.risq.qc.ca/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow X Xaw3d acl acpi adns alsa apm atlas audiofile avi berkdb bidi bindist bonobo caps cdr crypt cscope cups curl debug dga directfb divx4linux doc dvd dvdr emacs emacs-w3 encode esd evo fbcon fdftk fftw flac foomaticdb freetds gb gd gdbm gif ginac gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib informix innodb java jikes jpeg junit kerberos krb4 ladcca lcms ldap leim libg++ libgda libwww mad maildir matrox mcal mikmod mmx motif mozilla mpeg mpi mule mysql ncurses nls nocd offensive oggvorbis opengl oss pam pdflib perl pic pie plotutils png postgres ppds prelude python quicktime readline ruby samba sasl scanner sdl slang slp snmp socks5 spell sqlite sse ssl svga tcltk tcpd tetex tiff truetype uclibc uhosts unicode usb x86 xinerama xml xml2 xmms xosd xv xvid zlib"
-r3 should fix this, please check when it's available.
*** Bug 52863 has been marked as a duplicate of this bug. ***
Reopening, different file, same type of error popped up in bug #52863 .
Worth noting the user in bug 52863 was using pre4-r4.
Created attachment 32581 [details] same bug with 1.0pre4-r3 Getting the same error with -r3
Created attachment 32582 [details] same bug with 1.0pre4-r2
mplayer-1.0pre4-r1 fails to build the matrox driver on 2.6 anyway, see bug 40616. Oh wait, looking at 40616, they have similar problems there. This may be a duplicate...
Just when you think you've squashed it, it's back again... will check this tonight.
I bet your kernel tree was somehow modified by some ebuild... Please try the following: rescue your /usr/src/linux/.config to some safe place delete your kernel sources re-emerge the sources copy your .config there make oldconfig bzImage modules modules_install try emerging mplayer. If this doesn't work please send me your .config, maybe I can reproduce the problem then.
Not sure if it matters now, but I managed to successfully emerge the new mplayer by doing an emerge -uDvp mplayer, then copying the USE flags, removing the '+' from the list and re-emerging the file. Would you still like a copy of my .config, or were you asking someone else.
I don't get from your comment which mplayer version works for you. Which "+" did you remove how from which list? I don't get the idea, sorry, please be a bit more verbose.
I will re-emerge and rebuild my kernel tonight when I get home. I will keep a copy of my current kernel tree though so we can use it for further debugging if necessary.
mmmh.. I'm confused, I cannot reproduce my problem anymore either... Backup'd the kernel tree that seemed to cause problems, emerged a fresh one, build and installed it. mplayer-1.4pre4-r4 emerged cleanly. Made a diff between the kernel trees, but it showed nothing suspicious... Then I reinstalled the old kernel, and suddenly emerging mplayer still works. This is no fun at all :-( Maybe the mga-linux-2.6 problem should simply be solved upstream, so the ebuild would not have to mess around with the kernel tree. Alas, this would mean passing the problem on to the mplayer guys... and admitting we could not write proper ebuilds to patch things ouselves ;-)
They are aware of the problem, I think - at least AFAIR I got the patch from some mplayer mailing list. I think we can close this bug for now, if there's no reproducible problem.
WHen you do an emerge --verbose --pretend you get a list of USE dependencies ala: emerge -vp mplayer These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-video/mplayer-1.0_pre4-r4 +3dfx +3dnow +X -aalib +alsa -arts +bidi +debug +dga +directfb +divx4linux -dvb +dvd +encode +esd +fbcon -ggi +gif +gnome +gtk -ipv6 -joystick +jpeg -libcaca -lirc -live +mad -matroska +matrox +mpeg -nas +nls +oggvorbis +opengl +oss +png +samba +sdl +sse +svga -theora +truetype -v4l -v4l2 +xinerama +xmms +xv +xvid To get r4 of mplayer (as shown above in the example) to emerge, I had to do: USE="***" emerge -uDv mplayer. I cut the dependencies from the emerge -vp and pasted them into the USE. This left it looking like this: USE="+3dfx +3dnow +X -aalib +alsa -arts +bidi +debug +dga +directfb +divx4linux -dvb +dvd +encode +esd +fbcon -ggi +gif +gnome +gtk -ipv6 -joystick +jpeg -libcaca -lirc -live +mad -matroska +matrox +mpeg -nas +nls +oggvorbis +opengl +oss +png +samba +sdl +sse +svga -theora +truetype -v4l -v4l2 +xinerama +xmms +xv +xvid" emerge -uDv mplayer. Since emerge chokes on the + in the USe statement I went back and removed all the + signs so it looked like this: USE="3dfx 3dnow X -aalib alsa -arts bidi debug dga directfb divx4linux -dvb dvd encode esd fbcon -ggi gif gnome gtk -ipv6 -joystick jpeg -libcaca -lirc -live mad -matroska matrox mpeg -nas nls oggvorbis opengl oss png samba sdl sse svga -theora truetype -v4l -v4l2 xinerama xmms xv xvid" emerge -uDv mplayer. Doing it this way removed the matrox failing to emerge error as well.
Sorry, somehow I fail to see how this could make any difference. Can you really reproduce the failure when you just emerge -r4?