$:~/dd/busybox-1.19.3$ make menuconfig

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/basic/split-include

scripts/basic/split-include.c: 在函数‘main’中:

scripts/basic/split-include.c:134:11: 警告: 忽略声明有 warn_unused_result 属性的‘fgets’的返回值 [-Wunused-result]

  HOSTCC  scripts/basic/docproc

  HOSTCC  scripts/kconfig/conf.o

scripts/kconfig/conf.c: 在函数‘conf_choice’中:

scripts/kconfig/conf.c:354:9: 警告: 忽略声明有 warn_unused_result 属性的‘fgets’的返回值 [-Wunused-result]

scripts/kconfig/conf.c: 在函数‘conf_askvalue’中:

scripts/kconfig/conf.c:106:8: 警告: 忽略声明有 warn_unused_result 属性的‘fgets’的返回值 [-Wunused-result]

  HOSTCC  scripts/kconfig/kxgettext.o

  HOSTCC  scripts/kconfig/mconf.o

scripts/kconfig/mconf.c: 在函数‘show_textbox’中:

scripts/kconfig/mconf.c:839:7: 警告: 忽略声明有 warn_unused_result 属性的‘write’的返回值 [-Wunused-result]

scripts/kconfig/mconf.c: 在函数‘exec_conf’中:

scripts/kconfig/mconf.c:473:6: 警告: 忽略声明有 warn_unused_result 属性的‘pipe’的返回值 [-Wunused-result]

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/mconf

  HOSTCC  scripts/kconfig/lxdialog/checklist.o

In file included from scripts/kconfig/lxdialog/checklist.c:24:0:

scripts/kconfig/lxdialog/dialog.h:31:20: 致命错误: curses.h:没有那个文件或文件夹

编译中断。

make[2]: *** [scripts/kconfig/lxdialog/checklist.o] 错误 1

make[1]: *** [menuconfig] 错误 2

make: *** [menuconfig] 错误 2



解决的方法:ubuntu系统中缺少一个套件ncurses devel ,把此套件安装下就可以

$ sudo apt-get install libncurses5-dev