Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58086 - mplayer-1.0_pre5-r1 -- problems, problems, problems.
Summary: mplayer-1.0_pre5-r1 -- problems, problems, problems.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical
Assignee: Chris White (RETIRED)
URL:
Whiteboard: user testing
Keywords:
: 58141 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-23 10:01 UTC by Roman Gaufman
Modified: 2004-07-25 05:55 UTC (History)
2 users (show)

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 Roman Gaufman 2004-07-23 10:01:39 UTC
Problems in this new mplayer release:
1) Auto compiles for mmx2 when using mmx use flag (breaks everything).
2) -vo xv is missing unless gtk use flag is used (why?).
3) New "cache_min" and "cache_prefill" in gentoo's mplayer.conf are invalid (unrecognized by mplayer)

All previous versions worked fine. This one is pretty broken: auto compiling for mmx2 results in crashes on startup, sudden lack of -vo xv if using -gtk means that mplayer suddenly wont work for some reason after update. Please look into the issues, they seem easy enough to fix.

Reproducible: Always
Steps to Reproduce:
Comment 1 Roman Gaufman 2004-07-23 10:12:35 UTC
hmm, also, -vo xv is broken, all the colours are broken, I see everything in yellow and orange, all distorted and pixelated.

I'm using the gatos driver for my radeon mobility 8mb, and it worked fine in all previous mplayer releases.

laptop root # emerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-ck2)
=================================================================
System uname: 2.6.7-ck2 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -mmmx -O3 -pipe -fomit-frame-pointer -ffast-math -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -mmmx -O3 -pipe -fomit-frame-pointer -ffast-math -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apm audiofile avi cap cdr crypt cups dvd emacs encode ethereal faad foomaticdb gif gphoto2 gpm gstreamer gtk2 imap imlib imlib2 jpeg kde libg++ libwww mbox mmx mozilla mysql ncurses oggvorbis pam pcmcia pdflib php pic png pnp python qt quicktime readline spell ssl tcpd tiff truetype trusted usb wifi x86 xv xvid zlib"
Comment 2 Roman Gaufman 2004-07-23 10:32:38 UTC
Example of how all videos play with -vo xv (-vo x11 works fine, but too slow on my laptop)
ftp://public:asd@81.86.159.146/MVI_4432.AVI
Comment 3 scaba 2004-07-23 12:05:45 UTC
i've got a compile error with this release, mplayer-1.0_pre5 was compiling nicely.

gcc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=pentium4 -mtune=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include    -o parser-mecmd.o parser-mecmd.c
gcc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=pentium4 -mtune=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include -o mencoder mencoder.o mp_msg-mencoder.o cpudetect.o codec-cfg.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o unrarlib.o libao2/afmt.o divx4_vbr.o libvo/aclib.o libvo/osd.o libvo/sub.o libvo/font_load.o libvo/font_load_ft.o xvid_vbr.o parser-mecmd.o libmpcodecs/libmpencoders.a -lmp3lame -lvorbis -logg libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a loader/libloader.a loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a   -lmad -lvorbis -logg -ldv  -lfaad  -lmp3lame -lvorbis -logg  -lpng -lz -lz -ljpeg -lasound -ldl -lpthread  -lfreetype -lz     -lgif     -lfontconfig        -lpthread -ldl -rdynamic   -lm
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libgif.so: undefined reference to `XDestroyImage'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libgif.so: undefined reference to `XGetWindowAttributes'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libgif.so: undefined reference to `XGetImage'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libgif.so: undefined reference to `XGetPixel'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libgif.so: undefined reference to `XQueryColors'
collect2: ld returned 1 exit status
make: *** [mencoder] Error 1

!!! ERROR: media-video/mplayer-1.0_pre5-r1 failed.
!!! Function src_compile, Line 290, Exitcode 2
!!! Failed to build MPlayer!


