Results 1 to 1 of 1
Hi,
while trying to compile my module on SUSE-enterprise linux,i'm getting the following error message:
snowflake:/home/amit/ldd # make -C /lib/modules/`uname -r`/build M=`pwd` modules
make: Entering directory `/usr/src/linux-2.6.16.21-0.8-obj/i386/smp'
make: *** No ...
- 07-26-2007 #1
module compilation error
Hi,
while trying to compile my module on SUSE-enterprise linux,i'm getting the following error message:
snowflake:/home/amit/ldd # make -C /lib/modules/`uname -r`/build M=`pwd` modules
make: Entering directory `/usr/src/linux-2.6.16.21-0.8-obj/i386/smp'
make: *** No rule to make target `modules'. Stop.
make: Leaving directory `/usr/src/linux-2.6.16.21-0.8-obj/i386/smp'
snowflake:/home/amit/ldd # echo $?
2
Contents of silly hello_world.c file:
snowflake:/home/amit/ldd # cat hello_world.c
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
int hello_world_init(void){
printk("hello world\n");
return 0;
}
void hello_world_exit(void){
}
module_init(hello_world_init);
module_exit(hello_world_exit);
Contents of Makefile:
snowflake:/home/amit/ldd # cat Makefile
obj-m:=hello_world.o
more information:
snowflake:/home/amit/ldd # uname -a
Linux snowflake 2.6.16.21-0.8-smp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686 i686 i386 GNU/Linux
please help me in compiling my first module !
~amit


Reply With Quote