Opened 6 years ago
Last modified 6 years ago
#15317 closed defect
Troubles with Python and ncurses on Cygwin — at Initial Version
Reported by: | jpflori | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-6.2 |
Component: | porting: Cygwin | Keywords: | cygwin spkg ncurses |
Cc: | dimpase, vbraun, jdemeyer | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | Workaround found; Bug reported upstream. | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Python currently fails/is suboptimal on Cygwin because:
- it does not properly detect readline which is only installed as a shared library, patch "2.7.3-dylib.patch" from Cygwin package fixes that;
- the curses module is not built because of undefined refs, just passing -lcurses when linking is not enough, one should add -ltinfo;
- it segfault at startup when loading the readline module, not sure why. It looks exactly as what is reported at http://trac.macports.org/ticket/29496 . Rebuilding ncurses with debug info (including CFLAGS="-O0 -g" which cannot easily be passed right now) does not give much info. The offending line pointed by GCC is "char *result = exit_attribute_mode;"; maybe some dark magic going on as reported in http://lists.gnu.org/archive/html/bug-ncurses/2006-10/msg00002.html ; please not that on Cygwin the stack is small by default but playing a little bit with that did not really help. Further info: ncurses 5.7 is fine, ncurses 5.8 fails in the same way.
Note: See
TracTickets for help on using
tickets.