Tue 05 Mar 2013 09:31:34 AM UTC, original submission:
libncurses can be configured with a separate libtinfo that moves the termcap symbols over to libtinfo, and then libncurses links against it
such symbols like tgetent()
but configure.ac is missing check for tinfo, causing ./configure to bail out:
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
this is coming from:
http://bugs.gentoo.org/457556
this simple patch solves the issue:
--- configure.ac
+++ configure.ac
@@ -130,7 +130,7 @@
# rather ncurses. So we check for it.
TERMLIBS=
# Check for termlib before termcap because Solaris termcap needs libucb.
-TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo"
+TERMLIB_VARIANTS="tinfo ncurses curses termlib termcap terminfo"
for termlib in ${TERMLIB_VARIANTS}; do
AC_CHECK_LIB(${termlib}, tgetent,
[TERMLIBS="${TERMLIBS} -l${termlib}"; break])
and is working just fine:
$ objdump -p /usr/bin/info |grep tinfo
NEEDED libtinfo.so.5
this is NOT distribution specific, however I've noticed also Debian to have separate libtinfo, just for the record :)
|