man-db 2.10.2 build fails on centos7 with gcc 11.3.0
I'm not sure if this is a man-db bug, or just some kind of incompatibility or bug somewhere else. While I was able to build man-db 2.10.1 using gcc 11.3.0 on centos7, the build fails for man-db 2.10.2. All my builds are done using spack (See the man-db spack package).
I was able to reproduce the problem in a clean centos7 singularity container using spack containerize.
The build output can be found in spack-build-out.txt. The error, as found in there multiple times, is:
In file included from /usr/include/string.h:633,
from ./string.h:41,
from argp-fmtstream.c:27:
./string.h:1080:1: error: expected identifier or '(' before '__extension__'
1080 | _GL_FUNCDECL_SYS (strndup, char *,
| ^~~~~~~~~~~~~~~~
Building under centos7
with the system compiler gcc 4.8.5 works. As spack does not yet deliver glibc as a package, this might be a problem between gcc 11.3.0 and the old glibc of centos7. As it didn't appear for 2.10.1, I still wanted to report this observation.
Edited by pauleonix