[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #38470] Missing check for termcap library -ltinfo (part of ncurses
From: |
Samuli Suominen |
Subject: |
[bug #38470] Missing check for termcap library -ltinfo (part of ncurses bundle) |
Date: |
Tue, 05 Mar 2013 09:31:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 |
URL:
<http://savannah.gnu.org/bugs/?38470>
Summary: Missing check for termcap library -ltinfo (part of
ncurses bundle)
Project: texinfo - GNU documentation system
Submitted by: ssuominen
Submitted on: Tue 05 Mar 2013 09:31:34 AM GMT
Category: None
Release:
Priority: 5 - Normal
Severity: 3 - Normal
Item Group: None
Privacy: Public
Open/Closed: Open
Assigned to: None
Discussion Lock: Any
Status: None
_______________________________________________________
Details:
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 :)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38470>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #38470] Missing check for termcap library -ltinfo (part of ncurses bundle),
Samuli Suominen <=