root@simon # emerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7-ck5)
=================================================================
System uname: 2.6.7-ck5 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo/ http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-gnome-current /usr/local/bmg-main"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imlib java jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses nls nptl oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml2 xv zlib"
Comment 4 j. 2004-07-23 16:12:31 UTC
same "libgif.so: undefined reference" errors here. (gcc 3.4.1 & xorg)

updating the ebuild seems to take care of it:

@@ -285,7 +285,7 @@
                # config.mak doesn't set GIF_LIB so gif related source files fail
                if use gif
                then
-                       sed -e "s:GIF_LIB =:GIF_LIB = -lgif:" -i config.mak
+                       sed -e "s:GIF_LIB =:GIF_LIB = -lgif -L/usr/X11R6/lib -lX11:" -i config.mak
                else
                        sed -e "s:GIF_LIB =:GIF_LIB = -lungif:" -i config.mak
                fi

not sure if the same applies for USE = -gif
Comment 5 Chris White (RETIRED) gentoo-dev 2004-07-23 21:17:04 UTC
Working on this right now.
Comment 6 Chris White (RETIRED) gentoo-dev 2004-07-23 21:35:37 UTC
*** Bug 58141 has been marked as a duplicate of this bug. ***
Comment 7 Chris White (RETIRED) gentoo-dev 2004-07-23 22:28:55 UTC
Added to cvs with fixes for issues mentioned.  Please let me know if it's still causing you guys issues.  Thanks for the report!

Bug #58082: patch added to cvs as requested.
Comment 8 Brian Harring (RETIRED) gentoo-dev 2004-07-24 02:56:29 UTC
Patch was commited in pre4-r6 and pre5-r1, corrected in pre4-r7 and pre5-r2.

Chris, 
the automatic sed'ing of GIF_LIB when !gif just automatically linked in /usr/lib/libgif on all users systems who tried that ebuild, causing A) borkage if the lib didn't exist, B) borkage if gif was on, since the logic was inverted.  The use gtk && use X fix wasn't a valid fix, the issues were with libgif being used rather then libungif.

I've corrected this and revbumped due to the automatic linking in of libgif when it was explicitly disabled- the configuring of a package *must* abide by what the package claims it depends on.

Hackeron please take the new versions for a spin.  I went through and QA'd the hell out of them, shouldn't be much left.

Meanwhile closing this.
Comment 9 Brian Harring (RETIRED) gentoo-dev 2004-07-24 03:03:09 UTC
Hackeron also,
#1 the mmx/sse flags have been reverted to their pre4-r4 behaviour- fex, if sse isn't enabled, mplayer is configured w/ --disable-sse --disable-sse2.  Otherwise it's left upto mplayer to autodetect enable.
The reasoning for this is that A) we lack a sse2 flag, B) the sse flag should cover both sse and sse2 imo.  Either way, I fixed it.
#3 the broken configure, has been corrected by eradicator.

Keep 'em coming :)
Comment 10 Brian Harring (RETIRED) gentoo-dev 2004-07-24 03:28:17 UTC
Chris- when you grab bugs, please leave the herd cc'd so we know what's going on.
Comment 11 Roman Gaufman 2004-07-24 03:40:00 UTC
Is it me or we need sse2/mmx2 use flags?

Just reviewed the new -r1, wrote a bunch of criticism on it, then realised r2 is out, nice job ;)

All issues resolved quickly as always. Hip hip hurray to gentoo's QA ;)
Comment 12 Roman Gaufman 2004-07-25 03:04:03 UTC
Well, there is a problem. I'm on an AMD that supports mmx2. I want to compile mplayer for another machine supporting mmx1 only. We need an mmx2 use flag damn it!
Comment 13 Brian Harring (RETIRED) gentoo-dev 2004-07-25 05:55:25 UTC
Hackeron,
bigger problem is ensuring all libraries between the binary is compatible between the two systems, and possible lib variations :)

I really don't have much interest in this, although you did raise a valid point- care to take it to the -dev mailing list and get general feedback?