From: <sa...@es...> - 2002-03-25 23:22:29
|
Hi, I tried to run ``make'' (on kernel 2.4.2-2) and got these error message: I'm sure it is a simple misunderstanding on part on how to set up the kernel sources (which are in /usr/src/linux-2.4). For some reason the file /usr/include/linux/module.h is being seen first rather than /usr/src/linux-2.4/include/linux/module.h ... which does exist. How do I force it to look in /usr/src/linux-2.4/include first? Thanks, Sridhar. ....some deleted material make[2]: Entering directory `/home/sak/GPIB/linux-gpib-3.1.2/driver/nec7210' gcc -I. -I../include -I../../include -DEXPORT_SYMTAB -c -o cmd.o cmd.c In file included from /usr/include/linux/module.h:21, from board.h:25, from cmd.c:19: /usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers, /usr/include/linux/modversions.h:2:2: #error but headers from an appropriate kernel-source make[2]: *** [cmd.o] Error 1 make[2]: Leaving directory `/home/sak/GPIB/linux-gpib-3.1.2/driver/nec7210' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory `/home/sak/GPIB/linux-gpib-3.1.2/driver' make: *** [linux-gpib] Error 2 |