[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Module
On Mon, 8 Jan 2001 17:27:07 +0530 (IST),
Sourav Sen <sourav@csa.iisc.ernet.in> wrote:
> I am facing problems in loading a module under 2.2.16. The actual
>kernel is 2.2.14 and it loads in it without any trouble, but when I run my
>unmodified kernel 2.2.16(I only patched the kdb patch with it and
>configured with all kernel hacking options on) and try to do a insmod, it
>says that it could not find the kernel the module was compiled for. I put
>the CONFIG_MODVERSIONS on(ie, included modversions.h) also included the
>specific version.h file. (I declared the __NO_VERSION__ before including
>module.h so that it does not include version.h). But still it does not
>work. Any idea whats going wrong?
linux-kernel removed from cc:, this is definitely a newbies question.
l-k is for development, not for questions from beginners in kernel
programming.
Declaring __NO_VERSION__ before module.h suppresses the definition of
the kernel version. insmod is quite correct, the module contains no
version number. BTW, never (repeat *NEVER*) explicitly include
modversions.h. If you have to do that then your compile process is
broken.
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.surriel.com/kernelnewbies.shtml
- References:
- Module
- From: Sourav Sen <sourav@csa.iisc.ernet.in>