=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/host", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for host-20070128nb1 @(#)PROGRAM:ld PROJECT:ld-1167.5 BUILD 01:45:05 Apr 30 2025 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 i386 armv6m armv7k armv7m armv7em LTO support using: LLVM version 17.0.0 (static support for 29, runtime is 29) TAPI support using: Apple TAPI version 17.0.0 (tapi-1700.0.3.5) --- main.o --- --- info.o --- --- main.o --- 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 --- info.o --- 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 C23 [-Wdeprecated-non-prototype] 55 | get_hostinfo(name, qualified) | ^ --- main.o --- main.c:323:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | main(argc, argv) | ^ main.c:354:18: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] 354 | _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] 357 | _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] 358 | _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] --- info.o --- info.c:212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- main.o --- 581 | new_res.options &= ~RES_RECURSE; | ~~ ^~~~~~~~~~~~ --- info.o --- 212 | 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 C23 [-Wdeprecated-non-prototype] 286 | 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 C23 [-Wdeprecated-non-prototype] --- main.o --- main.c:805:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- info.o --- 408 | print_info(answerbuf, answerlen, name, type, class, regular) | ^ --- main.o --- 805 | set_defaults(option, argc, argv) | ^ main.c:836:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 836 | optargv = newlist(optargv, optargc+2, char *); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ./host.h:189:65: note: expanded from macro 'newlist' 189 | #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] 845 | optargv = newlist(optargv, optargc+2, char *); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ./host.h:189:65: note: expanded from macro 'newlist' 189 | #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 C23 [-Wdeprecated-non-prototype] 866 | getval(optstring, optname, minvalue, maxvalue) | ^ --- info.o --- info.c:625:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 625 | print_rrec(name, qtype, qclass, bp, cp, msg, eom, regular) | ^ --- main.o --- main.c:900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 900 | cvtopt(optstring) | ^ --- info.o --- info.c:660:9: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 660 | type = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 663 | class = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 669 | dlen = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 792 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #define ns_get16 res_9_ns_get16 | ^ --- main.o --- main.c:1138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1138 | 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 C23 [-Wdeprecated-non-prototype] 1169 | 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 C23 [-Wdeprecated-non-prototype] 1222 | 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 C23 [-Wdeprecated-non-prototype] 1268 | execute_name(name) | ^ --- info.o --- info.c:990:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 990 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1003 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #define ns_get16 res_9_ns_get16 | ^ --- main.o --- main.c:1422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1422 | execute(name, addr) | ^ --- info.o --- info.c:1052:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 1052 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #define ns_get16 res_9_ns_get16 | ^ --- main.o --- main.c:1530:19: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] 1530 | _res.options &= ~RES_RECURSE; | ~~ ^~~~~~~~~~~~ --- info.o --- info.c:1133:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 1133 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #define ns_get16 res_9_ns_get16 | ^ --- main.o --- main.c:1564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1564 | host_query(name, addr) | ^ --- info.o --- info.c:1170:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 1170 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1200 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #define ns_get16 res_9_ns_get16 --- main.o --- main.c:1647:11: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] --- info.o --- | ^ --- main.o --- 1647 | myhostname() | ^ | void --- info.o --- info.c:1256:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 1256 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1262 | n = ns_get16(cp); --- main.o --- main.c:1697:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- info.o --- | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' --- main.o --- 1697 | set_server(name) | ^ --- info.o --- 571 | #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] --- main.o --- main.c:1728:36: warning: cast from 'char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] --- info.o --- 1268 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] --- main.o --- 1728 | nslist(_res.nscount).sin_addr = incopy(hp->h_addr_list[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ --- info.o --- 1281 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ --- main.o --- ./host.h:186:21: note: expanded from macro 'incopy' --- info.o --- /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #define ns_get16 res_9_ns_get16 | ^ --- main.o --- 186 | #define incopy(a) *((const struct in_addr *) (a)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- info.o --- info.c:1287:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 1287 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1318 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1331 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] --- main.o --- main.c:1775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- info.o --- 1337 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' --- main.o --- 1775 | set_logfile(filename) | ^ --- info.o --- 571 | #define ns_get16 res_9_ns_get16 | ^ --- main.o --- main.c:1811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1811 | set_cachedir(filename) | ^ --- info.o --- info.c:666:8: warning: implicit conversion loses integer precision: 'u_long' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 666 | ttl = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 841 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 846 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 851 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 856 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 861 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 964 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 1098 | c = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 1101 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 1105 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 1109 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 1155 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 1160 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 1165 | n = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #define ns_get32 res_9_ns_get32 | ^ info.c:1184:12: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 1184 | n = eor - cp; | ~ ~~~~^~~~ info.c:1218:12: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 1218 | n = eor - cp; | ~ ~~~~^~~~ info.c:1350:12: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 1350 | 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 C23 [-Wdeprecated-non-prototype] 1677 | dump_rrec(cp, size, comment) | ^ info.c:1691:32: warning: operand of ? changes signedness: 'u_char' (aka 'unsigned char') to 'char' [-Wsign-conversion] 1691 | ascbuf[i] = is_print(*cp) ? *cp : '.'; | ~ ^~~ info.c:1693:22: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 1693 | hexbuf[(i * 3)] = hexdigit(c); | ~ ^~~~~~~~~~~ ./host.h:175:39: note: expanded from macro 'hexdigit' 175 | #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] 1693 | hexbuf[(i * 3)] = hexdigit(c); | ~ ^~~~~~~~~~~ ./host.h:175:57: note: expanded from macro 'hexdigit' 175 | #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] 1695 | hexbuf[(i * 3) + 1] = hexdigit(c); | ~ ^~~~~~~~~~~ ./host.h:175:39: note: expanded from macro 'hexdigit' 175 | #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] 1695 | hexbuf[(i * 3) + 1] = hexdigit(c); | ~ ^~~~~~~~~~~ ./host.h:175:57: note: expanded from macro 'hexdigit' 175 | #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 C23 [-Wdeprecated-non-prototype] 1725 | 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] 1747 | type = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1750 | class = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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 C23 [-Wdeprecated-non-prototype] 1789 | get_recursive(name) | ^ --- main.o --- 22 warnings generated. --- list.o --- 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 --- info.o --- 50 warnings generated. --- addr.o --- 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 --- list.o --- list.c:172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | 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 C23 [-Wdeprecated-non-prototype] 635 | 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 C23 [-Wdeprecated-non-prototype] 685 | 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] 736 | ipaddr[0][i] = incopy(hp->h_addr_list[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:186:21: note: expanded from macro 'incopy' 186 | #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] 771 | ipaddr[n][i] = incopy(hp->h_addr_list[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:186:21: note: expanded from macro 'incopy' 186 | #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 C23 [-Wdeprecated-non-prototype] 832 | get_servers(name) | ^ list.c:868:19: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] 868 | _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 C23 [-Wdeprecated-non-prototype] 956 | 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] 1016 | type = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1019 | class = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1025 | dlen = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1022 | ttl = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 1120 | 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 C23 [-Wdeprecated-non-prototype] 1200 | 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 C23 [-Wdeprecated-non-prototype] 1239 | do_check(name) | ^ list.c:1270:18: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] 1270 | _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 C23 [-Wdeprecated-non-prototype] 1333 | do_soa(name, inaddr, host) | ^ list.c:1349:18: warning: implicit conversion changes signedness: 'int' to 'u_long' (aka 'unsigned long') [-Wsign-conversion] 1349 | _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 C23 [-Wdeprecated-non-prototype] 1419 | 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 C23 [-Wdeprecated-non-prototype] 1531 | 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 C23 [-Wdeprecated-non-prototype] 1618 | 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] 1808 | 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] 1816 | bp = (HEADER *) answer; | ^~~~~~~~~~~~~~~~~ list.c:1888:21: warning: cast from 'char *' to 'querybuf_t *' increases required alignment from 1 to 4 [-Wcast-align] 1888 | (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 C23 [-Wdeprecated-non-prototype] 2002 | update_zone(name) | ^ list.c:2030:42: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 2030 | zonename = newlist(zonename, zonecount+1, char *); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ./host.h:189:65: note: expanded from macro 'newlist' 189 | #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] 2054 | hostlist = newlist(hostlist, maxhosts, host_data_t); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ./host.h:189:65: note: expanded from macro 'newlist' 189 | #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 C23 [-Wdeprecated-non-prototype] 2081 | 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 C23 [-Wdeprecated-non-prototype] 2108 | 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 C23 [-Wdeprecated-non-prototype] 2146 | 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 C23 [-Wdeprecated-non-prototype] 2190 | 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 C23 [-Wdeprecated-non-prototype] 2230 | 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 C23 [-Wdeprecated-non-prototype] 2309 | 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] 2362 | type = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 2365 | class = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 2371 | dlen = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 2368 | ttl = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 2395 | soa.serial = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 2397 | soa.refresh = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 2399 | soa.retry = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 2401 | soa.expire = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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] 2403 | soa.nxdomttl = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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 C23 [-Wdeprecated-non-prototype] 2445 | 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 C23 [-Wdeprecated-non-prototype] 2483 | check_soa(answerbuf, name, host) | ^ list.c:2557:31: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 2557 | if (bitset(0x80000000U, soa.serial)) { | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ./host.h:177:31: note: expanded from macro 'bitset' 177 | #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 C23 [-Wdeprecated-non-prototype] 2650 | check_dupl(addr) | ^ list.c:2662:50: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 2662 | s->addrlist = newlist(s->addrlist, s->addrcount + 1, ipaddr_t); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ./host.h:189:65: note: expanded from macro 'newlist' 189 | #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 C23 [-Wdeprecated-non-prototype] 2694 | check_ttl(name, type, class, ttl) | ^ list.c:2708:15: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 2708 | 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] 2765 | 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 C23 [-Wdeprecated-non-prototype] 2812 | host_index(name, enter) | ^ list.c:2868:14: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 2868 | 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 C23 [-Wdeprecated-non-prototype] 2913 | zone_index(name, enter) | ^ list.c:2969:14: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 2969 | 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 C23 [-Wdeprecated-non-prototype] 3014 | check_canon(name) | ^ --- addr.o --- addr.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | 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] 103 | hnamebuf, inet_ntoa(incopy(hp->h_addr_list[i]))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:186:21: note: expanded from macro 'incopy' 186 | #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] 116 | inaddr[i] = incopy(hp->h_addr_list[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:186:21: note: expanded from macro 'incopy' 186 | #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 C23 [-Wdeprecated-non-prototype] 158 | 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 C23 [-Wdeprecated-non-prototype] 252 | 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 C23 [-Wdeprecated-non-prototype] 375 | 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] 431 | inaddr = incopy(hp->h_addr_list[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./host.h:186:21: note: expanded from macro 'incopy' 186 | #define incopy(a) *((const struct in_addr *) (a)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 warnings generated. --- geth.o --- 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 --- list.o --- 55 warnings generated. --- util.o --- 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 --- geth.o --- geth.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | 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 C23 [-Wdeprecated-non-prototype] 89 | 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] 101 | inet_ntoa(incopy(addr))); | ^~~~~~~~~~~~ ./host.h:186:21: note: expanded from macro 'incopy' 186 | #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] 125 | fprintf(stderr, "%s: gethostbyaddr(%s): %s\n", argv0, inet_ntoa(incopy(addr)), hstrerror(h_errno)); | ^~~~~~~~~~~~ ./host.h:186:21: note: expanded from macro 'incopy' 186 | #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 C23 [-Wdeprecated-non-prototype] 137 | geth_freehostent(hp) | ^ 5 warnings generated. --- misc.o --- 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 --- util.o --- util.c:42:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | 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 C23 [-Wdeprecated-non-prototype] 137 | 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 C23 [-Wdeprecated-non-prototype] 172 | 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 C23 [-Wdeprecated-non-prototype] 224 | 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 C23 [-Wdeprecated-non-prototype] 270 | 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] 282 | printf(" %s", inet_ntoa(incopy(*ap))); | ^~~~~~~~~~~ ./host.h:186:21: note: expanded from macro 'incopy' 186 | #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] 307 | 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 C23 [-Wdeprecated-non-prototype] 501 | 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 C23 [-Wdeprecated-non-prototype] 553 | 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 C23 [-Wdeprecated-non-prototype] 573 | 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 C23 [-Wdeprecated-non-prototype] 620 | 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 C23 [-Wdeprecated-non-prototype] 912 | 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 C23 [-Wdeprecated-non-prototype] 942 | 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 C23 [-Wdeprecated-non-prototype] 1180 | 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 C23 [-Wdeprecated-non-prototype] 1221 | 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 C23 [-Wdeprecated-non-prototype] 1245 | 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 C23 [-Wdeprecated-non-prototype] 1281 | 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 C23 [-Wdeprecated-non-prototype] 1327 | 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 C23 [-Wdeprecated-non-prototype] 1385 | 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 C23 [-Wdeprecated-non-prototype] 1417 | 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 C23 [-Wdeprecated-non-prototype] 1459 | pr_dotname(name) | ^ util.c:1465:6: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1465 | n = strlength(name); | ~ ^~~~~~~~~~~~~~~ ./host.h:195:22: note: expanded from macro 'strlength' 195 | #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 C23 [-Wdeprecated-non-prototype] 1491 | 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 C23 [-Wdeprecated-non-prototype] 1539 | 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 C23 [-Wdeprecated-non-prototype] 1631 | 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 C23 [-Wdeprecated-non-prototype] 1663 | 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 C23 [-Wdeprecated-non-prototype] 1706 | 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 C23 [-Wdeprecated-non-prototype] 1763 | 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 C23 [-Wdeprecated-non-prototype] 1847 | canonical(name) | ^ util.c:1933:10: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 1933 | type = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1936 | class = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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] 1942 | dlen = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #define ns_get16 res_9_ns_get16 | ^ util.c:1858:24: warning: variable 'nscount' set but not used [-Wunused-but-set-variable] 1858 | int qdcount, ancount, nscount, arcount; | ^ util.c:1858:33: warning: variable 'arcount' set but not used [-Wunused-but-set-variable] 1858 | int qdcount, ancount, nscount, arcount; | ^ util.c:1863:12: warning: variable 'class' set but not used [-Wunused-but-set-variable] 1863 | 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] 1863 | 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] 1939 | ttl = ns_get32(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:572:19: note: expanded from macro 'ns_get32' 572 | #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 C23 [-Wdeprecated-non-prototype] 2025 | 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 C23 [-Wdeprecated-non-prototype] 2098 | 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 C23 [-Wdeprecated-non-prototype] 2149 | compare_name(a, b) | ^ --- misc.o --- misc.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | 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 C23 [-Wdeprecated-non-prototype] 65 | 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 C23 [-Wdeprecated-non-prototype] 84 | 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 C23 [-Wdeprecated-non-prototype] 103 | 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 C23 [-Wdeprecated-non-prototype] 122 | stoa(cp, size, escape) | ^ misc.c:143:7: warning: implicit conversion changes signedness: 'u_char' (aka 'unsigned char') to 'char' [-Wsign-conversion] 143 | 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 C23 [-Wdeprecated-non-prototype] 168 | base_ntoa(cp, size) | ^ misc.c:181:38: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 181 | 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] 182 | 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] 193 | 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] 194 | 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] 202 | 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 C23 [-Wdeprecated-non-prototype] 228 | nsap_ntoa(cp, size) | ^ misc.c:242:10: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 242 | *p++ = hexdigit(c); | ~ ^~~~~~~~~~~ ./host.h:175:39: note: expanded from macro 'hexdigit' 175 | #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] 242 | *p++ = hexdigit(c); | ~ ^~~~~~~~~~~ ./host.h:175:57: note: expanded from macro 'hexdigit' 175 | #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] 244 | *p++ = hexdigit(c); | ~ ^~~~~~~~~~~ ./host.h:175:39: note: expanded from macro 'hexdigit' 175 | #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] 244 | *p++ = hexdigit(c); | ~ ^~~~~~~~~~~ ./host.h:175:57: note: expanded from macro 'hexdigit' 175 | #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 C23 [-Wdeprecated-non-prototype] 267 | ipng_ntoa(cp) | ^ misc.c:276:7: warning: implicit conversion changes signedness: 'u_int' (aka 'unsigned int') to 'int' [-Wsign-conversion] 276 | n = ns_get16(cp); | ~ ^~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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 C23 [-Wdeprecated-non-prototype] 298 | 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 C23 [-Wdeprecated-non-prototype] 327 | 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 C23 [-Wdeprecated-non-prototype] 405 | 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 C23 [-Wdeprecated-non-prototype] 478 | pr_vertical(value, pos, neg) | ^ misc.c:493:13: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 493 | altitude = value; | ~ ^~~~~ misc.c:508:11: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] 508 | 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 C23 [-Wdeprecated-non-prototype] 542 | pr_precision(value) | ^ misc.c:557:14: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 557 | precision = mantissa * poweroften[exponent]; | ^~~~~~~~ ~ misc.c:563:11: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] 563 | 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 C23 [-Wdeprecated-non-prototype] 595 | convtime(string, defunits) | ^ misc.c:617:12: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 617 | units = defunits; | ~ ^~~~~~~~ 30 warnings generated. --- test.o --- --- util.o --- 40 warnings generated. --- test.o --- 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 --- file.o --- 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 C23 [-Wdeprecated-non-prototype] 55 | cachename(name, buf, prefix) | ^ --- test.o --- test.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | test(name, addr) | ^ --- file.o --- file.c:83:10: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 83 | *q++ = lowercase((int) c); | ~ ^~~~~~~~~~~~~~~~~~ ./host.h:174:37: note: expanded from macro 'lowercase' 174 | #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] 83 | *q++ = lowercase((int) c); | ~ ^~~~~~~ ./host.h:174:51: note: expanded from macro 'lowercase' 174 | #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 C23 [-Wdeprecated-non-prototype] 106 | 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 C23 [-Wdeprecated-non-prototype] 188 | 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 C23 [-Wdeprecated-non-prototype] 240 | cache_write(buf, bufsize) | ^ file.c:263:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 263 | buflen -= n; | ~~ ^ file.c:280:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 280 | buflen -= n; | ~~ ^ file.c:261:28: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 261 | 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] 278 | 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] 289 | return (bufsize); | ~~~~~~ ^~~~~~~ file.c:302:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 302 | 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] 316 | len = ns_get16((u_char *) &len); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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 C23 [-Wdeprecated-non-prototype] 341 | cache_read(buf, bufsize) | ^ file.c:361:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 361 | buflen -= n; | ~~ ^ file.c:359:28: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 359 | 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] 370 | return (bufsize); | ~~~~~~ ^~~~~~~ --- test.o --- 1 warning generated. --- file.o --- file.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | cache_perror(message, filename) | ^ --- send.o --- 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 --- file.o --- 18 warnings generated. --- vers.o --- 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 --- send.o --- send.c:472:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | 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] 491 | 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 C23 [-Wdeprecated-non-prototype] 542 | 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 C23 [-Wdeprecated-non-prototype] 574 | 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 C23 [-Wdeprecated-non-prototype] 618 | 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 C23 [-Wdeprecated-non-prototype] 627 | 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 C23 [-Wdeprecated-non-prototype] 666 | 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] 703 | 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 C23 [-Wdeprecated-non-prototype] 716 | 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] 733 | 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] 742 | len = ns_get16((u_char *) &len); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/nameser.h:571:19: note: expanded from macro 'ns_get16' 571 | #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 C23 [-Wdeprecated-non-prototype] 758 | 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] 781 | buflen -= n; | ~~ ^ send.c:788:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 788 | 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 C23 [-Wdeprecated-non-prototype] 806 | 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] 836 | 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 C23 [-Wdeprecated-non-prototype] 903 | host_res_perror(addr, host, message) | ^ --- nscheck --- --- send.o --- 17 warnings generated. --- nscheck --- sed -e 's,@CONFDIR@,,g' < /var/tmp/work/net/host/work/host-20070128/nscheck.sh > nscheck --- mxlookup --- --- nscheck --- chmod +x nscheck --- mxlookup --- sed -e 's,@CONFDIR@,,g' < /var/tmp/work/net/host/work/host-20070128/mxlookup.sh > mxlookup --- rblookup --- --- mxlookup --- chmod +x mxlookup --- rblookup --- sed -e 's,@CONFDIR@,,g' < /var/tmp/work/net/host/work/host-20070128/rblookup.sh > rblookup --- host --- --- rblookup --- chmod +x rblookup --- host --- 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_state", referenced from: _main in main.o _main in main.o _main in main.o _main in main.o _main in main.o _main in main.o _main in main.o _main in main.o _main in main.o _main in main.o _main in main.o _main in main.o ... "_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 /var/tmp/work/net/host/work/host-20070128 bmake: 1 error bmake: stopped making "all" in /var/tmp/work/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