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