===> Building for nagios-plugin-dnsrbl-0.6 clang -pipe -Os -c check_dnsrbl.c check_dnsrbl.c:167:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] panic(msg) ^ check_dnsrbl.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free_addrlist(alp) ^ check_dnsrbl.c:191:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] usage(name) ^ check_dnsrbl.c:202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_options(argc, argv) ^ check_dnsrbl.c:254:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] print_rev4(s, a) ^ check_dnsrbl.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] print_rev6(s, a) ^ check_dnsrbl.c:312:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rev_addr(alp, mtx, query, addr, family) ^ check_dnsrbl.c:358:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] load_dnsrbl(file) ^ check_dnsrbl.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] load_addr(alp, mtx, addrs) ^ check_dnsrbl.c:513:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rev_dns(alp, mtx, name) ^ check_dnsrbl.c:519:28: error: use of undeclared identifier 'NS_MAXMSG' unsigned char ans4[NS_MAXMSG + 1]; ^ check_dnsrbl.c:522:28: error: use of undeclared identifier 'NS_MAXMSG' unsigned char ans6[NS_MAXMSG + 1]; ^ check_dnsrbl.c:529:34: error: use of undeclared identifier 'C_IN' anslen4 = res_nquery(res, name, C_IN, T_A, ans4, NS_MAXMSG + 1); ^ check_dnsrbl.c:529:40: error: use of undeclared identifier 'T_A' anslen4 = res_nquery(res, name, C_IN, T_A, ans4, NS_MAXMSG + 1); ^ check_dnsrbl.c:529:51: error: use of undeclared identifier 'NS_MAXMSG' anslen4 = res_nquery(res, name, C_IN, T_A, ans4, NS_MAXMSG + 1); ^ check_dnsrbl.c:542:41: error: use of undeclared identifier 'T_A' if ((rr.rdlength != 4) ||(rr.type != T_A)) ^ check_dnsrbl.c:550:28: warning: passing 'const u_char *' (aka 'const unsigned char *') to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] print_rev4(al->al_addr, rr.rdata); ^~~~~~~~ check_dnsrbl.c:564:34: error: use of undeclared identifier 'C_IN' anslen6 = res_nquery(res, name, C_IN, T_AAAA, ans6, NS_MAXMSG + 1); ^ check_dnsrbl.c:564:40: error: use of undeclared identifier 'T_AAAA' anslen6 = res_nquery(res, name, C_IN, T_AAAA, ans6, NS_MAXMSG + 1); ^ check_dnsrbl.c:564:54: error: use of undeclared identifier 'NS_MAXMSG' anslen6 = res_nquery(res, name, C_IN, T_AAAA, ans6, NS_MAXMSG + 1); ^ check_dnsrbl.c:578:43: error: use of undeclared identifier 'T_AAAA' if ((rr.rdlength != 16) || (rr.type != T_AAAA)) ^ check_dnsrbl.c:586:28: warning: passing 'const u_char *' (aka 'const unsigned char *') to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] print_rev6(al->al_addr, rr.rdata); ^~~~~~~~ check_dnsrbl.c:603:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_dnsrbl(revaddr, d, alp, mtx, wait_cond, retval, count) ^ check_dnsrbl.c:650:28: error: use of undeclared identifier 'NS_MAXMSG' unsigned char ans4[NS_MAXMSG + 1]; ^ check_dnsrbl.c:677:39: error: use of undeclared identifier 'C_IN' anslen4 = res_nquery(res, queryname, C_IN, T_A, ^ check_dnsrbl.c:677:45: error: use of undeclared identifier 'T_A' anslen4 = res_nquery(res, queryname, C_IN, T_A, ^ check_dnsrbl.c:678:15: error: use of undeclared identifier 'NS_MAXMSG' ans4, NS_MAXMSG + 1); ^ check_dnsrbl.c:699:41: error: use of undeclared identifier 'T_A' if ((rr.rdlength != 4) ||(rr.type != T_A)) ^ check_dnsrbl.c:761:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_subnet(addr, subnet, maskint) ^ check_dnsrbl.c:774:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ 15 warnings and 15 errors generated. *** [check_dnsrbl.o] Error code 1 bmake: stopped making "all" in /Users/pbulk/build/net/nagios-plugin-dnsrbl/work/check_dnsrbl-0.6 bmake: 1 error bmake: stopped making "all" in /Users/pbulk/build/net/nagios-plugin-dnsrbl/work/check_dnsrbl-0.6 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/nagios-plugin-dnsrbl *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/nagios-plugin-dnsrbl