=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/benchmarks/nettest", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] 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 treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 100 | clock_t times(); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/times.h:90:9: note: conflicting prototype is here 90 | clock_t times(struct tms *); | ^ nettest.c:141:9: 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 previous declaration [-Wdeprecated-non-prototype] 141 | ssize_t recv(); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:718:9: note: conflicting prototype is here 718 | ssize_t recv(int, void *, size_t, int) __DARWIN_ALIAS_C(recv); | ^ nettest.c:146:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 146 | main(argc, argv) | ^ | int nettest.c:151:18: 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 previous declaration [-Wdeprecated-non-prototype] 151 | struct hostent *gethostbyname(), *hp; | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/netdb.h:275:17: note: conflicting prototype is here 275 | struct hostent *gethostbyname(const char *); | ^ nettest.c:181:16: warning: call to undeclared function 'getdtablesize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 181 | 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] 183 | 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] 186 | kbufsize = atoval(optarg); | ^ 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] 225 | 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] 273 | 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] 290 | 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] 371 | 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] 398 | 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] 405 | 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] 429 | 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] 431 | + 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] 441 | 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 C23 [-Wdeprecated-non-prototype] 449 | 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] 473 | tmp = inet_addr(hisname); | ^ nettest.c:485:5: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 485 | bcopy(hp->h_addr, (char *)&name.d_inet.sin_addr, | ^ nettest.c:485:5: note: include the header or explicitly provide a declaration for 'bcopy' 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 C23 [-Wdeprecated-non-prototype] 516 | 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 C23 [-Wdeprecated-non-prototype] 562 | 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 C23 [-Wdeprecated-non-prototype] 584 | 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] 588 | close(s); | ^ nettest.c:146:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | main(argc, argv) | ^ 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] 629 | bzero((char *)&start, sizeof(start)); | ^ nettest.c:629:2: note: include the header or explicitly provide a declaration for 'bzero' nettest.c:634:18: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 634 | sync_children = getpid(); | ^ nettest.c:636:23: warning: call to undeclared function 'getpgrp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 636 | if (sync_children != getpgrp()) { | ^ nettest.c:637:10: warning: call to undeclared function 'setpgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 637 | (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] 650 | 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] 655 | 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] 663 | 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] 665 | 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] 667 | 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] 705 | 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] 716 | 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 C23 [-Wdeprecated-non-prototype] 725 | 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] 726 | 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] 729 | (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] 731 | 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 C23 [-Wdeprecated-non-prototype] 752 | prtimes(&start, &end, 0, &tms1, &tms2, 0); | ^ nettest.c:616:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 616 | do_children(nconnections) | ^ nettest.c:135: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] 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^ 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] 807 | if (strncmp(c1, UT_MAGIC, 8) == 0) { | ^ nettest.c:807:7: note: include the header or explicitly provide a declaration for 'strncmp' nettest.c:788:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | extract_times(buf, np, tmsp, startp, endp, cstartp, cendp) | ^ nettest.c:852:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 852 | 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] 900 | 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 C23 [-Wdeprecated-non-prototype] 905 | i = read(in, cp, 1); | ^ nettest.c:936:49: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] 936 | *cp++ = *("abcdefghijklmnopqrstuvwxyzABCDEF" + (i++/8)%32); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ nettest.c:936:49: note: use array indexing to silence this warning 936 | *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] 951 | 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] 951 | 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 C23 [-Wdeprecated-non-prototype] 990 | 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 C23 [-Wdeprecated-non-prototype] 1016 | 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] 1038 | if (*cp != *("abcdefghijklmnopqrstuvwxyzABCDEF" + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1039 | ((j+t2)/8)%32)) { | ~~~~~~~~~~~~~ nettest.c:1038:52: note: use array indexing to silence this warning 1038 | if (*cp != *("abcdefghijklmnopqrstuvwxyzABCDEF" + | ^ | & [ 1039 | ((j+t2)/8)%32)) { | | ] nettest.c:1042:42: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] 1042 | *("abcdefghijklmnopqrstuvwxyzABCDEF" + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1043 | ((j+t2)/8)%32)); | ~~~~~~~~~~~~~ nettest.c:1042:42: note: use array indexing to silence this warning 1042 | *("abcdefghijklmnopqrstuvwxyzABCDEF" + | ^ | & [ 1043 | ((j+t2)/8)%32)); | | ] nettest.c:1056:6: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 1055 | printf("expected %8x%8x, got %8x%8x\n", | ~~~ | %8lx 1056 | hival, loval, ntohl(*(ldp-2)), | ^~~~~ nettest.c:1056:13: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 1055 | printf("expected %8x%8x, got %8x%8x\n", | ~~~ | %8lx 1056 | 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] 1098 | 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 C23 [-Wdeprecated-non-prototype] 1108 | prtimes(&start, &turnaround, &end, &tms1, &tms2, &tms3); | ^ nettest.c:1113:27: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 1113 | printf("%6d: %5d ", i, cnts[i]); | ~~~ ^~~~~~~ | %5ld nettest.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 | do_stream(in, out) | ^ nettest.c:135:21: 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] 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^ nettest.c:1144:1: warning: data argument not used by format string [-Wformat-extra-args] 1138 | fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", | ~~~~~~~~~~~~~~~~~~~~~~ 1139 | "Usage: nettest [-cdfFh] [-b bufsize] [-s winshift] [-S tos] [-n #streams]", 1140 | " [-p tcp|udp|iso] [host [count [size [port]]]]", 1141 | " nettest [-cdfh] [-b bufsize] -p unix|pipes [-n #streams]", 1142 | " [count [size [filename]]]", 1143 | " nettest [-cdfh] [-b bufsize] -p file file1 file2 [count [size]]", 1144 | " 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 C23 [-Wdeprecated-non-prototype] 1197 | prtimes(&start, &end, &end, &tms1, &tms2, &tms2); | ^ nettest.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 | do_dgram(s) | ^ nettest.c:135:43: 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] 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^ nettest.c:1201:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1201 | prtimes(p0, p1, p2, tms1, tms2, tms3) | ^ nettest.c:135:55: 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] 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^ nettest.c:1333:13: warning: implicit conversion from 'int' to 'char' changes value from 137 to -119 [-Wconstant-conversion] 1333 | *lsrp++ = IPOPT_SSRR; | ~ ^~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/netinet/ip.h:174:33: note: expanded from macro 'IPOPT_SSRR' 174 | #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] 1335 | *lsrp++ = IPOPT_LSRR; | ~ ^~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/netinet/ip.h:172:33: note: expanded from macro 'IPOPT_LSRR' 172 | #define IPOPT_LSRR 131 /* loose source route */ | ^~~ nettest.c:1350:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1350 | else for (cp2 = cp; c = *cp2; cp2++) { | ~~^~~~~~ nettest.c:1350:25: note: place parentheses around the assignment to silence this warning 1350 | else for (cp2 = cp; c = *cp2; cp2++) { | ^ | ( ) nettest.c:1350:25: note: use '==' to turn this assignment into an equality comparison 1350 | 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] 1366 | if ((tmp = inet_addr(cp)) != -1) { | ^ nettest.c:1368:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1368 | } else if (host = gethostbyname(cp)) { | ~~~~~^~~~~~~~~~~~~~~~~~~ nettest.c:1368:19: note: place parentheses around the assignment to silence this warning 1368 | } else if (host = gethostbyname(cp)) { | ^ | ( ) nettest.c:1368:19: note: use '==' to turn this assignment into an equality comparison 1368 | } 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] 1370 | 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 definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1292 | sourceroute(arg, cpp, lenp) | ^ nettest.c:1408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1408 | parsetos(name, proto) | ^ --- nettestd --- nettestd.c:67:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 67 | dochild() | ^ | int nettestd.c:73:1: warning: non-void function does not return a value [-Wreturn-type] 73 | } | ^ nettestd.c:115:9: 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 previous declaration [-Wdeprecated-non-prototype] 115 | ssize_t recv(); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:718:9: note: conflicting prototype is here 718 | ssize_t recv(int, void *, size_t, int) __DARWIN_ALIAS_C(recv); | ^ nettestd.c:119:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 119 | main(argc, argv) | ^ | int nettestd.c:140:14: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 140 | 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] 164 | 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] 176 | usage(); | ^ nettestd.c:195:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 195 | usage(); | ^ nettestd.c:209:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 209 | usage(); | ^ nettestd.c:255:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 255 | usage(); | ^ nettestd.c:260:3: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 260 | usage(); | ^ nettestd.c:281:7: warning: call to undeclared function 'setpgrp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 281 | 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] 281 | 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] 288 | (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] 290 | 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] 299 | 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] 300 | (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] 314 | 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] 316 | 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] 321 | 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] 325 | 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] 329 | 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] 330 | 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] 335 | 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] 336 | 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] 345 | 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] 350 | 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] 353 | 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] 354 | 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] 356 | 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] 364 | 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] 366 | + 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] 367 | (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] 405 | 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] 409 | 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] 434 | 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] 436 | do_stream(s); | ^ nettestd.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | main(argc, argv) | ^ nettestd.c:442:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 442 | do_stream(s) | ^ | int 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] 463 | s2 = accept(s, (struct sockaddr *)&name, &namesize); | ^~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:708:73: note: passing argument to parameter here 708 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) | ^ nettestd.c:467:4: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 467 | 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] 469 | if ((i = fork()) == 0) { | ^ nettestd.c:470:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 470 | 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] 471 | 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] 475 | 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] 476 | close(s2); | ^ nettestd.c:442:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 442 | do_stream(s) | ^ nettestd.c:524:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 524 | register in, out; | ~~~~~~~~ ^ | int nettestd.c:524:14: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 524 | register in, out; | ~~~~~~~~ ^ | int nettestd.c:523:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 523 | data_stream(in, out) | ^ | int nettestd.c:543:11: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 543 | 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] 546 | 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] 568 | 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] 579 | 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] 597 | 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] 604 | 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 C23 [-Wdeprecated-non-prototype] 607 | 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] 616 | VRFY(); | ^~~~~~ nettestd.c:491:6: note: expanded from macro 'VRFY' 490 | printf("expected %8x%8x, got %8x%8x\n", \ | ~~~ 491 | hival, loval, ntohl(*(ldp-2)), \ | ^~~~~ nettestd.c:616:4: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 616 | VRFY(); | ^~~~~~ nettestd.c:491:13: note: expanded from macro 'VRFY' 490 | printf("expected %8x%8x, got %8x%8x\n", \ | ~~~ 491 | 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 C23 [-Wdeprecated-non-prototype] 626 | 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] 628 | VRFY(); | ^~~~~~ nettestd.c:491:6: note: expanded from macro 'VRFY' 490 | printf("expected %8x%8x, got %8x%8x\n", \ | ~~~ 491 | hival, loval, ntohl(*(ldp-2)), \ | ^~~~~ nettestd.c:628:5: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 628 | VRFY(); | ^~~~~~ nettestd.c:491:13: note: expanded from macro 'VRFY' 490 | printf("expected %8x%8x, got %8x%8x\n", \ | ~~~ 491 | 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] 683 | error(buf); | ^ nettestd.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 | data_stream(in, out) | ^ nettestd.c:690:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 690 | do_dgram(s) | ^ | int 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] 738 | &namesize); | ^~~~~~~~~ /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); | ^ nettestd.c:741:4: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 741 | 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 C23 [-Wdeprecated-non-prototype] 745 | cp = inet_ntoa(name.d_inet.sin_addr); | ^ nettestd.c:690:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 690 | do_dgram(s) | ^ nettestd.c:752:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 752 | usage() | ^ | int nettestd.c:764:3: warning: data argument not used by format string [-Wformat-extra-args] 754 | fprintf(stderr, "%s%s%s%s%s", | ~~~~~~~~~~~~ 755 | "Usage: nettestd [-b] [-d] [-v] [-s val] [-p tcp] [port]\n", 756 | " nettestd [-b] [-d] [-i] [-m] -p udp [port]\n", 757 | #ifndef NO_ISO 758 | " nettestd [-b] [-d] [-v] -p iso [port]\n", 759 | #else 760 | "", 761 | #endif 762 | " nettestd [-b] [-d] [-v] -p unix|pipe [filename]\n", 763 | " nettestd [-b] [-d] [-m] -p unixd [filename]\n", 764 | " nettestd [-b] [-d] [-v] -p file readfile writefile\n", | ^ nettestd.c:769:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 769 | error(string) | ^ | int nettestd.c:769:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] nettestd.c:776:1: warning: non-void function does not return a value [-Wreturn-type] 776 | } | ^ 74 warnings generated. --- nettest --- 75 warnings generated. --- nettestd --- ld: library 'compat' not found clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [nettestd] Error code 1 make[2]: stopped making "objs" in /var/tmp/work/benchmarks/nettest/work --- nettest --- ld: library 'compat' not found clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [nettest] Error code 1 make[2]: stopped making "objs" in /var/tmp/work/benchmarks/nettest/work make[2]: 2 errors make[2]: stopped making "objs" in /var/tmp/work/benchmarks/nettest/work *** [Darwin] Error code 2 make[1]: stopped making "Darwin" in /var/tmp/work/benchmarks/nettest/work make[1]: 1 error make[1]: stopped making "Darwin" in /var/tmp/work/benchmarks/nettest/work *** [all] Error code 2 bmake: stopped making "all" in /var/tmp/work/benchmarks/nettest/work bmake: 1 error bmake: stopped making "all" in /var/tmp/work/benchmarks/nettest/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/benchmarks/nettest *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/benchmarks/nettest