It looks to me like you've included files from /usr/include which you don't want to do when building a module. Make sure that you have the -I<your linux src dir>/include on when you compile your module so that the <linux src dir>/include directory is searched for include files. john ----- Original Message ----- From: "kannan ram" <rama_kanna@hotmail.com> To: <kernelnewbies@nl.linux.org> Sent: Tuesday, October 02, 2001 12:49 AM Subject: error when compiling hello.c > Hai, > I have gone through Linux Kernel Module Programming Guide.I tried to run > the simple module hello.c.when I compiled I got teh error message > /usr/include/linux/modversions.h#error Modules should never use kernel > headers system heads(this is the message from the that header file) > I am using Red Hat Linux-7.1 and the kernel version is 2.4.2-2. > What went wrong?Thank u in advance for spending time for me > > Kannan Ram > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > - > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > IRC Channel: irc.openprojects.net / #kernelnewbies > Web Page: http://www.kernelnewbies.org/ > - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/