Re: Error compiling simple module

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

 



>    The code is almost the same from the web site except I have not used
> CONFIG_MODVERSIONS because I get the errors from the include which say
> "/usr/include.... :1:2:error : Modules should never use kernel system
> headers".

Sounds like you've already found your answer. You're including system
headers instead of kernel headers. Use the -I option to gcc and point it
at your kernel headers.

> RedHat 7.2 kernel 2.4.7-10

You can probably get your kernel headers from a RedHat RPM on your CD.

John


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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux