Bug 2845

Summary: dialog 1.1 needs libtinfo from ncurses
Product: buildroot Reporter: Sérgio <sergio>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: buildroot
Priority: P5    
Version: 2009.08   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: so ncurses should becompile with libtinfo.so
build from git
Make optional build ncurses --with-termlib=tinfo

Description Sérgio 2010-11-17 22:48:36 UTC
>>> dialog 1.1-20100428 Building
buildroot-2010.08/output/staging/usr/bin/mipsel-unknown-linux-uclibc-gcc --sysroot=/buildroot-2010.08/output/staging -o dialog dialog.o -L. -ldialog -Lbuildroot-2010.08/output/staging/lib -Lbuildroot-2010.08/output/staging/usr/lib -lncurses -ltinfo -lm 
buildroot-2010.08/output/staging/usr/lib/gcc/mipsel-unknown-linux-uclibc/4.3.5
/../../../../mipsel-unknown-linux-uclibc/bin/ld: cannot find -ltinfo
collect2: ld returned 1 exit status
Comment 1 Sérgio 2010-11-17 22:58:08 UTC
Created attachment 2689 [details]
so ncurses should becompile with libtinfo.so

 ncurses normally is compiled with libtinfo , Fedora does ... , bash if have it use it etc..
Comment 2 Peter Korsgaard 2010-11-24 22:08:06 UTC
Hmm, dialog builds just fine here. Could you give latest git a try?
Comment 3 Sérgio 2010-11-25 04:54:36 UTC
Created attachment 2731 [details]
build from git

no , problem still there
Comment 4 Sérgio 2010-11-25 05:08:12 UTC
in config.log 
line  1692:
configure:13305: testing ...checking LIBS -lncurses -ltinfo -lm
configure:13355: testing ...checked LIBS  -lncurses -ltinfo -lm ... 

seems dialog treats libtinfo as part of ncurses 
btw many check have errors by using -ltinfo has part of the system as -lm .
for example:
configure:12421: checking for start_color
configure:12458: /home/sergio/hardware/moviecube/buildroot/output/staging/usr/bin/mipsel-unknown-linux-uclibc-gcc --sysroot=/home/sergio/hardware/moviecube/buildroot/output/staging -o conftest -Os -pipe -Os  -mtune=mips32r2 -mabi=32 -msoft-float -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/sergio/hardware/moviecube/buildroot/output/staging/usr/include -I/home/sergio/hardware/moviecube/buildroot/output/staging/include  -D_GNU_SOURCE  -L/home/sergio/hardware/moviecube/buildroot/output/staging/lib -L/home/sergio/hardware/moviecube/buildroot/output/staging/usr/lib conftest.c -lncurses -ltinfo -lm  >&5
/home/sergio/hardware/moviecube/buildroot/output/staging/usr/lib/gcc/mipsel-unknown-linux-uclibc/4.3.5/../../../../mipsel-unknown-linux-uclibc/bin/ld: cannot find -ltinfo 


config.log is not attach because :
The file you are trying to attach is 101 kilobytes (KB) in size. Non-patch attachments cannot be more than 75 KB.
We recommend that you store your attachment elsewhere and then insert the URL to it in a comment, or in the URL field for this bug. 

and I don't have time to do it now .
Comment 5 Peter Korsgaard 2010-11-25 10:26:38 UTC
Ok, it seems to be because it ends up looking at your host headers. I've tried to fix that in git, could you give that a try?
Comment 6 Sérgio 2010-11-25 18:25:43 UTC
(In reply to comment #5)
> Ok, it seems to be because it ends up looking at your host headers. I've tried
> to fix that in git, could you give that a try?

It is fixed , but still don't understand why don't we have ncurses with libtinfo , seems quite important and powerful lib ...
Comment 7 Peter Korsgaard 2010-11-26 08:35:49 UTC
Ok, resolving - thanks.
I have no problem with adding an option to add tinfo to the ncurses build, but I don't want to add any new features this close to the 2010.11 release.

Could you send a patch adding optional tinfo build (E.G. with a config option) to ncurses, then I'll apply post-2010.11 - Thanks
Comment 8 Sérgio 2011-03-01 22:43:35 UTC
Created attachment 3049 [details]
Make optional build ncurses --with-termlib=tinfo

(In reply to comment #7)
> Could you send a patch adding optional tinfo build (E.G. with a config option)
> to ncurses, then I'll apply post-2010.11 - Thanks

This is a draft , I'm newbie , so I don't know, how to call option , etc ... , just copy by other example, hope that can help something.