Re: NetBSD 1.4.2/i386 needs to link psql with -ltermcap

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Giles Lean <giles(at)nemeton(dot)com(dot)au>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: NetBSD 1.4.2/i386 needs to link psql with -ltermcap
Date: 2001-03-22 16:57:59
Message-ID: Pine.LNX.4.30.0103221753090.1208-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Giles Lean writes:

> Today I built postgresql-7.1beta6 on NetBSD-1.4.2/i386, which uses
> a.out binary format. (NetBSD 1.5/i386 uses ELF.)
>
> I found that psql needs to be linked with -ltermcap or else psql will
> fail with a runtime error when used interactively:

> /usr/libexec/ld.so: Undefined symbol "_tgetent" called from psql:/usr/lib/libedit.so.2.2 at 0x400892ac

This should be detected by configure. E.g., on my system I get

| checking for readline... yes (-lreadline -ltermcap)

(-lreadline and -ledit are equivalent for computational purposes).
config.log shows:

| configure:3143: checking for readline
| configure:3165: gcc -o conftest -O2 -g conftest.c -lreadline 1>&5
[ tries without termcap]
| /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to `tgetnum'
[snip]
| configure:3165: gcc -o conftest -O2 -g conftest.c -lreadline -ltermcap 1>&5
[ tries with termcap, success ]

Can you check around these areas why it doesn't behave as expected?

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexander Klimov 2001-03-22 17:01:36 Re: Tests randomly failed
Previous Message Tom Lane 2001-03-22 15:19:25 Re: Tests randomly failed