centos5.1 内核编译问题
linbp.cn
|
1#
linbp.cn 发表于 2008-11-20 12:57
centos5.1 内核编译问题
首先,我安装了kernel-devel
cd /usr/src/kernels/2.6.18-53.el5-i686 -bash-3.1# make menuconfig make: Warning: File `/usr/src/kernels/2.6.18-53.el5-i686/arch/i386/Makefile.cpu' has modification time 1.2e+08 s in the future make[1]: Warning: File `scripts/basic/.fixdep.cmd' has modification time 1.2e+08 s in the future make[1]: 警告:检测到时钟错误。您的创建可能是不完整的。 make[1]: Warning: File `scripts/kconfig/.conf.cmd' has modification time 1.2e+08 s in the future HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/mconf.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/mconf make[2]: Warning: File `scripts/Makefile.host' has modification time 8.5e+07 s in the future HOSTCC scripts/kconfig/lxdialog/checklist.o 在包含自 scripts/kconfig/lxdialog/checklist.c:24 的文件中: scripts/kconfig/lxdialog/dialog.h:31:20: 错误:curses.h:没有那个文件或目录 In file included from scripts/kconfig/lxdialog/checklist.c:24: scripts/kconfig/lxdialog/dialog.h:128: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_colors’ scripts/kconfig/lxdialog/dialog.h:129: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_shadow’ scripts/kconfig/lxdialog/dialog.h:131: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘attributes’ scripts/kconfig/lxdialog/dialog.h:143: 错误:expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:146: 错误:expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:147: 错误:expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:148: 错误:expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:149: 错误:expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:151: 错误: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:117: 错误:‘WINDOW’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:117: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其 scripts/kconfig/lxdialog/checklist.c:117: 错误:所在的函数内只报告一次。) scripts/kconfig/lxdialog/checklist.c:117: 错误:‘dialog’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:117: 错误:‘list’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:117: 警告:逗号表达式的左操作数不起作用 scripts/kconfig/lxdialog/checklist.c:121: 警告:隐式声明函数 ‘endwin’ scripts/kconfig/lxdialog/checklist.c:122: 警告:隐式声明函数 ‘fprintf’ scripts/kconfig/lxdialog/checklist.c:122: 警告:隐式声明与内建函数 ‘fprintf’ 不兼容 scripts/kconfig/lxdialog/checklist.c:122: 错误:‘stderr’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:140: 错误:‘COLS’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:141: 错误:‘LINES’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:143: 警告:隐式声明函数 ‘draw_shadow’ scripts/kconfig/lxdialog/checklist.c:143: 错误:‘stdscr’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:145: 警告:隐式声明函数 ‘newwin’ scripts/kconfig/lxdialog/checklist.c:146: 警告:隐式声明函数 ‘keypad’ scripts/kconfig/lxdialog/checklist.c:146: 错误:‘TRUE’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:148: 警告:隐式声明函数 ‘draw_box’ scripts/kconfig/lxdialog/checklist.c:148: 错误:‘attributes’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:149: 警告:隐式声明函数 ‘wattrset’ scripts/kconfig/lxdialog/checklist.c:150: 警告:隐式声明函数 ‘mvwaddch’ scripts/kconfig/lxdialog/checklist.c:152: 警告:隐式声明函数 ‘waddch’ scripts/kconfig/lxdialog/checklist.c:156: 警告:隐式声明函数 ‘print_title’ scripts/kconfig/lxdialog/checklist.c:159: 警告:隐式声明函数 ‘print_autowrap’ scripts/kconfig/lxdialog/checklist.c:166: 警告:隐式声明函数 ‘subwin’ scripts/kconfig/lxdialog/checklist.c:191: 警告:隐式声明函数 ‘print_item’ scripts/kconfig/lxdialog/checklist.c:197: 警告:隐式声明函数 ‘print_arrows’ scripts/kconfig/lxdialog/checklist.c:200: 警告:隐式声明函数 ‘print_buttons’ scripts/kconfig/lxdialog/checklist.c:202: 警告:隐式声明函数 ‘wnoutrefresh’ scripts/kconfig/lxdialog/checklist.c:204: 警告:隐式声明函数 ‘doupdate’ scripts/kconfig/lxdialog/checklist.c:207: 警告:隐式声明函数 ‘wgetch’ scripts/kconfig/lxdialog/checklist.c:214: 错误:‘KEY_UP’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:214: 错误:‘KEY_DOWN’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:224: 错误:‘FALSE’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:225: 警告:隐式声明函数 ‘scrollok’ scripts/kconfig/lxdialog/checklist.c:226: 警告:隐式声明函数 ‘wscrl’ scripts/kconfig/lxdialog/checklist.c:235: 警告:隐式声明函数 ‘wrefresh’ scripts/kconfig/lxdialog/checklist.c:285: 警告:隐式声明与内建函数 ‘fprintf’ 不兼容 scripts/kconfig/lxdialog/checklist.c:286: 警告:隐式声明函数 ‘delwin’ scripts/kconfig/lxdialog/checklist.c:290: 错误:‘KEY_LEFT’ 未声明 (在此函数内第一次使用) scripts/kconfig/lxdialog/checklist.c:291: 错误:‘KEY_RIGHT’ 未声明 (在此函数内第一次使用) make[2]: *** [scripts/kconfig/lxdialog/checklist.o] 错误 1 make[1]: *** [menuconfig] 错误 2 make: *** [menuconfig] 错误 2 望高手指点。谢谢! |