[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kernel version
Rupa wrote:
> In my source file, i have included
>
> #include <linux/version.h>
>
> and also i complied using this option
>
> gcc -D__MODULE__ -I/usr/include/linux-2.4/include -c <modulename>
>
>
>
> But even then iam getting same error.
>
>
>
> Regards,
> R.Rupa
> ----- Original Message -----
>
> *From:* Lakshmi Shanmugam <mailto:lakshmi@nodeinfotech.com>
>
> *To:* Rupa <mailto:rupa.ramakrishna@ionidea.com>
>
> *Sent:* Friday, July 05, 2002 3:54 PM
>
> *Subject:* RE: kernel version
>
>
> Include linux/version.h file
>
>
>
> Lakshmi
>
> -----Original Message-----
> *From:* kernelnewbies-bounce@nl.linux.org
> <mailto:kernelnewbies-bounce@nl.linux.org>
> [mailto:kernelnewbies-bounce@nl.linux.org]*On Behalf Of *Rupa
> *Sent:* Friday, July 05, 2002 3:31 PM
> *To:* kernelnewbies@nl.linux.org <mailto:kernelnewbies@nl.linux.org>
> *Subject:* kernel version
>
> Hello,
>
>
>
> I compiled sample kernel module in linux. When i tryed
> to load the module it is showing the following error:
>
> # insmod ./myprog.o
>
> ./myprog.o: couldn't find the kernel version the module
> was compiled for.
>
> Can any one help me to load the module.
>
> Regards,
> R.Rupa
>
I think your kernel was not compiled with the module option enabled. Try
enabling the option and try loading the module.
Regards
Ramki.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/