=> Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for nettest-92.11.09 --- all --- --- Darwin --- make objs INCLUDE="" DEFINES="-DWAIT3CODE -DBSD44 -DNAMEDPIPES -DNO_ISO -DNONVOID_SETPGRP" OPT="-O" LIBS="-lcompat" --- nettestd --- --- nettest --- --- nettestd --- clang -O -DWAIT3CODE -DBSD44 -DNAMEDPIPES -DNO_ISO -DNONVOID_SETPGRP nettestd.c -o nettestd -lcompat --- nettest --- clang -O -DWAIT3CODE -DBSD44 -DNAMEDPIPES -DNO_ISO -DNONVOID_SETPGRP nettest.c -o nettest -lcompat nettest.c:100:9: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clock_t times(); ^ nettest.c:141:9: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ssize_t recv(); ^ nettest.c:146:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ nettest.c:151:18: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct hostent *gethostbyname(), *hp; ^ nettest.c:181:16: warning: call to undeclared function 'getdtablesize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] maxchildren = getdtablesize() - 4; ^ nettest.c:183:14: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while ((i = getopt(argc, argv, "b:cCdfFhmn:p:s:S:t:Vw?")) != EOF) { ^ nettest.c:186:15: warning: call to undeclared function 'atoval'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kbufsize = atoval(optarg); ^ --- nettestd --- nettestd.c:67:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dochild() ^ nettestd.c:73:1: warning: non-void function does not return a value [-Wreturn-type] } ^ --- nettest --- nettest.c:225:9: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!strcmp(optarg, "tcp")) { ^ nettest.c:225:9: note: include the header or explicitly provide a declaration for 'strcmp' nettest.c:273:15: warning: call to undeclared function 'parsetos'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((tos = parsetos(optarg, "*")) < 0) { ^ nettest.c:290:10: warning: incompatible function pointer types assigning to 'int (*)()' from 'ssize_t (int, void *, size_t, int)' (aka 'long (int, void *, unsigned long, int)') [-Wincompatible-function-pointer-types] rfunc = recv; ^ ~~~~ nettest.c:371:14: warning: call to undeclared function 'atoval'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nchunks = atoval(*argv); ^ nettest.c:398:13: warning: call to undeclared function 'open'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((s2 = open(myname, 1)) < 0) { ^ nettest.c:405:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(s2); ^ nettest.c:429:3: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] strcpy(name.d_unix.sun_path, portname); ^ nettest.c:429:3: note: include the header or explicitly provide a declaration for 'strcpy' nettest.c:431:6: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + strlen(name.d_unix.sun_path); ^ nettest.c:431:6: note: include the header or explicitly provide a declaration for 'strlen' nettest.c:441:3: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] gethostname(_myname, sizeof(_myname)); ^ nettest.c:449:22: warning: passing arguments to 'sourceroute' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] temp = sourceroute(hisname, &srp, &srlen); ^ nettest.c:473:11: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tmp = inet_addr(hisname); ^ nettest.c:485:5: warning: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] bcopy(hp->h_addr, (char *)&name.d_inet.sin_addr, ^ nettest.c:516:15: warning: passing arguments to 'do_children' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_children(nconnections); ^ nettest.c:562:12: warning: passing arguments to 'do_dgram' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_dgram(s); ^ nettest.c:584:11: warning: passing arguments to 'do_stream' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_stream(s, s2); ^ nettest.c:588:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(s); ^ nettest.c:146:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ --- nettestd --- nettestd.c:115:9: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ssize_t recv(); ^ nettestd.c:119:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ nettestd.c:140:14: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while ((c = getopt(argc, argv, "bdimp:s:vV")) != EOF) { ^ nettestd.c:164:9: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!strcmp(optarg, "unix")) { ^ nettestd.c:164:9: note: include the header or explicitly provide a declaration for 'strcmp' nettestd.c:176:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] usage(); ^ nettestd.c:195:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] usage(); ^ nettestd.c:209:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] usage(); ^ nettestd.c:255:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] usage(); ^ nettestd.c:260:3: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] usage(); ^ nettestd.c:281:7: warning: call to undeclared function 'setpgrp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (setpgrp(0, getpid()) < 0) ^ nettestd.c:281:18: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (setpgrp(0, getpid()) < 0) ^ nettestd.c:288:10: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void)close(c); ^ nettestd.c:290:11: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (fork()) { ^ nettestd.c:299:12: warning: call to undeclared function 'getdtablesize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] for (c = getdtablesize(); c >= 0; --c) ^ nettestd.c:300:10: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void)close(c); ^ nettestd.c:314:4: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unlink(buf); ^ nettestd.c:316:5: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error("mknod"); ^ nettestd.c:321:5: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error("mknod"); ^ nettestd.c:325:5: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error(buf2); ^ nettestd.c:329:5: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error(buf); ^ nettestd.c:330:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(s2); ^ nettestd.c:335:4: warning: call to undeclared function 'data_stream'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] data_stream(s2, s); ^ nettestd.c:336:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(s2); ^ nettestd.c:345:5: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error(f1); ^ nettestd.c:350:5: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error(f2); ^ nettestd.c:353:4: warning: call to undeclared function 'data_stream'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] data_stream(s, s2); ^ nettestd.c:354:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(s2); ^ nettestd.c:356:4: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] sleep(1); ^ nettestd.c:364:3: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] strcpy(name.d_unix.sun_path, portname); ^ nettestd.c:364:3: note: include the header or explicitly provide a declaration for 'strcpy' nettestd.c:366:7: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + strlen(name.d_unix.sun_path); ^ nettestd.c:366:7: note: include the header or explicitly provide a declaration for 'strlen' nettestd.c:367:10: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) unlink(portname); ^ nettestd.c:405:4: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error("socket"); ^ nettestd.c:409:4: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error("setsockopt - SO_DEBUG"); ^ nettestd.c:434:4: warning: call to undeclared function 'do_dgram'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] do_dgram(s); ^ nettestd.c:436:4: warning: call to undeclared function 'do_stream'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] do_stream(s); ^ nettestd.c:119:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ nettestd.c:442:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] do_stream(s) ^ --- nettest --- nettest.c:629:2: warning: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] bzero((char *)&start, sizeof(start)); ^ nettest.c:629:2: note: include the header or explicitly provide a declaration for 'bzero' --- nettestd --- nettestd.c:463:44: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] s2 = accept(s, (struct sockaddr *)&name, &namesize); ^~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:700:73: note: passing argument to parameter here --- nettest --- nettest.c:634:18: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] sync_children = getpid(); ^ --- nettestd --- int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ --- nettest --- nettest.c:636:23: warning: call to undeclared function 'getpgrp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- nettestd --- nettestd.c:467:4: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error("accept"); ^ nettestd.c:469:13: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((i = fork()) == 0) { ^ --- nettest --- if (sync_children != getpgrp()) { ^ --- nettestd --- nettestd.c:470:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(s); ^ nettestd.c:471:9: warning: call to undeclared function 'data_stream'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] i = data_stream(s2, s2); ^ nettestd.c:475:5: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error("fork"); ^ nettestd.c:476:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(s2); ^ nettestd.c:442:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_stream(s) ^ --- nettest --- nettest.c:637:10: warning: call to undeclared function 'setpgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) setpgid(sync_children, sync_children); ^ nettest.c:650:7: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (pipe(&CHILD_READ(i)) < 0) { ^ nettest.c:655:14: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch(n = fork()) { ^ nettest.c:663:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(CHILD_READ(n)); ^ nettest.c:665:4: warning: call to undeclared function 'dup2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] dup2(CHILD_WRITE(i), 1); ^ nettest.c:667:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(CHILD_WRITE(i)); ^ nettest.c:705:6: warning: call to undeclared function 'killpg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] killpg(sync_children, SIGCONT); ^ nettest.c:716:5: warning: call to undeclared function 'killpg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] killpg(sync_children, SIGCONT); ^ nettest.c:725:19: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while ((n = read(CHILD_READ(i), buf, sizeof(buf))) > 0) { ^ nettest.c:726:16: warning: call to undeclared function 'extract_times'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] gottimes += extract_times(buf, &n, &tms2, &start, &end, ^ nettest.c:729:12: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) write(1, buf, n); ^ nettest.c:731:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(CHILD_READ(i)); ^ nettest.c:752:9: warning: passing arguments to 'prtimes' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prtimes(&start, &end, 0, &tms1, &tms2, 0); ^ --- nettestd --- nettestd.c:524:10: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register in, out; ~~~~~~~~ ^ nettestd.c:524:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register in, out; ~~~~~~~~ ^ nettestd.c:523:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] data_stream(in, out) ^ nettestd.c:543:11: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] i = read(in, cp, 1); ^ nettestd.c:546:5: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error("nettestd: read"); ^ nettestd.c:568:3: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write(out, buf, strlen(buf)); ^ nettestd.c:579:4: warning: call to undeclared library function 'strcat' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] strcat(buf, " Cannot set buffers sizes."); ^ nettestd.c:579:4: note: include the header or explicitly provide a declaration for 'strcat' nettestd.c:597:9: warning: incompatible function pointer types assigning to 'int (*)()' from 'ssize_t (int, void *, size_t, int)' (aka 'long (int, void *, unsigned long, int)') [-Wincompatible-function-pointer-types] rfunc = recv; ^ ~~~~ nettestd.c:604:2: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write(out, buf, strlen(buf)); ^ nettestd.c:607:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((t = (*rfunc)(in, data + offset, chunksize, waitall)) < 0) { ^ nettestd.c:616:4: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] VRFY(); ^~~~~~ --- nettest --- nettest.c:135:6: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] --- nettestd --- nettestd.c:491:6: note: expanded from macro 'VRFY' hival, loval, ntohl(*(ldp-2)), \ ^~~~~ --- nettest --- void do_children(), do_stream(), usage(), do_dgram(), prtimes(); ^ void nettest.c:616:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_children(nconnections) ^ --- nettestd --- nettestd.c:616:4: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] VRFY(); ^~~~~~ nettestd.c:491:13: note: expanded from macro 'VRFY' hival, loval, ntohl(*(ldp-2)), \ ^~~~~ nettestd.c:626:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] t2 = (*rfunc)(in, data+t, chunksize-t, waitall); ^ nettestd.c:628:5: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] VRFY(); ^~~~~~ nettestd.c:491:6: note: expanded from macro 'VRFY' hival, loval, ntohl(*(ldp-2)), \ ^~~~~ nettestd.c:628:5: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] VRFY(); ^~~~~~ nettestd.c:491:13: note: expanded from macro 'VRFY' hival, loval, ntohl(*(ldp-2)), \ ^~~~~ nettestd.c:683:2: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error(buf); ^ nettestd.c:523:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] data_stream(in, out) ^ --- nettest --- nettest.c:807:7: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (strncmp(c1, UT_MAGIC, 8) == 0) { ^ nettest.c:807:7: note: include the header or explicitly provide a declaration for 'strncmp' nettest.c:819:2: warning: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] bcopy(c1, (char *)&tms, sizeof(tms)); ^ --- nettestd --- nettestd.c:690:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] do_dgram(s) ^ --- nettest --- nettest.c:788:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] --- nettestd --- nettestd.c:738:6: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] &namesize); ^~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:712:27: note: passing argument to parameter here --- nettest --- extract_times(buf, np, tmsp, startp, endp, cstartp, cendp) ^ --- nettestd --- socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom); ^ nettestd.c:741:4: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] error(errmsg); ^ nettestd.c:745:18: warning: passing arguments to 'inet_ntoa' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cp = inet_ntoa(name.d_inet.sin_addr); ^ nettestd.c:690:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_dgram(s) ^ nettestd.c:752:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] usage() ^ nettestd.c:764:3: warning: data argument not used by format string [-Wformat-extra-args] " nettestd [-b] [-d] [-v] -p file readfile writefile\n", ^ nettestd.c:769:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] error(string) ^ nettestd.c:769:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nettestd.c:776:1: warning: non-void function does not return a value [-Wreturn-type] } ^ --- nettest --- nettest.c:852:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] atoval(s) ^ nettest.c:900:6: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (write(out, buf, strlen(buf)) != strlen(buf)) { ^ nettest.c:905:11: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] i = read(in, cp, 1); ^ nettest.c:936:49: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] *cp++ = *("abcdefghijklmnopqrstuvwxyzABCDEF" + (i++/8)%32); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ nettest.c:936:49: note: use array indexing to silence this warning *cp++ = *("abcdefghijklmnopqrstuvwxyzABCDEF" + (i++/8)%32); ^ & [ ] nettest.c:951:3: warning: call to undeclared function 'kill'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kill(getpid(), SIGSTOP); /* suspend ourself */ ^ nettest.c:951:8: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kill(getpid(), SIGSTOP); /* suspend ourself */ ^ nettest.c:990:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((t = (*rfunc)(in, data, chunksize, waitall)) < 0) { ^ nettest.c:1016:23: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((t2 = (*rfunc)(in, data+t, chunksize-t, ^ nettest.c:1038:52: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] if (*cp != *("abcdefghijklmnopqrstuvwxyzABCDEF" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ nettest.c:1038:52: note: use array indexing to silence this warning if (*cp != *("abcdefghijklmnopqrstuvwxyzABCDEF" + ^ & [ nettest.c:1042:42: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] *("abcdefghijklmnopqrstuvwxyzABCDEF" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ nettest.c:1042:42: note: use array indexing to silence this warning *("abcdefghijklmnopqrstuvwxyzABCDEF" + ^ & [ nettest.c:1056:6: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] hival, loval, ntohl(*(ldp-2)), ^~~~~ nettest.c:1056:13: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] hival, loval, ntohl(*(ldp-2)), ^~~~~ nettest.c:1098:3: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] strncpy(td.mt_magic, UT_MAGIC, 8); ^ nettest.c:1098:3: note: include the header or explicitly provide a declaration for 'strncpy' nettest.c:1108:9: warning: passing arguments to 'prtimes' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prtimes(&start, &turnaround, &end, &tms1, &tms2, &tms3); ^ nettest.c:1113:27: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%6d: %5d ", i, cnts[i]); ~~~ ^~~~~~~ %5ld nettest.c:135:21: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void do_children(), do_stream(), usage(), do_dgram(), prtimes(); ^ void nettest.c:866:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_stream(in, out) ^ nettest.c:1144:1: warning: data argument not used by format string [-Wformat-extra-args] " nettest -V\n"); ^ nettest.c:1197:9: warning: passing arguments to 'prtimes' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prtimes(&start, &end, &end, &tms1, &tms2, &tms2); ^ nettest.c:135:43: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void do_children(), do_stream(), usage(), do_dgram(), prtimes(); ^ void nettest.c:1149:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_dgram(s) ^ nettest.c:135:55: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void do_children(), do_stream(), usage(), do_dgram(), prtimes(); ^ void nettest.c:1201:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prtimes(p0, p1, p2, tms1, tms2, tms3) ^ nettest.c:1350:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else for (cp2 = cp; c = *cp2; cp2++) { ~~^~~~~~ nettest.c:1350:25: note: place parentheses around the assignment to silence this warning else for (cp2 = cp; c = *cp2; cp2++) { ^ ( ) nettest.c:1350:25: note: use '==' to turn this assignment into an equality comparison else for (cp2 = cp; c = *cp2; cp2++) { ^ == nettest.c:1366:14: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((tmp = inet_addr(cp)) != -1) { ^ nettest.c:1368:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } else if (host = gethostbyname(cp)) { ~~~~~^~~~~~~~~~~~~~~~~~~ nettest.c:1368:19: note: place parentheses around the assignment to silence this warning } else if (host = gethostbyname(cp)) { ^ ( ) nettest.c:1368:19: note: use '==' to turn this assignment into an equality comparison } else if (host = gethostbyname(cp)) { ^ == nettest.c:1370:4: warning: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] memcpy((caddr_t)&sin_addr, ^ nettest.c:1370:4: note: include the header or explicitly provide a declaration for 'memcpy' nettest.c:1292:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sourceroute(arg, cpp, lenp) ^ nettest.c:1333:13: warning: implicit conversion from 'int' to 'char' changes value from 137 to -119 [-Wconstant-conversion] *lsrp++ = IPOPT_SSRR; ~ ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/netinet/ip.h:174:33: note: expanded from macro 'IPOPT_SSRR' #define IPOPT_SSRR 137 /* strict source route */ ^~~ nettest.c:1335:13: warning: implicit conversion from 'int' to 'char' changes value from 131 to -125 [-Wconstant-conversion] *lsrp++ = IPOPT_LSRR; ~ ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/netinet/ip.h:172:33: note: expanded from macro 'IPOPT_LSRR' #define IPOPT_LSRR 131 /* loose source route */ ^~~ nettest.c:1408:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parsetos(name, proto) ^ --- nettestd --- 74 warnings generated. --- nettest --- 76 warnings generated. --- nettestd --- ld: library not found for -lcompat clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [nettestd] Error code 1 make[2]: stopped in /Users/pbulk/build/benchmarks/nettest/work --- nettest --- ld: library not found for -lcompat clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [nettest] Error code 1 make[2]: stopped in /Users/pbulk/build/benchmarks/nettest/work 2 errors make[2]: stopped in /Users/pbulk/build/benchmarks/nettest/work *** [Darwin] Error code 2 make[1]: stopped in /Users/pbulk/build/benchmarks/nettest/work 1 error make[1]: stopped in /Users/pbulk/build/benchmarks/nettest/work *** [all] Error code 2 bmake: stopped in /Users/pbulk/build/benchmarks/nettest/work 1 error bmake: stopped in /Users/pbulk/build/benchmarks/nettest/work *** Error code 2 Stop. bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-x86_64/benchmarks/nettest *** Error code 1 Stop. bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-x86_64/benchmarks/nettest