make menuconfig出错解决方法

 make menuconfig出错解决方法 2011-06-11 22:22:49

分类: 系统运维

 


  1. 错误现象:
  2. make menuconfig
  3. In file included from scripts/kconfig/lxdialog/checklist.c:24:
  4. scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: 没有那个文件或目录
  5. In file included from scripts/kconfig/lxdialog/checklist.c:24:
  6. scripts/kconfig/lxdialog/dialog.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_colors’
  7. scripts/kconfig/lxdialog/dialog.h:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_shadow’
  8. scripts/kconfig/lxdialog/dialog.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘attributes’
  9. scripts/kconfig/lxdialog/dialog.h:143: error: expected ‘)’ before ‘*’ token
  10. scripts/kconfig/lxdialog/dialog.h:146: error: expected ‘)’ before ‘*’ token
  11. scripts/kconfig/lxdialog/dialog.h:147: error: expected ‘)’ before ‘*’ token
  12. scripts/kconfig/lxdialog/dialog.h:148: error: expected ‘)’ before ‘*’ token
  13. scripts/kconfig/lxdialog/dialog.h:149: error: expected ‘)’ before ‘*’ token
  14. scripts/kconfig/lxdialog/dialog.h:151: error: expected ‘)’ before ‘*’ token
  15. scripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ token
  16. scripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ token
  17. scripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ token
  18. scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:
  19. scripts/kconfig/lxdialog/checklist.c:117: error: ‘WINDOW’ undeclared (first use in this function)
  20. scripts/kconfig/lxdialog/checklist.c:117: error: (Each undeclared identifier is reported only once
  21. scripts/kconfig/lxdialog/checklist.c:117: error: for each function it appears in.)
  22. scripts/kconfig/lxdialog/checklist.c:117: error: ‘dialog’ undeclared (first use in this function)
  23. scripts/kconfig/lxdialog/checklist.c:117: error: ‘list’ undeclared (first use in this function)
  24. scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma expression_r has no effect
  25. scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of function ‘endwin’
  26. scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of function ‘fprintf’
  27. scripts/kconfig/lxdialog/checklist.c:122: warning: incompatible implicit declaration of built-in function ‘fprintf’
  28. scripts/kconfig/lxdialog/checklist.c:122: error: ‘stderr’ undeclared (first use in this function)
  29. scripts/kconfig/lxdialog/checklist.c:140: error: ‘COLS’ undeclared (first use in this function)
  30. scripts/kconfig/lxdialog/checklist.c:141: error: ‘LINES’ undeclared (first use in this function)
  31. scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function ‘draw_shadow’
  32. scripts/kconfig/lxdialog/checklist.c:143: error: ‘stdscr’ undeclared (first use in this function)
  33. scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function ‘newwin’
  34. scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of function ‘keypad’
  35. scripts/kconfig/lxdialog/checklist.c:146: error: ‘TRUE’ undeclared (first use in this function)
  36. scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function ‘draw_box’
  37. scripts/kconfig/lxdialog/checklist.c:148: error: ‘attributes’ undeclared (first use in this function)
  38. scripts/kconfig/lxdialog/checklist.c:149: warning: implicit declaration of function ‘wattrset’
  39. scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function ‘mvwaddch’
  40. scripts/kconfig/lxdialog/checklist.c:152: warning: implicit declaration of function ‘waddch’
  41. scripts/kconfig/lxdialog/checklist.c:156: warning: implicit declaration of function ‘print_title’
  42. scripts/kconfig/lxdialog/checklist.c:159: warning: implicit declaration of function ‘print_autowrap’
  43. scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of function ‘subwin’
  44. scripts/kconfig/lxdialog/checklist.c:191: warning: implicit declaration of function ‘print_item’
  45. scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function ‘print_arrows’
  46. scripts/kconfig/lxdialog/checklist.c:200: warning: implicit declaration of function ‘print_buttons’
  47. scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function ‘wnoutrefresh’
  48. scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of function ‘doupdate’
  49. scripts/kconfig/lxdialog/checklist.c:207: warning: implicit declaration of function ‘wgetch’
  50. scripts/kconfig/lxdialog/checklist.c:214: error: ‘KEY_UP’ undeclared (first use in this function)
  51. scripts/kconfig/lxdialog/checklist.c:214: error: ‘KEY_DOWN’ undeclared (first use in this function)
  52. scripts/kconfig/lxdialog/checklist.c:224: error: ‘FALSE’ undeclared (first use in this function)
  53. scripts/kconfig/lxdialog/checklist.c:225: warning: implicit declaration of function ‘scrollok’
  54. scripts/kconfig/lxdialog/checklist.c:226: warning: implicit declaration of function ‘wscrl’
  55. scripts/kconfig/lxdialog/checklist.c:235: warning: implicit declaration of function ‘wrefresh’
  56. scripts/kconfig/lxdialog/checklist.c:285: warning: incompatible implicit declaration of built-in function ‘fprintf’
  57. scripts/kconfig/lxdialog/checklist.c:286: warning: implicit declaration of function ‘delwin’
  58. scripts/kconfig/lxdialog/checklist.c:290: error: ‘KEY_LEFT’ undeclared (first use in this function)
  59. scripts/kconfig/lxdialog/checklist.c:291: error: ‘KEY_RIGHT’ undeclared (first use in this function)
  60. make[2]: *** [scripts/kconfig/lxdialog/checklist.o] 错误 1
  61. make[1]: *** [menuconfig] 错误 2
  62. make: *** [menuconfig] 错误 2
  63. 解决方法:
  64. rhel系列安装ncurses-devel包
  65. ubuntu安装libncurses5-dev包
posted @ 2015-12-05 17:54  [无名]  阅读(579)  评论(0编辑  收藏  举报