From: Steven Walter <srwalter@hapablap.dyn.dhs.org>
To: Timur Tabi <ttabi@interactivesi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: "couldn't find the kernel version the module was compiled for" - help!
Date: Tue, 14 Nov 2000 16:31:54 -0600 [thread overview]
Message-ID: <20001114163154.A3328@hapablap.dyn.dhs.org> (raw)
In-Reply-To: <20001114222843Z131509-521+212@vger.kernel.org>
In-Reply-To: <20001114222843Z131509-521+212@vger.kernel.org>; from ttabi@interactivesi.com on Tue, Nov 14, 2000 at 03:58:38PM -0600
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
undefined.
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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-14 23:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-14 21:58 "couldn't find the kernel version the module was compiled for" - help! Timur Tabi
2000-11-14 22:31 ` Steven Walter [this message]
2000-11-14 22:51 ` Timur Tabi
2000-11-14 23:31 ` Keith Owens
2000-11-14 23:35 ` Timur Tabi
-- strict thread matches above, loose matches on Subject: below --
2000-11-14 23:41 Keith Owens
2000-11-14 23:44 ` Timur Tabi
2000-11-15 0:41 ` David Schleef
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001114163154.A3328@hapablap.dyn.dhs.org \
--to=srwalter@hapablap.dyn.dhs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ttabi@interactivesi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox