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.98.2) (envelope-from ) id 1xBZ8H-00000003Ghy-27o1 for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Sep 2026 14:48:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xBZ8F-0000000FJs8-0Dx6 for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Sep 2026 14:48:35 +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.98.2) (envelope-from ) id 1xBZ8E-0000000FJs0-3KjA for pgsql-bugs@lists.postgresql.org; Tue, 29 Sep 2026 14:48:34 +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.98.2) (envelope-from ) id 1xBZ8C-00000001wbO-176J for pgsql-bugs@lists.postgresql.org; Tue, 29 Sep 2026 14:48:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 68TEmKrS599940; Tue, 29 Sep 2026 10:48:20 -0400 From: Tom Lane To: ross@burtonini.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19727: pg-combinebackup fails to link In-reply-to: <19727-32d67d9dea410f38@postgresql.org> References: <19727-32d67d9dea410f38@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 29 Sep 2026 14:01:33 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <599938.1790693300.1@sss.pgh.pa.us> Date: Tue, 29 Sep 2026 10:48:20 -0400 Message-ID: <599939.1790693300@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 I build pg-combineback from postgress 18.6 (in Yocto, cross-compiled on > aarch64 to aarch64), it fails to link: > aarch64-poky-linux-ld: src/common/libpgcommon.a(jsonapi.o): in function > `json_lex_number': > src/common/jsonapi.c:2379:(.text+0x168): undefined reference to > `appendBinaryPQExpBuffer' You seem to be using a broken linker :-( pg_combinebackup doesn't use any of the functions in src/common/jsonapi.c. Therefore, the jsonapi.o member of libpgcommon.a shouldn't get pulled into the link, and its unsatisfied dependency on libpq.so shouldn't matter. Apparently, whatever build toolchain you're using has forgotten this decades-old principle of .a library usage. regards, tom lane