Skip to contentSkip to conversation

Buid backports-20130528 on ArchLinux: /usr/bin/ld: cannot find -ltinfo

DISCUSSION Anh K. Huynh 2 participants 3 messages Jun 2, 2013 – Jun 3, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

I'm building the backports-20130528 on ArchLinux (kernel = 3.2.46). I see the error as in http://pastie.org/7996763 .

I don't have any problem when building the new Linux kernel. When I remove the tinfo support from the file kconf/Makefile I can run make menuconfig perfectly.

Is the tinfo library really needed to run make menuconfig when building backports drivers?

Thank you for your helps,

--
I am ... 5 dog years old.

#1 lore raw
Quoted 11 lines · Anh K. Huynh

Hello,

I'm building the backports-20130528 on ArchLinux (kernel = 3.2.46). I see the error as in http://pastie.org/7996763 .

I don't have any problem when building the new Linux kernel. When I remove the tinfo support from the file kconf/Makefile I can run make menuconfig perfectly.

Is the tinfo library really needed to run make menuconfig when building backports drivers?

It was needed on some distros, and not on others. This is probably the best option?

backport/kconf/Makefile +1 -1
index ff5c270..dfd793a 100644
@@ -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 -ltinfo
+mconf: LDFLAGS = -Wl,--no-as-needed $(shell ./lxdialog/check-lxdialog.sh -ldflags $(CC))
 mconf: CFLAGS += -DCURSES_LOC="<ncurses.h>" -DLOCALE
 mconf: mconf.o zconf.tab.o $(LXDIALOG)
 

johannes

#2 lore raw

backport/kconf/Makefile

Quoted 9 lines · On Sun, 02 Jun 2013 19:41:39 +0200 Johannes Berg <[email protected]>…

...

Quoted 2 lines

Is the tinfo library really needed to run make menuconfig when building backports drivers?

It was needed on some distros, and not on others. This is probably the best option?

backport/kconf/Makefile +0 -0
...

Thank you for the explanation. The patch is a very good option.

--
I am ... 5 dog years old.