[PyPy-issue] [issue667] Final link failure due to libtinfo dependency
pypy-dev-issue at codespeak.net
Thu Mar 10 15:30:05 CET 2011
New submission from Chris Smowton <cs448 at cam.ac.uk>:
Translating pypy 1.4.1 (release) on Fedora 11 machines fails because
pypy/module/_minimal_curses/fficurses.py uses setupterm, tigetstr and tparm.
Ordinarily, these are libncurses functions. The problem is, libncurses can be
built in a two ways: if it's configured normally, libncurses defines these
functions and everything works fine. If it's configured with "--with-termlib",
it generates a separate libtinfo that defines those functions, and users should
link with -ltinfo -lcurses.
PyPy currently doesn't test for this situation, and so the final stage link
fails at least on Fedora 11 boxes, which use the --with-termlib option in their
standard distributed libncurses.
>From libncurses 5.8 the ncurses5-config --libs program will give you the correct
linker flags; however in at least libncurses 5.7 that program doesn't mention
libtinfo. You could search for libtinfo, or check using objdump / nm whether
ncurses actually defined the needed functions?
nosy: pypy-issue, smowton
title: Final link failure due to libtinfo dependency
PyPy development tracker <pypy-dev-issue at codespeak.net>
More information about the Pypy-issue