【问题】
折腾:
【记录】Cygwin下配置编译和安装crosstool-ng
期间,make编译crosstool-ng时出错:
Administrator@PC-20130611GART /home/develop/crosstool-ng/crosstool-ng-1.18.0 $ make LDFLAGS="-lintl" GEN 'config/configure.in' GEN 'paths.mk' GEN 'paths.sh' LD 'conf' CC 'lxdialog/menubox.o' CC 'lxdialog/yesno.o' CC 'lxdialog/textbox.o' CC 'lxdialog/util.o' CC 'lxdialog/inputbox.o' CC 'lxdialog/checklist.o' CC 'mconf.o' LD 'mconf' lxdialog/menubox.o:menubox.c:(.text+0x7d): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0x97): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0xa2): undefined reference to `_wclrtoeol' lxdialog/menubox.o:menubox.c:(.text+0xc3): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0xde): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0xfd): undefined reference to `_waddnstr' lxdialog/menubox.o:menubox.c:(.text+0x124): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0x142): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0x162): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x186): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0x19c): undefined reference to `_wrefresh' lxdialog/menubox.o:menubox.c:(.text+0x1af): undefined reference to `_getcury' lxdialog/menubox.o:menubox.c:(.text+0x1bd): undefined reference to `_getcurx' lxdialog/menubox.o:menubox.c:(.text+0x1d9): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0x1f3): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0x1f8): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x20e): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x229): undefined reference to `_waddnstr' lxdialog/menubox.o:menubox.c:(.text+0x242): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0x247): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x25d): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x262): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x278): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x27d): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x293): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x298): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x2ae): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x2d6): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0x2e1): undefined reference to `_wrefresh' lxdialog/menubox.o:menubox.c:(.text+0x30b): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0x310): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x326): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x341): undefined reference to `_waddnstr' lxdialog/menubox.o:menubox.c:(.text+0x35a): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0x35f): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x375): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x37a): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x390): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x395): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x3ab): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x3b0): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x3c6): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x3df): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0x3ea): undefined reference to `_wrefresh' lxdialog/menubox.o:menubox.c:(.text+0x4e6): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0x4f1): undefined reference to `_wrefresh' lxdialog/menubox.o:menubox.c:(.text+0x511): undefined reference to `_scrollok' lxdialog/menubox.o:menubox.c:(.text+0x523): undefined reference to `_wscrl' lxdialog/menubox.o:menubox.c:(.text+0x536): undefined reference to `_scrollok' lxdialog/menubox.o:menubox.c:(.text+0x550): undefined reference to `_wrefresh' lxdialog/menubox.o:menubox.c:(.text+0x582): undefined reference to `_ncwrap_stdscr' lxdialog/menubox.o:menubox.c:(.text+0x58a): undefined reference to `_getmaxy' lxdialog/menubox.o:menubox.c:(.text+0x592): undefined reference to `_ncwrap_stdscr' lxdialog/menubox.o:menubox.c:(.text+0x59a): undefined reference to `_getmaxx' lxdialog/menubox.o:menubox.c:(.text+0x5e0): undefined reference to `_ncwrap_COLS' lxdialog/menubox.o:menubox.c:(.text+0x5f5): undefined reference to `_ncwrap_LINES' lxdialog/menubox.o:menubox.c:(.text+0x60a): undefined reference to `_ncwrap_stdscr' lxdialog/menubox.o:menubox.c:(.text+0x64e): undefined reference to `_newwin' lxdialog/menubox.o:menubox.c:(.text+0x664): undefined reference to `_keypad' lxdialog/menubox.o:menubox.c:(.text+0x6b4): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0x6d1): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0x6db): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x6f1): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x6ff): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x715): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x738): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0x751): undefined reference to `_wbkgdset' lxdialog/menubox.o:menubox.c:(.text+0x756): undefined reference to `_ncwrap_acs_map' lxdialog/menubox.o:menubox.c:(.text+0x76c): undefined reference to `_waddch' lxdialog/menubox.o:menubox.c:(.text+0x799): undefined reference to `_wattrset' lxdialog/menubox.o:menubox.c:(.text+0x83b): undefined reference to `_subwin' lxdialog/menubox.o:menubox.c:(.text+0x851): undefined reference to `_keypad' lxdialog/menubox.o:menubox.c:(.text+0xa35): undefined reference to `_wnoutrefresh' lxdialog/menubox.o:menubox.c:(.text+0xaac): undefined reference to `_wmove' lxdialog/menubox.o:menubox.c:(.text+0xab7): undefined reference to `_wrefresh' lxdialog/menubox.o:menubox.c:(.text+0xac7): undefined reference to `_wgetch' lxdialog/menubox.o:menubox.c:(.text+0xe2f): undefined reference to `_scrollok' lxdialog/menubox.o:menubox.c:(.text+0x1005): undefined reference to `_wnoutrefresh' lxdialog/menubox.o:menubox.c:(.text+0x1010): undefined reference to `_wrefresh' lxdialog/menubox.o:menubox.c:(.text+0x1132): undefined reference to `_wrefresh' lxdialog/menubox.o:menubox.c:(.text+0x114a): undefined reference to `_delwin' lxdialog/menubox.o:menubox.c:(.text+0x1155): undefined reference to `_delwin' lxdialog/menubox.o:menubox.c:(.text+0x122a): undefined reference to `_delwin' lxdialog/menubox.o:menubox.c:(.text+0x1235): undefined reference to `_delwin' lxdialog/menubox.o:menubox.c:(.text+0x124f): undefined reference to `_delwin' lxdialog/menubox.o:menubox.c:(.text+0x125a): more undefined references to `_delwin' follow lxdialog/yesno.o:yesno.c:(.text+0xbe): undefined reference to `_wmove' lxdialog/yesno.o:yesno.c:(.text+0xc9): undefined reference to `_wrefresh' lxdialog/yesno.o:yesno.c:(.text+0xe9): undefined reference to `_ncwrap_stdscr' lxdialog/yesno.o:yesno.c:(.text+0xf1): undefined reference to `_getmaxy' lxdialog/yesno.o:yesno.c:(.text+0x10a): undefined reference to `_ncwrap_stdscr' lxdialog/yesno.o:yesno.c:(.text+0x112): undefined reference to `_getmaxx' lxdialog/yesno.o:yesno.c:(.text+0x12b): undefined reference to `_ncwrap_COLS' lxdialog/yesno.o:yesno.c:(.text+0x140): undefined reference to `_ncwrap_LINES' lxdialog/yesno.o:yesno.c:(.text+0x155): undefined reference to `_ncwrap_stdscr' lxdialog/yesno.o:yesno.c:(.text+0x199): undefined reference to `_newwin' lxdialog/yesno.o:yesno.c:(.text+0x1af): undefined reference to `_keypad' lxdialog/yesno.o:yesno.c:(.text+0x1ff): undefined reference to `_wattrset' lxdialog/yesno.o:yesno.c:(.text+0x21c): undefined reference to `_wmove' lxdialog/yesno.o:yesno.c:(.text+0x226): undefined reference to `_ncwrap_acs_map' lxdialog/yesno.o:yesno.c:(.text+0x23c): undefined reference to `_waddch' lxdialog/yesno.o:yesno.c:(.text+0x24a): undefined reference to `_ncwrap_acs_map' lxdialog/yesno.o:yesno.c:(.text+0x260): undefined reference to `_waddch' lxdialog/yesno.o:yesno.c:(.text+0x283): undefined reference to `_wattrset' lxdialog/yesno.o:yesno.c:(.text+0x288): undefined reference to `_ncwrap_acs_map' lxdialog/yesno.o:yesno.c:(.text+0x29e): undefined reference to `_waddch' lxdialog/yesno.o:yesno.c:(.text+0x2cb): undefined reference to `_wattrset' lxdialog/yesno.o:yesno.c:(.text+0x328): undefined reference to `_wgetch' lxdialog/yesno.o:yesno.c:(.text+0x3a4): undefined reference to `_delwin' lxdialog/yesno.o:yesno.c:(.text+0x3b9): undefined reference to `_delwin' lxdialog/yesno.o:yesno.c:(.text+0x42b): undefined reference to `_wrefresh' lxdialog/yesno.o:yesno.c:(.text+0x438): undefined reference to `_delwin' lxdialog/yesno.o:yesno.c:(.text+0x458): undefined reference to `_delwin' lxdialog/yesno.o:yesno.c:(.text+0x477): undefined reference to `_delwin' lxdialog/textbox.o:textbox.c:(.text+0x3f): undefined reference to `_wmove' lxdialog/textbox.o:textbox.c:(.text+0x4a): undefined reference to `_wrefresh' lxdialog/textbox.o:textbox.c:(.text+0x9a): undefined reference to `_ncwrap_stdscr' lxdialog/textbox.o:textbox.c:(.text+0xa2): undefined reference to `_getmaxy' lxdialog/textbox.o:textbox.c:(.text+0xaa): undefined reference to `_ncwrap_stdscr' lxdialog/textbox.o:textbox.c:(.text+0xb2): undefined reference to `_getmaxx' lxdialog/textbox.o:textbox.c:(.text+0x112): undefined reference to `_ncwrap_COLS' lxdialog/textbox.o:textbox.c:(.text+0x127): undefined reference to `_ncwrap_LINES' lxdialog/textbox.o:textbox.c:(.text+0x13c): undefined reference to `_ncwrap_stdscr' lxdialog/textbox.o:textbox.c:(.text+0x180): undefined reference to `_newwin' lxdialog/textbox.o:textbox.c:(.text+0x196): undefined reference to `_keypad' lxdialog/textbox.o:textbox.c:(.text+0x1d5): undefined reference to `_subwin' lxdialog/textbox.o:textbox.c:(.text+0x1ec): undefined reference to `_wattrset' lxdialog/textbox.o:textbox.c:(.text+0x205): undefined reference to `_wbkgdset' lxdialog/textbox.o:textbox.c:(.text+0x218): undefined reference to `_keypad' lxdialog/textbox.o:textbox.c:(.text+0x268): undefined reference to `_wattrset' lxdialog/textbox.o:textbox.c:(.text+0x285): undefined reference to `_wmove' lxdialog/textbox.o:textbox.c:(.text+0x28f): undefined reference to `_ncwrap_acs_map' lxdialog/textbox.o:textbox.c:(.text+0x2a5): undefined reference to `_waddch' lxdialog/textbox.o:textbox.c:(.text+0x2b3): undefined reference to `_ncwrap_acs_map' lxdialog/textbox.o:textbox.c:(.text+0x2c9): undefined reference to `_waddch' lxdialog/textbox.o:textbox.c:(.text+0x2ec): undefined reference to `_wattrset' lxdialog/textbox.o:textbox.c:(.text+0x305): undefined reference to `_wbkgdset' lxdialog/textbox.o:textbox.c:(.text+0x30a): undefined reference to `_ncwrap_acs_map' lxdialog/textbox.o:textbox.c:(.text+0x320): undefined reference to `_waddch' lxdialog/textbox.o:textbox.c:(.text+0x385): undefined reference to `_wnoutrefresh' lxdialog/textbox.o:textbox.c:(.text+0x390): undefined reference to `_getcury' lxdialog/textbox.o:textbox.c:(.text+0x39e): undefined reference to `_getcurx' lxdialog/textbox.o:textbox.c:(.text+0x401): undefined reference to `_wgetch' lxdialog/textbox.o:textbox.c:(.text+0x56b): undefined reference to `_delwin' lxdialog/textbox.o:textbox.c:(.text+0x576): undefined reference to `_delwin' lxdialog/textbox.o:textbox.c:(.text+0x667): undefined reference to `_scrollok' lxdialog/textbox.o:textbox.c:(.text+0x67a): undefined reference to `_wscrl' lxdialog/textbox.o:textbox.c:(.text+0x68d): undefined reference to `_scrollok' lxdialog/textbox.o:textbox.c:(.text+0x6d2): undefined reference to `_wnoutrefresh' lxdialog/textbox.o:textbox.c:(.text+0x732): undefined reference to `_wmove' lxdialog/textbox.o:textbox.c:(.text+0x73d): undefined reference to `_wrefresh' lxdialog/textbox.o:textbox.c:(.text+0x7bc): undefined reference to `_scrollok' lxdialog/textbox.o:textbox.c:(.text+0x7cf): undefined reference to `_wscrl' lxdialog/textbox.o:textbox.c:(.text+0x7e2): undefined reference to `_scrollok' lxdialog/textbox.o:textbox.c:(.text+0x809): undefined reference to `_wnoutrefresh' lxdialog/textbox.o:textbox.c:(.text+0x82d): undefined reference to `_wmove' lxdialog/textbox.o:textbox.c:(.text+0x838): undefined reference to `_wrefresh' lxdialog/textbox.o:textbox.c:(.text+0x973): undefined reference to `_delwin' lxdialog/textbox.o:textbox.c:(.text+0x97e): undefined reference to `_delwin' lxdialog/textbox.o:textbox.c:(.text+0x9b6): undefined reference to `_delwin' lxdialog/textbox.o:textbox.c:(.text+0x9c1): undefined reference to `_delwin' lxdialog/textbox.o:textbox.c:(.text+0xafc): undefined reference to `_wnoutrefresh' lxdialog/textbox.o:textbox.c:(.text+0xb50): undefined reference to `_wmove' lxdialog/textbox.o:textbox.c:(.text+0xb63): undefined reference to `_waddch' lxdialog/textbox.o:textbox.c:(.text+0xba1): undefined reference to `_waddnstr' lxdialog/textbox.o:textbox.c:(.text+0xbac): undefined reference to `_getcury' lxdialog/textbox.o:textbox.c:(.text+0xbba): undefined reference to `_getcurx' lxdialog/textbox.o:textbox.c:(.text+0xbc8): undefined reference to `_wclrtoeol' lxdialog/textbox.o:textbox.c:(.text+0xcab): undefined reference to `_wattrset' lxdialog/textbox.o:textbox.c:(.text+0xcc4): undefined reference to `_wbkgdset' lxdialog/textbox.o:textbox.c:(.text+0xd03): undefined reference to `_getmaxx' lxdialog/textbox.o:textbox.c:(.text+0xd11): undefined reference to `_getmaxy' lxdialog/textbox.o:textbox.c:(.text+0xd27): undefined reference to `_wmove' lxdialog/textbox.o:textbox.c:(.text+0xd41): undefined reference to `_wprintw' lxdialog/util.o:util.c:(.text+0x9a7): undefined reference to `_init_pair' lxdialog/util.o:util.c:(.text+0xb5c): undefined reference to `_has_colors' lxdialog/util.o:util.c:(.text+0xb65): undefined reference to `_start_color' lxdialog/util.o:util.c:(.text+0xb8b): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0xbae): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0xbca): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0xbed): undefined reference to `_getmaxy' lxdialog/util.o:util.c:(.text+0xc0c): undefined reference to `_wtouchln' lxdialog/util.o:util.c:(.text+0xc22): undefined reference to `_ncwrap_COLS' lxdialog/util.o:util.c:(.text+0xc29): undefined reference to `_ncwrap_LINES' lxdialog/util.o:util.c:(.text+0xc30): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xc5d): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xc69): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0xc6e): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xc86): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0xc96): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xcaa): undefined reference to `_waddnstr' lxdialog/util.o:util.c:(.text+0xcaf): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xcc7): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0xcd5): undefined reference to `_ncwrap_acs_map' lxdialog/util.o:util.c:(.text+0xce1): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xced): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0xcf6): undefined reference to `_ncwrap_COLS' lxdialog/util.o:util.c:(.text+0xd03): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xd0b): undefined reference to `_wnoutrefresh' lxdialog/util.o:util.c:(.text+0xd1e): undefined reference to `_initscr' lxdialog/util.o:util.c:(.text+0xd23): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xd2b): undefined reference to `_getmaxy' lxdialog/util.o:util.c:(.text+0xd33): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xd3b): undefined reference to `_getmaxx' lxdialog/util.o:util.c:(.text+0xd4f): undefined reference to `_endwin' lxdialog/util.o:util.c:(.text+0xd77): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xd87): undefined reference to `_keypad' lxdialog/util.o:util.c:(.text+0xd8c): undefined reference to `_cbreak' lxdialog/util.o:util.c:(.text+0xd91): undefined reference to `_noecho' lxdialog/util.o:util.c:(.text+0xdb5): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xdcb): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0xdd0): undefined reference to `_ncwrap_stdscr' lxdialog/util.o:util.c:(.text+0xdd8): undefined reference to `_wrefresh' lxdialog/util.o:util.c:(.text+0xddd): undefined reference to `_endwin' lxdialog/util.o:util.c:(.text+0xe31): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0xe61): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0xe79): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0xea6): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0xec4): undefined reference to `_waddnstr' lxdialog/util.o:util.c:(.text+0xed7): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0xf7e): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0xf9b): undefined reference to `_waddnstr' lxdialog/util.o:util.c:(.text+0x1091): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0x10ab): undefined reference to `_waddnstr' lxdialog/util.o:util.c:(.text+0x10b6): undefined reference to `_getcury' lxdialog/util.o:util.c:(.text+0x10c4): undefined reference to `_getcurx' lxdialog/util.o:util.c:(.text+0x113f): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0x1160): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0x117b): undefined reference to `_waddnstr' lxdialog/util.o:util.c:(.text+0x11b8): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0x11d4): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x1201): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0x1219): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x123a): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0x1257): undefined reference to `_waddnstr' lxdialog/util.o:util.c:(.text+0x1278): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0x1293): undefined reference to `_waddnstr' lxdialog/util.o:util.c:(.text+0x12b5): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0x12d0): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0x12fa): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0x1317): undefined reference to `_ncwrap_acs_map' lxdialog/util.o:util.c:(.text+0x1330): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x134b): undefined reference to `_ncwrap_acs_map' lxdialog/util.o:util.c:(.text+0x1364): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x137f): undefined reference to `_ncwrap_acs_map' lxdialog/util.o:util.c:(.text+0x1398): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x13b8): undefined reference to `_ncwrap_acs_map' lxdialog/util.o:util.c:(.text+0x13d1): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x13e1): undefined reference to `_ncwrap_acs_map' lxdialog/util.o:util.c:(.text+0x13fa): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x140f): undefined reference to `_ncwrap_acs_map' lxdialog/util.o:util.c:(.text+0x1428): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x1435): undefined reference to `_ncwrap_acs_map' lxdialog/util.o:util.c:(.text+0x144e): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x1460): undefined reference to `_ncwrap_acs_map' lxdialog/util.o:util.c:(.text+0x1479): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x1490): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x14bd): undefined reference to `_has_colors' lxdialog/util.o:util.c:(.text+0x14d9): undefined reference to `_wattrset' lxdialog/util.o:util.c:(.text+0x14fb): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0x150f): undefined reference to `_winch' lxdialog/util.o:util.c:(.text+0x1523): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x1559): undefined reference to `_wmove' lxdialog/util.o:util.c:(.text+0x1564): undefined reference to `_winch' lxdialog/util.o:util.c:(.text+0x1578): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x1583): undefined reference to `_winch' lxdialog/util.o:util.c:(.text+0x1597): undefined reference to `_waddch' lxdialog/util.o:util.c:(.text+0x15b7): undefined reference to `_wnoutrefresh' lxdialog/util.o:util.c:(.text+0x16a5): undefined reference to `_nodelay' lxdialog/util.o:util.c:(.text+0x16b8): undefined reference to `_keypad' lxdialog/util.o:util.c:(.text+0x16c3): undefined reference to `_wgetch' lxdialog/util.o:util.c:(.text+0x16d1): undefined reference to `_wgetch' lxdialog/util.o:util.c:(.text+0x16df): undefined reference to `_wgetch' lxdialog/util.o:util.c:(.text+0x16fb): undefined reference to `_nodelay' lxdialog/util.o:util.c:(.text+0x170e): undefined reference to `_keypad' lxdialog/util.o:util.c:(.text+0x173e): undefined reference to `_ungetch' lxdialog/inputbox.o:inputbox.c:(.text+0xc2): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0xcd): undefined reference to `_wrefresh' lxdialog/inputbox.o:inputbox.c:(.text+0x124): undefined reference to `_ncwrap_stdscr' lxdialog/inputbox.o:inputbox.c:(.text+0x12c): undefined reference to `_getmaxy' lxdialog/inputbox.o:inputbox.c:(.text+0x145): undefined reference to `_ncwrap_stdscr' lxdialog/inputbox.o:inputbox.c:(.text+0x14d): undefined reference to `_getmaxx' lxdialog/inputbox.o:inputbox.c:(.text+0x166): undefined reference to `_ncwrap_COLS' lxdialog/inputbox.o:inputbox.c:(.text+0x17b): undefined reference to `_ncwrap_LINES' lxdialog/inputbox.o:inputbox.c:(.text+0x190): undefined reference to `_ncwrap_stdscr' lxdialog/inputbox.o:inputbox.c:(.text+0x1d4): undefined reference to `_newwin' lxdialog/inputbox.o:inputbox.c:(.text+0x1ea): undefined reference to `_keypad' lxdialog/inputbox.o:inputbox.c:(.text+0x23a): undefined reference to `_wattrset' lxdialog/inputbox.o:inputbox.c:(.text+0x257): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x261): undefined reference to `_ncwrap_acs_map' lxdialog/inputbox.o:inputbox.c:(.text+0x277): undefined reference to `_waddch' lxdialog/inputbox.o:inputbox.c:(.text+0x285): undefined reference to `_ncwrap_acs_map' lxdialog/inputbox.o:inputbox.c:(.text+0x29b): undefined reference to `_waddch' lxdialog/inputbox.o:inputbox.c:(.text+0x2be): undefined reference to `_wattrset' lxdialog/inputbox.o:inputbox.c:(.text+0x2c3): undefined reference to `_ncwrap_acs_map' lxdialog/inputbox.o:inputbox.c:(.text+0x2d9): undefined reference to `_waddch' lxdialog/inputbox.o:inputbox.c:(.text+0x306): undefined reference to `_wattrset' lxdialog/inputbox.o:inputbox.c:(.text+0x346): undefined reference to `_getcury' lxdialog/inputbox.o:inputbox.c:(.text+0x354): undefined reference to `_getcurx' lxdialog/inputbox.o:inputbox.c:(.text+0x3f7): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x40b): undefined reference to `_wattrset' lxdialog/inputbox.o:inputbox.c:(.text+0x466): undefined reference to `_waddch' lxdialog/inputbox.o:inputbox.c:(.text+0x491): undefined reference to `_waddnstr' lxdialog/inputbox.o:inputbox.c:(.text+0x4b0): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x4bb): undefined reference to `_wrefresh' lxdialog/inputbox.o:inputbox.c:(.text+0x4cb): undefined reference to `_wgetch' lxdialog/inputbox.o:inputbox.c:(.text+0x545): undefined reference to `_wattrset' lxdialog/inputbox.o:inputbox.c:(.text+0x588): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x5d2): undefined reference to `_waddch' lxdialog/inputbox.o:inputbox.c:(.text+0x625): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x63d): undefined reference to `_waddch' lxdialog/inputbox.o:inputbox.c:(.text+0x65c): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x667): undefined reference to `_wrefresh' lxdialog/inputbox.o:inputbox.c:(.text+0x6c3): undefined reference to `_wattrset' lxdialog/inputbox.o:inputbox.c:(.text+0x70e): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x738): undefined reference to `_waddch' lxdialog/inputbox.o:inputbox.c:(.text+0x76c): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x77e): undefined reference to `_waddch' lxdialog/inputbox.o:inputbox.c:(.text+0x789): undefined reference to `_wrefresh' lxdialog/inputbox.o:inputbox.c:(.text+0x793): undefined reference to `_flash' lxdialog/inputbox.o:inputbox.c:(.text+0x845): undefined reference to `_delwin' lxdialog/inputbox.o:inputbox.c:(.text+0x85a): undefined reference to `_delwin' lxdialog/inputbox.o:inputbox.c:(.text+0x8ee): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x8f9): undefined reference to `_wrefresh' lxdialog/inputbox.o:inputbox.c:(.text+0x9d9): undefined reference to `_wmove' lxdialog/inputbox.o:inputbox.c:(.text+0x9e4): undefined reference to `_wrefresh' lxdialog/inputbox.o:inputbox.c:(.text+0x9f2): undefined reference to `_delwin' lxdialog/inputbox.o:inputbox.c:(.text+0xa28): undefined reference to `_delwin' lxdialog/inputbox.o:inputbox.c:(.text+0xa54): undefined reference to `_delwin' lxdialog/checklist.o:checklist.c:(.text+0x6c): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x86): undefined reference to `_wmove' lxdialog/checklist.o:checklist.c:(.text+0xa2): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0xcb): undefined reference to `_wmove' lxdialog/checklist.o:checklist.c:(.text+0xec): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x12f): undefined reference to `_wprintw' lxdialog/checklist.o:checklist.c:(.text+0x150): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x16b): undefined reference to `_wmove' lxdialog/checklist.o:checklist.c:(.text+0x188): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x1a9): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x1c6): undefined reference to `_waddnstr' lxdialog/checklist.o:checklist.c:(.text+0x1ea): undefined reference to `_wmove' lxdialog/checklist.o:checklist.c:(.text+0x1f5): undefined reference to `_wrefresh' lxdialog/checklist.o:checklist.c:(.text+0x225): undefined reference to `_wmove' lxdialog/checklist.o:checklist.c:(.text+0x23f): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x244): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x25a): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x275): undefined reference to `_waddnstr' lxdialog/checklist.o:checklist.c:(.text+0x28e): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x293): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x2a9): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x2ae): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x2c4): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x2c9): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x2df): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x2e4): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x2fa): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x322): undefined reference to `_wmove' lxdialog/checklist.o:checklist.c:(.text+0x350): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x355): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x36b): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x386): undefined reference to `_waddnstr' lxdialog/checklist.o:checklist.c:(.text+0x39f): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x3a4): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x3ba): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x3bf): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x3d5): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x3da): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x3f0): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x3f5): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x40b): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x4d3): undefined reference to `_wmove' lxdialog/checklist.o:checklist.c:(.text+0x4de): undefined reference to `_wrefresh' lxdialog/checklist.o:checklist.c:(.text+0x579): undefined reference to `_ncwrap_stdscr' lxdialog/checklist.o:checklist.c:(.text+0x581): undefined reference to `_getmaxy' lxdialog/checklist.o:checklist.c:(.text+0x59a): undefined reference to `_ncwrap_stdscr' lxdialog/checklist.o:checklist.c:(.text+0x5a2): undefined reference to `_getmaxx' lxdialog/checklist.o:checklist.c:(.text+0x5d2): undefined reference to `_ncwrap_COLS' lxdialog/checklist.o:checklist.c:(.text+0x5e7): undefined reference to `_ncwrap_LINES' lxdialog/checklist.o:checklist.c:(.text+0x5fc): undefined reference to `_ncwrap_stdscr' lxdialog/checklist.o:checklist.c:(.text+0x640): undefined reference to `_newwin' lxdialog/checklist.o:checklist.c:(.text+0x656): undefined reference to `_keypad' lxdialog/checklist.o:checklist.c:(.text+0x6a6): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x6c3): undefined reference to `_wmove' lxdialog/checklist.o:checklist.c:(.text+0x6cd): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x6e3): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x6f1): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x707): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x72a): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x72f): undefined reference to `_ncwrap_acs_map' lxdialog/checklist.o:checklist.c:(.text+0x745): undefined reference to `_waddch' lxdialog/checklist.o:checklist.c:(.text+0x772): undefined reference to `_wattrset' lxdialog/checklist.o:checklist.c:(.text+0x814): undefined reference to `_subwin' lxdialog/checklist.o:checklist.c:(.text+0x82a): undefined reference to `_keypad' lxdialog/checklist.o:checklist.c:(.text+0xa04): undefined reference to `_wnoutrefresh' lxdialog/checklist.o:checklist.c:(.text+0xa0f): undefined reference to `_wnoutrefresh' lxdialog/checklist.o:checklist.c:(.text+0xa14): undefined reference to `_doupdate' lxdialog/checklist.o:checklist.c:(.text+0xa24): undefined reference to `_wgetch' lxdialog/checklist.o:checklist.c:(.text+0xb0e): undefined reference to `_scrollok' lxdialog/checklist.o:checklist.c:(.text+0xb21): undefined reference to `_wscrl' lxdialog/checklist.o:checklist.c:(.text+0xb34): undefined reference to `_scrollok' lxdialog/checklist.o:checklist.c:(.text+0xba8): undefined reference to `_wnoutrefresh' lxdialog/checklist.o:checklist.c:(.text+0xbb3): undefined reference to `_wrefresh' lxdialog/checklist.o:checklist.c:(.text+0xc4b): undefined reference to `_scrollok' lxdialog/checklist.o:checklist.c:(.text+0xc5e): undefined reference to `_wscrl' lxdialog/checklist.o:checklist.c:(.text+0xc71): undefined reference to `_scrollok' lxdialog/checklist.o:checklist.c:(.text+0xcf0): undefined reference to `_wnoutrefresh' lxdialog/checklist.o:checklist.c:(.text+0xcfb): undefined reference to `_wrefresh' lxdialog/checklist.o:checklist.c:(.text+0xd7c): undefined reference to `_wnoutrefresh' lxdialog/checklist.o:checklist.c:(.text+0xd87): undefined reference to `_wrefresh' lxdialog/checklist.o:checklist.c:(.text+0xe9a): undefined reference to `_delwin' lxdialog/checklist.o:checklist.c:(.text+0xea5): undefined reference to `_delwin' lxdialog/checklist.o:checklist.c:(.text+0xf15): undefined reference to `_wrefresh' lxdialog/checklist.o:checklist.c:(.text+0xf3b): undefined reference to `_delwin' lxdialog/checklist.o:checklist.c:(.text+0xf46): undefined reference to `_delwin' lxdialog/checklist.o:checklist.c:(.text+0xf55): undefined reference to `_doupdate' lxdialog/checklist.o:checklist.c:(.text+0xf73): undefined reference to `_delwin' lxdialog/checklist.o:checklist.c:(.text+0xf7e): undefined reference to `_delwin' mconf.o:mconf.c:(.text+0xdc9): undefined reference to `_ncwrap_stdscr' mconf.o:mconf.c:(.text+0xdd1): undefined reference to `_getmaxx' mconf.o:mconf.c:(.text+0x13c8): undefined reference to `_initscr' mconf.o:mconf.c:(.text+0x13cd): undefined reference to `_ncwrap_stdscr' mconf.o:mconf.c:(.text+0x13d5): undefined reference to `_getcury' mconf.o:mconf.c:(.text+0x13de): undefined reference to `_ncwrap_stdscr' mconf.o:mconf.c:(.text+0x13e6): undefined reference to `_getcurx' collect2: ld returned 1 exit status Makefile:100: recipe for target `mconf' failed make[2]: *** [mconf] Error 1 Makefile:160: recipe for target `build-lib-kconfig' failed make[1]: *** [build-lib-kconfig] Error 2 Makefile:120: recipe for target `build' failed make: *** [build] Error 2 Administrator@PC-20130611GART /home/develop/crosstool-ng/crosstool-ng-1.18.0 $
如图:
即:
lxdialog/menubox.o:menubox.c:(.text+0x7d): undefined reference to `_wattrset’ |
【解决过程】
1.看起来,问题和刚遇到的:
很类似,就是缺少了对应的库。
所以,也可以参考刚才的办法,去加上对应的库。
2.而关于到底缺少了什么库,则参考之前的:
可知是curses,即对应的是:
-lcurses
所以,再去加到make时传入的参数中去。
3.本来打算直接也加到LDFLAGS中去的,但是发现,其实,此处的crosstool-ng的makefile:
crosstool-ng-1.18.0\kconfig\Makefile
其实,已经有了对应的部分了:
# Compiler and linker flags to use ncurses NCURSES_CFLAGS = -DCURSES_LOC="\"$(curses_hdr)\"" NCURSES_LDFLAGS = $(LIBS) $(LX_OBJ) $(LX_DEP): CFLAGS += $(NCURSES_CFLAGS) $(INTL_CFLAGS) $(mconf_OBJ) $(mconf_DEP): CFLAGS += $(NCURSES_CFLAGS) $(INTL_CFLAGS) mconf: LDFLAGS += $(NCURSES_LDFLAGS) $(nconf_OBJ) $(nconf_DEP): CFLAGS += $(INTL_CFLAGS) -I/usr/include/ncurses nconf: LDFLAGS += -lmenu -lpanel -lncurses
很明显,其已经加过ncurses的库了,但是,不是此处的curses。
4所以,针对此处的cygwin,还是需要另外加上curses的库的:
所以去试试:
make LDFLAGS="-lintl -lcurses"
然后就解决问题了:
Administrator@PC-20130611GART /home/develop/crosstool-ng/crosstool-ng-1.18.0 $ make LDFLAGS="-lintl -lcurses" GEN 'config/configure.in' GEN 'paths.mk' GEN 'paths.sh' LD 'mconf' CC 'nconf.o'
如图:
【总结】
此处在cygwin下make编译crosstool-ng,结果出现:
lxdialog/menubox.o:menubox.c:(.text+0x7d): undefined reference to `_wattrset’ |
的错误
的原因是:
虽然crosstool-ng中已经加了ncurses的库:
nconf: LDFLAGS += -lmenu -lpanel -lncurses
但是貌似是针对Linux的,对于此处的Cygwin,是需要添加curses的库的。
(或者是此处我的cygwin中没有安装ncurses)
解决办法是:
把curses的库加上,即可。
即,在make时,加上对应的参数:
make LDFLAGS="-lintl -lcurses"
即可。
转载请注明:在路上 » 【已解决】Cygwin 1.7.17下make编译crosstool-ng出错:lxdialog/menubox.o:menubox.c:(.text+0x7d): undefined reference to `_wattrset’