日期:2014-05-16  浏览次数:20671 次

Linux内核编译时错误

Linux内核剪裁编译时出来错误,如下

[root@yang linux-2.6.24.4]# make menuconfig
make: Warning: File `/UP-Magic/exp/kernel/linux-2.6.24.4/arch/arm/Makefile' has                                                                               modification time 3.8e+08 s in the future
make[1]: Warning: File `scripts/Makefile.host' has modification time 3.8e+08 s i                                                                              n the future
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c: 在函数‘traps’中:
scripts/basic/fixdep.c:377: 警告:提领类型双关的指针将破坏强重叠规则
scripts/basic/fixdep.c:379: 警告:提领类型双关的指针将破坏强重叠规则
  HOSTCC  scripts/basic/docproc
make[1]: 警告:检测到时钟错误。您的创建可能是不完整的。
make[1]: Warning: File `scripts/Makefile.host' has modification time 3.8e+08 s i                                                                              n the future
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
在包含自 scripts/kconfig/lxdialog/checklist.c:24 的文件中:
scripts/kconfig/lxdialog/dialog.h:32:20: 错误:curses.h:没有那个文件或目录
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: 错误:expected specifier-qualifier-list be                                                                              fore ‘chtype’
scripts/kconfig/lxdialog/dialog.h:187: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:194: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:196: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:197: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:198: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:199: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:201: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:31: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:59: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:95: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c: 在函数‘dialog_checklist’中:
scripts/kconfig/lxdialog/checklist.c:116: 错误:‘WINDOW’未声明(在此函数内第一次                                                                              使用)
scripts/kconfig/lxdialog/checklist.c:116: 错误:(即使在一个函数内多次出现,每个                                                                              未声明的标识符在其
scripts/kconfig/lxdialog/checklist.c:116: 错误:所在的函数内也只报告一次。)
scripts/kconfig/lxdialog/checklist.c:116: 错误:‘dialog’未声明(在此函数内第一次                                                                              使用)
scripts/kconfig/lxdialog/checklist.c:116: 错误:‘list’未声明(在此函数内第一次使                                                                              用)
scripts/kconfig/lxdialog/checklist.c:116: 警告:逗号表达式的左操作数不起作用
scripts/kconfig/lxdialog/checklist.c:129: 警告:隐式声明函数‘getmaxy’
scripts/kconfig/lxdialog/checklist.c:129: 错误:‘stdscr’未声明(在此函数内第一次                                                                              使用)
scripts/kconfig/lxdialog/checklist.c:130: 错误:‘KEY_MAX’未声明(在此函数内第一次                                                                              使用)
scripts/kconfig/lxdialog/checklist.c:131: 警告:隐式声明函数‘getmaxx’
scripts/kconfig/lxdialog/checklist.c:137: 错误:‘COLS’未声明(在此函数内第一次使                                                                              用)
scripts/kconfig/lxdialog/checklist.c:138: 错误:‘LINES’未声明(在此函数内第一次使                                                                              用)
scripts/kconfig/lxdialog/checklist.c:140: 警告:隐式声明函数‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:142: 警告:隐式声明函数‘newwin’
scripts/kconfig/lxdialog/checklist.c:143: 警告:隐式声明函数‘keypad’
scripts/kconfig/lxdialog/checklist.c:143: 错误:‘TRUE’未声明(在此函数内第一次使                                                                              用)
scripts/kconfig/lxdialog/checklist.c:145: 警告:隐式声明函数‘draw_box’
scripts/kconfig/lxdialog/checklist.c:1