Re: readline problems
Guido van Rossum <[email protected]> Sat, 28 Dec 2002 21:11:41 -0500
| Newsgroups | gmane.comp.python.snake-farm.user |
|---|---|
| Message-ID | <[email protected]> |
> I'm having problems compiling in readline with the current CVS > version, using gcc 2.8.1 on Solaris (SunOS 5.9 Generic sun4u sparc). > The error is the following: > > ./Modules/readline.c: In function `setup_readline': > ./Modules/readline.c:577: `rl_completion_append_character' undeclared > (first use in this function) > ./Modules/readline.c:577: (Each undeclared identifier is reported only > once > ./Modules/readline.c:577: for each function it appears in.) > ./Modules/readline.c: In function `call_readline': > ./Modules/readline.c:629: warning: implicit declaration of function > `rl_prep_terminal' > > Is my version of readline too old? (Not sure exactly how old it is, > but the last year listed in the copyright notice is 1992 ;}) > > If the problem is that it is too old -- is there a reason why Python > isn't compatible with it anymore? (It worked before...) Strange. Modules/readline.c hasn't changed since late October. More likely, your platform has downgraded (or it never worked, and you've never noticed before). Maybe you should upgrade to a newer version of readline? There's a comment for revision 2.49 that seems to imply that you need GNU readline 2.1 or higher, and that particular change did indeed do something with the variable rl_completion_append_character. I suggest upgrading to version 2.2 or 4.2 (both are in common use I believe; 4.2 is the latests). --Guido van Rossum (home page: http://www.python.org/~guido/)