需要在软件源中添加内核头文件的源,编辑 /etc/apt/source.list,添加
deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
如果不行估计是你的大源有问题再次添加
#中科大源
deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free
#阿里云kali源
deb http://mirrors.aliyun.com/kali sana main non-free contrib
deb http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free
deb-src http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free
#include<linux/spinlock_types.h>
#include
<linux/blkdev.h>
#include
<linux/module.h>
#include
<linux/kernel.h>
#include
<linux/fs.h>
#include
<linux/genhd.h>
#include
<linux/init.h>
以上这些基本上都得用到的头文件
一般编译器会报错,根据报错信息,再添加相应的头文件即可。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)