Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.16.1 -> 1.17.1: undeclared identifiers (nameser.h) #388

Closed
hdatma opened this issue Dec 6, 2020 · 0 comments
Closed

1.16.1 -> 1.17.1: undeclared identifiers (nameser.h) #388

hdatma opened this issue Dec 6, 2020 · 0 comments

Comments

@hdatma
Copy link

hdatma commented Dec 6, 2020

Hello,

The latest version seems to remove various identifiers, like NS_HFIXEDSZ, NS_HFIXEDSZ, etc. On OpenBSD this causes a stream of errors and ultimately fails to compile.

In file included from ares_process.c:42: ../../src/lib/nameser.h:129:9: warning: 'PACKETSZ' macro redefined [-Wmacro-redefined] #define PACKETSZ NS_PACKETSZ ^ /usr/include/arpa/nameser.h:99:9: note: previous definition is here #define PACKETSZ 512 /* maximum packet size */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:130:9: warning: 'MAXDNAME' macro redefined [-Wmacro-redefined] #define MAXDNAME NS_MAXDNAME ^ /usr/include/arpa/nameser.h:100:9: note: previous definition is here #define MAXDNAME 1025 /* maximum presentation domain name */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:131:9: warning: 'MAXCDNAME' macro redefined [-Wmacro-redefined] #define MAXCDNAME NS_MAXCDNAME ^ /usr/include/arpa/nameser.h:101:9: note: previous definition is here #define MAXCDNAME 255 /* maximum compressed domain name */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:132:9: warning: 'MAXLABEL' macro redefined [-Wmacro-redefined] #define MAXLABEL NS_MAXLABEL ^ /usr/include/arpa/nameser.h:102:9: note: previous definition is here #define MAXLABEL 63 /* maximum length of domain label */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:133:9: warning: 'HFIXEDSZ' macro redefined [-Wmacro-redefined] #define HFIXEDSZ NS_HFIXEDSZ ^ /usr/include/arpa/nameser.h:103:9: note: previous definition is here #define HFIXEDSZ 12 /* #/bytes of fixed data in header */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:134:9: warning: 'QFIXEDSZ' macro redefined [-Wmacro-redefined] #define QFIXEDSZ NS_QFIXEDSZ ^ /usr/include/arpa/nameser.h:104:9: note: previous definition is here #define QFIXEDSZ 4 /* #/bytes of fixed data in query */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:135:9: warning: 'RRFIXEDSZ' macro redefined [-Wmacro-redefined] #define RRFIXEDSZ NS_RRFIXEDSZ ^ /usr/include/arpa/nameser.h:105:9: note: previous definition is here #define RRFIXEDSZ 10 /* #/bytes of fixed data in r record */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:136:9: warning: 'INDIR_MASK' macro redefined [-Wmacro-redefined] #define INDIR_MASK NS_CMPRSFLGS ^ /usr/include/arpa/nameser.h:322:9: note: previous definition is here #define INDIR_MASK 0xc0 ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:137:9: warning: 'NAMESERVER_PORT' macro redefined [-Wmacro-redefined] #define NAMESERVER_PORT NS_DEFAULTPORT ^ /usr/include/arpa/nameser.h:114:9: note: previous definition is here #define NAMESERVER_PORT 53 ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:139:9: warning: 'QUERY' macro redefined [-Wmacro-redefined] #define QUERY ns_o_query ^ /usr/include/arpa/nameser.h:119:9: note: previous definition is here #define QUERY 0x0 /* standard query */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:141:9: warning: 'SERVFAIL' macro redefined [-Wmacro-redefined] #define SERVFAIL ns_r_servfail ^ /usr/include/arpa/nameser.h:129:9: note: previous definition is here #define SERVFAIL 2 /* server failure */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:142:9: warning: 'NOTIMP' macro redefined [-Wmacro-redefined] #define NOTIMP ns_r_notimpl ^ /usr/include/arpa/nameser.h:131:9: note: previous definition is here #define NOTIMP 4 /* not implemented */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:143:9: warning: 'REFUSED' macro redefined [-Wmacro-redefined] #define REFUSED ns_r_refused ^ /usr/include/arpa/nameser.h:132:9: note: previous definition is here #define REFUSED 5 /* query refused */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:146:9: warning: 'FORMERR' macro redefined [-Wmacro-redefined] #define FORMERR ns_r_formerr ^ /usr/include/arpa/nameser.h:128:9: note: previous definition is here #define FORMERR 1 /* format error */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:147:9: warning: 'NXDOMAIN' macro redefined [-Wmacro-redefined] #define NXDOMAIN ns_r_nxdomain ^ /usr/include/arpa/nameser.h:130:9: note: previous definition is here #define NXDOMAIN 3 /* non existent domain */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:149:9: warning: 'C_IN' macro redefined [-Wmacro-redefined] #define C_IN ns_c_in ^ /usr/include/arpa/nameser.h:202:9: note: previous definition is here #define C_IN 1 /* the arpa internet */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:150:9: warning: 'C_CHAOS' macro redefined [-Wmacro-redefined] #define C_CHAOS ns_c_chaos ^ /usr/include/arpa/nameser.h:203:9: note: previous definition is here #define C_CHAOS 3 /* for chaos net (MIT) */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:151:9: warning: 'C_HS' macro redefined [-Wmacro-redefined] #define C_HS ns_c_hs ^ /usr/include/arpa/nameser.h:204:9: note: previous definition is here #define C_HS 4 /* for Hesiod name server (MIT) (XXX) */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:153:9: warning: 'C_ANY' macro redefined [-Wmacro-redefined] #define C_ANY ns_c_any ^ /usr/include/arpa/nameser.h:206:9: note: previous definition is here #define C_ANY 255 /* wildcard match */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:155:9: warning: 'T_A' macro redefined [-Wmacro-redefined] #define T_A ns_t_a ^ /usr/include/arpa/nameser.h:137:9: note: previous definition is here #define T_A 1 /* host address */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:156:9: warning: 'T_NS' macro redefined [-Wmacro-redefined] #define T_NS ns_t_ns ^ /usr/include/arpa/nameser.h:138:9: note: previous definition is here #define T_NS 2 /* authoritative server */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:157:9: warning: 'T_MD' macro redefined [-Wmacro-redefined] #define T_MD ns_t_md ^ /usr/include/arpa/nameser.h:139:9: note: previous definition is here #define T_MD 3 /* mail destination */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:158:9: warning: 'T_MF' macro redefined [-Wmacro-redefined] #define T_MF ns_t_mf ^ /usr/include/arpa/nameser.h:140:9: note: previous definition is here #define T_MF 4 /* mail forwarder */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:159:9: warning: 'T_CNAME' macro redefined [-Wmacro-redefined] #define T_CNAME ns_t_cname ^ /usr/include/arpa/nameser.h:141:9: note: previous definition is here #define T_CNAME 5 /* canonical name */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:160:9: warning: 'T_SOA' macro redefined [-Wmacro-redefined] #define T_SOA ns_t_soa ^ /usr/include/arpa/nameser.h:142:9: note: previous definition is here #define T_SOA 6 /* start of authority zone */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:161:9: warning: 'T_MB' macro redefined [-Wmacro-redefined] #define T_MB ns_t_mb ^ /usr/include/arpa/nameser.h:143:9: note: previous definition is here #define T_MB 7 /* mailbox domain name */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:162:9: warning: 'T_MG' macro redefined [-Wmacro-redefined] #define T_MG ns_t_mg ^ /usr/include/arpa/nameser.h:144:9: note: previous definition is here #define T_MG 8 /* mail group member */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:163:9: warning: 'T_MR' macro redefined [-Wmacro-redefined] #define T_MR ns_t_mr ^ /usr/include/arpa/nameser.h:145:9: note: previous definition is here #define T_MR 9 /* mail rename name */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:164:9: warning: 'T_NULL' macro redefined [-Wmacro-redefined] #define T_NULL ns_t_null ^ /usr/include/arpa/nameser.h:146:9: note: previous definition is here #define T_NULL 10 /* null resource record */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:165:9: warning: 'T_WKS' macro redefined [-Wmacro-redefined] #define T_WKS ns_t_wks ^ /usr/include/arpa/nameser.h:147:9: note: previous definition is here #define T_WKS 11 /* well known service */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:166:9: warning: 'T_PTR' macro redefined [-Wmacro-redefined] #define T_PTR ns_t_ptr ^ /usr/include/arpa/nameser.h:148:9: note: previous definition is here #define T_PTR 12 /* domain name pointer */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:167:9: warning: 'T_HINFO' macro redefined [-Wmacro-redefined] #define T_HINFO ns_t_hinfo ^ /usr/include/arpa/nameser.h:149:9: note: previous definition is here #define T_HINFO 13 /* host information */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:168:9: warning: 'T_MINFO' macro redefined [-Wmacro-redefined] #define T_MINFO ns_t_minfo ^ /usr/include/arpa/nameser.h:150:9: note: previous definition is here #define T_MINFO 14 /* mailbox information */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:169:9: warning: 'T_MX' macro redefined [-Wmacro-redefined] #define T_MX ns_t_mx ^ /usr/include/arpa/nameser.h:151:9: note: previous definition is here #define T_MX 15 /* mail routing information */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:170:9: warning: 'T_TXT' macro redefined [-Wmacro-redefined] #define T_TXT ns_t_txt ^ /usr/include/arpa/nameser.h:152:9: note: previous definition is here #define T_TXT 16 /* text strings */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:171:9: warning: 'T_RP' macro redefined [-Wmacro-redefined] #define T_RP ns_t_rp ^ /usr/include/arpa/nameser.h:153:9: note: previous definition is here #define T_RP 17 /* responsible person */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:172:9: warning: 'T_AFSDB' macro redefined [-Wmacro-redefined] #define T_AFSDB ns_t_afsdb ^ /usr/include/arpa/nameser.h:154:9: note: previous definition is here #define T_AFSDB 18 /* AFS cell database */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:173:9: warning: 'T_X25' macro redefined [-Wmacro-redefined] #define T_X25 ns_t_x25 ^ /usr/include/arpa/nameser.h:155:9: note: previous definition is here #define T_X25 19 /* X_25 calling address */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:174:9: warning: 'T_ISDN' macro redefined [-Wmacro-redefined] #define T_ISDN ns_t_isdn ^ /usr/include/arpa/nameser.h:156:9: note: previous definition is here #define T_ISDN 20 /* ISDN calling address */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:175:9: warning: 'T_RT' macro redefined [-Wmacro-redefined] #define T_RT ns_t_rt ^ /usr/include/arpa/nameser.h:157:9: note: previous definition is here #define T_RT 21 /* router */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:176:9: warning: 'T_NSAP' macro redefined [-Wmacro-redefined] #define T_NSAP ns_t_nsap ^ /usr/include/arpa/nameser.h:158:9: note: previous definition is here #define T_NSAP 22 /* NSAP address */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:177:9: warning: 'T_NSAP_PTR' macro redefined [-Wmacro-redefined] #define T_NSAP_PTR ns_t_nsap_ptr ^ /usr/include/arpa/nameser.h:159:9: note: previous definition is here #define T_NSAP_PTR 23 /* reverse NSAP lookup (deprecated) */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:178:9: warning: 'T_SIG' macro redefined [-Wmacro-redefined] #define T_SIG ns_t_sig ^ /usr/include/arpa/nameser.h:160:9: note: previous definition is here #define T_SIG 24 /* security signature */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:179:9: warning: 'T_KEY' macro redefined [-Wmacro-redefined] #define T_KEY ns_t_key ^ /usr/include/arpa/nameser.h:161:9: note: previous definition is here #define T_KEY 25 /* security key */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:180:9: warning: 'T_PX' macro redefined [-Wmacro-redefined] #define T_PX ns_t_px ^ /usr/include/arpa/nameser.h:162:9: note: previous definition is here #define T_PX 26 /* X.400 mail mapping */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:181:9: warning: 'T_GPOS' macro redefined [-Wmacro-redefined] #define T_GPOS ns_t_gpos ^ /usr/include/arpa/nameser.h:163:9: note: previous definition is here #define T_GPOS 27 /* geographical position (withdrawn) */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:182:9: warning: 'T_AAAA' macro redefined [-Wmacro-redefined] #define T_AAAA ns_t_aaaa ^ /usr/include/arpa/nameser.h:164:9: note: previous definition is here #define T_AAAA 28 /* IP6 Address */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:183:9: warning: 'T_LOC' macro redefined [-Wmacro-redefined] #define T_LOC ns_t_loc ^ /usr/include/arpa/nameser.h:165:9: note: previous definition is here #define T_LOC 29 /* Location Information */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:184:9: warning: 'T_NXT' macro redefined [-Wmacro-redefined] #define T_NXT ns_t_nxt ^ /usr/include/arpa/nameser.h:166:9: note: previous definition is here #define T_NXT 30 /* Next Valid Name in Zone */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:185:9: warning: 'T_EID' macro redefined [-Wmacro-redefined] #define T_EID ns_t_eid ^ /usr/include/arpa/nameser.h:167:9: note: previous definition is here #define T_EID 31 /* Endpoint identifier */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:186:9: warning: 'T_NIMLOC' macro redefined [-Wmacro-redefined] #define T_NIMLOC ns_t_nimloc ^ /usr/include/arpa/nameser.h:168:9: note: previous definition is here #define T_NIMLOC 32 /* Nimrod locator */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:187:9: warning: 'T_SRV' macro redefined [-Wmacro-redefined] #define T_SRV ns_t_srv ^ /usr/include/arpa/nameser.h:169:9: note: previous definition is here #define T_SRV 33 /* Server selection */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:188:9: warning: 'T_ATMA' macro redefined [-Wmacro-redefined] #define T_ATMA ns_t_atma ^ /usr/include/arpa/nameser.h:170:9: note: previous definition is here #define T_ATMA 34 /* ATM Address */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:189:9: warning: 'T_NAPTR' macro redefined [-Wmacro-redefined] #define T_NAPTR ns_t_naptr ^ /usr/include/arpa/nameser.h:171:9: note: previous definition is here #define T_NAPTR 35 /* Naming Authority PoinTeR */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:190:9: warning: 'T_KX' macro redefined [-Wmacro-redefined] #define T_KX ns_t_kx ^ /usr/include/arpa/nameser.h:172:9: note: previous definition is here #define T_KX 36 /* Key Exchanger */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:191:9: warning: 'T_CERT' macro redefined [-Wmacro-redefined] #define T_CERT ns_t_cert ^ /usr/include/arpa/nameser.h:173:9: note: previous definition is here #define T_CERT 37 /* CERT */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:192:9: warning: 'T_A6' macro redefined [-Wmacro-redefined] #define T_A6 ns_t_a6 ^ /usr/include/arpa/nameser.h:174:9: note: previous definition is here #define T_A6 38 /* A6 */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:193:9: warning: 'T_DNAME' macro redefined [-Wmacro-redefined] #define T_DNAME ns_t_dname ^ /usr/include/arpa/nameser.h:175:9: note: previous definition is here #define T_DNAME 39 /* DNAME */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:194:9: warning: 'T_SINK' macro redefined [-Wmacro-redefined] #define T_SINK ns_t_sink ^ /usr/include/arpa/nameser.h:176:9: note: previous definition is here #define T_SINK 40 /* SINK */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:195:9: warning: 'T_OPT' macro redefined [-Wmacro-redefined] #define T_OPT ns_t_opt ^ /usr/include/arpa/nameser.h:177:9: note: previous definition is here #define T_OPT 41 /* OPT pseudo-RR, RFC2671 */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:196:9: warning: 'T_APL' macro redefined [-Wmacro-redefined] #define T_APL ns_t_apl ^ /usr/include/arpa/nameser.h:178:9: note: previous definition is here #define T_APL 42 /* APL */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:197:9: warning: 'T_DS' macro redefined [-Wmacro-redefined] #define T_DS ns_t_ds ^ /usr/include/arpa/nameser.h:179:9: note: previous definition is here #define T_DS 43 /* Delegation Signer */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:198:9: warning: 'T_SSHFP' macro redefined [-Wmacro-redefined] #define T_SSHFP ns_t_sshfp ^ /usr/include/arpa/nameser.h:180:9: note: previous definition is here #define T_SSHFP 44 /* SSH Key Fingerprint */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:199:9: warning: 'T_RRSIG' macro redefined [-Wmacro-redefined] #define T_RRSIG ns_t_rrsig ^ /usr/include/arpa/nameser.h:181:9: note: previous definition is here #define T_RRSIG 46 /* RRSIG */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:200:9: warning: 'T_NSEC' macro redefined [-Wmacro-redefined] #define T_NSEC ns_t_nsec ^ /usr/include/arpa/nameser.h:182:9: note: previous definition is here #define T_NSEC 47 /* NSEC */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:201:9: warning: 'T_DNSKEY' macro redefined [-Wmacro-redefined] #define T_DNSKEY ns_t_dnskey ^ /usr/include/arpa/nameser.h:183:9: note: previous definition is here #define T_DNSKEY 48 /* DNSKEY */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:202:9: warning: 'T_TKEY' macro redefined [-Wmacro-redefined] #define T_TKEY ns_t_tkey ^ /usr/include/arpa/nameser.h:190:9: note: previous definition is here #define T_TKEY 249 /* Transaction Key */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:203:9: warning: 'T_TSIG' macro redefined [-Wmacro-redefined] #define T_TSIG ns_t_tsig ^ /usr/include/arpa/nameser.h:191:9: note: previous definition is here #define T_TSIG 250 /* Transaction Signature */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:204:9: warning: 'T_IXFR' macro redefined [-Wmacro-redefined] #define T_IXFR ns_t_ixfr ^ /usr/include/arpa/nameser.h:192:9: note: previous definition is here #define T_IXFR 251 /* incremental zone transfer */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:205:9: warning: 'T_AXFR' macro redefined [-Wmacro-redefined] #define T_AXFR ns_t_axfr ^ /usr/include/arpa/nameser.h:193:9: note: previous definition is here #define T_AXFR 252 /* transfer zone of authority */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:206:9: warning: 'T_MAILB' macro redefined [-Wmacro-redefined] #define T_MAILB ns_t_mailb ^ /usr/include/arpa/nameser.h:194:9: note: previous definition is here #define T_MAILB 253 /* transfer mailbox records */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:207:9: warning: 'T_MAILA' macro redefined [-Wmacro-redefined] #define T_MAILA ns_t_maila ^ /usr/include/arpa/nameser.h:195:9: note: previous definition is here #define T_MAILA 254 /* transfer mail agent records */ ^ In file included from ares_process.c:42: ../../src/lib/nameser.h:209:9: warning: 'T_ANY' macro redefined [-Wmacro-redefined] #define T_ANY ns_t_any ^ /usr/include/arpa/nameser.h:196:9: note: previous definition is here #define T_ANY 255 /* wildcard match */ ^ ares_process.c:582:14: error: use of undeclared identifier 'NS_HFIXEDSZ' if (alen < HFIXEDSZ) ^ ../../src/lib/nameser.h:133:26: note: expanded from macro 'HFIXEDSZ' #define HFIXEDSZ NS_HFIXEDSZ ^ ares_process.c:611:14: error: use of undeclared identifier 'NS_PACKETSZ' packetsz = PACKETSZ; ^ ../../src/lib/nameser.h:129:26: note: expanded from macro 'PACKETSZ' #define PACKETSZ NS_PACKETSZ ^ ares_process.c:619:20: error: use of undeclared identifier 'ns_r_formerr' if (rcode == FORMERR && has_opt_rr(abuf, alen) != 1) ^ ../../src/lib/nameser.h:146:25: note: expanded from macro 'FORMERR' #define FORMERR ns_r_formerr ^ ares_process.c:660:20: error: use of undeclared identifier 'ns_r_servfail' if (rcode == SERVFAIL || rcode == NOTIMP || rcode == REFUSED) ^ ../../src/lib/nameser.h:141:25: note: expanded from macro 'SERVFAIL' #define SERVFAIL ns_r_servfail ^ ares_process.c:660:41: error: use of undeclared identifier 'ns_r_notimpl' if (rcode == SERVFAIL || rcode == NOTIMP || rcode == REFUSED) ^ ../../src/lib/nameser.h:142:25: note: expanded from macro 'NOTIMP' #define NOTIMP ns_r_notimpl ^ ares_process.c:660:60: error: use of undeclared identifier 'ns_r_refused' if (rcode == SERVFAIL || rcode == NOTIMP || rcode == REFUSED) ^ ../../src/lib/nameser.h:143:25: note: expanded from macro 'REFUSED' #define REFUSED ns_r_refused ^ ares_process.c:1264:14: error: use of undeclared identifier 'NS_HFIXEDSZ' if (qlen < HFIXEDSZ || alen < HFIXEDSZ) ^ ../../src/lib/nameser.h:133:26: note: expanded from macro 'HFIXEDSZ' #define HFIXEDSZ NS_HFIXEDSZ ^ ares_process.c:1264:33: error: use of undeclared identifier 'NS_HFIXEDSZ' if (qlen < HFIXEDSZ || alen < HFIXEDSZ) ^ ../../src/lib/nameser.h:133:26: note: expanded from macro 'HFIXEDSZ' #define HFIXEDSZ NS_HFIXEDSZ ^ ares_process.c:1274:16: error: use of undeclared identifier 'NS_HFIXEDSZ' q.p = qbuf + HFIXEDSZ; ^ ../../src/lib/nameser.h:133:26: note: expanded from macro 'HFIXEDSZ' #define HFIXEDSZ NS_HFIXEDSZ ^ ares_process.c:1282:17: error: use of undeclared identifier 'NS_QFIXEDSZ' if (q.p + QFIXEDSZ > qbuf + qlen) ^ ../../src/lib/nameser.h:134:26: note: expanded from macro 'QFIXEDSZ' #define QFIXEDSZ NS_QFIXEDSZ ^ ares_process.c:1289:14: error: use of undeclared identifier 'NS_QFIXEDSZ' q.p += QFIXEDSZ; ^ ../../src/lib/nameser.h:134:26: note: expanded from macro 'QFIXEDSZ' #define QFIXEDSZ NS_QFIXEDSZ ^ ares_process.c:1292:20: error: use of undeclared identifier 'NS_HFIXEDSZ' a.p = abuf + HFIXEDSZ; ^ ../../src/lib/nameser.h:133:26: note: expanded from macro 'HFIXEDSZ' #define HFIXEDSZ NS_HFIXEDSZ ^ ares_process.c:1303:21: error: use of undeclared identifier 'NS_QFIXEDSZ' if (a.p + QFIXEDSZ > abuf + alen) ^ ../../src/lib/nameser.h:134:26: note: expanded from macro 'QFIXEDSZ' #define QFIXEDSZ NS_QFIXEDSZ ^ ares_process.c:1311:18: error: use of undeclared identifier 'NS_QFIXEDSZ' a.p += QFIXEDSZ; ^ ../../src/lib/nameser.h:134:26: note: expanded from macro 'QFIXEDSZ' #define QFIXEDSZ NS_QFIXEDSZ ^ ares_process.c:1365:14: error: use of undeclared identifier 'NS_HFIXEDSZ' if (alen < HFIXEDSZ) ^ ../../src/lib/nameser.h:133:26: note: expanded from macro 'HFIXEDSZ' #define HFIXEDSZ NS_HFIXEDSZ ^ ares_process.c:1374:17: error: use of undeclared identifier 'NS_HFIXEDSZ' aptr = abuf + HFIXEDSZ; ^ ../../src/lib/nameser.h:133:26: note: expanded from macro 'HFIXEDSZ' #define HFIXEDSZ NS_HFIXEDSZ ^ ares_process.c:1385:24: error: use of undeclared identifier 'NS_QFIXEDSZ' if (aptr + len + QFIXEDSZ > abuf + alen) ^ ../../src/lib/nameser.h:134:26: note: expanded from macro 'QFIXEDSZ' #define QFIXEDSZ NS_QFIXEDSZ ^ ares_process.c:1387:21: error: use of undeclared identifier 'NS_QFIXEDSZ' aptr += len + QFIXEDSZ; ^ ../../src/lib/nameser.h:134:26: note: expanded from macro 'QFIXEDSZ' #define QFIXEDSZ NS_QFIXEDSZ ^ ares_process.c:1400:24: error: use of undeclared identifier 'NS_RRFIXEDSZ' if (aptr + len + RRFIXEDSZ > abuf + alen) ^ ../../src/lib/nameser.h:135:26: note: expanded from macro 'RRFIXEDSZ' #define RRFIXEDSZ NS_RRFIXEDSZ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 73 warnings and 20 errors generated. gmake[4]: *** [Makefile:1088: libcares_la-ares_process.lo] Error 1 gmake[4]: *** Waiting for unfinished jobs.... gmake[3]: *** [Makefile:1201: all-recursive] Error 1 gmake[2]: *** [Makefile:615: all] Error 2 gmake[1]: *** [Makefile:387: all-recursive] Error 1 gmake: *** [Makefile:487: all-recursive] Error 1

sergepetrenko pushed a commit to tarantool/c-ares that referenced this issue Jul 29, 2022
There is too much inconsistency between platforms for arpa/nameser.h and arpa/nameser_compat.h for the way the current files are structured.  Still load the respective system files but make our private nameser.h more forgiving.

Fixes: c-ares#388
Fix By: Brad House (@bradh352)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant