[Python-bugs-list] [ python-Bugs-441580 ] can't import readline in 2.1.1c1
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 16 Aug 2001 13:30:26 -0700
Bugs item #441580, was opened at 2001-07-15 21:05
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=441580&group_id=5470
Category: Build
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: A.M. Kuchling (akuchling)
Summary: can't import readline in 2.1.1c1
Initial Comment:
I get the following error for 2.1.1c1 built on SuSE
Linux 7.1 , gcc 2.95.2 :
>>> import readline
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: undefined symbol: BC
Needless to say, this makes the interactive session
interesting as readline is not imported on startup.
Temporary fix for me is to use readline.so from 2.0 -
it seems to work fine in 2.1.1c1.
Chuck
----------------------------------------------------------------------
>Comment By: A.M. Kuchling (akuchling)
Date: 2001-08-16 13:30
Message:
Logged In: YES
user_id=11375
OK, I'll apply it to the CVS tree, then. Thanks for
trying it out!
----------------------------------------------------------------------
Comment By: Charles Harris (charris208)
Date: 2001-08-12 18:02
Message:
Logged In: YES
user_id=271679
The patch worked for me. Thanks...Chuck
----------------------------------------------------------------------
Comment By: A.M. Kuchling (akuchling)
Date: 2001-08-10 12:54
Message:
Logged In: YES
user_id=11375
Try the patch I've now attached to the bug; does it fix
the problem?
----------------------------------------------------------------------
Comment By: Neil Schemenauer (nascheme)
Date: 2001-07-19 07:33
Message:
Logged In: YES
user_id=35752
I believe that linking with ncurses is the right thing
to do if ncurses is available. However, there are probably
systems out there that don't have ncurses but have termcap.
setup.py could decide what to link readline with based on
the HAVE_NCURSES_H define.
Andrew is better at wrangling setup.py so I'm assigning to
him.
----------------------------------------------------------------------
Comment By: Thomas Wouters (twouters)
Date: 2001-07-19 02:25
Message:
Logged In: YES
user_id=34209
I'm sorry, I'm not going to fix this one for 2.1.1... I need
some feedback and more than a little testing on other
platforms before I'll check in a patch that adds -lncurses
to the library list for readline.
We can fix it for 2.1.2, if necessary, and 2.2, but someone
with setup.py clue needs to look at this... Neil has shown
such before, so assigning to him :)
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-07-16 17:27
Message:
Logged In: NO
Ok, I looked at the Setup file for 2.0 from SuSE. They had
readline readline.c -lreadline -lncurses #-ltermcap
whereas 2.1.1c1 had
readline readline.c -lreadline -ltermcap
I made the change, recompiled, and everything is dandy.
Chuck
----------------------------------------------------------------------
Comment By: Thomas Wouters (twouters)
Date: 2001-07-16 08:11
Message:
Logged In: YES
user_id=34209
Did this work in Python 2.1(.0) ? Nothing readline-specific
changed in 2.1.1c1... It looks like setup.py is using the
wrong libraries to link with. When you enable readline.so in
2.0's Setup file, do you edit the list of include/library
paths or libraries linked with ?
I don't have a SuSe installation to test with, unfortunately.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=441580&group_id=5470