[ python-Bugs-1450019 ] Build of readline fails

SourceForge.net noreply at sourceforge.net
Wed Mar 15 01:23:53 CET 2006


Bugs item #1450019, was opened at 2006-03-14 18:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1450019&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Sydney Weidman (weidmans)
Assigned to: Nobody/Anonymous (nobody)
Summary: Build of readline fails

Initial Comment:
I was attempting to compile Python-2.3.5 under Fedora
Core 4:

Python 2.3.5 (#14, Mar 14 2006, 17:57:17)
[GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux2

and needed it to have readline support

No matter how I compiled it, the readline module was
never built, and of course readline functionality did
not work.

I tried ./configure --with-readline=/usr and a couple
of other configure options that I thought would help,
but nothing worked. Finally, I tried:

make Modules/readline

which gave the error:

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I. -I./Include
-L/home/sweidman/Applications/Python-2.3.5 
Modules/readline.c   -o Modules/readline
Modules/readline.c:96: error: static declaration of
‘history_length’ follows non-static declaration
/usr/include/readline/history.h:242: error: previous
declaration of ‘history_length’ was here
make: *** [Modules/readline] Error 1

So without knowing what I was really doing, I commented
out the definition of history_length at
Modules/readline.c:96

After making that change, Python-2.3.5 compiled and ran
fine with readline support working; i.e. "import
readline" gave no errors and the arrow keys bring back
the last command.

So is this a bug or a quirk on my platform or something
else I'm doing wrong?

Thanks for the great software!!


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1450019&group_id=5470


More information about the Python-bugs-list mailing list