Description of problem: This was introduced by one of the patches to implement FORTIFY_SOURCE=3 support. When a program is built with a gcc version older than 4.7 or clang version older than 2.6 or a compiler that does not identify as gcc or clang, it will fail to build due to a typo in string_fortified.h. This was discovered in NixOS, which builds some packages with gcc 4.1.0: https://sourceware.org/pipermail/libc-alpha/2022-May/138981.html
Historic GCC binaries are here: https://pagure.io/glibc/glibc-test-binaries/ The repository has wrapper scripts, so that the binaries still should work on Red Hat Enterprise Linux 8.
I just noticed that I had not backported the offending commit to rhel-8, because there are no access attributes on those functions in RHEL-8. Nothing to fix here then.