[Python-bugs-list] [Bug #114847] Building Python fails due to readline problem

noreply@sourceforge.net noreply@sourceforge.net
Wed, 20 Sep 2000 10:17:26 -0700


Bug #114847, was updated on 2000-Sep-19 19:13
Here is a current snapshot of the bug.

Project: Python
Category: Modules
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: Building Python fails due to readline problem

Details: When I attempt to compile Python with the readline module enabled, I get the following error:

gcc  -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./_sre.c
gcc  -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./readline.c
./readline.c: In function `initreadline':
./readline.c:503: `rl_library_version' undeclared (first use in this function)
./readline.c:503: (Each undeclared identifier is reported only once
./readline.c:503: for each function it appears in.)
*** Error code 1

Stop in /home/jpettit/dev/python/dist/src/Modules.
*** Error code 1

This is an OpenBSD 2.5 x86 system.  

Follow-Ups:

Date: 2000-Sep-19 19:18
By: jpettit

Comment:
I almost forgot: this is using the most current CVS snapshot.
-------------------------------------------------------

Date: 2000-Sep-20 06:25
By: gvanrossum

Comment:
Could you try this again after adding

extern char *rl_library_version;

to readline.c, just after

extern Function *rl_event_hook;

(I'd give you a diff but the SourceForge CVS site appears down today.) 

If this works for you, I'll check it in (presuming SourceForge comes back online :-).
-------------------------------------------------------

Date: 2000-Sep-20 10:17
By: jpettit

Comment:
Yes, that fixed the problem.  I'm still having problems compiling under OpenBSD 2.5, but they are not related to readline, so I will open a new bug report.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=114847&group_id=5470