I too have been building on a 32 bit Ubuntu host, and I ran into this same 
issue.

It seems that -ltinfo is an option of the ncurses library, to split some things off into a separate library, for things that only need terminfo stuff, but not the rest of ncurses.

I saw that in ncurses, had a option to build libtinfo, so I enabled it. now dialog built OK, but it changed the main nuurses library, which now is missing the things now in libtinfo, so other packages are failing bcause where -lncursesw was previously sufficient to build, now a lot of packages would need -lncurses and -ltinfo to build. so essentially the whole T2 project would have to be switched over to use this new convention, just want to document that here, if that is somthing that we want to do in the future.

Plan B:
I studied the makefile of dialog a bit to see why it was deciding to use -ltinfo on a Ubuntu host, but could not get to the bottom of it in a reasonable amount of time, may revisit this later.

Plan C: I commented the dialog project out of my target pkgsel, since I don't really need it for my project. (I was trying for the whole generic minimal build, but only need a subset for my own purposes).

Jan

On 3/20/2013 6:36 AM, Mingfa Ma wrote:

Thanks René,

My host was Ubuntu 12.04 LTS 32bits which might not appropriate for building T2 
project, so I changed to a virtual machine (installed with T2 8.0 iso). It had 
a new complaint when building base/dialog – “WACS_DARROW undeclared”. I fixed 
it by removing--enable-widecin package/base/dialog/dialog.conf.
Many thanks, guys! Regards,
Mingfa

*From:*René Rebe [mailto:[email protected]]
*Sent:* 20 March 2013 09:28
*To:* Mingfa Ma
*Cc:* T2 developers mailing list
*Subject:* Re: [t2] cannot find -ltinfo

Hi Mingfa,

sorry, I wish I could help, but I'm currently abroad and more than busy. Anyone else has a tip for that?

René

On Mar 16, 2013, at 13:05 , Mingfa Ma wrote:



*From:*Mingfa Ma
*Sent:*16 March 2013 11:52
*To:*'[email protected] <mailto:[email protected]>'
*Subject:*cannot find -ltinfo

Hi,

I am trying to build a live cd with T2 (svn cohttp://svn.exactcode.de/t2/trunkt2-trunk). Got an error when building base/dialog, it complained “cannot find -ltinfo”. How can I resolve it?

Many thanks,

Mike

== 11:14:48 =[1]=> Building base/dialog [1.1-20100428 9.0-trunk].

-> Parallel build using 2 jobs enabled.

-> Reading package config: package/base/dialog/dialog.conf

-> Preparing build in src.dialog.system.20130316.111444.22047.ubuntu

-> Building. Writing output to $root/var/adm/logs/1-dialog.out

!> i486-t2-linux-gnu-gcc -g -O2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/ncursesw -DHAVE_CONFIG_H -I. -I. -DLOCALEDIR="/usr/share/locale" -c dialog.c

!> i486-t2-linux-gnu-ar -cr libdialog.a trace.o rc.o calendar.o fselect.o timebox.o formbox.o guage.o pause.o progressbox.o tailbox.o mixedform.o mixedgauge.o arrows.o buttons.o checklist.o columns ..

!> i486-t2-linux-gnu-ranlib libdialog.a

!> i486-t2-linux-gnu-gcc -o dialog dialog.o -L. -ldialog -lncursesw -ltinfo -lm

!> /home/mingfa/work/t2-trunk/build/system-9.0-trunk-generic-x86-i486-linux/TOOLCHAIN/tools.cross/crosscc/../lib/gcc/i486-t2-linux-gnu/4.7.2/../../../../i486-t2-linux-gnu/bin/ld: cannot find -ltinfo

!> collect2: error: ld returned 1 exit status

!> Due to previous errors, no 1-dialog.log file!

!> (Try enabling xtrace in the config to track an error inside the build 
system.)

== 03/16/13 11:16:18 =[1]=> Aborted building package dialog.

-> Unmounting loop mounts ...

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] <mailto:[email protected]>with a subject of: 
unsubscribe t2

--
ExactCODE GmbH, Jaegerstr. 67, DE-10117 Berlin
http://exactcode.com <http://exactcode.com/> | http://exactscan.com <http://exactscan.com/> | http://ocrkit.com <http://ocrkit.com/> | http://t2-project.org <http://t2-project.org/> | http://rene.rebe.de


----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to