From: Larry Finger Date: Sun, 19 May 2013 16:43:55 +0000 (-0500) Subject: backports: Fix menuconfig build X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8d10f3b2021e8644ee00cbc030290f45c4d176d9;p=openwrt%2Fstaging%2Fblogic.git backports: Fix menuconfig build Using openSUSE 12.3 with x86_64 architecture, the 'make menuconfig' command results in the following: finger@larrylap:~/backports-3.10-rc1-1> make menuconfig cc -Wl,--no-as-needed -lncurses mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o -o mconf /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: /lib64/libncurses.so.5: undefined reference to symbol 'acs_map' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note: 'acs_map' is defined in DSO /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libtinfo.so so try adding it to the linker command line /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libtinfo.so: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [mconf] Error 1 make[1]: *** [menuconfig] Error 2 make: *** [menuconfig] Error 2 finger@larrylap:~/backports-3.10-rc1-1> When "-ltinfo" is added to the LDFLAGS symbol as suggested by the linker, it builds and runs correctly. 1 2.6.24 [ OK ] 2 2.6.25 [ OK ] 3 2.6.26 [ OK ] 4 2.6.27 [ OK ] 5 2.6.28 [ OK ] 6 2.6.29 [ OK ] 7 2.6.30 [ OK ] 8 2.6.31 [ OK ] 9 2.6.32 [ OK ] 10 2.6.33 [ OK ] 11 2.6.34 [ OK ] 12 2.6.35 [ OK ] 13 2.6.36 [ OK ] 14 2.6.37 [ OK ] 15 2.6.38 [ OK ] 16 2.6.39 [ OK ] 17 3.0.76 [ OK ] 18 3.1.10 [ OK ] 19 3.2.44 [ OK ] 20 3.3.8 [ OK ] 21 3.4.43 [ OK ] 22 3.5.7 [ OK ] 23 3.6.11 [ OK ] 24 3.7.10 [ OK ] 25 3.8.11 [ OK ] 26 3.9.0 [ OK ] real 17m9.368s user 403m46.554s sys 95m42.811s Signed-off-by: Larry Finger [mcgrof: tested with ckmake] Signed-off-by: Luis R. Rodriguez --- diff --git a/backport/kconfig/Makefile b/backport/kconfig/Makefile index 5974e48fa2f3..ff5c27014c14 100644 --- a/backport/kconfig/Makefile +++ b/backport/kconfig/Makefile @@ -3,7 +3,7 @@ CFLAGS=-Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer LXDIALOG := lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o conf: conf.o zconf.tab.o -mconf: LDFLAGS = -Wl,--no-as-needed -lncurses +mconf: LDFLAGS = -Wl,--no-as-needed -lncurses -ltinfo mconf: CFLAGS += -DCURSES_LOC="" -DLOCALE mconf: mconf.o zconf.tab.o $(LXDIALOG)