Compile file if using readline-4.2 (PostGres 7.1)

Started by PostgreSQL Bugs Listalmost 25 years ago2 messagesbugs
Jump to latest
#1PostgreSQL Bugs List
pgsql-bugs@postgresql.org

Laurent Faillie (l_faillie@yahoo.com) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
Compile file if using readline-4.2 (PostGres 7.1)

Long Description
Hello All,

psql will not compile if using readline-4.2 because some functions has been renamed.

Workaround :

I add following define in the beginning of tab-complete.c

#define completion_matches rl_completion_matches
#define filename_completion_function rl_filename_completion_function

Now I have some "incompatible pointer" warning but it runs ok. (no time to trying to correct these warning :-( )

Bye

Laurent

Sample Code

No file was uploaded with this report

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PostgreSQL Bugs List (#1)
Re: Compile file if using readline-4.2 (PostGres 7.1)

pgsql-bugs@postgresql.org writes:

psql will not compile if using readline-4.2 because some functions has been renamed.

Already fixed for 7.1.1.

I do wish the readline guys would pay more attention to stability of
their API ...

regards, tom lane