-
-
Notifications
You must be signed in to change notification settings - Fork 32k
configure doesn't disable ncurses extended_pair_content() if ncursesw is not available #123925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What is the value of NCURSES_EXT_FUNCS and NCURSES_EXT_COLORS? How is |
The definition of these in
Just to note, this is by no means some bizarre custom version of Linux. This is Red Hat Enterprise Linux 8.6. The only unusual thing is that the ncursesw library is not present. Also I see the same problem on Ubuntu 20.04, which has this version:
Right now I don't have a newer system but I can try at home later with Ubuntu 24.04 LTS. |
same problem when cross compiling and building a static python3 host
|
…pythonGH-128405) (cherry picked from commit 8d16919) Co-authored-by: Serhiy Storchaka <[email protected]>
…pythonGH-128405) (cherry picked from commit 8d16919) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-128405) (GH-128408) (cherry picked from commit 8d16919) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-128405) (GH-128407) (cherry picked from commit 8d16919) Co-authored-by: Serhiy Storchaka <[email protected]>
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
Linked PRs
The text was updated successfully, but these errors were encountered: