bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash 5.1 and Ncurses


From: Eli Schwartz
Subject: Re: Bash 5.1 and Ncurses
Date: Fri, 15 Jan 2021 00:28:26 -0500

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 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.

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.

It seems like configure should be able to find the Ncurses library.
Maybe Ncurses needs one of those  --with-libncurses-prefix.

bash's configure script should report that it is checking "which library has the termcap functions", specifically for the tgetent symbol. It probes libtinfo before libncurses or libncursesw.

On your system it might be misdetected. On my linux distro, libtinfo does not exist, except as an alias to libncursesw.so.6 -- but the official Debian package for bash overrides the detection by running:

make TERMCAP_LIB="-ltinfo"


--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]