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: NoneRelease: 
Priority: 5 - NormalSeverity: 3 - Normal
Item Group: NonePrivacy: Public
Open/Closed: ClosedAssigned 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 Administrator
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 :)

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
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by ssuominen (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 05 Mar 2013 11:00:09 PM UTCkarlOpen/ClosedOpen=>Closed
      StatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1