On 1/15/21 12:12 AM, Jeffrey Walton wrote:
Hi Everyone,
I configured Bash 5.1 with prefix=/usr/local, --with-curses and
--enable-multibyte.
The `prefix' option controls installation, not where the configure or
build processes look for anything.
The link failed with undefined references, like
tputs. I have the wide char Ncurses built and installed in /usr/local.
I found I needed to add -ltinfow to LIBS and LDLIBS for the build to
succeed.
What is TERMCAP_LIB set to in the Makefile? And what does
grep TERMCAP config.status
return?
Now that you have bash built, what does
ldd bash
display? You may find that you're not using the library you think
you are.
The answer in
https://lists.gnu.org/archive/html/help-bash/2021-01/msg00008.html
from last week still applies as well.
I'm pretty sure we are supposed to use the wide character version of
Ncurses nowadays. I believe the wide character version supplies both
multibyte and single byte functions, so it should just work with all
software nowadays.
That doesn't really matter for readline's purposes. It only needs the
termcap/terminfo portion of the library.
It seems like configure should be able to find the Ncurses library.
Maybe Ncurses needs one of those --with-libncurses-prefix.
It can, if it is in a location that `cc' and `ld' search.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/