Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 26552

Summary: mplayer and development kernel (2.6.0-test2)
Product: Gentoo Linux Reporter: Rob Kruus <crowbar>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED DUPLICATE    
Severity: normal CC: azarah, chutz+bugs.gentoo.org, luke-jr+gentoobugs, lv
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mga_vid-kern26.patch
mga_vid-1.0_pre3.ebuild

Description Rob Kruus 2003-08-13 09:04:50 UTC
The mplayer-0.90-r5 ebuild fails when using the development kernel series.
It looks for /usr/src/linux/include/linux/modversions.h which in the
devlopment series is in /usr/src/linux/include/config/.
A symbolic link seems to resolve this problem.
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2003-09-01 17:04:42 UTC
The module handling in the 2.5/2.6 development kernels is entirely different. If mplayer is trying to compile kernel support for the mga vo or any other such thing it simply will not work anyways... even if it compiles and installs. The new kernel module system requires an additional linking step to make the resulting .o into an acceptable .ko for loading into the kernel...

Another partially related bug with mplayer and the development kernels is that it refuses to compile framebuffer console support if you are running a 2.5/2.6 kernel. Which is 'OK' if you're using a 2.5/2.6 kernel as framebuffer support wouldnt work anyways... that subsystem is completely different and incompatible with previous incarnations. But if you intend on also using a 2.4 kernel it's kinda sucky to need to be booting into a 2.4 kernel with framebuffer support loaded just to compile mplayer with framebuffer support (it checks for the framebuffer device under /dev).

There are other such similar issues with the development kernel and mplayer... mplayer's configure is obnoxious. It would probably be more work than it's worth to fix all of it's issues. But for now mplayer ebuilds should check for a running >=2.5 kernel and disable certain USE settings if one is running: 3dfx, matrox, fbcon. As for the alsa and oss USE flags, I dont believe these require any use of kernel headers... I maybe wrong. If they do they certainly shouldnt need modversions.h

remove your symbolic link and re-merge mplayer with the above USE settings disabled. If mplayer compiles perfectly with them disabled, post a note on this bug report and hopefully when (more like IF) someone notices it a fix will make it's way into portage.
Comment 2 Rob Kruus 2003-09-04 07:10:56 UTC
mplayer-0.91 compiles fine when fbcon/matrox etc are disbled. This is under linux-2.6.0-test4.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-04 14:43:54 UTC
Please do not use the headers from 2.5/6 symlinked to /usr/include/{asm,linux}.
If I had my way, I would mark this invalid, as the kernel devs give a damn, and
will not fix issues for userspace regarding kernel headers (not saying you have,
as I have not run into this yet, and been using 2.5/6 for a long time with
Gentoo kernel-headers ...).

Ditto for 2.6 support of modules (will not work with 2.6).  Patches will be we
welcome though, but I do not use those (nvidia over here).
Comment 4 Georgi Georgiev 2004-01-03 21:51:10 UTC
Regarding the USE=matrox issue -- there is a patch submitted by Gabuccino to the mplayer-dev mailing list. I use it and it works fine. Someone mentioned on the mplayer list that it is broken, but it works fine on my system. Care to apply it to the gentoo ebuild? The link is http://article.gmane.org/gmane.comp.video.mplayer.devel/12886

Also, because of bug #28846 I am actually using a media-video/mga_vid ebuild on my system. I am attaching it as well, because a few changes needed to be made for the module to get compiled and installed properly with kernel-2.6.

I've tested this with mplayer-1.0_pre3, so I have no idea if it will work fine on 0.90.
Comment 5 Georgi Georgiev 2004-01-03 21:53:29 UTC
Created attachment 23124 [details, diff]
mga_vid-kern26.patch

The mga_vid-kern26.patch. See next attachment for how to apply and compile.
Comment 6 Georgi Georgiev 2004-01-03 21:54:40 UTC
Created attachment 23125 [details]
mga_vid-1.0_pre3.ebuild

An mga_vid.ebuild that illustrates how to use the mga_vid-kern26.patch in an
ebuild.
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2004-01-13 13:54:41 UTC
*** Bug 31176 has been marked as a duplicate of this bug. ***
Comment 8 Patrick Kursawe (RETIRED) gentoo-dev 2004-05-11 09:51:55 UTC
Found this bug a little too late. The matrox problem should be solved with mplayer-1.0_pre4-r2, though.

*** This bug has been marked as a duplicate of 40616 ***