Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23247 - gentoo-sources keep media-video/mgavideo from running
Summary: gentoo-sources keep media-video/mgavideo from running
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-21 16:02 UTC by Marcel Transier
Modified: 2003-08-10 09:28 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 Marcel Transier 2003-06-21 16:02:08 UTC
I switched from vanilla-kernel to gentoo-kernel (2-4-20) yesterday. And of course I wanted to 
watch TV with that kernel too with my matrox g400 and I tried to emerge mgavideo. 
 
At bootup I got the message "couldn't load mgajpg.o". 
 
depmod and modprobe gave some unresolved symbols "pte_offset". A closer look at the 
emerge-output showed a warning about the same unresolved symbol, so I guess thats where 
it started. 
 
Everything works fine with vanilla kernel, thats why I put it to Core category. plus, it's kernel 
modules I want to get. 

Reproducible: Always
Steps to Reproduce:
1. emerge and compile gentoo-kernel 
2. make symlink /usr/src/linux 
3. emerge mgavideo 
Actual Results:  
during emerge: warning: unresolved external symbols "pte_offset" 
later during modprobe/boot: fails to load module with "missing symbol pte_offset" 

Expected Results:  
compiled without /less warnings. loaded the modules. 

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20 i686 AMD Athlon(tm) Processor 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="/usr/portage/local" 
USE="x86 oss apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls 
pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm slang readline arts bonobo 
svga java guile X sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis gtk motif opengl 
mozilla -3dnow acpi -berkdb cdr dga directfb doc dvd evo flash gd ggi ggz -gnome matrox 
mysql nocardbus pda perl pic samba snmp tcltk tetex tiff xml qt kde" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=athlon -O3 -pipe" 
CXXFLAGS="-march=athlon -O3 -pipe" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Jules Gagnon 2003-06-23 08:51:01 UTC
I also have this problem with gentoo-sources-2.4.20-r5, but it was ok with gentoo-sources-2.4.20-r2 and older gentoo-sources.
Comment 2 Jules Gagnon 2003-06-27 08:45:53 UTC
The problem came from the 011_rmap15f_030412_ck_2.4.20.rmap patch.
All pte_offset in the kernel have been replaced by pte_offset_kernel.

A quick fix would be to patch mgacore.h to replace pte_offset by pte_offset_kernel on line 501.

Personaly I use mgavideo-0.1.1b manually compiled. I had problem running mythtv and mgavideo-0.1.0. 0.1.1b seems stable, I am using it for two months. It could be useful if someone could add a ebuild for mgavideo-0.1.1b.
Comment 3 Jay Pfeifer (RETIRED) gentoo-dev 2003-06-27 12:55:06 UTC
there are many items that can be broken because of the changes rmap introduces. Get used 
to it, 2.5 is based on rmap... hence, so will 2.6. Packages need to check for the presence of 
rmap and then apply a patch... or for now - use aavm in gentoo-sources. This package's 
problem need to be fixed by the maintainer. If you need a reference, look @ how I structured 
the nvidia-kernel ebuild when it had this issue. 
 
Regards, 
 
Jay 
Comment 4 Chris PeBenito (RETIRED) gentoo-dev 2003-07-11 20:53:03 UTC
Ok, I've got the hardware for this.  It is an rmap issue, and I've got a patch thats been working fine for me.  I'll commit it in the next day or so.

Since there is no rmap use flag, as per Jay's suggestion, I'll have the patch apply on this condition:

if [ -f /usr/src/linux/mm/rmap.c ]; then ....
Comment 5 Chris PeBenito (RETIRED) gentoo-dev 2003-07-12 19:44:30 UTC
I've committed a fix mgavideo.  Please let me know if this works for you or not.
Comment 6 Chris PeBenito (RETIRED) gentoo-dev 2003-08-10 09:28:44 UTC
closing