=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/traceroute-as", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for traceroute-as-991603nb1 --- aslookup.o --- --- vers.o --- --- aslookup.o --- clang -pipe -Os -c aslookup.c --- vers.o --- clang -pipe -Os -c vers.c --- aslookup --- clang -pipe -Os -DSTANDALONE -c aslookup.c -o aslookup-std.o --- aslookup.o --- aslookup.c:170:22: warning: passing arguments to 'as_connect' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | status = as_connect(server, port); | ^ aslookup.c:180:52: warning: passing arguments to 'as_netof' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | (void) sprintf(buf, "%.80s %s", options, as_netof(inaddr)); | ^ aslookup.c:182:55: warning: passing arguments to 'as_netof' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | (void) sprintf(buf, "-k %.80s %s", options, as_netof(inaddr)); | ^ aslookup.c:188:8: warning: passing arguments to 'as_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | as_put(buf); | ^ aslookup.c:193:20: warning: passing arguments to 'as_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | while ((p = as_get(buf, sizeof(buf))) != NULL) | ^ aslookup.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 | as_lookup(inaddr, server, port, keepopen) | ^ In file included from aslookup.c:61: ./defs.h:75:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 75 | char *as_lookup PROTO((struct in_addr, char *, int, bool)); | ^ aslookup.c:275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | timer(sig) | ^ aslookup.c:283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | as_connect(server, port) | ^ In file included from aslookup.c:61: ./defs.h:76:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 76 | int as_connect PROTO((char *, int)); | ^ aslookup.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | as_put(buf) | ^ In file included from aslookup.c:61: ./defs.h:78:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 78 | void as_put PROTO((char *)); | ^ aslookup.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | as_get(buf, size) | ^ In file included from aslookup.c:61: ./defs.h:79:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 79 | char *as_get PROTO((char *, int)); | ^ aslookup.c:570:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | as_netof(inaddr) | ^ In file included from aslookup.c:61: ./defs.h:80:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 80 | char *as_netof PROTO((struct in_addr)); | ^ 16 warnings generated. --- traceroute.o --- clang -pipe -Os -c traceroute.c --- aslookup --- aslookup.c:170:22: warning: passing arguments to 'as_connect' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | status = as_connect(server, port); | ^ aslookup.c:180:52: warning: passing arguments to 'as_netof' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | (void) sprintf(buf, "%.80s %s", options, as_netof(inaddr)); | ^ aslookup.c:182:55: warning: passing arguments to 'as_netof' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | (void) sprintf(buf, "-k %.80s %s", options, as_netof(inaddr)); | ^ aslookup.c:188:8: warning: passing arguments to 'as_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | as_put(buf); | ^ aslookup.c:193:20: warning: passing arguments to 'as_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | while ((p = as_get(buf, sizeof(buf))) != NULL) | ^ aslookup.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 | as_lookup(inaddr, server, port, keepopen) | ^ In file included from aslookup.c:61: ./defs.h:75:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 75 | char *as_lookup PROTO((struct in_addr, char *, int, bool)); | ^ aslookup.c:275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | timer(sig) | ^ aslookup.c:283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | as_connect(server, port) | ^ In file included from aslookup.c:61: ./defs.h:76:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 76 | int as_connect PROTO((char *, int)); | ^ aslookup.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | as_put(buf) | ^ In file included from aslookup.c:61: ./defs.h:78:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 78 | void as_put PROTO((char *)); | ^ aslookup.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | as_get(buf, size) | ^ In file included from aslookup.c:61: ./defs.h:79:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 79 | char *as_get PROTO((char *, int)); | ^ aslookup.c:570:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | as_netof(inaddr) | ^ In file included from aslookup.c:61: ./defs.h:80:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 80 | char *as_netof PROTO((struct in_addr)); | ^ aslookup.c:658:10: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 658 | fatal("Missing server name"); | ^ aslookup.c:671:10: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | fatal("Missing port number"); | ^ aslookup.c:674:10: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 674 | fatal("Invalid port number %s", argv[2]); | ^ aslookup.c:676:41: warning: passing arguments to 'itoa' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 676 | fatal("Maximum port number %s", itoa(MAXINT16)); | ^ aslookup.c:676:10: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 676 | fatal("Maximum port number %s", itoa(MAXINT16)); | ^ aslookup.c:686:9: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 686 | fatal(Usage, program); | ^ aslookup.c:697:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 697 | fatal(Usage, program); | ^ aslookup.c:703:18: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 703 | result = lookup(argv[i], server, port, keepopen); | ^ aslookup.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 | main(argc, argv) | ^ aslookup.c:603:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 603 | int main PROTO((int, char **)); | ^ aslookup.c:750:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 750 | error("Unknown host: %s", host); | ^ aslookup.c:725:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 725 | lookup(host, server, port, keepopen) | ^ aslookup.c:604:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 604 | int lookup PROTO((char *, char *, int, bool)); | ^ aslookup.c:815:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | fatal(fmt, a, b, c, d) | ^ aslookup.c:605:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 605 | void fatal PROTO((char *, ...)); | ^ aslookup.c:834:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 834 | error(fmt, a, b, c, d) | ^ aslookup.c:606:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 606 | void error PROTO((char *, ...)); | ^ aslookup.c:851:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 851 | itoa(n) | ^ aslookup.c:609:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 609 | char *itoa PROTO((int)); | ^ 35 warnings generated. clang -pipe -Os -DSTANDALONE -c vers.c -o vers-std.o clang -pipe -Os -o aslookup aslookup-std.o vers-std.o --- traceroute.o --- traceroute.c:561:15: warning: passing arguments to 'set_defaults' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 561 | set_defaults(option, argc, argv); | ^ traceroute.c:587:21: warning: passing arguments to 'getval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | stopsecs = getval(argv[2], "stoptime value", 0, MAXSECS); | ^ traceroute.c:604:10: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 604 | fatal("Missing gateway name"); | ^ traceroute.c:606:38: warning: passing arguments to 'itoa' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | fatal("Maximum %s gateways", itoa(MAXLSRR)); | ^ traceroute.c:606:10: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | fatal("Maximum %s gateways", itoa(MAXLSRR)); | ^ traceroute.c:607:31: warning: passing arguments to 'getgate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 607 | lsrraddr[nlsrr++] = getgate(argv[2]); | ^ traceroute.c:614:10: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | fatal("Missing whois server"); | ^ traceroute.c:621:20: warning: passing arguments to 'getval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 621 | min_ttl = getval(argv[2], "initial ttl", 1, max_ttl); | ^ traceroute.c:637:20: warning: passing arguments to 'getval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 637 | max_ttl = getval(argv[2], "maxhops value", min_ttl, MAXINT8); | ^ traceroute.c:653:17: warning: passing arguments to 'getval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 653 | port = getval(argv[2], "port number", 1, MAXINT16); | ^ traceroute.c:659:20: warning: passing arguments to 'getval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 659 | maxquit = getval(argv[2], "maxquit value", 1, MAXINT16); | ^ traceroute.c:665:20: warning: passing arguments to 'getval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | nprobes = getval(argv[2], "nqueries value", 1, MAXINT16); | ^ traceroute.c:683:10: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 683 | fatal("Missing source address"); | ^ traceroute.c:690:16: warning: passing arguments to 'getval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 690 | tos = getval(argv[2], "tos value", 0, MAXINT8); | ^ traceroute.c:701:21: warning: passing arguments to 'getval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | waitsecs = getval(argv[2], "waittime value", 1, MAXSECS); | ^ traceroute.c:710:9: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | fatal(Usage, program); | ^ traceroute.c:721:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 721 | fatal(Usage, program); | ^ traceroute.c:732:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | error("Unknown host %s", hostname); | ^ traceroute.c:750:24: warning: passing arguments to 'maphostbyaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 750 | (void) maphostbyaddr(inaddr); | ^ traceroute.c:755:42: warning: passing arguments to 'inetname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 755 | hostname = strcpy(hostnamebuf, inetname(inaddr)); | ^ traceroute.c:765:19: warning: passing arguments to 'getval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 765 | datalen = getval(argv[2], "packet size", PROBELEN, MAXDATA); | ^ traceroute.c:769:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 769 | fatal(Usage, program); | ^ traceroute.c:779:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 779 | fatal("Destination port value overflow"); | ^ traceroute.c:801:9: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 801 | fatal("Illegal source address %s", source); | ^ traceroute.c:822:11: warning: passing arguments to 'ping' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 822 | if (ping(hostaddr[i])) | ^ traceroute.c:523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | main(argc, argv) | ^ In file included from traceroute.c:476: ./defs.h:13:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | int main PROTO((int, char **)); | ^ traceroute.c:859:12: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 859 | optargv = newlist(NULL, 2, char *); | ^ traceroute.c:482:35: note: expanded from macro 'newlist' 482 | #define newlist(a,n,t) (t *)xalloc((ptr_t *)(a), (siz_t)((n)*sizeof(t))) | ^ traceroute.c:866:11: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 866 | for (q = newstr(option), p = q; *p != '\0'; p = q) | ^ traceroute.c:485:26: note: expanded from macro 'newstr' 485 | #define newstr(s) strcpy(newstring(s), s) | ^ traceroute.c:484:36: note: expanded from macro 'newstring' 484 | #define newstring(s) (char *)xalloc((ptr_t *)NULL, (siz_t)(strlen(s)+1)) | ^ traceroute.c:866:11: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] traceroute.c:485:26: note: expanded from macro 'newstr' 485 | #define newstr(s) strcpy(newstring(s), s) | ^ traceroute.c:484:36: note: expanded from macro 'newstring' 484 | #define newstring(s) (char *)xalloc((ptr_t *)NULL, (siz_t)(strlen(s)+1)) | ^ traceroute.c:880:13: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 880 | optargv = newlist(optargv, optargc+2, char *); | ^ traceroute.c:482:35: note: expanded from macro 'newlist' 482 | #define newlist(a,n,t) (t *)xalloc((ptr_t *)(a), (siz_t)((n)*sizeof(t))) | ^ traceroute.c:890:13: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 890 | optargv = newlist(optargv, optargc+2, char *); | ^ traceroute.c:482:35: note: expanded from macro 'newlist' 482 | #define newlist(a,n,t) (t *)xalloc((ptr_t *)(a), (siz_t)((n)*sizeof(t))) | ^ traceroute.c:848:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 848 | set_defaults(option, argc, argv) | ^ In file included from traceroute.c:476: ./defs.h:14:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | void set_defaults PROTO((char *, int, char **)); | ^ traceroute.c:918:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 918 | fatal("Missing %s", optname); | ^ traceroute.c:923:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 923 | fatal("Invalid %s %s", optname, optstring); | ^ traceroute.c:926:39: warning: passing arguments to 'itoa' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 926 | fatal("Minimum %s %s", optname, itoa(minvalue)); | ^ traceroute.c:926:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 926 | fatal("Minimum %s %s", optname, itoa(minvalue)); | ^ traceroute.c:929:39: warning: passing arguments to 'itoa' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 929 | fatal("Maximum %s %s", optname, itoa(maxvalue)); | ^ traceroute.c:929:8: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 929 | fatal("Maximum %s %s", optname, itoa(maxvalue)); | ^ traceroute.c:909:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 909 | getval(optstring, optname, minvalue, maxvalue) | ^ In file included from traceroute.c:476: ./defs.h:15:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | int getval PROTO((char *, char *, int, int)); | ^ traceroute.c:943:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 943 | fatal(fmt, a, b, c, d) | ^ In file included from traceroute.c:476: ./defs.h:16:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | void fatal PROTO((char *, ...)); | ^ traceroute.c:962:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 962 | error(fmt, a, b, c, d) | ^ In file included from traceroute.c:476: ./defs.h:17:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | void error PROTO((char *, ...)); | ^ traceroute.c:1149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1149 | set_options(addrlist, naddr) | ^ In file included from traceroute.c:476: ./defs.h:21:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | void set_options PROTO((ipaddr_t *, int)); | ^ traceroute.c:1242:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1242 | interrupt(sig) | ^ traceroute.c:1271:25: warning: passing arguments to 'trace_route' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1271 | got_there = trace_route(addr); | ^ traceroute.c:1256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1256 | ping(addr) | ^ In file included from traceroute.c:476: ./defs.h:26:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 26 | bool ping PROTO((ipaddr_t)); | ^ traceroute.c:1367:19: warning: passing arguments to 'send_probe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1367 | cc = send_probe(sendsock, ++seq, ttl, packetlen-optlen); | ^ traceroute.c:1369:21: warning: passing arguments to 'select_mtu' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1369 | mtu = select_mtu(packetlen); | ^ traceroute.c:1378:20: warning: passing arguments to 'recv_reply' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1378 | cc = recv_reply(recvsock, &waittime); | ^ traceroute.c:1392:26: warning: passing arguments to 'check_reply' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1392 | icmpcode = check_reply(ipacket, cc, seq); | ^ traceroute.c:1395:17: warning: passing arguments to 'tvsub' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1395 | (void) tvsub(&recvtime, &nexttime); | ^ traceroute.c:1396:17: warning: passing arguments to 'tvsub' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1396 | (void) tvsub(&waittime, &recvtime); | ^ traceroute.c:1406:15: warning: passing arguments to 'print_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1406 | print_from(ipacket, cc, from->sin_addr); | ^ traceroute.c:1413:15: warning: passing arguments to 'tvsub' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1413 | rtt = tvsub(&recvtime, &sendtime); | ^ traceroute.c:1415:16: warning: passing arguments to 'record_stats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1415 | record_stats(rtt); | ^ traceroute.c:1418:42: warning: passing arguments to 'tvprint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1418 | printf("%s %s ms", separator, tvprint(rtt)); | ^ traceroute.c:1424:19: warning: passing arguments to 'regular_ttl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1424 | if (regular_ttl((int)ip->ip_ttl + (ttl - 1))) | ^ traceroute.c:1442:20: warning: passing arguments to 'gatewayaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1442 | if (gatewayaddr(from->sin_addr)) | ^ traceroute.c:1522:22: warning: passing arguments to 'select_mtu' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1522 | mtu = select_mtu(packetlen); | ^ traceroute.c:1544:15: warning: passing arguments to 'print_stats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1544 | print_stats(probe); | ^ traceroute.c:1288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1288 | trace_route(addr) | ^ In file included from traceroute.c:476: ./defs.h:27:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 27 | bool trace_route PROTO((ipaddr_t)); | ^ traceroute.c:1740:52: warning: too few arguments in call to 'error' 1740 | error("sendto: truncated packet to %s", hostname); | ~~~~~ ^ traceroute.c:1594:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1594 | send_probe(sock, seq, ttl, iplen) | ^ In file included from traceroute.c:476: ./defs.h:28:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 28 | int send_probe PROTO((int, int, int, int)); | ^ traceroute.c:1795:59: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 1795 | n = recvfrom(sock, (char *)ipacket, len, 0, fromaddr_sa, &fromlen); | ^~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:720:27: note: passing argument to parameter here 720 | socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom); | ^ traceroute.c:1764:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1764 | recv_reply(sock, wait) | ^ In file included from traceroute.c:476: ./defs.h:29:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 29 | int recv_reply PROTO((int, struct timeval *)); | ^ traceroute.c:1847:16: warning: passing arguments to 'pr_addr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1847 | cc, pr_addr(from->sin_addr)); | ^ traceroute.c:1850:15: warning: passing arguments to 'print_ippkt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1850 | print_ippkt(ip, cc); | ^ traceroute.c:1860:16: warning: passing arguments to 'pr_addr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1860 | cc, pr_addr(from->sin_addr)); | ^ traceroute.c:1863:15: warning: passing arguments to 'print_ippkt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1863 | print_ippkt(ip, cc); | ^ traceroute.c:1924:15: warning: passing arguments to 'pr_addr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1924 | cc, pr_addr(from->sin_addr)); | ^ traceroute.c:1927:14: warning: passing arguments to 'print_icmph' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1927 | print_icmph(icp, cc); | ^ traceroute.c:1823:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1823 | check_reply(buf, cc, seq) | ^ In file included from traceroute.c:476: ./defs.h:30:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | int check_reply PROTO((u_char *, int, int)); | ^ traceroute.c:2017:14: warning: passing arguments to 'print_ippkt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2017 | print_ippkt((struct ip *)icp->icmp_data, cc - ICMP_MINLEN); | ^ traceroute.c:2022:14: warning: passing arguments to 'print_ippkt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2022 | print_ippkt((struct ip *)icp->icmp_data, cc - ICMP_MINLEN); | ^ traceroute.c:2045:14: warning: passing arguments to 'print_ippkt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2045 | print_ippkt((struct ip *)icp->icmp_data, cc - ICMP_MINLEN); | ^ traceroute.c:2074:14: warning: passing arguments to 'print_ippkt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2074 | print_ippkt((struct ip *)icp->icmp_data, cc - ICMP_MINLEN); | ^ traceroute.c:2080:14: warning: passing arguments to 'print_ippkt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2080 | print_ippkt((struct ip *)icp->icmp_data, cc - ICMP_MINLEN); | ^ traceroute.c:1950:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1950 | print_icmph(icp, cc) | ^ In file included from traceroute.c:476: ./defs.h:34:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 34 | void print_icmph PROTO((struct icmp *, int)); | ^ traceroute.c:2138:13: warning: passing arguments to 'print_iphdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2138 | print_iphdr(ip, cc); | ^ traceroute.c:2150:33: warning: passing arguments to 'pr_port' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2150 | printf("from port %s", pr_port("tcp", tcp->th_sport)); | ^ traceroute.c:2151:33: warning: passing arguments to 'pr_port' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2151 | printf(", to port %s", pr_port("tcp", tcp->th_dport)); | ^ traceroute.c:2158:33: warning: passing arguments to 'pr_port' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2158 | printf("from port %s", pr_port("udp", udp->uh_sport)); | ^ traceroute.c:2159:33: warning: passing arguments to 'pr_port' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2159 | printf(", to port %s", pr_port("udp", udp->uh_dport)); | ^ traceroute.c:2123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2123 | print_ippkt(ip, cc) | ^ In file included from traceroute.c:476: ./defs.h:35:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 35 | void print_ippkt PROTO((struct ip *, int)); | ^ traceroute.c:2228:16: warning: passing arguments to 'print_options' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2228 | print_options(ipopt, ipoptlen); | ^ traceroute.c:2176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2176 | print_iphdr(ip, cc) | ^ In file included from traceroute.c:476: ./defs.h:36:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 36 | void print_iphdr PROTO((struct ip *, int)); | ^ traceroute.c:2267:15: warning: passing arguments to 'print_route' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2267 | print_route(ipopt); | ^ traceroute.c:2272:15: warning: passing arguments to 'print_route' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2272 | print_route(ipopt); | ^ traceroute.c:2277:15: warning: passing arguments to 'print_route' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2277 | print_route(ipopt); | ^ traceroute.c:2241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2241 | print_options(ipopt, ipoptlen) | ^ In file included from traceroute.c:476: ./defs.h:38:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 38 | void print_options PROTO((u_char *, int)); | ^ traceroute.c:2337:27: warning: passing arguments to 'pr_addr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2337 | printf("\t%s\n", pr_addr(inaddr)); | ^ traceroute.c:2317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2317 | print_route(ipopt) | ^ In file included from traceroute.c:476: ./defs.h:39:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 39 | void print_route PROTO((u_char *)); | ^ traceroute.c:2360:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2360 | pr_port(protocol, port) | ^ In file included from traceroute.c:476: ./defs.h:44:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 44 | char *pr_port PROTO((char *, u_short)); | ^ traceroute.c:2490:30: warning: passing arguments to 'inetname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2490 | printf(" %s (%s)", inetname(inaddr), inet_ntoa(inaddr)); | ^ traceroute.c:2502:23: warning: passing arguments to 'as_lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2502 | asnumber = as_lookup(inaddr, ashost, 0, keepopen); | ^ traceroute.c:2471:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2471 | print_from(buf, cc, inaddr) | ^ In file included from traceroute.c:476: ./defs.h:49:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 49 | void print_from PROTO((u_char *, int, struct in_addr)); | ^ traceroute.c:2533:23: warning: passing arguments to 'maphostbyaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2533 | host = maphostbyaddr(inaddr); | ^ traceroute.c:2524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2524 | inetname(inaddr) | ^ In file included from traceroute.c:476: ./defs.h:50:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 50 | char *inetname PROTO((struct in_addr)); | ^ traceroute.c:2561:23: warning: passing arguments to 'maphostbyaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2561 | host = maphostbyaddr(inaddr); | ^ traceroute.c:2552:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2552 | pr_addr(inaddr) | ^ In file included from traceroute.c:476: ./defs.h:51:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 51 | char *pr_addr PROTO((struct in_addr)); | ^ traceroute.c:2622:17: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2622 | host = maxstr(newstr(hp->h_name), MAXDNAME, FALSE); | ^ traceroute.c:485:26: note: expanded from macro 'newstr' 485 | #define newstr(s) strcpy(newstring(s), s) | ^ traceroute.c:484:36: note: expanded from macro 'newstring' 484 | #define newstring(s) (char *)xalloc((ptr_t *)NULL, (siz_t)(strlen(s)+1)) | ^ traceroute.c:2622:17: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] traceroute.c:485:26: note: expanded from macro 'newstr' 485 | #define newstr(s) strcpy(newstring(s), s) | ^ traceroute.c:484:36: note: expanded from macro 'newstring' 484 | #define newstring(s) (char *)xalloc((ptr_t *)NULL, (siz_t)(strlen(s)+1)) | ^ traceroute.c:2622:16: warning: passing arguments to 'maxstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2622 | host = maxstr(newstr(hp->h_name), MAXDNAME, FALSE); | ^ traceroute.c:2629:16: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2629 | s->addrlist = newlist(s->addrlist, s->addrcount+1, ipaddr_t); | ^ traceroute.c:482:35: note: expanded from macro 'newlist' 482 | #define newlist(a,n,t) (t *)xalloc((ptr_t *)(a), (siz_t)((n)*sizeof(t))) | ^ traceroute.c:2630:16: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2630 | s->namelist = newlist(s->namelist, s->addrcount+1, char *); | ^ traceroute.c:482:35: note: expanded from macro 'newlist' 482 | #define newlist(a,n,t) (t *)xalloc((ptr_t *)(a), (siz_t)((n)*sizeof(t))) | ^ traceroute.c:2594:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2594 | maphostbyaddr(inaddr) | ^ In file included from traceroute.c:476: ./defs.h:52:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 52 | char *maphostbyaddr PROTO((struct in_addr)); | ^ traceroute.c:2674:33: warning: too few arguments in call to 'error' 2674 | error("Unknown host %s", host); | ~~~~~ ^ traceroute.c:2689:40: warning: passing arguments to 'gatewayaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2689 | if ((ngate < MAXGATE) && !gatewayaddr(inaddr)) | ^ traceroute.c:2699:40: warning: passing arguments to 'gatewayaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2699 | if ((ngate < MAXGATE) && !gatewayaddr(inaddr)) | ^ traceroute.c:2655:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2655 | getgate(host) | ^ In file included from traceroute.c:476: ./defs.h:53:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 53 | ipaddr_t getgate PROTO((char *)); | ^ traceroute.c:2723:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2723 | gatewayaddr(inaddr) | ^ In file included from traceroute.c:476: ./defs.h:54:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 54 | bool gatewayaddr PROTO((struct in_addr)); | ^ traceroute.c:2859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2859 | tvsub(t2, t1) | ^ In file included from traceroute.c:476: ./defs.h:58:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | time_t tvsub PROTO((struct timeval *, struct timeval *)); | ^ traceroute.c:2905:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2905 | tvprint(usec) | ^ In file included from traceroute.c:476: ./defs.h:59:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | char *tvprint PROTO((time_t)); | ^ traceroute.c:2967:18: warning: passing arguments to 'xsqrt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2967 | rttstd = xsqrt(rttstd / nreceived); | ^ traceroute.c:2950:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2950 | print_stats(ntransmitted) | ^ In file included from traceroute.c:476: ./defs.h:60:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 60 | void print_stats PROTO((int)); | ^ traceroute.c:2994:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2994 | record_stats(rtt) | ^ In file included from traceroute.c:476: ./defs.h:61:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 61 | void record_stats PROTO((time_t)); | ^ traceroute.c:3044:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3044 | select_mtu(len) | ^ In file included from traceroute.c:476: ./defs.h:63:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 63 | int select_mtu PROTO((int)); | ^ traceroute.c:3074:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3074 | regular_ttl(ttl) | ^ In file included from traceroute.c:476: ./defs.h:64:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 64 | bool regular_ttl PROTO((int)); | ^ traceroute.c:3114:13: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3114 | string = newstr(string); | ^ traceroute.c:485:26: note: expanded from macro 'newstr' 485 | #define newstr(s) strcpy(newstring(s), s) | ^ traceroute.c:484:36: note: expanded from macro 'newstring' 484 | #define newstring(s) (char *)xalloc((ptr_t *)NULL, (siz_t)(strlen(s)+1)) | ^ traceroute.c:3114:13: warning: passing arguments to 'xalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] traceroute.c:485:26: note: expanded from macro 'newstr' 485 | #define newstr(s) strcpy(newstring(s), s) | ^ traceroute.c:484:36: note: expanded from macro 'newstring' 484 | #define newstring(s) (char *)xalloc((ptr_t *)NULL, (siz_t)(strlen(s)+1)) | ^ traceroute.c:3106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3106 | maxstr(string, n, save) | ^ In file included from traceroute.c:476: ./defs.h:68:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 68 | char *maxstr PROTO((char *, int, bool)); | ^ traceroute.c:3141:24: warning: too few arguments in call to 'error' 3141 | error("Out of memory"); | ~~~~~ ^ traceroute.c:3130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3130 | xalloc(buf, size) | ^ In file included from traceroute.c:476: ./defs.h:69:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 69 | ptr_t *xalloc PROTO((ptr_t *, siz_t)); | ^ traceroute.c:3157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3157 | itoa(n) | ^ In file included from traceroute.c:476: ./defs.h:70:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 70 | char *itoa PROTO((int)); | ^ traceroute.c:3179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3179 | xsqrt(y) | ^ In file included from traceroute.c:476: ./defs.h:71:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 71 | double xsqrt PROTO((double)); | ^ 157 warnings generated. --- traceroute --- clang -o traceroute traceroute.o aslookup.o vers.o Undefined symbols for architecture arm64: "___res_9_state", referenced from: _main in traceroute.o _main in traceroute.o "_res_9_init", referenced from: _main in traceroute.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [traceroute] Error code 1 bmake: stopped making "all" in /var/tmp/work/net/traceroute-as/work bmake: 1 error bmake: stopped making "all" in /var/tmp/work/net/traceroute-as/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/traceroute-as *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/traceroute-as