bugtexinfo - GNU documentation system - Bugs: bug #38470, Missing check for termcap library...


You are not allowed to post comments on this tracker with your current authentication level.

bug #38470: Missing check for termcap library -ltinfo (part of ncurses bundle)

Submitted by:  Samuli Suominen <ssuominen>
Submitted on:  Tue 05 Mar 2013 09:31:34 AM UTC  
Category:  None Release: 
Priority:  5 - Normal Severity:  3 - Normal
Item Group:  None Privacy:  Public
Open/Closed:  Closed Assigned to:  None
Status:  Fixed

Tue 05 Mar 2013 11:00:09 PM UTC, comment #1: 

thanks for the report. the change was made a little while ago (it's in the texinfo-5.0 release).

Karl Berry <karl>
Project Member
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:


this simple patch solves the issue:

--- configure.ac
+++ configure.ac
@@ -130,7 +130,7 @@
 # rather ncurses.  So we check for it.
 # 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 :)

Samuli Suominen <ssuominen>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by karl (Posted a comment)
  • -email is unavailable- added by ssuominen (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-03-05 karl Open/ClosedOpen => Closed
        StatusNone => Fixed

    Back to the top

    Powered by Savane 3.5