On 2026-01-25 05:05, Bruno Haible via Gnulib discussion list wrote:
The workarounds I can see:
- Use a gcc version 14 or older.
- Locally modify the /usr/include/sys/cdefs.h file, to avoid defining the
'__glibc_const_generic' macro.
- For m4, users can use a snapshot tarball. [3]
- For other packages, users can build from git (not generally recommended).
Any other workarounds that people can see?
When you say "locally modify", do you mean edit in place? Because surely
the effect of (2) can be done without modifying /usr/include/sys/cdefs.h
in place. For example, the build script could do something like this:
mkdir -p myinclude/sys
sed 's/__glibc_const_generic/_NO_&/g' \
/usr/include/sys/cdefs.h >myinclude/sys/cdefs.h
./configure CC="gcc -I $PWD/myinclude"