Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210147 - media-video/mplayer-1.0_rc2_p25993 fails with USE=dvd
Summary: media-video/mplayer-1.0_rc2_p25993 fails with USE=dvd
Status: RESOLVED INVALID
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:
Depends on:
Blocks:
 
Reported: 2008-02-14 16:06 UTC by Georgi Georgiev
Modified: 2008-02-15 16:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2008-02-14 16:06:57 UTC
The problem: installing mplayer-1.0_rc2_p25993 with USE=dvd fails with:

x86_64-pc-linux-gnu-gcc -o mencoder mencoder.o mp_msg-mencoder.o parser-mecmd.o xvid_vbr.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o get_path.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subopt-helper.o subreader.o vobsub.o unrar_exec.o libmpcodecs/libmpencoders.a libmpdemux/libmpmux.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a osdep/libosdep.a -lfaac -lmp3lame -Wl,-z,noexecstack    -lncurses -lsmbclient -lpng -lz -ljpeg -lgif -lasound -ldl -lpthread -lcdda_interface -lcdda_paranoia -lfreetype -lz -lfontconfig  -lenca -lz -llzo2 -lmad -lspeex -ldts -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++ -ldv -lxvidcore -lm -lpthread -ldl  -llirc_client -L/usr/lib64 -ldvdnavmini -lpthread  -lm
stream/stream.a(stream_dvdnav.o): In function `identify_chapters':
stream_dvdnav.c:(.text+0x1da): undefined reference to `dvdnav_describe_title_chapters'
collect2: ld returned 1 exit status
make: *** [mencoder] Error 1
make: *** Waiting for unfinished jobs....
stream/stream.a(stream_dvdnav.o): In function `identify_chapters':
stream_dvdnav.c:(.text+0x1da): undefined reference to `dvdnav_describe_title_chapters'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

The problem is two-fold:

1. The latest mplayer (and possibly earlier versions) pick up and link against my external libdvdnav-4.1.1 library. Interestingly I don't see explicit "--enable-dvdnav" anywhere in the ebuild nor do I see a dependency.

2. The latest mplayer needs a version of libdvdnav newer than 4.1.1 as pointed out in this message: http://lists.mplayerhq.hu/pipermail/mplayer-users/2007-December/070532.html
So we also needs a svn snapshot of libdvdnav in the tree.

I actually did add an ebuild for libdvdnav to my overlay -- a copy of 4.1.1 with the following changes

--- libdvdnav-4.1.1.ebuild      2007-11-02 11:13:46.000000000 +0900
+++ libdvdnav-4.1.1_p996.ebuild 2008-02-15 00:48:25.623418270 +0900
@@ -4,11 +4,13 @@

 WANT_AUTOCONF="2.5"

-inherit eutils autotools multilib
+inherit eutils autotools multilib subversion

 DESCRIPTION="Library for DVD navigation tools"
 HOMEPAGE="http://mplayerhq.hu/"
-SRC_URI="mirror://mplayer/releases/dvdnav/${P}.tar.gz"
+ESVN_REPO_URI="svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav"
+SVNREV="${PV##*_p}"
+ESVN_OPTIONS="-r $SVNREV"

 LICENSE="GPL-2"
 SLOT="0"

and what do you know -- mplayer installed fine afterwards. It even managed to play dvdnav:// streams while it was miserably failing before.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-14 17:43:57 UTC
Post your emerge --info and `emerge -pv mplayer libdvdnav` output; it works perfectly fine here.


