Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
IsraelOffline
Post subject: Linking Kernel Headers  PostPosted: 26.02.2012, 02:55



Joined: 2010-11-23
Posts: 11
Location: Hades
Status: Offline
Having trouble remembering how to link kernel headers. I thought this was it:

      Code:
ln -sf /usr/src/linux-headers-$(uname -r) /usr/src/linux


Here's the errors I'm getting:
      Code:
# make
make -C /lib/modules/3.2-6.slh.3-aptosid-686/build M=/home/ph33r/aha/gazettee modules
make[1]: Entering directory `/usr/src/linux-headers-3.2-6.slh.3-aptosid-686'
make[2]: *** No rule to make target `/home/ph33r/aha/gazettee/hello.c', needed by `/home/ph33r/aha/gazettee/hello.o'.  Stop.
make[1]: *** [_module_/home/ph33r/aha/gazettee] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2-6.slh.3-aptosid-686'
make: *** [all] Error 2


Here's the code I'm using, but it's happening with anything that uses kernel headers:
      Code:
#include <linux>
#include <linux>

int init_module(void)
{
        printk(KERN_INFO "init_module() called\n");
        return 0;
}

void cleanup_module(void)
{
        printk(KERN_INFO "cleanup_module() called\n");
}
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio