[Python-bugs-list] [ python-Bugs-436130 ] solaris2.6 problems with readline

noreply@sourceforge.net noreply@sourceforge.net
Tue, 26 Jun 2001 15:07:47 -0700


Bugs item #436130, was opened at 2001-06-25 10:18
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=436130&group_id=5470

Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Fredrik Stenberg (fredriks)
Assigned to: Nobody/Anonymous (nobody)
Summary: solaris2.6 problems with readline

Initial Comment:
having problem with compiling python2.0.1 2.0 (i think
i always had this problem after 1.5.2) on solaris 2.6

gcc  -g -O2 -Wall -Wstrict-prototypes -fPIC
-I./../Include -I.. -DHAVE_CONFIG_H -c ./readline.c
./readline.c: In function `setup_readline':
./readline.c:414: `CPPFunction' undeclared (first use
in this function)
./readline.c:414: (Each undeclared identifier is
reported only once
./readline.c:414: for each function it appears in.)
./readline.c:414: parse error before `)'
*** Error code 1

I have always used to exchange Modules/readline.c with
the old file from the 1.5.2 release.

I finally got around to checking whats wrong, (or
atleast browse around the code).

readline.c Line 414 in void setup_readline states,
rl_attempted_completion_function = (CPPFunction
*)flex_complete;

should this not be;
rl_attempted_completion_function = (Function
*)flex_complete;


I have no problems if i change CPPfunction into
Function, i'm no readline expert but i think this is
the problem.


*sysinfo*
gcc 2.95.2
solaris 2.6
readline4.1

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

>Comment By: Martin v. Löwis (loewis)
Date: 2001-06-26 15:07

Message:
Logged In: YES 
user_id=21627

CPPFunction is defined in readline 4.2, so one solution 
would be to update to 4.2. The real type of this variable 
is rl_completion_func_t. So if this typedef is already 
available in 4.1, we should probably change the cast to 
rl_completion_func_t.


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

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