[ebuild     U ] media-video/mplayer-1.0_rc2_p25993 [1.0_rc2_p24929-r3] USE="3dnow 3dnowext X a52 aac aalib alsa (-altivec) amrnb amrwb -arts -bidi -bindist bl cddb -cdio cdparanoia cpudetection -custom-cflags -debug dga directfb -doc dts dv dvb dvd enca encode -esd fbcon ftp ggi gif gtk iconv ipv6 jack joystick jpeg -ladspa libcaca lirc live -livecd lzo mad md5sum mmx mmxext mp2 mp3 musepack -nas -nemesi openal opengl -oss png pnm pulseaudio quicktime radio rar real rtc samba sdl speex srt sse -sse2 -ssse3 -svga teletext tga theora -tivo truetype unicode v4l v4l2 -vidix vorbis win32codecs x264 xanim xinerama xv xvid xvmc -zoran" VIDEO_CARDS="-mga -s3virge -tdfx vesa" 7,763 kB 
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-14 18:14:45 UTC
ZOMG, different version...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-14 20:07:12 UTC
Well actually I can't reproduce this at all... So, once again - post your emerge --info and `emerge -pv mplayer libdvdnav` output.

[ebuild   R   ] media-video/mplayer-1.0_rc2_p25993  USE="3dnow 3dnowext X a52 aac aalib alsa (-altivec) amrnb amrwb -arts -bidi -bindist bl cddb -cdio cdparanoia cpudetection -custom-cflags -debug dga directfb -doc dts dv dvb dvd enca encode -esd fbcon ftp ggi gif gtk iconv ipv6 jack joystick jpeg -ladspa libcaca lirc live -livecd lzo mad md5sum mmx mmxext mp2 mp3 musepack -nas -nemesi openal opengl -oss png pnm pulseaudio quicktime radio rar real rtc samba sdl speex srt sse -sse2 -ssse3 -svga teletext tga theora -tivo truetype unicode v4l v4l2 -vidix vorbis win32codecs x264 xanim xinerama xv xvid xvmc -zoran" VIDEO_CARDS="-mga -s3virge -tdfx vesa" 0 kB 

