我正在尝试通过运行以下命令
将内核模块加载到内核中`anthony@ubuntu:~/Desktop/kmaldetect/loadable_kernel_module$ make -C /lib/modules/$(uname -r)/build
这是我得到的错误:
make: Entering directory /usr/src/linux-headers-3.19.0-25-generic'
arch/x86/Makefile:129: CONFIG_X86_X32 enabled but no binutils support
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[1]: *** No rule to make target `arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/asm/syscalls_32.h'. Stop.
make: *** [archheaders] Error 2
make: Leaving directory `/usr/src/linux-headers-3.19.0-25-generic'
也许有人可以帮助我。 感谢所有帮助。
答案 0 :(得分:0)
kmaldetect / loadable_kernel_module中的Makefile看起来是正确的,不仅仅运行make
吗?