Results 1 to 2 of 2
Hi All, I'm a new aspiring device driver programming learner. I have downloaded scull source code ( of Alessandro Rubini: linux device drivers third edition ) While I run make ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-18-2008 #1
- Join Date
- Jan 2007
Problem in compiling a device driver program
I'm a new aspiring device driver programming learner. I have downloaded scull source code ( of Alessandro Rubini: linux device drivers third edition )
While I run make command, I get following error
[parun@tunnel scull]$ make
make -C /lib/modules/2.6.18-1.2798.fc6/build M=/home/parun/Desktop/examples/scull LDDINC=/home/parun/Desktop/examples/scull/../include modules
make: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i586'
CC [M] /home/parun/Desktop/examples/scull/main.o
/home/parun/Desktop/examples/scull/main.c:17:26: error: linux/config.h: No such file or directory
make: *** [/home/parun/Desktop/examples/scull/main.o] Error 1
make: *** [_module_/home/parun/Desktop/examples/scull] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i586'
make: *** [modules] Error 2
As per my understanding, the main.c program refers a header file linux/config.h .But there was no config.h in linux source codes header directory.Is it the mistake of the scull code??
Reply me, if you find any clues
thanks and regards,
- 02-22-2008 #2
- Join Date
- Feb 2008
well, linux/config.h has been removed from kernel version > 2.6.16 (i guess.. dont remember the exact kernel version..) linux/config.h is not _THAT_ significant.. you can remove that file from your source code or just do "touch linux/config.h" and create a blank config.h file.. hope this helps