![编译 Linux 内核 3.8.0 时出错](https://linux22.com/image/1428136/%E7%BC%96%E8%AF%91%20Linux%20%E5%86%85%E6%A0%B8%203.8.0%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我正在尝试在安装了 Lubuntu 的虚拟机上编译 Linux 内核,但出现以下错误:
In file included from ubuntu/aufs/aufs.h:45:0,
from ubuntu/aufs/module.c:25:ubuntu/aufs/file.h:
In function ‘au_vm_prfile_set’:ubuntu/aufs/file.h:289:5: error:
‘struct vm_area_struct’ has no member named ‘vm_prfile’
make[3]: *** [ubuntu/aufs/module.o]Error 1
make[2]: *** [ubuntu/aufs] Error 2
make[1]: *** [ubuntu] Error 2
答案1
这是一个错误,你需要申请aufs3.12 mmap 补丁添加 ”虚拟机配置文件“:
....
@@ -213,6 +213,7 @@ struct vm_region {
unsigned long vm_top; /* region allocated to here */
unsigned long vm_pgoff; /* the offset in vm_file corresponding to vm_start */
struct file *vm_file; /* the backing file or NULL */
+ **struct file *vm_prfile**; /* the virtual backing file or NULL */