Re: linking with readline - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: linking with readline
Date
Msg-id Pine.LNX.4.30.0109041444590.828-100000@peter.localdomain
Whole thread Raw
In response to linking with readline  ("PC Drew" <pc@superiorcomm.net>)
List 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@gmx.net   http://funkturm.homeip.net/~peter

pgsql-bugs by date:

Previous
From: johan27@advalvas.be
Date:
Subject: BIG PROBLEM:fatal 1:set user id user admin is not in eg shadow
Next
From: "pierre"
Date:
Subject: postgresql v7.1.3 bug report