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");
}
|