smuellerDD/acvpproxy

Compilation Error Fedora

acronymhaterheidi opened this issue · 2 comments

I have encountered a compilation error that I have not seen before on a new Fedora installation. Here are my system details:
Fedora 30
gcc 9.1.1
openssl 1.1.1b FIPS
curl 7.64.0

Here is the output of make:
cc -Werror -Wextra -Wall -pedantic -fPIC -O2 -std=gnu99 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fwrapv --param ssp-buffer-size=4 -fvisibility=hidden -fPIE -Wno-missing-field-initializers -Wno-gnu-zero-variadic-macro-arguments -Ilib -Iapps -c -o lib/acvp_paging.o lib/acvp_paging.c
In file included from /usr/include/string.h:494,
from lib/acvp_paging.c:21:
In function ‘strncpy’,
inlined from ‘acvp_paging_get’ at lib/acvp_paging.c:73:2:
/usr/include/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/acvp_paging.c: At top level:
cc1: error: unrecognized command line option ‘-Wno-gnu-zero-variadic-macro-arguments’ [-Werror]
cc1: all warnings being treated as errors
make: *** [: lib/acvp_paging.o] Error 1

I googled around a little but I didn't find anything useful. If you have any idea what might be causing this that would be wonderful.

Thanks,
Heidi

That worked, thank you.