Skip site navigation (1) Skip section navigation (2)

Unresolved external: tgetent

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Subject: Unresolved external: tgetent
Date: 2004-12-08 12:50:59
Message-ID: 41B6F8B2.7310A3DD@rodos.fzk.de (view raw or flat)
Thread:
Lists: 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




Responses

pgsql-sql by date

Next:From: Matthew EngelbertDate: 2004-12-08 19:21:45
Subject: Indexing Strategy
Previous:From: Pierre-Frédéric CaillaudDate: 2004-12-07 08:27:41
Subject: Re: Making dirty reads possible?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group