打印

make menuconfig出现问题

make menuconfig出现问题

make menuconfig时出现
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 directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: error: expected specifier-qualifier-list before ‘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 expression has no effect
scripts/kconfig/lxdialog/checklist.c:116: warning: statement with no effect
scripts/kconfig/lxdialog/checklist.c:129: warning: implicit declaration of function ‘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 function ‘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 in this function)
scripts/kconfig/lxdialog/checklist.c:140: warning: implicit declaration of function ‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:142: warning: implicit declaration of function ‘newwin’
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function ‘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 function ‘draw_box’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:147: warning: implicit declaration of function ‘wattrset’
scripts/kconfig/lxdialog/checklist.c:147: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function ‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function ‘waddch’
scripts/kconfig/lxdialog/checklist.c:151: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:154: warning: implicit declaration of function ‘print_title’
scripts/kconfig/lxdialog/checklist.c:156: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:157: warning: implicit declaration of function ‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:164: warning: implicit declaration of function ‘subwin’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:189: warning: implicit declaration of function ‘print_item’
scripts/kconfig/lxdialog/checklist.c:192: warning: implicit declaration of function ‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:195: warning: implicit declaration of function ‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function ‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of function ‘doupdate’
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function ‘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 use in this function)
scripts/kconfig/lxdialog/checklist.c:220: error: ‘FALSE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:221: warning: implicit declaration of function ‘scrollok’
scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of function ‘wscrl’
scripts/kconfig/lxdialog/checklist.c:232: warning: implicit declaration of function ‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:293: warning: implicit declaration of function ‘delwin’
scripts/kconfig/lxdialog/checklist.c:297: error: ‘KEY_LEFT’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:298: error: ‘KEY_RIGHT’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:310: warning: implicit declaration of function ‘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
操作系统是SUSE 10,gcc 4.1 make 3.8,我想升级的是2.6.19-rc2
为什么会出现这个问题呢???那里的scripts/kconfig/lxdialog/checklist是在哪个目录下的?另外我make oldconfig就没问题,我想知道make oldconfig跟make  
menuconfig的区别,make oldconfig之后还需要make menuconfig吗??第一次编绎内核,请大家多多指教。

TOP

我在cygwin下编译2.6.12也是用make menuconfig不通
scripts/basic/docproc.c: In function 'find_export_symbols':
scripts/basic/docproc.c:184: warning: pointer targets in assignment differ in si
gnedness
scripts/basic/docproc.c:185: warning: pointer targets in assignment differ in si
gnedness
scripts/basic/docproc.c:202: warning: pointer targets in passing argument 2 of '
add_new_symbol' differ in signedness
scripts/basic/docproc.c: In function 'singfunc':
scripts/basic/docproc.c:274: warning: pointer targets in assignment differ in si
gnedness
scripts/basic/docproc.c: In function 'parse_file':
scripts/basic/docproc.c:296: warning: pointer targets in assignment differ in si
gnedness
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf.o:mconf.c.text+0xa13): undefined reference to `_libintl_
gettext'
scripts/kconfig/mconf.o:mconf.c.text+0x10c1): undefined reference to `_libintl
_gettext'
scripts/kconfig/mconf.o:mconf.c.text+0x123a): undefined reference to `_libintl
_gettext'
scripts/kconfig/mconf.o:mconf.c.text+0x1277): undefined reference to `_libintl
_gettext'
scripts/kconfig/mconf.o:mconf.c.text+0x1297): undefined reference to `_libintl
_gettext'
scripts/kconfig/mconf.o:mconf.c.text+0x12b7): more undefined references to `_l
ibintl_gettext' follow
scripts/kconfig/mconf.o:mconf.c.text+0x1a8f): undefined reference to `_libintl
_bindtextdomain'
scripts/kconfig/mconf.o:mconf.c.text+0x1a9b): undefined reference to `_libintl
_textdomain'
scripts/kconfig/mconf.o:mconf.c.text+0x1ae7): undefined reference to `_libintl
_gettext'
scripts/kconfig/mconf.o:mconf.c.text+0x1b79): undefined reference to `_libintl
_gettext'
scripts/kconfig/mconf.o:mconf.c:(.text+0x1bc1): undefined reference to `_libintl
_gettext'
scripts/kconfig/mconf.o:mconf.c:(.text+0x1bdc): undefined reference to `_libintl
_gettext'
scripts/kconfig/mconf.o:mconf.c:(.text+0x1c14): undefined reference to `_libintl
_gettext'

后来用在网上看到

  On a system where libintl.h is present, but the NLS functionality is
supplied by a separate library instead of the system C library, an attempt
to "make config" or "make menuconfig" will fail with link errors, ex:

  scripts/kconfig/mconf.o:mconf.c:(.text+0xf63): undefined reference to
    `_libintl_gettext'

  This patch attempts to correct the problem by detecting whether or not
