Bug 16179 - detecting tinfo as a termcap library for readline
Summary: detecting tinfo as a termcap library for readline
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Installation (show other bugs)
Version: R-devel (trunk)
Hardware: Other Linux
: P5 enhancement
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2015-01-31 23:32 UTC by Poor Yorick
Modified: 2015-02-01 22:24 UTC (History)
1 user (show)

See Also:


Attachments
a patch for configure.ac, providing tinfo detection (807 bytes, patch)
2015-01-31 23:32 UTC, Poor Yorick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Poor Yorick 2015-01-31 23:32:55 UTC
Created attachment 1733 [details]
a patch for configure.ac, providing tinfo detection

By default, the libreadline shared object does not link to a termcap library.
The Readline INSTALL document says:

    Readline uses the termcap functions, but does not link with the termcap or
    curses library itself, allowing applications which link with readline to
    choose an appropriate library.

Additionally, the libncurses shared object can be built such that the termcap
functions are packaged into a separate library, libtinfo.so, which
libncurses.so links to.  But when the linker flag --as-needed is used, the
linker will not link to libncurses to satisfy the termcap symbol requirements,
even v -lncurses is given.

What's neededed in this scenario is -ltinfo. 

Here is a similar bug report for Python:

    http://bugs.python.org/issue23284

The attached patch is one possible fix.