No Such File "/linux/modversions.h"
I am trying to compile a driver under Debian 3.0r1 woody with GCC 2.95. The Makefile is set to compile with this command line:
gcc -DMODULE -D__KERNEL__ -DDBC=0 -Wall -Wstrict-prototypes-06 -I/usr/src/linux -c -o [filename].o [filename].c Sorry, it's not verbatim, but my Linux partition cannot get Internet access until this module compiles and insmods correctly. /usr/src/linux is a symbolic link to the kernel headers for my kernel: /usr/src/kernel-headers-2.4.18-686/include/linux. Any code that has #include <linux/modversions.h> gives me a file-not-found error message; however, other headers like #include <linux/config.h> do not give me such an error. I looked in the appropriate directory, and this file is there, along with the other headers. Anyway, trying this sample code gives me the same errors with that header: Code:
#include <linux/config.h> |
missing modversions.h
Hi,
You might look at this post concerning someone who had a similar problem to yours: http://mail-archives.engardelinux.or.../Feb/0012.html I followed the link given: ftp://ftp.binarytool.com/pub/linux/e...drv-source.tgz and downloaded. After unzipping and untaring, the source directory had a "dummy" modversions.h file in it. I do not know if this will serve your purpose or not. I thought it might be worth looking at. Good luck. |
All times are GMT -5. The time now is 09:00 PM. |