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

NetBSD 1.4.2/i386 needs to link psql with -ltermcap

From: Giles Lean <giles(at)nemeton(dot)com(dot)au>
To: pgsql-bugs(at)postgresql(dot)org
Subject: NetBSD 1.4.2/i386 needs to link psql with -ltermcap
Date: 2001-03-22 08:22:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
[ Slightly edited take #2: I wasn't subscribed (again :-() to the
  -bugs list.  Moderator -- you can kill any postings of mine in the
  queue, if you care to. :-]


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:

$ psql ...
Welcome to psql, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

/usr/libexec/ Undefined symbol "_tgetent" called from psql:/usr/lib/ at 0x400892ac

I added -ltermcap to the "LIBS = ..." line in and
rebuilt psql after which it worked without problems.

Builds on NetBSD-1.5/i386 and NetBSD-1.5/alpha included -ltermcap in
LIBS automatically.

Thanks to those who enabled libedit -- history editing is nice.




pgsql-bugs by date

Next:From: Giles LeanDate: 2001-03-22 09:11:33
Subject: 7.1beta6 on NetBSD-1.5/i386 fails geometry test in 'make check'
Previous:From: Giles LeanDate: 2001-03-22 07:27:14
Subject: NetBSD 1.4.2/i386 needs to link psql with -ltermcap

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