Обсуждение: compiling problem: tab-complete.c

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

compiling problem: tab-complete.c

От
BRINER Cedric
Дата:
Under root:


I ran ./configure --prefix=/home/system/briner/psql --with-python
which work fine:

then ./make....   :(   and I got this message:
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../src/interfaces/libpq -I../../../src/include   -c -o
describe.o describe.c
gcc  -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 ')' token
tab-complete.c:306: warning: assignment makes pointer from integer
without a cast
tab-complete.c:310: parse error before ')' token
tab-complete.c:310: warning: assignment makes pointer from integer
without a cast
tab-complete.c:315: parse error before ')' token
:
:
:
tab-complete.c:782: warning: assignment makes pointer from integer
without a cast
tab-complete.c:796: parse error before ')' token
tab-complete.c:796: warning: assignment makes pointer from integer
without a cast
make[3]: *** [tab-complete.o] Error 1
make[3]: Leaving directory
`/home/system/briner/unsaved/download/postgresql-7.2.1/src/bin/psql'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/system/briner/unsaved/download/postgresql-7.2.1/src/bin'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/system/briner/unsaved/download/postgresql-7.2.1/src'
make: *** [all] Error 2


any idea of what wrong I'm doing

OS: solaris 2.8
SunBlade 100 (sparc)
make : gnu

--
                                 *         *     *
------------------------------ **-------      * :    (
BRINER Cédric                            *      o  +
Observatory of Geneva, Switzerland          .:oO0Oo:.
cedricîbriner@obsóunigeùch            *     *   o
( ^--- hint:replace the odd letters by dot )    :    *


Re: compiling problem: tab-complete.c

От
Tom Lane
Дата:
BRINER Cedric <work@infomaniak.ch> writes:
> gcc  -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)

What version of libreadline do you have installed?

            regards, tom lane

Re: compiling problem: tab-complete.c

От
BRINER Cedric
Дата:
On Tue, 2002-06-18 at 17:00, Tom Lane wrote:
> BRINER Cedric <work@infomaniak.ch> writes:
> > gcc  -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)
>
> What version of libreadline do you have installed?
>
>             regards, tom lane
After fighting to know which version, I finally get the version 4.2
os:SOLARIS 8
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
yes I did


Re: compiling problem: tab-complete.c

От
Tom Lane
Дата:
BRINER Cedric <work@infomaniak.ch> writes:
> 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)
>>
>> What version of libreadline do you have installed?

> After fighting to know which version, I finally get the version 4.2
> os:SOLARIS 8

My guess is that you have a 4.2 readline library (.a or .so file),
but the readline.h include file that configure is finding is for a
much older version of libreadline.  You need to make sure that the
library and include files match...

            regards, tom lane

Re: compiling problem: tab-complete.c

От
BRINER Cedric
Дата:
On Wed, 2002-06-19 at 16:00, Tom Lane wrote:
> BRINER Cedric <work@infomaniak.ch> writes:
> > 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)
> >>
> >> What version of libreadline do you have installed?
>
> > After fighting to know which version, I finally get the version 4.2
> > os:SOLARIS 8
>
> My guess is that you have a 4.2 readline library (.a or .so file),
> but the readline.h include file that configure is finding is for a
> much older version of libreadline.  You need to make sure that the
> library and include files match...
>
>             regards, tom lane

It's working, thanks !

How did i make it ??
I've added a couple of options to the CFLAGS of
<postgresql-root>/src/Makefile.global to
specify where are the libraries and H files with the command:
CFLAGS = -I/unige/gnu/share/include/ -L/unige/gnu/SunOS_5.8/lib
And it's perfectly working

Thanks again for your valuable time
 Now it's time of testing it

briner