编译内核出现这样的错误,不知道什么原因,希望高手指教(第一个问题已解决)

内核编译和嵌入式产品的设计与开发
回复
defengluo
帖子: 8
注册时间: 2008-08-17 17:02

编译内核出现这样的错误,不知道什么原因,希望高手指教(第一个问题已解决)

#1

帖子 defengluo » 2009-03-16 17:09

开始编译原来开发板的内核,出现这样的错误

代码: 全选

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
注:编译这个最新的内核时我把/usr/src下面的内核源码拷到了自己的个人用户目录下的一个子目录。
上次由 defengluo 在 2009-03-21 21:04,总共编辑 1 次。
头像
infinite180
帖子: 207
注册时间: 2007-05-31 20:17
来自: DUT
联系:

Re: 编译内核出现这样的错误,不知道什么原因,希望高手指教

#2

帖子 infinite180 » 2009-03-16 17:52

*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
ncurses没有安装全,缺少ncurses libraries
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

Re: 编译内核出现这样的错误,不知道什么原因,希望高手指教

#3

帖子 BigSnake.NET » 2009-03-16 17:56

*** Unable to find the ncurses libraries or the
*** required header files.


没有装编译内核需要的包吧
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
climberyoung
帖子: 17
注册时间: 2009-10-26 9:18

Re: 编译内核出现这样的错误,不知道什么原因,希望高手指教(第一个问题已解决)

#4

帖子 climberyoung » 2009-10-28 0:35

你的系统里面缺少包,在新立得里面吧libcurses-ocaml-dev装上
回复