内核编译出现报错

[[email protected] 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

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

时间: 2024-10-25 19:41:52

内核编译出现报错的相关文章

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt.

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt. 转载2016-04-25 12:40:44 标签:linuxitphp 解决方法: 1.为系统安装perl-Geo-IP,默认yum源中没有这个包,特意安装epel第三方yum源[[email protected] ~] rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rp

centos编译libpng报错,解决方法

/usr/local/lib/libz.a: could not read symbols: Bad value 一般是64 位 电脑才会出现. 解决方法如下: 1 cd zlib-1.2.3 //进入zlib目录 2 3 CFLAGS="-O3 -fPIC" ./configure //使用64位元的方法进行编译 4 5 make 6 7 make install 8 9 make clean centos编译libpng报错,解决方法,布布扣,bubuko.com

VS2013编译protobuf报错:error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe

今天碰到这个问题,网上找了好久, 解决方法如下 VS2013编译protobuf报错:error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe 方法一 右键点击工程 -> 属性 -> C/C++ -> 常规 -> SDL检查 改为:否 (/sdl-) 编译 O了! 方法二 右键点击工程 -> 属性 -> C/C++ ->预处理器 添加宏定义 _SCL_SECUR

Xcode6编译SDWebImage报错原因分析(SDWebImageDownloaderOperation.m错误)

之前写了一片关于编译SDWebImage报错解决方法的文章: http://blog.csdn.net/cuibo1123/article/details/39434015 结果很多人问这个问题的原因,那就在这里给大家说一说好了,分析思路一并送上(不过我还是建议大家自己动手去分析). 首先,如果新建工程,按照SDWebImage的方式声明输出口并引用: @interface ZCTest () @property (assign, nonatomic, getter = isExecuting)

源码编译php-5 报错整理

阿里云上 源码编译 php 报错的集中整理 [[email protected] php-5.5.31]#   ./configure --prefix=/module/application/php-5.5/--enable-pcntl --enable-fpm --enable-posix --enable-mysqlnd --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --

php5.6.11编译安装报错configure: error: Don't know how to define struct flock on this system

centos 6.8 32位系统下,安装php.5.6.11是出现这个错误 解决办法: 1 2 3 4 vim /etc/ld.so.conf.d/local.conf     # 编辑库文件 /usr/local/lib                       # 添加该行 :wq                                  # 保存退出 ldconfig -v                          # 使之生效 注意事项: 这里添加的库文件路径一定要和你

编译nagios-plugins报错./stdio.h:456:1:

在AWS的EC2上编译nagios-plugins报错: ./stdio.h:456:1: error: 'gets' undeclared here (not in a function) make[4]: *** [localcharset.o] Error 1 make[4]: Leaving directory `/root/nagios-plugins-1.4.16/gl' make[3]: *** [all-recursive] Error 1 make[3]: Leaving di

安装编译qemu-kvm报错Make sure to have the zlib libs and headers installed.

[[email protected] qemu-kvm.git]# ./configure Error: zlib check failed Make sure to have the zlib libs and headers installed. 解决上面报错需要安装zlib相关的软件 [[email protected] qemu-kvm.git]# yum install zlib* 安装完上面软件后继续出现下面报错 [[email protected] qemu-kvm.git]# .

cocos2d-js 3.0 rc0 编译release报错 value for keystore is not valid. it must resolve to a single path

第一次编译是好好的,需要手工输入keystore文件地址和密码等等.第二次不需要输入,然后就直接出错了.   找了一下,发现第一步之后,cocos会记录ant信息到\frameworks\runtime-src\proj.android\ant.properties   打开这个文件发现: key.store=e:\cocos_projects\android.keystore 斜杠都少了一个,只需要改为 key.store=e:\\cocos_projects\\android.keystor