Unresolved external: tgetent - Mailing list pgsql-sql

From Christoph Haller
Subject Unresolved external: tgetent
Date
Msg-id 41B6F8B2.7310A3DD@rodos.fzk.de
Whole thread Raw
Responses Re: Unresolved external: tgetent
List pgsql-sql
I doubt this is the right list, but it's the only one I'm subscribed to,

so please, if one of the core members is reading this, forward it to the
right one.

I have successfully compiled and installed 7.4.5 yesterday.
After doing 'make' I saw the line "Ready to install".
template1=# select version();                                 version
--------------------------------------------------------PostgreSQL 7.4.5 on hppa2.0w-hp-hpux11.00, compiled by GCC gcc
(GCC)
3.3.1
(1 row)

But when I started psql it immediately core dumped with
libreadline.sl.5 Unresolved external: tgetent

I did a search on the mailing list archives and got 63 hits on
'tgetent',
dating from 1997 to 2004, all having the same problem,
the missing '-ltermcap' in LIBS in src/Makefile.global.

After distclean and doing configure LIBS="-ltermcap" ...
and make again it finally worked.

In http://archives.postgresql.org/pgsql-bugs/2001-09/msg00023.php
Peter Eisentraut writes
> LIBS = -lz -lresolv -lcompat -lm -lutil -ltermcap -lreadline

That's a good fix.

The current CVS tip also works around this problem.

But the 7.4.5 src/Makefile.global still has this:
LIBS = -lz -lreadline -lPW -lgen -lBSD -ldld -lnsl -lm

So it appears this fix must have been lost anywhere.

Regards, Christoph





pgsql-sql by date:

Previous
From: Pierre-Frédéric Caillaud
Date:
Subject: Re: Making dirty reads possible?
Next
From: Wei Weng
Date:
Subject: Cast NULL into Timestamp?