Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1se6pM-003xSw-M5 for pgsql-bugs@arkaria.postgresql.org; Wed, 14 Aug 2024 05:45:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1se6pK-008Lz0-UD for pgsql-bugs@arkaria.postgresql.org; Wed, 14 Aug 2024 05:45:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1se6pK-008Lv0-L5 for pgsql-bugs@lists.postgresql.org; Wed, 14 Aug 2024 05:45:42 +0000 Received: from www.bb-c.de ([78.46.91.35] helo=mail.bb-c.de) by makus.postgresql.org with esmtps (TLS1.0) tls TLS_RSA_WITH_AES_128_CBC_SHA (Exim 4.94.2) (envelope-from ) id 1se6pH-004edD-ND for pgsql-bugs@lists.postgresql.org; Wed, 14 Aug 2024 05:45:41 +0000 Received: from owl.bb-c.de (p5b29f725.dip0.t-ipconnect.de [91.41.247.37]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Brandt & Brandt Computer GmbH", Issuer "Brandt & Brandt Computer GmbH" (not verified)) by mail.bb-c.de (Postfix) with ESMTPS id 1199777121; Wed, 14 Aug 2024 07:45:37 +0200 (CEST) Received: by owl.bb-c.de (Postfix, from userid 1001) id 42FB13BE; Wed, 14 Aug 2024 07:45:34 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Message-ID: <26300.17534.195924.72364@mail.bb-c.de> From: "Rainer J.H. Brandt" To: Tom Lane CC: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18581: psql symbol append_history not found when quitting In-Reply-To: <47695.1723573405@sss.pgh.pa.us> References: <18581-21ea8faa9008ac68@postgresql.org> <47695.1723573405@sss.pgh.pa.us> X-Mailer: VM 8.2.0b under 27.1 (x86_64-pc-linux-gnu) Date: Wed, 14 Aug 2024 07:45:34 +0200 (CEST) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom Lane writes: > PG Bug reporting form 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