| Summary: | media-video/mplayer ebuild fails w/ linux-headers-2.6.16 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Mike Lothian <mike> |
| Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | alex, gentoo, leio, matteo-ml, patrizio.bassi, plasmaroo |
| Priority: | High | ||
| Version: | 2006.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Mike Lothian
2006-04-16 16:40:07 UTC
Could be: I've the same problem and I use both the new linux-headers (I needed inotify support for an application we're developing) and gcc-3.4.6. The same happens with the 20060408 snapshot, of course. emerge --info output: Gentoo Base System version 1.12.0_pre17 Portage 2.1_pre7-r5 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-suspend2-r2 i686) ================================================================= System uname: 2.6.16-suspend2-r2 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 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-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -pipe" 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/share/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.gentoo.or.kr/ http://mirror.gentoo.gr.jp ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/" LC_ALL="it_IT.UTF-8" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/php/testing /usr/local/overlays/php/experimental /usr/local/overlays/gentopia" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 arts avi berkdb bitmap-fonts cairo cdr crypt cups dbus dga doc dri dvd eds emacs emboss encode fbcon firefox flac foomaticdb fortran gdbm gif gnome gnutls gpm gstreamer gtk gtk2 imap imlib ipv6 isdnlog jpeg kde libg++ libwww mad maildir mbox mikmod mmx motif mp3 mpeg musicbrainz mysql ncurses nls nptl ogg oggvorbis opengl oss pam pcmcia pdflib perl png pppd python qt quicktime readline samba sasl sdl spell sse sse2 ssl tcpd theora truetype truetype-fonts type1-fonts unicode vorbis xml2 xmms xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_it userland_GNU video_cards_i810" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS same problem, using linux-headers-2.6.16 with gcc-4.1.0 In file included from mplayer.c:117: libmpdemux/dvbin.h:70: error: field 'get_current' declared as a function In file included from mplayer.c:182: libmpdemux/demuxer.h:107: error: field 'get_current' declared as a function Here is an workaround, found in this topic: http://forums.gentoo.org/viewtopic-p-3263707.html#3263707 Thanks to fred0 who posted it there. ----- Unpack mplayer (choose the corect ebuild) type: ebuild /usr/portage/media-video/mplayer/mplayer-1.0.20060408.ebuild unpack Go to help directory type: cd /var/tmp/portage/mplayer-1.0.20060408/work/mplayer-1.0.20060408/help/ Copy charset file type: cp help_mp-de.h.charset help_mp-fr.h.charset Return to home type: cd Compiling type: ebuild /usr/portage/media-video/mplayer/mplayer-1.0.20060408.ebuild compile install qmerge About comment #3: this bug isn't about the same error presented in the topic pointed out. same error here Please see my posting http://forums.gentoo.org/viewtopic-t-450784.html or Yes, as far as i can guess, linux-headers is the culprit. I had the same problem (~x86), and got around it by editing a header file. Since i do not know the name of the file for sure, here is how i found out. First, i removed current.h from /usr/include/asm(?), and mplayer failed to compile, but showed, which header files are included. In one of these(wait.h?) i removed the include of current.h (or another file, i am not sure), and it worked. mplayer compiled, and works just fine. The current mplayer CVS compiles fine with new linux-headers. (manual compiled, no ebuild) Thus, the problem could be an outdated mplayer snapshot. Well, i can't confirm this. I checked out mplayer yesterday (20060502), emerged linux-headers-2.6.16 with v2 of the patchset, still i had to edit wait.h and remove #include <asm/current.h> from it in order to compile mplayer. Maybe it got unfixed. MPlayer dev-CVS-060418-22:04-4.1.0 worked for me gcc-4.1.0 linux-headers-2.6.16 Plain mplayer fresh from CVS (2006-05-03) (with AND without copied libavcodec, libavutil and libavformat from ffmpeg-CVS) ./configure (no parameters) and make is compiling fine here I just added a "#undef current" directive after the includes in demuxer.h; it's probably the best course of action without taking another snapshot from the mplayer repository. That did it for me, at least. So it seems to me it was never fixed in the mplayer-sources. The error probably only occurs when enabling an option which is normally disabled (rtc?). One should probably try to find out whether the #include <asm/current.h> is really needed in wait.h, and then fix it there, in the linux-headers-package. *** Bug 136555 has been marked as a duplicate of this bug. *** Still broken in mplayer-1.0_pre8. I can't hit this with either gcc-3.4.5 or 4.1.1 on mplayer 20060415. Can somebody please emerge sync, remerge linux-headers-2.6.16 and then see if the bug still exists. If it does, remove "#include <asm/current.h>" in /usr/include/linux/wait.h and then try compiling again. If it fixes the issue then I can happily include the patch in linux-headers but the issue needs to be isolated first. Hi, yes I re-merge linux-headers-2.6.16, and now WORKSe mplayer-1.0_pre8 (gcc-4.1.1 amd64) THANKS! (In reply to comment #15) On x86, gcc-4.1.1, re emerging linux-headers-2.6.16 made compilation work too (with mplayer 1.0_pre8). > Hi, > > yes I re-merge linux-headers-2.6.16, and now WORKSe mplayer-1.0_pre8 (gcc-4.1.1 > amd64) > > THANKS! > Closing then. |