Re: BUG #18581: psql symbol append_history not found when quitting

From: "Rainer J(dot)H(dot) Brandt" <rjhb(at)bb-c(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18581: psql symbol append_history not found when quitting
Date: 2024-08-14 05:45:34
Message-ID: 26300.17534.195924.72364@mail.bb-c.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane writes:
> PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> > When leaving a psql session via \q in 15.8 (which I built today under Oracle
> > Solaris 11.4), I get:
> > ld.so.1: psql: fatal: relocation error: file
> > /opt/postgres/15-pgdg/bin/64/psql: symbol append_history: referenced symbol
> > not found
> > Killed
>
> Hmmm...
>
> > Isn't the a "pg_" missing on line 462?
>
> No. That's intending to call the readline function append_history.
> That call has been there since 2009. I'm not sure what changed
> between your 15.6 and 15.8 builds, but that wasn't it.
You're right. The error was mine.

I overlooked that the build machine had a newer libedit library than
the machine on which I tried to use psql. The newer libedit defines
append_history, and so the build process used it, but the older libedit
doesn't define it.

Sorry for the noise.
Thanks, Rainer

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Yeddula, Madhusudhan reddy [CONTINGENT WORKER] 2024-08-14 08:52:08 RE: BUG #18569: Memory leak in Postgres Enterprise server
Previous Message Peter Smith 2024-08-14 04:51:33 Re: BUG #18558: ALTER PUBLICATION fails with unhelpful error on attempt to use system column