编译内核出现这样的错误,不知道什么原因,希望高手指教(第一个问题已解决)
发表于 : 2009-03-16 17:09
开始编译原来开发板的内核,出现这样的错误
编译今天刚刚更新系统时下载的内核,错误如下:
注:编译这个最新的内核时我把/usr/src下面的内核源码拷到了自己的个人用户目录下的一个子目录。
代码: 全选
luo@luo-desktop:~/arm/fs2410_2.6.8$ make menuconfig
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91: 错误: 对‘current_menu’的静态声明出现在非静态声明之后
scripts/kconfig/lkc.h:63: 错误: ‘current_menu’的上一个声明在此
scripts/kconfig/mconf.c: 在函数‘exec_conf’中:
scripts/kconfig/mconf.c:223: 警告: 忽略声明有 warn_unused_result 属性的‘pipe’的返回值
scripts/kconfig/mconf.c: 在函数‘show_textbox’中:
scripts/kconfig/mconf.c:551: 警告: 忽略声明有 warn_unused_result 属性的‘write’的返回值
make[1]: *** [scripts/kconfig/mconf.o] 错误 1
make: *** [menuconfig] 错误 2
代码: 全选
luo@luo-desktop:~/Down/linux-headers-2.6.27-13$ make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: 在函数‘conf_askvalue’中:
scripts/kconfig/conf.c:104: 警告: 忽略声明有 warn_unused_result 属性的‘fgets’的返回值
scripts/kconfig/conf.c: 在函数‘conf_choice’中:
scripts/kconfig/conf.c:306: 警告: 忽略声明有 warn_unused_result 属性的‘fgets’的返回值
HOSTCC scripts/kconfig/kxgettext.o
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1
make: *** [menuconfig] 错误 2