Hi Bruno, thank you for your reply. I could finally track down the error. It was in my build configuration. Somehow, the wrong "-I ..." flags were set up during the compilation of the Gnulib modules. It's working now. So, everything is alright with Gnulib and I can retract my bug report. Please excuse me for bothering you. Initially, when I found the bug on Gentoo's bug tracker, I didn't think of such a simple cause.
As for your questions, it was probably only (6) that caused the problem. Marc Am Mi., 30. Sept. 2020 um 18:38 Uhr schrieb Bruno Haible <br...@clisp.org>: > > Hi Marc, > > > The compiler throws the following error at me: > > > > lib/hard-locale.c: In function 'hard_locale': > > lib/hard-locale.c:29:15: error: 'SETLOCALE_NULL_MAX' undeclared (first > > use in this function); did you mean 'SETLOCALE_NULL_ALL_MTSAFE'? > > 29 | char locale[SETLOCALE_NULL_MAX]; > > | ^~~~~~~~~~~~~~~~~~ > > Does the error occur always, or only with "make -j"? > > Are the following statements true in your build? > (1) I use the module 'hard-locale'. > (2) I use the module 'setlocale-null'. > (3) config.status defines GNULIB_SETLOCALE_NULL to 1. > (4) The file lib/setlocale_null.h exists. > (5) The file lib/locale.h includes setlocale_null.h. > (6) The -I options passed to GCC make sure that setlocale_null.h gets found. > > Bruno >