2 gaobo2014haha gaobo2014haha 于 2014.07.29 15:42 提问

内核编译出错的问题,我刚入门,希望大神们解答谢谢!

linux-2.6.27/include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or directory
linux-2.6.27/include/linux/types.h:12:23: asm/types.h: No such file or directory

linux-2.6.27/include/linux/types.h:16: error: syntax error before "__kernel_dev_t"
/linux-2.6.27/include/linux/types.h:16: warning: type defaults to int' in declaration of__kernel_dev_t'

make[4]: *** [kernel/bounds.s] Error 1
make[3]: *** [prepare0] Error 2
make[2]: *** [sub-make] Error 2

1个回答

wangyaninglm
wangyaninglm   Ds   Rxr 2015.01.20 11:38

将包含路径修改为绝对路径:修改sigcontext.h中的#include改为:

#include

然后编译就成功了。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!