configure doesn't disable ncurses extended_pair_content() if ncursesw is not available #123925
Labels
build
The build process and cross-build
extension-modules
C modules in the Modules dir
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
On a system I'm trying to build Python for, I have libncurses.so available but not libncursesw.so.
Unfortunately, although this is not documented directly anywhere I can find, the ncurses extended_pair_content() and extended_color_content() functions (and the
init_extended_*()
functions) are not available in libncurses, they are only available in libncursesw. This causes the compilation of Python to fail:If I try a simple program:
then it works if I link with
-lncursesw
:But fails if I only link with
-lncurses
:I believe this patch will fix it:
CPython versions tested on:
3.12
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: