Обсуждение: Unable to get psql compiled

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

Unable to get psql compiled

От
Guoben Li
Дата:
Hi,

    This is a new installation of PostgreSQL 7.0 on Solaris 2.6.

    I posted a problem to this mailing list regarding psql missing in
the bin directory.  Now I tried to compile it in the src directory, i.e.

/usr/share/src/postgresql-7.0/src/bin/psql and here is the error:

# gmake
gmake -C ../../interfaces/libpq libpq.a
gmake[1]: Entering directory
`/usr/share/src/postgresql-7.0/src/interfaces/libpq'
gmake[1]: `libpq.a' is up to date.
gmake[1]: Leaving directory
`/usr/share/src/postgresql-7.0/src/interfaces/libpq'
gcc -o psql command.o common.o help.o input.o stringutils.o mainloop.o
copy.o startup.o prompt.o variables.o large_obj.o print.o describe.o
tab-complete.o -L../../interfaces/libpq -lpq -lgen -lcrypt -lnsl
-lsocket -ldl -lm -lreadline -ltermcap -lcurses
tab-complete.o: In function `psql_completion':
tab-complete.o(.text+0x6c): undefined reference to
`rl_completion_append_character'
tab-complete.o(.text+0x74): undefined reference to
`rl_completion_append_character'
tab-complete.o(.text+0x2654): undefined reference to
`rl_completion_append_character'
tab-complete.o(.text+0x2658): undefined reference to
`rl_completion_append_character'
gmake: *** [psql] Error 1
#

   Any hint/help is appreciated.

Guoben Li
Netscape Communications


Re: Unable to get psql compiled

От
Peter Eisentraut
Дата:
Some old versions of readline don't have rl_completion_append character so
the safest thing to do would be to upgrade your readline library, if
possible. However, the strange thing is that there is a configure check
against that. Perhaps you need to do make distclean and reconfigure and
rebuild. If that doesn't work I'd need to see the files src/config.log and
src/include/config.h that are created by configure.


Guoben Li writes:

> # gmake
> gmake -C ../../interfaces/libpq libpq.a
> gmake[1]: Entering directory
> `/usr/share/src/postgresql-7.0/src/interfaces/libpq'
> gmake[1]: `libpq.a' is up to date.
> gmake[1]: Leaving directory
> `/usr/share/src/postgresql-7.0/src/interfaces/libpq'
> gcc -o psql command.o common.o help.o input.o stringutils.o mainloop.o
> copy.o startup.o prompt.o variables.o large_obj.o print.o describe.o
> tab-complete.o -L../../interfaces/libpq -lpq -lgen -lcrypt -lnsl
> -lsocket -ldl -lm -lreadline -ltermcap -lcurses
> tab-complete.o: In function `psql_completion':
> tab-complete.o(.text+0x6c): undefined reference to
> `rl_completion_append_character'
> tab-complete.o(.text+0x74): undefined reference to
> `rl_completion_append_character'
> tab-complete.o(.text+0x2654): undefined reference to
> `rl_completion_append_character'
> tab-complete.o(.text+0x2658): undefined reference to
> `rl_completion_append_character'
> gmake: *** [psql] Error 1
> #

--
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


Re: Unable to get psql compiled

От
Дата:
On Fri, 23 Jun 2000, Guoben Li wrote:

> tab-complete.o(.text+0x74): undefined reference to
> `rl_completion_append_character'
>
>    Any hint/help is appreciated.
>
    install 'GNU readline' library.

--
Thierry Boudet -=- GNU/Linux operator -=- http://www.123immo.com/
         tboudet@123immo.com -=- Cuq-Toulza -=- France