plustek@linuxhacker.org

plustek@linuxhacker.org


Subject: Re: kernel-module version mismatch
From: Jaeger, Gerhard
Date: Mon, 18 Sep 2000 09:14:56 +0200

On Son, 17 Sep 2000, SM wrote:
> When I try to "make load" I get an error
> 
> /sbin/modprobe pt_drv || exit 1
> /lib/modules/2.2.14-6.0.6/misc/pt_drv.o: kernel-module version mismatch
>                     /lib/modules/2.2.14-6.0.1/misc/pt_drv.0 was compiled
> for kernel version 2.2.14-5.0
>                     while this kernel is version 2.2.14-6.0.1.
> 
> And, of course the make fails
> make: *** [load] Error 1
> 
> What can I do to correct this?
> 
> 
> Seibert Murphy
> sl_murphy@csi.com

Hi,

in general, the version information for each kernel
will be found at  /usr/include/linux/version.h

The path /usr/include/linux is a link to 
/usr/src/linux/include/linux and
/usr/src/linx is normally a link to your current
kernel, i.e:
/usr/src/linux-2.2.14

If you now upgrade your kernel and you have
forgotten to correct the link /usr/src/linux, then
every kernel-module you build outside the
kernelsource structure will include the wrong
version information.

So always remember to set the link /usr/src/linux
to your current kernel-source tree before recompiling
kernel-modules like pt_drv, then your version mismatch 
problem should be solved.

Gerhard


plustek@linuxhacker.org