HP-UX 11.11 PostgreSQL 8.3.1 - psql core dumps - Unresolved symbol: tgetent

From: "Mihai Criveti" <cmihai(at)boreas(dot)ro>
To: pgsql-hackers(at)postgresql(dot)org
Subject: HP-UX 11.11 PostgreSQL 8.3.1 - psql core dumps - Unresolved symbol: tgetent
Date: 2008-03-25 14:54:59
Message-ID: 22c159aa0803250754y2c623408v3ae18cd7a434038b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I've compiled PostgreSQL 8.3.1 using gcc 4.2.3 on HP-UX 11i v1, and all went
well. PostgreSQL works and everything, except for psql client:

$ ldd /usr/local/pgsql/bin/psql
=>
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/local/lib/libreadline.sl =>
/usr/local/lib/libreadline.sl
/usr/local/lib/libz.sl => /usr/local/lib/libz.sl
/usr/lib/libxnet.2 => /usr/lib/libxnet.2
/usr/lib/libxti.2 => /usr/lib/libxti.2
../../../src/interfaces/libpq/libpq.sl.5 =>
/usr/local/pgsql/lib/libpq.sl.5

$ /usr/local/pgsql/bin/psql
Welcome to psql 8.3.1, the PostgreSQL interactive terminal.

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

/usr/lib/dld.sl: Unresolved symbol: tgetent (code) from
/usr/local/lib/libreadline.sl
LOG: unexpected EOF on client connection
ABORT instruction (core dumped)

# swlist | grep readline
readline 5.2 readline

$ file /usr/local/lib/libreadline.sl
/usr/local/lib/libreadline.sl: PA-RISC2.0 shared library

As you can see, the older version of psql (7.4.2) works fine:

$ psql
Welcome to psql 7.4.2, 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

$ psql -l
List of databases
Name | Owner | Encoding
-----------+----------+-----------
postgres | postgres | SQL_ASCII
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
(3 rows)

$ /usr/local/pgsql/bin/createdb test
$ psql -l
List of databases
Name | Owner | Encoding
-----------+----------+-----------
postgres | postgres | SQL_ASCII
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
test | postgres | SQL_ASCII
(4 rows)

If needed, I can attach a core dump.

Regards, cmihai

--
Criveti Mihai
http://unixsadm.blogspot.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Sullivan 2008-03-25 14:57:35 Re: [pgsql-www] New email list for emergency communications
Previous Message Alvaro Herrera 2008-03-25 14:47:24 Re: postgresql in FreeBSD jails: proposal