红联Linux门户
Linux帮助

工作linux问题记录

发布时间:2007-11-21 01:28:00来源:红联作者:drivers
编译u-boot时出现错误:No rule to make target `hello_world.srec', needed by `all'. Stop.

解决办法:修改examples/Makefile文件,将%.srec: %改为 %.srec: %.o,将%.bin: %改为%.bin: %.o

另外还google出一个有意思的答案:[code]This is a problem in the old U-Boot code which gets triggered by
recent versions of the "make" tool. It has been fixed a long, long
time ago. Please use current code.[/code]编译kernel时出现错误:[code]make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or direct ory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: error: expected specifier-qualifier-list b efore ‘chtype’
scripts/kconfig/lxdialog/dialog.h:187: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:193: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:195: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:196: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:197: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:198: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:200: 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:116: error: ‘WINDOW’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:116: error: for each function it appears in .)
scripts/kconfig/lxdialog/checklist.c:116: error: ‘dialog’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: ‘list’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: warning: left-hand operand of comma ex pression has no effect
scripts/kconfig/lxdialog/checklist.c:129: warning: implicit declaration of funct ion ‘getmaxy’
scripts/kconfig/lxdialog/checklist.c:129: error: ‘stdscr’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:130: error: ‘KEY_MAX’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:131: warning: implicit declaration of funct ion ‘getmaxx’
scripts/kconfig/lxdialog/checklist.c:137: error: ‘COLS’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:138: error: ‘LINES’ undeclared (first use i n this function)
scripts/kconfig/lxdialog/checklist.c:140: warning: implicit declaration of funct ion ‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:142: warning: implicit declaration of funct ion ‘newwin’
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of funct ion ‘keypad’
scripts/kconfig/lxdialog/checklist.c:143: error: ‘TRUE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of funct ion ‘draw_box’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no me mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no me mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:147: warning: implicit declaration of funct ion ‘wattrset’
scripts/kconfig/lxdialog/checklist.c:147: error: ‘struct dialog_color’ has no me mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of funct ion ‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of funct ion ‘waddch’
scripts/kconfig/lxdialog/checklist.c:151: error: ‘struct dialog_color’ has no me mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:154: warning: implicit declaration of funct ion ‘print_title’
scripts/kconfig/lxdialog/checklist.c:156: error: ‘struct dialog_color’ has no me mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:157: warning: implicit declaration of funct ion ‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:164: warning: implicit declaration of funct ion ‘subwin’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no me mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no me mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:189: warning: implicit declaration of funct ion ‘print_item’
scripts/kconfig/lxdialog/checklist.c:192: warning: implicit declaration of funct ion ‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:195: warning: implicit declaration of funct ion ‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of funct ion ‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of funct ion ‘doupdate’
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of funct ion ‘wgetch’
scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_UP’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_DOWN’ undeclared (first us e in this function)
scripts/kconfig/lxdialog/checklist.c:220: error: ‘FALSE’ undeclared (first use i n this function)
scripts/kconfig/lxdialog/checklist.c:221: warning: implicit declaration of funct ion ‘scrollok’
scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of funct ion ‘wscrl’
scripts/kconfig/lxdialog/checklist.c:232: warning: implicit declaration of funct ion ‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:293: warning: implicit declaration of funct ion ‘delwin’
scripts/kconfig/lxdialog/checklist.c:297: error: ‘KEY_LEFT’ undeclared (first us e in this function)
scripts/kconfig/lxdialog/checklist.c:298: error: ‘KEY_RIGHT’ undeclared (first u se in this function)
scripts/kconfig/lxdialog/checklist.c:310: warning: implicit declaration of funct ion ‘on_key_esc’
scripts/kconfig/lxdialog/checklist.c:312: error: ‘KEY_RESIZE’ undeclared (first use in this function)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2[/code]原因是少了个控制台终端的开发包,解决办法:apt-get install ncurses-dev
文章评论

共有 2 条评论

  1. chameleon 于 2007-11-21 09:43:15发表:

    很感谢这位朋友能将工作中遇到的问题以及解决方法分享出来,需要这样的精神和交流...

  2. djdior0622 于 2007-11-21 08:33:48发表:

    :0wl;l1 :0wl;l1