码迷,mamicode.com
首页 > 其他好文 > 详细

内核编译出现报错

时间:2017-04-08 15:59:06      阅读:275      评论:0      收藏:0      [点我收藏+]

标签:ges   技术   expect   expec   rip   dial   文件   包含   文件中   

[root@CentOS linux-4.8.4]# make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/mconf.o
在包含自 scripts/kconfig/mconf.c:23 的文件中:
scripts/kconfig/lxdialog/dialog.h:38:20: 错误:curses.h:没有那个文件或目录
In file included from scripts/kconfig/mconf.c:23:
scripts/kconfig/lxdialog/dialog.h:103: 错误:expected specifier-qualifier-list before ‘chtype’
scripts/kconfig/lxdialog/dialog.h:200: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:221: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:223: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:224: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:225: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:226: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:228: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/mconf.c: 在函数‘conf’中:
scripts/kconfig/mconf.c:671: 错误:‘KEY_MAX’未声明(在此函数内第一次使用)
scripts/kconfig/mconf.c:671: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
scripts/kconfig/mconf.c:671: 错误:所在的函数内也只报告一次。)
scripts/kconfig/mconf.c: 在函数‘show_help’中:
scripts/kconfig/mconf.c:793: 警告:隐式声明函数‘getmaxx’
scripts/kconfig/mconf.c:793: 错误:‘stdscr’未声明(在此函数内第一次使用)
scripts/kconfig/mconf.c: 在函数‘conf_choice’中:
scripts/kconfig/mconf.c:855: 错误:‘KEY_MAX’未声明(在此函数内第一次使用)
make[1]: *** [scripts/kconfig/mconf.o] 错误 1
make: *** [menuconfig] 错误 2

 

 

 

遇到以上内核编译问题的解决方法:   #yum -y install gcc* 

                 #yum -y install ncurses-devel

然后在执行编译,即可进入编译

技术分享

 

内核编译出现报错

标签:ges   技术   expect   expec   rip   dial   文件   包含   文件中   

原文地址:http://www.cnblogs.com/xushiqi/p/6681913.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!