Hi, I spotted it on the Fedora rawhide (f31) with the glibc-2.29.9000-18.fc31: ... BUILDSTDERR: dns_str_resflags.c:63:22: error: 'RES_INSECURE1' undeclared here (not in a function); did you mean 'RES_RECURSE'? BUILDSTDERR: 63 | "RES_INSECURE1", RES_INSECURE1, BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: | RES_RECURSE BUILDSTDERR: dns_str_resflags.c:64:22: error: 'RES_INSECURE2' undeclared here (not in a function); did you mean 'RES_RECURSE'? BUILDSTDERR: 64 | "RES_INSECURE2", RES_INSECURE2, BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: | RES_RECURSE BUILDSTDERR: dns_str_resflags.c:66:22: error: 'RES_USE_INET6' undeclared here (not in a function) BUILDSTDERR: 66 | "RES_USE_INET6", RES_USE_INET6, BUILDSTDERR: | ^~~~~~~~~~~~~ ...
Full build log in [1]. It seems the long time deprecated macros has been finally dropped, e.g. [2] Attached patch fixed it for me thanks & regards Jaroslav [1] https://kojipkgs.fedoraproject.org//work/tasks/7585/34597585/build.log [2] https://patchwork.ozlabs.org/patch/1055121/
diff --git a/src/dns/dns_str_resflags.c b/src/dns/dns_str_resflags.c index 5f2cce5..df32345 100644 --- a/src/dns/dns_str_resflags.c +++ b/src/dns/dns_str_resflags.c @@ -60,10 +60,16 @@ static const LONG_NAME_MASK resflag_table[] = { "RES_DEFNAMES", RES_DEFNAMES, "RES_STAYOPEN", RES_STAYOPEN, "RES_DNSRCH", RES_DNSRCH, +#ifdef RES_INSECURE1 "RES_INSECURE1", RES_INSECURE1, +#endif +#ifdef RES_INSECURE2 "RES_INSECURE2", RES_INSECURE2, +#endif "RES_NOALIASES", RES_NOALIASES, +#ifdef RES_USE_INET6 "RES_USE_INET6", RES_USE_INET6, +#endif #ifdef RES_ROTATE "RES_ROTATE", RES_ROTATE, #endif