Re: BUG #4397: crash in tab-complete.c - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4397: crash in tab-complete.c
Date
Msg-id 13238.1220879016@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #4397: crash in tab-complete.c  (Rudolf Leitgeb <r.leitgeb@x-pin.com>)
Responses Re: BUG #4397: crash in tab-complete.c
List pgsql-bugs
Rudolf Leitgeb <r.leitgeb@x-pin.com> writes:
> Sorry for the delay, here are the compile warnings
> I got when I compiled tab-complete.c for x86_64:

> =========================================================
> tab-complete.c: In function ‘psql_completion’:
> tab-complete.c:601: warning: implicit declaration of function
> ‘completion_matches’
> tab-complete.c:601: warning: assignment makes pointer from integer
> without a cast

Well, that nicely explains a crash in a 64-bit build, so the question
is what happened to your declaration of completion_matches().  It's
certainly there on my Mac:

tgl$ grep completion_matches /usr/include/readline/readline.h
char           **completion_matches(const char *, CPFunction *);
$

I'm still suspicious that you've got something bogus under
/usr/local/include that is masking the correct include file.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Rudolf Leitgeb
Date:
Subject: Re: BUG #4397: crash in tab-complete.c
Next
From: Rudolf Leitgeb
Date:
Subject: Re: BUG #4397: crash in tab-complete.c