Re: linking with readline

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PC Drew <pc(at)superiorcomm(dot)net>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: linking with readline
Date: 2001-09-04 12:46:04
Message-ID: Pine.LNX.4.30.0109041444590.828-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PC Drew writes:

> /usr/libexec/ld.so: Undefined symbol "_tgetent" called from
> psql:/usr/lib/libreadline.so.4.2 at 0x40089934

The OpenBSD linker is broken.

> After doing a little research, I found that tgetent is in the termcap
> library. When I added -ltermcap to the following line in
> src/Makefile.global:
>
> LIBS = -lz -lresolv -lcompat -lm -lutil -ltermcap -lreadline

That's a good fix.

The current CVS tip also works around this problem.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2001-09-04 12:58:16 Re: Build problem with CVS version
Previous Message pierre 2001-09-04 06:59:16 postgresql v7.1.3 bug report