Обсуждение: Error compiling tab-complete

Поиск
Список
Период
Сортировка

Error compiling tab-complete

От
"Roy P. Ammeraal"
Дата:
First I did a:
 ./configure --prefix=/home/postgres --with-perl --with-python --with-tcl
--with-odbcinst=/home/postgres/etc

Then I got:

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../src/interfaces/libpq -I../../../src/include   -c -o tab-complete.o
tab-complete.c
tab-complete.c: In function `psql_completion':
tab-complete.c:306: warning: implicit declaration of function
`rl_completion_matches'
tab-complete.c:306: `rl_compentry_func_t' undeclared (first use in this
function)
tab-complete.c:306: (Each undeclared identifier is reported only once
tab-complete.c:306: for each function it appears in.)
tab-complete.c:306: parse error before `)'
tab-complete.c:306: warning: assignment makes pointer from integer without a
cast
tab-complete.c:310: parse error before `)'
tab-complete.c:310: warning: assignment makes pointer from integer without a
cast
tab-complete.c:315: parse error before `)'
tab-complete.c:315: warning: assignment makes pointer from integer without a
cast
< this message keeps repeating...>
...
tab-complete.c:767: `rl_filename_completion_function' undeclared (first use in
this function)
tab-complete.c:767: warning: assignment makes pointer from integer without a
cast
tab-complete.c:782: parse error before `)'
tab-complete.c:782: warning: assignment makes pointer from integer without a
cast
tab-complete.c:796: parse error before `)'
tab-complete.c:796: warning: assignment makes pointer from integer without a
cast


I tried this on a Redhat 7.3 system running on an Athlon 1200 with 512Mb of
memory. Any ideas, hints, tips or tricks? Please cc my email address in your
response, which is greatly appreciated!

A happy postgresql user,

Roy

Re: Error compiling tab-complete

От
Tom Lane
Дата:
"Roy P. Ammeraal" <roy@bargie.net> writes:
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
> -I../../../src/interfaces/libpq -I../../../src/include   -c -o tab-complete.o
> tab-complete.c
> tab-complete.c: In function `psql_completion':
> tab-complete.c:306: warning: implicit declaration of function
> `rl_completion_matches'
> tab-complete.c:306: `rl_compentry_func_t' undeclared (first use in this
> function)

Hmm, maybe your readline header files are out of sync with what's in
libreadline.so?  The readline boys keep changing their API, and this
looks a lot like a readline version mismatch problem.

            regards, tom lane