This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: setup.py: readline req. ncurses (SuSE)
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: loewis
Priority: normal Keywords: patch

Created on 2001-04-12 09:29 by anonymous, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
setup.py.diff nobody, 2001-04-12 09:29 setup.py patch
Messages (2)
msg36345 - (view) Author: Nobody/Anonymous (nobody) Date: 2001-04-12 09:29
Python 2.1b2 on SuSE Linux 7.0:

The readline extension module must be linked with
libncurses, else 'import readline' fails because of
unresolved symbols.
(libtermcap is only installed for libc5 compatibility
in SuSE 7.0)
msg36346 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2001-06-07 05:45
Logged In: YES 
user_id=21627

This patch is not necessary. If readline.so is a shared 
library that relies on libncurses, it should itself be 
linked with libncurses; this is indeed the case on SuSE 
7.2:

martin@mira:~ > ldd /usr/lib/libreadline.so               
        libncurses.so.5 => /lib/libncurses.so.5
        libc.so.6 => /lib/libc.so.6
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2

Now, if the libreadline.so on SuSE 7.0 does not link 
itself with libncurses, that's a bug in the readline 
package.

OTOH, linking libncurses might be the *wrong* thing, since 
on some systems, libcurses might be needed even if 
libncurses is present (e.g. some Solaris installations).

If some system requires a special build procedure, the 
administrator must build the module using Modules/Setup, 
so that setup.py will not attempt to build it.

History
Date User Action Args
2022-04-10 16:03:57adminsetgithub: 34313
2001-04-12 09:29:58anonymouscreate