===> Building for host-20070128nb1 @(#)PROGRAM:ld PROJECT:ld-1053.12 BUILD 10:15:51 Mar 29 2024 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29) TAPI support using: Apple TAPI version 15.0.0 (tapi-1500.3.2.2) clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c main.c main.c:323: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) ^ main.c:354:18: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] _res.options &= ~RES_DNSRCH; /* dotted names are qualified */ ~~ ^~~~~~~~~~~ main.c:357:18: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] _res.options &= ~RES_DEBUG; /* turn off debug printout */ ~~ ^~~~~~~~~~ main.c:358:18: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] _res.options &= ~RES_USEVC; /* do not use virtual circuit */ ~~ ^~~~~~~~~~ main.c:581:24: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] new_res.options &= ~RES_RECURSE; ~~ ^~~~~~~~~~~~ main.c:805:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_defaults(option, argc, argv) ^ main.c:836:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] optargv = newlist(optargv, optargc+2, char *); ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ./host.h:188:65: note: expanded from macro 'newlist' #define newlist(a, n, t) (t *) xalloc((ptr_t *) (a), (size_t) ((n) * sizeof(t))) ^ ~ main.c:845:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] optargv = newlist(optargv, optargc+2, char *); ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ./host.h:188:65: note: expanded from macro 'newlist' #define newlist(a, n, t) (t *) xalloc((ptr_t *) (a), (size_t) ((n) * sizeof(t))) ^ ~ main.c:866:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getval(optstring, optname, minvalue, maxvalue) ^ main.c:900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cvtopt(optstring) ^ main.c:1138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] process_argv(argc, argv) ^ main.c:1169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] process_file(fp) ^ main.c:1222:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] process_name(name) ^ main.c:1268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] execute_name(name) ^ main.c:1422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] execute(name, addr) ^ main.c:1530:19: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] _res.options &= ~RES_RECURSE; ~~ ^~~~~~~~~~~~ main.c:1564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_query(name, addr) ^ main.c:1647:11: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] myhostname() ^ void main.c:1697:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_server(name) ^ main.c:1728:36: warning: cast from 'char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] nslist(_res.nscount).sin_addr = incopy(hp->h_addr_list[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:185:21: note: expanded from macro 'incopy' #define incopy(a) *((const struct in_addr *) (a)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_logfile(filename) ^ main.c:1811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_cachedir(filename) ^ 22 warnings generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c info.c info.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_hostinfo(name, qualified) ^ info.c:212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_domaininfo(name, domain) ^ info.c:286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_info(answerbuf, name, type, class) ^ info.c:408: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_info(answerbuf, answerlen, name, type, class, regular) ^ info.c:625: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_rrec(name, qtype, qclass, bp, cp, msg, eom, regular) ^ info.c:660:9: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] type = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:663:10: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] class = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:669:9: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] dlen = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:792:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:990:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1003:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1052:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1133:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1170:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1200:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1256:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1262:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1268:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1281:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1287:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1318:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1331:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1337:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:666:8: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] ttl = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:841:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:846:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:851:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:856:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:861:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:964:8: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:1098:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] c = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:1101:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:1105:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:1109:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:1155:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:1160:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:1165:7: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] n = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ info.c:1184:12: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] n = eor - cp; ~ ~~~~^~~~ info.c:1218:12: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] n = eor - cp; ~ ~~~~^~~~ info.c:1350:12: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] n = eor - cp; ~ ~~~~^~~~ info.c:1677:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dump_rrec(cp, size, comment) ^ info.c:1691:32: warning: operand of ? changes signedness: 'u_char' (aka 'unsigned char') to 'char' [-Wsign-conversion] ascbuf[i] = is_print(*cp) ? *cp : '.'; ~ ^~~ info.c:1693:22: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] hexbuf[(i * 3)] = hexdigit(c); ~ ^~~~~~~~~~~ ./host.h:174:39: note: expanded from macro 'hexdigit' #define hexdigit(c) (((c) < 10) ? '0' + (c) : 'A' + (c) - 10); ~~~~^~~~~ info.c:1693:22: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] hexbuf[(i * 3)] = hexdigit(c); ~ ^~~~~~~~~~~ ./host.h:174:57: note: expanded from macro 'hexdigit' #define hexdigit(c) (((c) < 10) ? '0' + (c) : 'A' + (c) - 10); ~~~~~~~~~~^~~~ info.c:1695:26: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] hexbuf[(i * 3) + 1] = hexdigit(c); ~ ^~~~~~~~~~~ ./host.h:174:39: note: expanded from macro 'hexdigit' #define hexdigit(c) (((c) < 10) ? '0' + (c) : 'A' + (c) - 10); ~~~~^~~~~ info.c:1695:26: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] hexbuf[(i * 3) + 1] = hexdigit(c); ~ ^~~~~~~~~~~ ./host.h:174:57: note: expanded from macro 'hexdigit' #define hexdigit(c) (((c) < 10) ? '0' + (c) : 'A' + (c) - 10); ~~~~~~~~~~^~~~ info.c:1725:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skip_qrec(name, qtype, qclass, cp, msg, eom) ^ info.c:1747:9: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] type = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1750:10: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] class = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ info.c:1789:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_recursive(name) ^ 50 warnings generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c list.c list.c:172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] list_zone(name) ^ list.c:635:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_servers(name) ^ list.c:685:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_servers(name) ^ list.c:736:19: warning: cast from 'char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] ipaddr[0][i] = incopy(hp->h_addr_list[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:185:21: note: expanded from macro 'incopy' #define incopy(a) *((const struct in_addr *) (a)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ list.c:771:21: warning: cast from 'char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] ipaddr[n][i] = incopy(hp->h_addr_list[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:185:21: note: expanded from macro 'incopy' #define incopy(a) *((const struct in_addr *) (a)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ list.c:832:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_servers(name) ^ list.c:868:19: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] _res.options &= ~RES_RECURSE; ~~ ^~~~~~~~~~~~ list.c:956:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_nsinfo(answerbuf, answerlen, name, qtype, qclass) ^ list.c:1016:10: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] type = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ list.c:1019:11: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] class = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ list.c:1025:10: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] dlen = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ list.c:1022:9: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] ttl = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ list.c:1120:13: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] sort_servers() ^ void list.c:1200:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skip_transfer(name) ^ list.c:1239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_check(name) ^ list.c:1270:18: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] _res.options &= ~RES_RECURSE; ~~ ^~~~~~~~~~~~ list.c:1333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_soa(name, inaddr, host) ^ list.c:1349:18: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] _res.options &= ~RES_RECURSE; ~~ ^~~~~~~~~~~~ list.c:1419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_transfer(name) ^ list.c:1531:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] transfer_zone(name, inaddr, host) ^ list.c:1618:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_zone(name, inaddr, host) ^ list.c:1808:17: warning: cast from 'char *' to 'querybuf_t *' increases required alignment from 1 to 4 [-Wcast-align] print_answer((querybuf_t *) answer, (size_t) n, T_AXFR); ^~~~~~~~~~~~~~~~~~~~~ list.c:1816:8: warning: cast from 'char *' to 'HEADER *' increases required alignment from 1 to 4 [-Wcast-align] bp = (HEADER *) answer; ^~~~~~~~~~~~~~~~~ list.c:1888:21: warning: cast from 'char *' to 'querybuf_t *' increases required alignment from 1 to 4 [-Wcast-align] (void) print_info((querybuf_t *) answer, n, name, T_AXFR, queryclass, FALSE); ^~~~~~~~~~~~~~~~~~~~~ list.c:2002:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] update_zone(name) ^ list.c:2030:42: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] zonename = newlist(zonename, zonecount+1, char *); ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ./host.h:188:65: note: expanded from macro 'newlist' #define newlist(a, n, t) (t *) xalloc((ptr_t *) (a), (size_t) ((n) * sizeof(t))) ^ ~ list.c:2054:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] hostlist = newlist(hostlist, maxhosts, host_data_t); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ./host.h:188:65: note: expanded from macro 'newlist' #define newlist(a, n, t) (t *) xalloc((ptr_t *) (a), (size_t) ((n) * sizeof(t))) ^ ~ list.c:2081:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_mxrec(name) ^ list.c:2108:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_primary(name) ^ list.c:2146: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_zone(name, host) ^ list.c:2190: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_cache(name, host) ^ list.c:2230:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] compare_soa(name) ^ list.c:2309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_soainfo(answerbuf, answerlen, name, qtype, qclass) ^ list.c:2362:10: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] type = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ list.c:2365:11: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] class = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ list.c:2371:10: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] dlen = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ list.c:2368:9: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] ttl = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ list.c:2395:17: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] soa.serial = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ list.c:2397:18: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] soa.refresh = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ list.c:2399:16: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] soa.retry = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ list.c:2401:17: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] soa.expire = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ list.c:2403:19: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] soa.nxdomttl = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ list.c:2445: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_soa(answerbuf, name) ^ list.c:2483: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_soa(answerbuf, name, host) ^ list.c:2557:31: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] if (bitset(0x80000000U, soa.serial)) { ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ./host.h:176:31: note: expanded from macro 'bitset' #define bitset(a, b) (((a) & (b)) != 0) ~ ^ list.c:2650: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_dupl(addr) ^ list.c:2662:50: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] s->addrlist = newlist(s->addrlist, s->addrcount + 1, ipaddr_t); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ./host.h:188:65: note: expanded from macro 'newlist' #define newlist(a, n, t) (t *) xalloc((ptr_t *) (a), (size_t) ((n) * sizeof(t))) ^ ~ list.c:2694: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_ttl(name, type, class, ttl) ^ list.c:2708:15: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] for (hfunc = type, p = name; (c = *p) != '\0'; p++) { ~ ^~~~ list.c:2765:13: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] clear_ttltab() ^ void list.c:2812:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_index(name, enter) ^ list.c:2868:14: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] clear_hosttab() ^ void list.c:2913:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zone_index(name, enter) ^ list.c:2969:14: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] clear_zonetab() ^ void list.c:3014: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_canon(name) ^ 55 warnings generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c addr.c addr.c:43: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_addr(name) ^ addr.c:103:31: warning: cast from 'char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] hnamebuf, inet_ntoa(incopy(hp->h_addr_list[i]))); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:185:21: note: expanded from macro 'incopy' #define incopy(a) *((const struct in_addr *) (a)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ addr.c:116:15: warning: cast from 'char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] inaddr[i] = incopy(hp->h_addr_list[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:185:21: note: expanded from macro 'incopy' #define incopy(a) *((const struct in_addr *) (a)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ addr.c:158: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_addr_name(inaddr, name) ^ addr.c:252: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_name(addr) ^ addr.c:375: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_name_addr(name, addr) ^ addr.c:431:12: warning: cast from 'char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] inaddr = incopy(hp->h_addr_list[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:185:21: note: expanded from macro 'incopy' #define incopy(a) *((const struct in_addr *) (a)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 warnings generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c geth.c geth.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] geth_byname(name) ^ geth.c:89:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] geth_byaddr(addr, size, family) ^ geth.c:101:20: warning: cast from 'const char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] inet_ntoa(incopy(addr))); ^~~~~~~~~~~~ ./host.h:185:21: note: expanded from macro 'incopy' #define incopy(a) *((const struct in_addr *) (a)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ geth.c:125:67: warning: cast from 'const char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] fprintf(stderr, "%s: gethostbyaddr(%s): %s\n", argv0, inet_ntoa(incopy(addr)), hstrerror(h_errno)); ^~~~~~~~~~~~ ./host.h:185:21: note: expanded from macro 'incopy' #define incopy(a) *((const struct in_addr *) (a)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ geth.c:137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] geth_freehostent(hp) ^ 5 warnings generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c util.c util.c:42: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_type(str) ^ util.c:137: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_class(str) ^ util.c:172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] in_addr_arpa(dottedquad) ^ util.c:224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nsap_int(name) ^ util.c:270: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_host(heading, hp) ^ util.c:282:27: warning: cast from 'char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] printf(" %s", inet_ntoa(incopy(*ap))); ^~~~~~~~~~~ ./host.h:185:21: note: expanded from macro 'incopy' #define incopy(a) *((const struct in_addr *) (a)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.c:307:9: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] show_res() ^ void util.c:501: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_stats(stats, nzones, name, filter, class) ^ util.c:553:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clear_stats(stats) ^ util.c:573:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] show_types(name, filter, class) ^ util.c:620:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ns_error(name, type, class, host) ^ util.c:912:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] decode_error(rcode) ^ util.c:942: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_answer(answerbuf, answerlen, type) ^ util.c:1180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] want_type(type, filter) ^ util.c:1221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] want_class(class, filter) ^ util.c:1245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] indomain(name, domain, equal) ^ util.c:1281:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] samedomain(name, domain, equal) ^ util.c:1327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gluerecord(name, domain, zone, nzones) ^ util.c:1385:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] matchlabels(name, domain) ^ util.c:1417:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_domain(name, listing) ^ util.c:1459:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_dotname(name) ^ util.c:1465:6: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] n = strlength(name); ~ ^~~~~~~~~~~~~~~ ./host.h:194:22: note: expanded from macro 'strlength' #define strlength(s) (int) strlen(s) ^~~~~~~~~~~~~~~ util.c:1491:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_nsap(name) ^ util.c:1539:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_type(type) ^ util.c:1631:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_class(class) ^ util.c:1663:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] expand_name(name, type, cp, msg, eom, namebuf) ^ util.c:1706: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_size(name, type, cp, msg, eor, size) ^ util.c:1763:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] valid_name(name, wildcard, localpart, underscore) ^ util.c:1847:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] canonical(name) ^ util.c:1933:10: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] type = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ util.c:1936:11: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] class = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ util.c:1942:10: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] dlen = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ util.c:1858:24: warning: variable 'nscount' set but not used [-Wunused-but-set-variable] int qdcount, ancount, nscount, arcount; ^ util.c:1858:33: warning: variable 'arcount' set but not used [-Wunused-but-set-variable] int qdcount, ancount, nscount, arcount; ^ util.c:1863:12: warning: variable 'class' set but not used [-Wunused-but-set-variable] int type, class, ttl, dlen; /* fixed values in every record */ ^ util.c:1863:19: warning: variable 'ttl' set but not used [-Wunused-but-set-variable] int type, class, ttl, dlen; /* fixed values in every record */ ^ util.c:1939:9: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] ttl = ns_get32(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:496:19: note: expanded from macro 'ns_get32' #define ns_get32 res_9_ns_get32 ^ util.c:2025:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mapreverse(name, inaddr) ^ util.c:2098:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] anyrecord(name) ^ util.c:2149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] compare_name(a, b) ^ 40 warnings generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c misc.c misc.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalloc(buf, size) ^ misc.c:65:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dtoa(n) ^ misc.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] utoa(n) ^ misc.c:103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xtoa(n) ^ misc.c:122:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stoa(cp, size, escape) ^ misc.c:143:7: warning: implicit conversion changes signedness: 'u_char' (aka 'unsigned char') to 'char' [-Wsign-conversion] c = *cp++; ~ ^~~~~ misc.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] base_ntoa(cp, size) ^ misc.c:181:38: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] c2 = (((u_int) cp[0] & 0x03) << 4) + (((u_int) cp[1] >> 4) & 0x0f); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:182:38: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] c3 = (((u_int) cp[1] & 0x0f) << 2) + (((u_int) cp[2] >> 6) & 0x03); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:193:38: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] c2 = (((u_int) cp[0] & 0x03) << 4) + (((u_int) cp[1] >> 4) & 0x0f); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:194:32: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] c3 = (((u_int) cp[1] & 0x0f) << 2); ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~ misc.c:202:32: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] c2 = (((u_int) cp[0] & 0x03) << 4); ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~ misc.c:228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nsap_ntoa(cp, size) ^ misc.c:242:10: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] *p++ = hexdigit(c); ~ ^~~~~~~~~~~ ./host.h:174:39: note: expanded from macro 'hexdigit' #define hexdigit(c) (((c) < 10) ? '0' + (c) : 'A' + (c) - 10); ~~~~^~~~~ misc.c:242:10: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] *p++ = hexdigit(c); ~ ^~~~~~~~~~~ ./host.h:174:57: note: expanded from macro 'hexdigit' #define hexdigit(c) (((c) < 10) ? '0' + (c) : 'A' + (c) - 10); ~~~~~~~~~~^~~~ misc.c:244:10: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] *p++ = hexdigit(c); ~ ^~~~~~~~~~~ ./host.h:174:39: note: expanded from macro 'hexdigit' #define hexdigit(c) (((c) < 10) ? '0' + (c) : 'A' + (c) - 10); ~~~~^~~~~ misc.c:244:10: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] *p++ = hexdigit(c); ~ ^~~~~~~~~~~ ./host.h:174:57: note: expanded from macro 'hexdigit' #define hexdigit(c) (((c) < 10) ? '0' + (c) : 'A' + (c) - 10); ~~~~~~~~~~^~~~ misc.c:267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ipng_ntoa(cp) ^ misc.c:276:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] n = ns_get16(cp); ~ ^~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ misc.c:298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_date(value) ^ misc.c:327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_time(value, brief) ^ misc.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] pr_spherical(value, pos, neg) ^ misc.c:478:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_vertical(value, pos, neg) ^ misc.c:493:13: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] altitude = value; ~ ^~~~~ misc.c:508:11: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] meters = altitude; ~ ^~~~~~~~ misc.c:542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pr_precision(value) ^ misc.c:557:14: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] precision = mantissa * poweroften[exponent]; ^~~~~~~~ ~ misc.c:563:11: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] meters = precision; ~ ^~~~~~~~~ misc.c:595:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] convtime(string, defunits) ^ misc.c:617:12: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] units = defunits; ~ ^~~~~~~~ 30 warnings generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c test.c test.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] test(name, addr) ^ 1 warning generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c file.c file.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cachename(name, buf, prefix) ^ file.c:83:10: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] *q++ = lowercase((int) c); ~ ^~~~~~~~~~~~~~~~~~ ./host.h:173:37: note: expanded from macro 'lowercase' #define lowercase(c) (is_upper(c) ? tolower(c) : (c)) ^~~~~~~~~~ file.c:83:20: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] *q++ = lowercase((int) c); ~ ^~~~~~~ ./host.h:173:51: note: expanded from macro 'lowercase' #define lowercase(c) (is_upper(c) ? tolower(c) : (c)) ^ file.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cache_open(name, create) ^ file.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cache_close(create) ^ file.c:240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cache_write(buf, bufsize) ^ file.c:263:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] buflen -= n; ~~ ^ file.c:280:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] buflen -= n; ~~ ^ file.c:261:28: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] while (buflen > 0 && (n = write(cachefd, buffer, buflen)) > 0) { ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:278:28: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] while (buflen > 0 && (n = write(cachefd, buffer, buflen)) > 0) { ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:289:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] return (bufsize); ~~~~~~ ^~~~~~~ file.c:302:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] cache_read_anslen() ^ void file.c:316:8: warning: implicit conversion loses integer precision: 'u_int' (aka 'unsigned int') to 'u_short' (aka 'unsigned short') [-Wimplicit-int-conversion] len = ns_get16((u_char *) &len); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ file.c:341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cache_read(buf, bufsize) ^ file.c:361:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] buflen -= n; ~~ ^ file.c:359:28: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] while (buflen > 0 && (n = read(cachefd, buffer, buflen)) > 0) { ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:370:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] return (bufsize); ~~~~~~ ^~~~~~~ file.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cache_perror(message, filename) ^ 18 warnings generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c send.c send.c:472:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_res_socket(family, type, protocol) ^ send.c:491:24: warning: implicit conversion loses integer precision: 'int' to 'sa_family_t' (aka 'unsigned char') [-Wimplicit-int-conversion] res_sin.sin_family = family; ~ ^~~~~~ send.c:542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_res_close(sock) ^ send.c:574:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_res_blocking(sock, blocking) ^ send.c:618:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] timer(sig) ^ send.c:627:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_res_connect(sock, addr, addrlen) ^ send.c:666:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_res_write(sock, addr, host, buf, bufsize) ^ send.c:703:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] return (bufsize); ~~~~~~ ^~~~~~~ send.c:716:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_res_read_anslen(sock, addr, host) ^ send.c:733:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] buflen -= n; ~~ ^ send.c:742:8: warning: implicit conversion loses integer precision: 'u_int' (aka 'unsigned int') to 'u_short' (aka 'unsigned short') [-Wimplicit-int-conversion] len = ns_get16((u_char *) &len); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/nameser.h:495:19: note: expanded from macro 'ns_get16' #define ns_get16 res_9_ns_get16 ^ send.c:758:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_res_read_stream(sock, addr, host, buf, bufsize) ^ send.c:781:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] buflen -= n; ~~ ^ send.c:788:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] return (bufsize); ~~~~~~ ^~~~~~~ send.c:806:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] recv_sock(sock, buffer, buflen) ^ send.c:836:6: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] n = recvfrom(sock, buffer, (sock_buflen_t) buflen, 0, from_sa, &fromlen); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ send.c:903:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host_res_perror(addr, host, message) ^ 17 warnings generated. clang -pipe -Os -W -Wall -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wcast-qual -Wpointer-arith -Wshadow -Wstrict-prototypes -Waggregate-return -Wcast-align -Wchar-subscripts -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wformat-extra-args -Wundef -Wbad-function-cast -DBIND_8_COMPAT -DDEBUG -c vers.c sed -e 's,@CONFDIR@,,g' < /Users/pbulk/build/net/host/work/host-20070128/nscheck.sh > nscheck chmod +x nscheck sed -e 's,@CONFDIR@,,g' < /Users/pbulk/build/net/host/work/host-20070128/mxlookup.sh > mxlookup chmod +x mxlookup sed -e 's,@CONFDIR@,,g' < /Users/pbulk/build/net/host/work/host-20070128/rblookup.sh > rblookup chmod +x rblookup clang -L/opt/pkg/lib -static -o host main.o info.o list.o addr.o geth.o util.o misc.o test.o file.o send.o vers.o Undefined symbols for architecture arm64: "_res_9_dn_expand", referenced from: _expand_name in util.o "_res_9_fp_nquery", referenced from: _get_zone in list.o _get_zone in list.o "_res_9_init", referenced from: _main in main.o "_res_9_mkquery", referenced from: _get_info in info.o _get_zone in list.o "_res_9_ns_get16", referenced from: _skip_qrec in info.o _skip_qrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o ... "_res_9_ns_get32", referenced from: _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o _print_rrec in info.o ... "_res_9_ns_put16", referenced from: _cache_write in file.o _host_res_write in send.o "_res_9_send", referenced from: _get_info in info.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [host] Error code 1 bmake: stopped making "all" in /Users/pbulk/build/net/host/work/host-20070128 bmake: 1 error bmake: stopped making "all" in /Users/pbulk/build/net/host/work/host-20070128 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/host *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/host