make -C /lib/modules/2.6.28-11-generic/build M=/g/temp/ modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
Building with KERNELRELEASE =2.6.28-11-generic
CC [M] /g/temp/ /crash5.o
/g/temp/modu.c: In function ‘syms_out’:
/g/temp/modu.c:13: error: ‘KERNE_INFO’ undeclared (first use in this function)
/g/temp/modu.c:13: error: (Each undeclared identifier is reported only once
/g/temp/modu.c:13: error: for each function it appears in.)
/g/temp/modu.c:13: error: expected ‘)’ before string constant
/g/temp/modu.c:13: warning: format not a string literal and no format arguments
make[2]: *** [/g/temp/ /crash5.o] Error 1
make[1]: *** [_module_/g/temp/ ] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
Such errors in make file can be resolved by
1)Checking KERNELRELEASE variable missing in Makefile or mistyped
2) Checking module_exit code missing or module_init repeated 2 times
3) KERNE_INFO should not be used KERN_INFO to be used.
No comments:
Post a Comment