pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ross@burtonini.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19727: pg-combinebackup fails to link
Date: Tue, 29 Sep 2026 10:48:20 -0400
Message-ID: <599939.1790693300@sss.pgh.pa.us> (raw)
In-Reply-To: <19727-32d67d9dea410f38@postgresql.org>
References: <19727-32d67d9dea410f38@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> 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






view thread (8+ messages)  latest in thread

Message-ID: <599939.1790693300@sss.pgh.pa.us>
Permalink:  ../599939.1790693300@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/599939.1790693300@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ross@burtonini.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #19727: pg-combinebackup fails to link
  In-Reply-To: <599939.1790693300@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox