Do not use -Werror. --- configure.orig 2020-02-01 23:03:31.000000000 -0600 +++ configure 2022-04-23 00:44:36.000000000 -0500 @@ -7245,7 +7245,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