[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: module compilation



>
> hi all,
>         i got this error while compiling a module.
>        
> "/usr/include/linux/modversions.h:1:2: #error Modules should never
> use kernel-headers system headers, but headers from an appropriate
> kernel-sources"         what does this mean?
> what is the solution?         thanks in advance,

Use the headers directly from the kernelsource and not
from /usr/include/linux/.
Usually this is found in /usr/src/linux/include/ or /usr/src/linux-
<version>/include/. If not, download the source for the version you are
compiling and untar it to that location.


> - prabhakar &nbsp; &nbsp; &nbsp; &nbsp;
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/

If you had read the FAQ you wouldn't have had to ask this question.
Search for "How do I compile a module?"



Christian Vik


-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/