Re: 64 bit numbers vs format strings

From: Wolfgang Walther <walther(at)technowledgy(dot)de>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: 64 bit numbers vs format strings
Date: 2025-11-03 12:34:06
Message-ID: 9504f38c-38dd-4ee6-9909-ffca705d34df@technowledgy.de
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Munro:
> It might still be interesting to
> know which msgfmt/libintl pair the BF animals are using (CC Wolfgang),
> and whether this stuff actually works.

It took a while until I was able to enable NLS on the alpine animals
[1]. It looks like I used gettext-tiny-dev here. I just tried with
regular gettext-dev again in [2], and that doesn't work, yet.

I get something like this:

/usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld:
../../src/port/libpgport.a(strerror.o): in function `pg_strerror_r':
/mnt/build/HEAD/pgsql.build/../pgsql/src/port/strerror.c:72:(.text+0x260):
undefined reference to `libintl_gettext'
/usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld:
/mnt/build/HEAD/pgsql.build/../pgsql/src/port/strerror.c:72:(.text+0x2e0):
undefined reference to `libintl_gettext'

Logs available in [3] as artifacts.

So currently the only way I can make this work is with gettext-tiny-dev.

Best,

Wolfgang

[1]: https://github.com/technowledgy/postgresql-buildfarm-alpine/pull/12
[2]: https://github.com/technowledgy/postgresql-buildfarm-alpine/pull/115
[3]:
https://github.com/technowledgy/postgresql-buildfarm-alpine/actions/runs/19034584598

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2025-11-03 12:56:06 Re: Fix typo in Vietnamese translation file
Previous Message Peter Eisentraut 2025-11-03 12:14:08 Re: Fix comments for ChangeVarNodes() and related functions