| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | ross(at)burtonini(dot)com |
| Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #19727: pg-combinebackup fails to link |
| Date: | 2026-09-29 14:48:20 |
| Message-ID: | 599939.1790693300@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
PG Bug reporting form <noreply(at)postgresql(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ayush Tiwari | 2026-09-29 14:59:17 | Re: BUG #19597: getQuadrant: impossible case is reachable |
| Previous Message | PG Bug reporting form | 2026-09-29 14:01:33 | BUG #19727: pg-combinebackup fails to link |