Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 2352

Summary: python-2.2-r7 has problems with readline...
Product: Gentoo Linux Reporter: Daniel Robbins (RETIRED) <drobbins>
Component: [OLD] Core systemAssignee: Jon Nelson (RETIRED) <jnelson>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.1a   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Robbins (RETIRED) gentoo-dev 2002-05-02 13:28:15 UTC
Python 2.2 (#1, Apr 24 2002, 20:17:38) 
[GCC 2.95.3 20010315 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import portage
>>> import readline
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: /lib/libreadline.so.4.1: undefined symbol: BC
>>>
Comment 1 Gert 2002-05-03 07:12:46 UTC
the readline and cursus libraries also don't get linked to the interpreter,
so there's no readline support in the interpreter itself.

When I link them manually in with:
gcc  -Xlinker -export-dynamic -o python Modules/python.o libpython2.2.a -ldl 
-lpthread -lutil -lm -lreadline -lcurses

everything's OK
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-05-03 14:57:08 UTC
fixed in 2.2.1 (to be unmasked soon)...