OpenBSD 2.9 - installation works fine but psql won't run - Mailing list pgsql-general

From Alexander Fordyce
Subject OpenBSD 2.9 - installation works fine but psql won't run
Date
Msg-id LJEKJPDGPIJOPIBHGEGKIEJCCGAA.alex@ax-im.com
Whole thread Raw
Responses Re: OpenBSD 2.9 - installation works fine but psql won't run
List pgsql-general
Ay caramba.

I'm trying to get PostreSQL 7.1.2 up and running on my i386 OpenBSD 2.9
machine.  It seems like all is going well -- ./configure, gmake, gmake
install, initdb, createdb test all work fine, but then when I try to psql
test I get the following:

- - - - - - - - -
bash-2.05$ /usr/local/pgsql/bin/psql test
Welcome to psql, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

/usr/libexec/ld.so: Undefined symbol "_tgetent" called from
psql:/usr/lib/libreadline.so.0.0 at 0x40088964
- - - - - - - - -

...and it fails to connect.  I'm using readline 4.2, in case that matters.

Here's the output from ./configure:

- - - - - - - - -
bash-2.05# ./configure
creating cache ./config.cache
checking host system type... i386-unknown-openbsd2.9
checking which template to use... openbsd
checking whether to build with locale support... no
checking whether to build with recode support... no
checking whether to build with multibyte character support... no
checking whether to build with Unicode conversion support... no
checking for default port number... 5432
checking for default soft limit on number of connections... 32
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
using CFLAGS=-O2 -pipe
checking whether the C compiler (gcc -O2 -pipe ) works... yes
checking whether the C compiler (gcc -O2 -pipe ) is a cross-compiler... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking whether to build with Tcl... no
checking whether to build with Tk... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build Java/JDBC tools... no
checking whether to build the ODBC driver... no
checking whether to build C++ modules... no
using CPPFLAGS=
using LDFLAGS=
checking for mawk... no
checking for gawk... gawk
checking for flex... /usr/bin/flex
checking whether ln -s works... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for ranlib... ranlib
checking for lorder... lorder
checking for tar... /bin/tar
checking for perl... perl
checking for bison... bison -y
checking for readline... yes (-lreadline)
checking for library containing using_history... none required
checking for main in -lbsd... no
checking for setproctitle in -lutil... yes
checking for main in -lm... yes
checking for main in -ldl... no
checking for main in -lsocket... no
checking for main in -lnsl... no
checking for main in -lipc... no
checking for main in -lIPC... no
checking for main in -llc... no
checking for main in -ldld... no
checking for main in -lld... no
checking for main in -lcompat... yes
checking for main in -lBSD... no
checking for main in -lgen... no
checking for main in -lPW... no
checking for main in -lresolv... yes
checking for main in -lunix... no
checking for library containing crypt... none required
checking for __inet_ntoa in -lbind... no
checking for inflate in -lz... yes
checking for crypt.h... no
checking for dld.h... no
checking for endian.h... no
checking for fp_class.h... no
checking for getopt.h... no
checking for ieeefp.h... yes
checking for pwd.h... yes
checking for sys/ipc.h... yes
checking for sys/pstat.h... no
checking for sys/select.h... yes
checking for sys/sem.h... yes
checking for sys/socket.h... yes
checking for sys/shm.h... yes
checking for sys/types.h... yes
checking for sys/un.h... yes
checking for termios.h... yes
checking for kernel/OS.h... no
checking for kernel/image.h... no
checking for SupportDefs.h... no
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking whether string.h and strings.h may both be included... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for working const... yes
checking for inline... inline
checking for preprocessor stringizing operator... yes
checking for signed types... yes
checking for volatile... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... yes
checking for union semun... yes
checking for struct sockaddr_un... yes
checking for int timezone... no
checking types of arguments for accept()... int, struct sockaddr *, size_t *
checking whether gettimeofday takes only one argument... no
checking for fcvt... no
checking for getopt_long... no
checking for memmove... yes
checking for pstat... no
checking for setproctitle... yes
checking for setsid... yes
checking for sigprocmask... yes
checking for sysconf... yes
checking for waitpid... yes
checking for dlopen... yes
checking for fdatasync... no
checking for PS_STRINGS... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for isinf... yes
checking for getrusage... yes
checking for srandom... yes
checking for gethostname... yes
checking for random... yes
checking for inet_aton... yes
checking for strerror... yes
checking for strdup... yes
checking for strtol... yes
checking for strtoul... yes
checking for strcasecmp... yes
checking for cbrt... yes
checking for rint... yes
checking for rl_completion_append_character... yes
checking for rl_completion_matches... no
checking for finite... yes
checking for sigsetjmp... yes
checking for optreset... yes
checking test program... ok
checking whether long int is 64 bits... no
checking whether long long int is 64 bits... yes
checking whether snprintf handles 'long long int' as %lld... yes
checking for strtoll... no
checking for strtoq... yes
checking for strtoull... no
checking for strtouq... yes
checking for atexit... yes
checking size of unsigned long... 4
checking alignment of short... 2
checking alignment of int... 4
checking alignment of long... 4
checking alignment of long long int... 4
checking alignment of double... 4
checking for POSIX signal interface... yes
checking for onsgmls... no
checking for nsgmls... no
updating cache ./config.cache
creating ./config.status
creating GNUmakefile
creating src/GNUmakefile
creating src/Makefile.global
creating src/backend/port/Makefile
creating src/include/config.h
src/include/config.h is unchanged
linking ./src/backend/port/dynloader/openbsd.c to
src/backend/port/dynloader.c
linking ./src/backend/port/dynloader/openbsd.h to src/include/dynloader.h
linking ./src/include/port/openbsd.h to src/include/os.h
linking ./src/makefiles/Makefile.openbsd to src/Makefile.port
linking ./src/backend/port/tas/dummy.s to src/backend/port/tas.s
bash-2.05#
- - - - - - - - -

Any and all help greatly appreciated.

Thanks in advance...
Alex

- - - - - - - - - - - - -
Alexander Fordyce
alex@ax-im.com


pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Null Conversion
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Re: nextval, sequences and sequencenames