Find the answer to your Linux question:
Results 1 to 4 of 4
While running the module program, getting error like init.h,efi.h,spinlock.h no such file r directory... #include <linux/types.h> #include <linux/spinlock.h> #include <linux/init.h> #include <linux/pci.h> #include <linux/errno.h> #include <asm/efi.h> #include <asm/sn/klclock. can any ...
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    2

    Exclamation efi.h and spinlock.h headerfiles not found

    While running the module program,
    getting error like init.h,efi.h,spinlock.h no such file r directory...

    #include <linux/types.h>
    #include <linux/spinlock.h>
    #include <linux/init.h>
    #include <linux/pci.h>
    #include <linux/errno.h>
    #include <asm/efi.h>
    #include <asm/sn/klclock.

    can any one will solve my error...

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,977
    You are trying to build a kernel module? If so, then you need to install the kernel development and headers packages first.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    2
    Quote Originally Posted by Rubberman View Post
    You are trying to build a kernel module? If so, then you need to install the kernel development and headers packages first.
    Thanks for ur reply...

    can you tell which packages should install i was trying to run input related file....

  4. #4
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Hello.
    can you tell which packages should install
    Going from Rubberman's advice, you should be able find kernel-headers and kernel-devel in your package manager (Synaptic or apt-get)
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

Posting Permissions

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