Re: Unresolved symbols with mga_vid on 2.4

Attila Kinali <[email protected]> Wed, 15 Jun 2005 10:21:07 +0200
Newsgroups gmane.comp.video.mplayer.user.matrox
Message-ID <[email protected]>
On Tue, 14 Jun 2005 14:21:51 +0100
Martin Collins <[email protected]> wrote:

> /lib/modules/2.4.20/kernel/drivers/video/matrox/mga_vid.o: couldn't
>   find the kernel version the module was compiled for
> /lib/modules/2.4.20/kernel/drivers/video/matrox/mga_vid.o: insmod
>   /lib/modules/2.4.20/kernel/drivers/video/matrox/mga_vid.o failed
> /lib/modules/2.4.20/kernel/drivers/video/matrox/mga_vid.o: insmod
>   mga_vid failed

I assume you are using mga_vid from the MPlayer cvs.

Then it's most probably that you compiled mga_vid against the
wrong kernel. The Makefile assumes that you want to compile
mga_vid for the currently running kernel and that it has
a /lib/modules/<kernel-version>/build directory. IIRC 2.4.20
does not yet have one, thus you have to change the KERNEL_DIR
variable at the beginning of the Makefile to somehting like
this:
KERNEL_DIR = /usr/src/linux/

HTH

				Attila Kinali

-- 
郷に入れば郷に従え