Do not use -Werror. --- configure.orig 2022-03-29 23:33:02.000000000 -0500 +++ configure 2022-04-23 00:50:10.000000000 -0500 @@ -7328,7 +7328,7 @@ elif test "$GCC" = "yes" then GCC_VERSION=`$CC -dumpversion` - CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls" + CFLAGS="$CFLAGS -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls" if test "x$enable_asan" = "xyes"; then CFLAGS="$CFLAGS -fsanitize=address" fi