NLS support requires linking with libintl.

Signed-off-by: Samuel J Robb <sam.robb@...>

---

--- linux-2.6.15.1/scripts/kconfig/Makefile.orig        2006-01-25 14:55:22.926372900 -0500
+++ linux-2.6.15.1/scripts/kconfig/Makefile     2006-01-30 12:51:04.551596200 -0500
@@ -122,7 +122,17 @@ KBUILD_HAVE_NLS := $(shell \
      then echo yes ; \
      else echo no ; fi)
ifeq ($(KBUILD_HAVE_NLS),no)
-HOSTCFLAGS     += -DKBUILD_NO_NLS
+  HOSTCFLAGS   += -DKBUILD_NO_NLS
+else
+  KBUILD_NEED_LINTL := $(shell \
+    if echo -e "\#include <libintl.h>\nint main(int a, char** b) { gettext(\"\"); return 0; }\n" | \
+      $(HOSTCC) $(HOSTCFLAGS) -x c - > /dev/null 2>&1 ; \
+    then echo no ; \
+    else echo yes ; fi)
+  ifeq ($(KBUILD_NEED_LINTL),yes)
+    HOSTLOADLIBES_conf += -lintl
+    HOSTLOADLIBES_mconf        += -lintl
+  endif
endif
  
# generated files seem to need this to find local include files

于是拿了个2.6.15的
make menuconfig通过了
但是make zImage还是错误
In file included from scripts/mod/modpost.c:15:
scripts/mod/modpost.h:27:1: warning: "ELF_ST_BIND" redefined
In file included from /usr/include/elf.h:20,
                 from scripts/mod/modpost.h:10,
                 from scripts/mod/modpost.c:15:
/usr/include/sys/elf_generic.h:87:1: warning: this is the location of the previous definition
In file included from scripts/mod/modpost.c:15:
scripts/mod/modpost.h:28:1: warning: "ELF_ST_TYPE" redefined
In file included from /usr/include/elf.h:20,
                 from scripts/mod/modpost.h:10,
                 from scripts/mod/modpost.c:15:
/usr/include/sys/elf_generic.h:88:1: warning: this is the location of the previous definition
scripts/mod/modpost.c: In function 'handle_modversions':
scripts/mod/modpost.c:345: error: 'MODULE_SYMBOL_PREFIX' undeclared (first use in this function)
scripts/mod/modpost.c:345: error: (Each undeclared identifier is reported only once
scripts/mod/modpost.c:345: error: for each function it appears in.)
scripts/mod/modpost.c:345: error: parse error before string constant
scripts/mod/modpost.c:347: error: parse error before string constant
scripts/mod/modpost.c:350: error: break statement not within loop or switch
scripts/mod/modpost.c:351: error: case label not within a switch statement
scripts/mod/modpost.c:355: error: break statement not within loop or switch
scripts/mod/modpost.c:358: error: break statement not within loop or switch
scripts/mod/modpost.c:360: error: parse error before string constant
scripts/mod/modpost.c:388: error: break statement not within loop or switch
scripts/mod/modpost.c:389: error: 'default' label not within a switch statement
scripts/mod/modpost.c:391: error: parse error before string constant
scripts/mod/modpost.c:336: warning: unused variable 'crc'
make[2]: *** [scripts/mod/modpost.o] Error 1
make[1]: *** [scripts/mod] Error 2

后来我把2.6.12的scripts文件夹全部替换为2.6.15的
可以make menuconfig了
但是编译到usr目录下的东西时就有出错了

TOP