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 1sdwBA-002Pbu-Nb for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Aug 2024 18:23:32 +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 1sdwB9-005bz6-BK for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Aug 2024 18:23:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdwB9-005byv-2l for pgsql-bugs@lists.postgresql.org; Tue, 13 Aug 2024 18:23:31 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdwB6-004h1V-RT for pgsql-bugs@lists.postgresql.org; Tue, 13 Aug 2024 18:23:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 47DINPRo047696; Tue, 13 Aug 2024 14:23:25 -0400 From: Tom Lane To: rjhb@bb-c.de cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18581: psql symbol append_history not found when quitting In-reply-to: <18581-21ea8faa9008ac68@postgresql.org> References: <18581-21ea8faa9008ac68@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 13 Aug 2024 09:22:41 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <47694.1723573405.1@sss.pgh.pa.us> Date: Tue, 13 Aug 2024 14:23:25 -0400 Message-ID: <47695.1723573405@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. However, that call is only compiled if HAVE_APPEND_HISTORY is defined, which indicates that configure successfully probed for existence of the function. Maybe you need to take a closer look at what configure did? regards, tom lane