Hello! Consider adding the following modules/gettext-tests: ---------------------------------------------------------------------- Files: tests/test-gettext.c
Depends-on: configure.ac: Makefile.am: TESTS += test-gettext check_PROGRAMS += test-gettext ---------------------------------------------------------------------- and the following tests/test-gettext.c: ---------------------------------------------------------------------- #include <config.h> #include <gettext.h> int main (void) { pgettext ("", ""); } ---------------------------------------------------------------------- Then, if I run: ./gnulib-tool --create-testdir --with-tests --dir=gettext gettext cd gettext ./configure CFLAGS=-O0 make I get the following compiler errors: gcc -DHAVE_CONFIG_H -I. -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./.. -I../gllib -I./../gllib -W no-error -O0 -MT test-gettext.o -MD -MP -MF .deps/test-gettext.Tpo -c -o test-gettext.o test-gettext .c In file included from test-gettext.c:3: test-gettext.c: In function ‘main’: ../gllib/gettext.h:123:67: error: ‘LC_MESSAGES’ undeclared (first use in this function) 123 | pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) | ^~~~~~~~~~~ test-gettext.c:8:3: note: in expansion of macro ‘pgettext’ 8 | pgettext ("", ""); | ^~~~~~~~ ../gllib/gettext.h:123:67: note: each undeclared identifier is reported only once for each function it appears in 123 | pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) | ^~~~~~~~~~~ test-gettext.c:8:3: note: in expansion of macro ‘pgettext’ 8 | pgettext ("", ""); | ^~~~~~~~ make[4]: *** [Makefile:717: test-gettext.o] Error 1 I don't get these errors if I omit 'CFLAGS=-O0'. This was reported against PSPP, in a less stripped-down form, by Friedrich Beckmann (CCed), here: https://lists.gnu.org/archive/html/pspp-dev/2024-11/msg00000.html Thanks, Ben.