The location of the kernel header files has to be specified in the make file
accompanying the driver or included in the command line. I was just
specifying the location in the make file and the resulting error is what I
posted. I was looking to find out about the symbolic link mentioned in the
error message. Looks to me like the kernel header files should not be
accessed directly. Here is the error extracted from the rubbish.
You should not include /usr/include/{linux,asm}/ header files directly for
the compilation of kernel modules. glibc now uses kernel header files from a
well-definedworking kernel version (as recommended by Linus Torvalds)"These
files are glibc internal and may not match the"currently running kernel.
They should only be included via other system header files - user space
programs should not directly include <linux/*.h> or <asm/*.h> as well. To
build kernel modules please do the following: Have the kernel sources
installed Make sure that the
symbolic link"/lib/modules/`uname -r`/build exists and points to the
matching kernel source
directory. Now copy /boot/vmlinuz.version.h to
/lib/modules/`uname -r`/build/include/linux/version.h When compiling, make
sure to use the following compiler option to use the correct include
iles: -I/lib/modules/`uname -r`/build/include instead
f -I/usr/include/linux. Please adjust the Makefile accordingly."
Don't know if I have kernel sources installed (how do I check)
Know nowt about symbolic links (newbie like I said :-)
Will I have to do this manually?
Cheers for the replies, wasn't expecting much on a sunday.
Steve
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!