[lkml]   [2000]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
If my understanding is correct, you need to include version.h without
"#define __NO_VERSION__" in one and only one of your module's .c files.
More than one, and you get redefinition errors; less than one, and its

On Tue, Nov 14, 2000 at 03:58:38PM -0600, Timur Tabi wrote:
> I'm at a loss to explain why I can't get this working.
> I have a driver written for 2.4 that I'm porting back to 2.2. Every time I
> think I got it working, something surprises me.
> First, I had a bunch of link errors on the redifintion of
> __module_kernel_version. To fix that, someone told me to do this:
> #define __NO_VERSION__
> #include <linux/version.h>
> And sure enough, no more errors.
> However, now I get this error from insmod when I try to load my driver:
> [root@two ttabi]# insmod tdmcddk.sys
> tdmcddk.sys: couldn't find the kernel version the module was compiled for
> I've tried all sorts of things - recompiling the kernels, changing the order of
> #include files (version.h, module.h, modversions.h, whatever). Either the
> driver won't link, or it won't load.
> I had our other Linux programmer (who works only with 2.2) look at the problem,
> but he couldn't figure it out, either.
> I'd be very appreciative of any assistance.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.040 / U:1.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site