Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    4

    Problem in compiling a device driver program


    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 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[1]: 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[2]: *** [/home/parun/Desktop/examples/scull/main.o] Error 1
    make[1]: *** [_module_/home/parun/Desktop/examples/scull] Error 2
    make[1]: 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,
    Arun

  2. #2
    Just Joined!
    Join Date
    Feb 2008
    Posts
    7
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •