[Clfs-support] Texinfo-4.13a in /tools needs terminfo/termcap library from host?

Charlie Brown stieizc.33 at gmail.com
Tue Jul 9 23:47:26 PDT 2013


It seems that when building texinfo-4.13a in /tools, the cross tool
chain will look for terminfo/termcap library in the *host* system, not
in /cross-tools. And if there's not, the build would fail:
checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... no
checking for tgetent in -ltermlib... no
checking for tgetent in -ltermcap... no
checking for tgetent in -lterminfo... no
configure: WARNING: probably need a terminal library, one of: ncurses
curses termlib termcap terminfo
----------------later on----------------------------------
terminal.o: In function `terminal_end_using_terminal':
/mnt/clfs/sources/texinfo-4.13/info/terminal.c:166: undefined
reference to `tputs'
/mnt/clfs/sources/texinfo-4.13/info/terminal.c:175: undefined
reference to `tputs'
terminal.o: In function `terminal_goto_xy':
/mnt/clfs/sources/texinfo-4.13/info/terminal.c:235: undefined
reference to `tputs'
terminal.o:/mnt/clfs/sources/texinfo-4.13/info/terminal.c:272: more
undefined references to `tputs' follow
collect2: error: ld returned 1 exit status
make[3]: *** [ginfo] Error 1

And if I do get the library: like libtinfo-dev on debian, which
contains libtermcap.a:
checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... no
checking for tgetent in -ltermlib... no
checking for tgetent in -ltermcap... yes
and the build succeed.

Is it a normal thing that the cross-tools looks for libraries outside
/cross-tools?

Sincerely,
王文鑫
Charlie



More information about the Clfs-support mailing list