Text of discuss.python.org › t › compiling-cpython-fails-without-wide-char-ncurses › 109209 as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Compiling CPython fails without wide-char NCurses - Core Development - Discussions on Python.org

Compiling CPython fails without wide-char NCurses Core Development help Deepfriedice (Deepfriedice) September 24, 2026, 7:34am 1 I’m in the process of yak-shaving, and currently struggling to compile CPython. I’m trying to build NCurses locally without wide character support, and then build CPython that’s linked against that. To use the narrow version of NCurses, I’m passing “–with-curses=ncurses” to the configure script in CPython.

I’m getting the error message “[ERROR] _curses failed to import: /(omitted)/cpython-ncurses/cpython/build/lib.linux-x86_64-3.16/_curses.cpython-316d-x86_64-linux-gnu.so: undefined symbol: term_attrs”. However , the (admittedly poor) searching I’ve done suggests that “term_attrs” will only exist in wide builds (as opposed to “termattrs”), so I don’t understand why CPython is trying to reference it. My best guess is that the “configure” script is deciding that wide character support is available by looking at the system libraries, and then not respecting the “–with-curses=ncurses” flag.

But I don’t know if there’s an option to override that - I’m finding reading the configure script difficult. Also, I’m sorry if I posted this in the wrong category. I’m not sure if it should be here or in “Python Help”. storchaka (Serhiy Storchaka) September 24, 2026, 12:44pm 2 You could simply open an issue. Opened Building `_curses` against narrow ncurses fails: undefined symbol `term_attrs` · Issue #158078 · python/cpython · GitHub , because I already have a fix.

2 Likes Deepfriedice (Deepfriedice) September 24, 2026, 1:19pm 3 Thank you. I posted it here because I wasn’t sure if this was an actual bug or just a “you’re holding it wrong” situation. 2 Likes