Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127901 - mplayer-1.0.20060302 Fails to Compile
Summary: mplayer-1.0.20060302 Fails to Compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 127904 127905 127909 127910 127913 127920 127922 127923 128047 128236 128481 128510 129245 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-28 13:05 UTC by Michael Short
Modified: 2006-04-08 08:01 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dvdread-header-fix.patch (dvdread-header-fix.patch,365 bytes, patch)
2006-03-29 05:49 UTC, Ed Catmur
Details | Diff
dvdread-header-fix.patch (dvdread-header-fix.patch,272 bytes, patch)
2006-03-29 06:12 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Short 2006-03-28 13:05:39 UTC
In file included from stream.h:290,
                 from demux_rtp.h:8,
                 from demux_rtp.cpp:9:
/usr/include/dvdread/ifo_types.h:32:2: error: #error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
make[1]: *** [demux_rtp.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0.20060302/work/mplayer-1.0.20060302/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2

!!! ERROR: media-video/mplayer-1.0.20060302 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  mplayer-1.0.20060302.ebuild, line 478:   Called die

Portage 2.1_pre7-r2 (default-linux/x86/2005.1, gcc-4.1.0, glibc-2.4-r1, 2.6.14-nitro2 i686)
=================================================================
System uname: 2.6.14-nitro2 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     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-r2
sys-devel/binutils:  2.16.91.0.7
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="-O2 -march=pentium4 -fomit-frame-pointer -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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa apm avi berkdb bitmap-fonts cdr crypt cups dri dvd dvdread eds emboss encode firefox flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java joystick jpeg kdeenablefinal libg++ libwww live mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis openal opengl pam pdflib perl pic png python quicktime readline real samba sdl spell sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis win32codecs xml2 xmms xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_fglrx video_cards_vesa video_cards_fbdev video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 13:14:41 UTC
*** Bug 127904 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 13:22:31 UTC
*** Bug 127909 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 13:22:58 UTC
*** Bug 127905 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 13:23:34 UTC
*** Bug 127910 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 13:31:34 UTC
*** Bug 127913 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 14:02:38 UTC
*** Bug 127920 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 14:08:30 UTC
*** Bug 127922 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 14:15:51 UTC
*** Bug 127923 has been marked as a duplicate of this bug. ***
Comment 9 Adam Penser 2006-03-28 17:31:33 UTC
I know this probably doesn't help, and it doesn't fix things totally, but removing the "live" use flag fixed to installation in my case.  I tried to fix this, but I'm a below-novice coder, so I could figure out what to do, but I should point out that KMediaFactory had a similar problem, and was able to fix it.  If you know of a good coder, you might try to have them take a look at that.  Compare the KMF release version with the snapshot. (Specifically, the kmf_stddef.h file).
Comment 10 Adam Penser 2006-03-28 17:33:04 UTC
sorry for the last post: it should read "I couldn't figure out what to do."  
best of luck,
adam.
Comment 11 Luca Barbato gentoo-dev 2006-03-28 22:58:53 UTC
a better workaround:

-dvdread

the builtin one should be fine
Comment 12 Ed Catmur 2006-03-29 05:49:04 UTC
Created attachment 83368 [details, diff]
dvdread-header-fix.patch

patch, seems to work
Comment 13 Ed Catmur 2006-03-29 06:12:34 UTC
Created attachment 83369 [details, diff]
dvdread-header-fix.patch

sorry, wrong one. This fixes it.
Comment 14 Adam Penser 2006-03-29 07:04:39 UTC
I second it.  The dvdread-header patch that ed submitted works very nicely.  so now i can use the "dvdread" use flag again. 

thank you kindly,

adam
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-03-29 23:57:53 UTC
*** Bug 128047 has been marked as a duplicate of this bug. ***
Comment 16 Lee 2006-03-30 09:43:38 UTC
I am a newbie. If someone would tell me howto use Ed Catmur's patch or point me to a website that has info on using patch files, I will also use it and confirm that it works.
Comment 17 Adam Penser 2006-03-30 10:46:41 UTC
(In reply to comment #16)
> I am a newbie. If someone would tell me howto use Ed Catmur's patch or point me
> to a website that has info on using patch files, I will also use it and confirm
> that it works.
> 

Here is the way I did it.  There's many ways, but this requires the least explanation.  Download the dvdread-header-fix.patch and put it into your "/usr/portage/media-video/mplayer/files/" folder.  Then, edit the ebuild (you may have a different 1.0.2006... number depending on what packages you have masked) for the version you're going to install (let's assume you're using mplayer-1.0.20060302.  This ebuild will be in the "/usr/portage/media-video/mplayer/" folder.  Go down to about line 167 or so, and you will see a line that reads "use sparc && sed . . .".  After this line, insert the code:
epatch "${FILESDIR}/dvdread-header-fix.patch"
and save the file.
After this, type:
ebuild /usr/portage/media-video/mplayer/mplayer-1.0.20060302.ebuild digest
and wait for it to get done with that operation.

That's it!  Now emerge the mplayer version you edited, and you should have a nicely working piece of software.  If you have any particular questions about my instructions above, feel free to ask.  If you want to learn about portage overlays and such, which can help you install programs that won't revert back to the original when you emerge --sync, search the gentoo website.  So take note: after you make these changes, the next time you sync your portage tree, your changes will be lost, and you'll have to redo everything.

best of luck,
adam

p.s. In case I didn't mention earlier, this patch works on my P4 x86 2005.1 system.
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2006-03-31 07:47:46 UTC
*** Bug 128236 has been marked as a duplicate of this bug. ***
Comment 19 Luca Barbato gentoo-dev 2006-03-31 11:20:22 UTC
workaround added. Thanks for the reports.
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-04-02 01:09:26 UTC
*** Bug 128481 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-04-02 06:08:44 UTC
*** Bug 128510 has been marked as a duplicate of this bug. ***
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-04-08 08:01:41 UTC
*** Bug 129245 has been marked as a duplicate of this bug. ***