Chinaunix首页 | 论坛 | 博客
  • 博客访问: 714765
  • 博文数量: 116
  • 博客积分: 7046
  • 博客等级: 少将
  • 技术积分: 1160
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-14 13:47
个人简介

学无止境

文章分类

全部博文(116)

文章存档

2019年(1)

2011年(1)

2009年(6)

2008年(25)

2007年(44)

2006年(39)

我的朋友

分类: LINUX

2006-08-15 16:39:39

1)执行make menuconfig时,显示如下错误:
[root@localhost linux-2.4.21-40.EL]# make menuconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/src/linux-2.4.21-40.EL/scripts/lxdialog'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="" -c -o checklist.o checklist.c
In file included from checklist.c:24:
dialog.h:29:20: curses.h: ??óÐ???????t?ò????
In file included from checklist.c:24:
dialog.h:127: syntax error before "use_colors"
dialog.h:127: warning: type defaults to `int' in declaration of `use_colors'
dialog.h:127: warning: data definition has no type or storage class
dialog.h:128: syntax error before "use_shadow"
dialog.h:128: warning: type defaults to `int' in declaration of `use_shadow'
dialog.h:128: warning: data definition has no type or storage class
dialog.h:130: syntax error before "attributes"
dialog.h:130: warning: type defaults to `int' in declaration of `attributes'
dialog.h:130: warning: data definition has no type or storage class
dialog.h:143: syntax error before '*' token
dialog.h:143: warning: function declaration isn't a prototype
dialog.h:146: syntax error before '*' token
dialog.h:146: warning: function declaration isn't a prototype
dialog.h:147: syntax error before '*' token
dialog.h:147: warning: function declaration isn't a prototype
dialog.h:148: syntax error before '*' token
dialog.h:149: warning: function declaration isn't a prototype
dialog.h:150: syntax error before '*' token
dialog.h:150: warning: function declaration isn't a prototype
checklist.c:32: syntax error before '*' token
checklist.c:34: warning: function declaration isn't a prototype
checklist.c: In function `print_item':
checklist.c:38: warning: implicit declaration of function `wattrset'
checklist.c:38: `win' undeclared (first use in this function)
checklist.c:38: (Each undeclared identifier is reported only once
checklist.c:38: for each function it appears in.)
checklist.c:39: warning: implicit declaration of function `wmove'
checklist.c:39: `choice' undeclared (first use in this function)
checklist.c:41: warning: implicit declaration of function `waddch'
checklist.c:44: `selected' undeclared (first use in this function)
checklist.c:46: warning: implicit declaration of function `wprintw'
checklist.c:46: `status' undeclared (first use in this function)
checklist.c:51: warning: implicit declaration of function `mvwaddch'
checklist.c:51: `item' undeclared (first use in this function)
checklist.c:53: warning: implicit declaration of function `waddstr'
checklist.c:56: warning: implicit declaration of function `wrefresh'
checklist.c: At top level:
checklist.c:64: syntax error before '*' token
checklist.c:66: warning: function declaration isn't a prototype
checklist.c: In function `print_arrows':
checklist.c:67: `win' undeclared (first use in this function)
checklist.c:67: `y' undeclared (first use in this function)
checklist.c:67: `x' undeclared (first use in this function)
checklist.c:69: `scroll' undeclared (first use in this function)
checklist.c:82: `height' undeclared (first use in this function)
checklist.c:85: `item_no' undeclared (first use in this function)
checklist.c:85: `choice' undeclared (first use in this function)
checklist.c: At top level:
checklist.c:103: syntax error before '*' token
checklist.c:104: warning: function declaration isn't a prototype
checklist.c: In function `print_buttons':
checklist.c:105: `width' undeclared (first use in this function)
checklist.c:106: `height' undeclared (first use in this function)
checklist.c:108: `dialog' undeclared (first use in this function)
checklist.c:108: `selected' undeclared (first use in this function)
checklist.c: In function `dialog_checklist':
checklist.c:126: `WINDOW' undeclared (first use in this function)
checklist.c:126: `dialog' undeclared (first use in this function)
checklist.c:126: `list' undeclared (first use in this function)
checklist.c:126: warning: left-hand operand of comma expression has no effect
checklist.c:132: warning: implicit declaration of function `endwin'
checklist.c:133: warning: implicit declaration of function `fprintf'
checklist.c:133: `stderr' undeclared (first use in this function)
checklist.c:148: `COLS' undeclared (first use in this function)
checklist.c:149: `LINES' undeclared (first use in this function)
checklist.c:151: `stdscr' undeclared (first use in this function)
checklist.c:153: warning: implicit declaration of function `newwin'
checklist.c:154: warning: implicit declaration of function `keypad'
checklist.c:154: `TRUE' undeclared (first use in this function)
checklist.c:187: warning: implicit declaration of function `subwin'
checklist.c:219: warning: implicit declaration of function `wnoutrefresh'
checklist.c:221: warning: implicit declaration of function `doupdate'
checklist.c:224: warning: implicit declaration of function `wgetch'
checklist.c:231: `KEY_UP' undeclared (first use in this function)
checklist.c:231: `KEY_DOWN' undeclared (first use in this function)
checklist.c:241: `FALSE' undeclared (first use in this function)
checklist.c:242: warning: implicit declaration of function `scrollok'
checklist.c:243: warning: implicit declaration of function `wscrl'
checklist.c:270: called object is not a function
checklist.c:305: warning: implicit declaration of function `delwin'
checklist.c:309: `KEY_LEFT' undeclared (first use in this function)
checklist.c:310: `KEY_RIGHT' undeclared (first use in this function)
/usr/include/bits/string2.h: At top level:
dialog.h:130: warning: array `attributes' assumed to have one element
make[1]: *** [checklist.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.21-40.EL/scripts/lxdialog'
make: *** [menuconfig] Error 2
 
 
 
解决方法:缺少了ncurses-devel包,原来安装了ncurses包,现在把这个安上就行了
#yum install ncurses-devel
 
 
2)执行make menuconfig时,显示如下错误:
 
[root@localhost linux-2.4.31]# make menuconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/src/linux-2.4.31/scripts/lxdialog'
make[1]: Leaving directory `/usr/src/linux-2.4.31/scripts/lxdialog'
/bin/sh scripts/Menuconfig arch/i386/config.in
Your display is too small to run Menuconfig!
It must be at least 19 lines by 80 columns.
make: *** [menuconfig] Error 1
 

解决办法:把窗口拉大一点就行,窗口最低要求是19行80列
阅读(2336) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~