[ebuild   R   ] media-libs/libdvdnav-0.1.10  528 kB 
Comment 4 Georgi Georgiev 2008-02-15 00:46:19 UTC
Jakub, you will be able to reproduce it if you install libdvdnav-4.1.1 (it's hard-masked). The mplayer configure script tries to find libdvdnav by running "dvdnav-config --minilibs" and minilibs is a parameter that did not exist in version 0.1.10. Check the output of the configure script, yours probably says

Checking for DVD support (libdvdnav) ... no

Anyway, here's what you ask for (never mind the U for libdvdnav, I just tried to reproduce the problem again):

lion ~ # emerge -pv libdvdnav mplayer

[ebuild     U ] media-libs/libdvdnav-4.1.1_p996 [4.1.1] USE="-debug" 0 kB [0=>1]
[ebuild   R   ] media-video/mplayer-1.0_rc2_p25993  USE="3dnow 3dnowext X a52 aac aalib alsa (-altivec) -amrnb -amrwb -arts -bidi -bindist -bl -cddb -cdio cdparanoia -cpudetection -custom-cflags -debug dga directfb -doc dts dv -dvb dvd enca encode -esd fbcon ftp -ggi gif gtk iconv ipv6 -jack joystick jpeg -ladspa -libcaca lirc live -livecd lzo mad -md5sum mmx mmxext -mp2 mp3 -musepack nas -nemesi -openal opengl -oss png -pnm -pulseaudio quicktime -radio rar -real -rtc samba sdl speex -srt sse sse2 ssse3 (-svga) -teletext -tga -theora -tivo truetype unicode v4l v4l2 (-vidix) vorbis (-win32codecs) -x264 -xanim -xinerama xv xvid xvmc -zoran" VIDEO_CARDS="mga -s3virge -tdfx vesa" 0 kB

lion ~ # emerge -av mplayer
<...>
stream/stream.a(stream_dvdnav.o): In function `identify_chapters':
stream_dvdnav.c:(.text+0x1da): undefined reference to `dvdnav_describe_title_chapters'
<...>

lion ~ # emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-y3 x86_64)
=================================================================
System uname: 2.6.24-y3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+
Timestamp of tree: Fri, 15 Feb 2008 00:16:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /lib64/modules /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="buildpkg collision-protect distlocks metadata-transfer noinfo parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS=" ftp://ftp.gg3.net/pub/linux/gentoo"
INSTALL_MASK="  usr/share/info  usr/share/locale/[^bej]*/       usr/share/locale/b[^g]*/        usr/share/locale/e[^n]*/        usr/share/locale/j[^a]*/        "
LANG="en_US.utf8"
LINGUAS="en_US en ja bg"
MAKEOPTS="-j4"
PKGDIR="/var/repos/data/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from /etc/portage/rsync_excludes --progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/repos/gentoo"
PORTDIR_OVERLAY="/var/repos/cpan /var/repos/maildir /var/repos/linux-info /var/repos/java-overlay /var/repos/chutz /var/repos/provided"
SYNC="rsync://rsync.gg3.net/gentoo-portage"
USE="3dnow 3dnowext 7zip X Xaw3d a52 aac aalib accessibility acl acpi alsa amd64 anthy apache2 audiofile avi berkdb bitmap-fonts bittorrent bonobo boost branding bzip2 cairo canna caps cdinstall cdparanoia cdr cjk clamav cli cracklib crypt cscope cups curl dbus dga dia dmx dri dts dv dvd dvdr dvdread eb eds ejb3 emboss encode evo exif expat fam fame fastcgi fat fbcon ffmpeg fftw finger firefox flac foomaticdb ftp gd gdbm gecko-sdk gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hbci hfs hpn iconv id3 idn ieee1394 imagemagick imap imlib ipod iproute2 ipv6 ipv6arpa isdnlog java javascript jbig jfs joystick jpeg jpeg2k junit lame latex lcms ldap libwww lirc live lua lzo m17n-lib mad maildir matroska matrox mbrola midi mikmod mjpeg mmx mmxext mng mozbranding moznoirc moznomail mp3 mp4live mpeg mpeg2 mplayer msn mudflap mule mysql mysqli nas ncurses net network nls nntp no-htdocs noauthcram nptl nptlonly ntfs offensive ofx ogg opengl openmp paludis pam pcre pdf perl plotutils png postscript ppds pppd prime python qt3support qt4 quicktime readline realmedia reflection reiser4 reiserfs ruby samba scanner screen sdl session silc slang smime smp smtpauth sndfile speex spell spl sqlite3 sse sse2 ssl ssse3 startup-notification svg sysfs system-iiimf tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 validrcptto vcd vim-syntax vim-with-x visibility vnc vorbis wavpack webdav wma wmf wxwindows xattr xcb xfs xgetdefault xml xml2 xorg xpm xv xvid xvmc yv12 zlib" ALSA_CARDS="emu10k1 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="linuxinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en ja bg" LIRC_DEVICES="livedrive_midi livedrive_seq" USERLAND="GNU" VIDEO_CARDS="mga matrox vesa vga nv nvidia"
Unset:  CPPFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 5 Steve Dibb (RETIRED) gentoo-dev 2008-02-15 01:26:01 UTC
Don't use svn snapshot of libdvdnav ... it's hard masked, unsupported, and needs to be completely fixed.

In short, we're not going to support building against it until it's not masked.
Comment 6 Georgi Georgiev 2008-02-15 01:47:32 UTC
(In reply to comment #5)
> Don't use svn snapshot of libdvdnav ... it's hard masked, unsupported, and
> needs to be completely fixed.
> 
> In short, we're not going to support building against it until it's not masked.
> 

That's quite alright. But don't you think you should support *NOT* building against dvdnav-4.1.1? Right now you are doing automagic detection for USE=dvd, which just happens to not pick up anything because there is no compatible unmasked version of dvdnav.

Always adding --disable-dvdnav (even for USE=dvd) should do the trick since you are not building against *any* version of dvdnav anyway.

You see, I'm not asking you to support dvdnav but to fix a build failure. I never really cared about dvdnav until the last version bump of mplayer failed to build.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-02-15 15:01:23 UTC
As noted above; using p.masked stuff in unsupported.
Comment 8 Steve Dibb (RETIRED) gentoo-dev 2008-02-15 16:18:56 UTC
For the record, just put a much cleaned up bump of libdvdnav in the tree.  Still unsupported, but should work much better.