BusyBox 編譯出現問題---scripts/kconfig/lxdialog/dialog.h:128: error

來源:互聯網
上載者:User

radio@radio-desktop:/tmp/busybox-1.14.2$ make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:133: warning: ignoring return value of
‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:104: warning: ignoring return value of ‘fgets’,
declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:359: warning: ignoring return value of ‘fgets’,
declared with attribute warn_unused_result
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:470: warning: ignoring return value of ‘pipe’,
declared with attribute warn_unused_result
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:836: warning: ignoring return value of ‘write’,
declared with attribute warn_unused_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:
scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: 沒有那個檔案或目錄
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:128: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘use_colors’
scripts/kconfig/lxdialog/dialog.h:129: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘use_shadow’
scripts/kconfig/lxdialog/dialog.h:131: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘attributes’
scripts/kconfig/lxdialog/dialog.h:143: error: expected ‘)’ before ‘*’
token
scripts/kconfig/lxdialog/dialog.h:146: error: expected ‘)’ before ‘*’
token
scripts/kconfig/lxdialog/dialog.h:147: error: expected ‘)’ before ‘*’
token
scripts/kconfig/lxdialog/dialog.h:148: error: expected ‘)’ before ‘*’
token
scripts/kconfig/lxdialog/dialog.h:149: error: expected ‘)’ before ‘*’
token
scripts/kconfig/lxdialog/dialog.h:151: error: expected ‘)’ before ‘*’
token
scripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’
token
scripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’
token
scripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’
token
scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:
scripts/kconfig/lxdialog/checklist.c:117: error: ‘WINDOW’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: (Each undeclared
identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:117: error: for each function it
appears in.)
scripts/kconfig/lxdialog/checklist.c:117: error: ‘dialog’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: ‘list’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of
comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration
of function ‘endwin’
scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration
of function ‘fprintf’
scripts/kconfig/lxdialog/checklist.c:122: warning: incompatible implicit
declaration of built-in function ‘fprintf’
scripts/kconfig/lxdialog/checklist.c:122: error: ‘stderr’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:140: error: ‘COLS’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:141: error: ‘LINES’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration
of function ‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:143: error: ‘stdscr’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration
of function ‘newwin’
scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration
of function ‘keypad’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘TRUE’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration
of function ‘draw_box’
scripts/kconfig/lxdialog/checklist.c:148: error: ‘attributes’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:149: warning: implicit declaration
of function ‘wattrset’
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration
of function ‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:152: warning: implicit declaration
of function ‘waddch’
scripts/kconfig/lxdialog/checklist.c:156: warning: implicit declaration
of function ‘print_title’
scripts/kconfig/lxdialog/checklist.c:159: warning: implicit declaration
of function ‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration
of function ‘subwin’
scripts/kconfig/lxdialog/checklist.c:190: warning: implicit declaration
of function ‘print_item’
scripts/kconfig/lxdialog/checklist.c:194: warning: implicit declaration
of function ‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration
of function ‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration
of function ‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:201: warning: implicit declaration
of function ‘doupdate’
scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration
of function ‘wgetch’
scripts/kconfig/lxdialog/checklist.c:211: error: ‘KEY_UP’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:211: error: ‘KEY_DOWN’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:221: error: ‘FALSE’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration
of function ‘scrollok’
scripts/kconfig/lxdialog/checklist.c:223: warning: implicit declaration
of function ‘wscrl’
scripts/kconfig/lxdialog/checklist.c:232: warning: implicit declaration
of function ‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:282: warning: incompatible implicit
declaration of built-in function ‘fprintf’
scripts/kconfig/lxdialog/checklist.c:283: warning: implicit declaration
of function ‘delwin’
scripts/kconfig/lxdialog/checklist.c:287: error: ‘KEY_LEFT’ undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:288: error: ‘KEY_RIGHT’ undeclared
(first use in this function)
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] 錯誤 1
make[1]: *** [menuconfig] 錯誤 2
make: *** [menuconfig] 錯誤 2
radio@radio-desktop:/tmp/busybox-1.14.2$

 

 

 

解決辦法:ubuntu系統中缺少一個套件
ncurses devel ,把此套件安裝下即可

$ sudo apt-get install libncurses5-dev

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.