WARNING: [license.mk] Every package should define a LICENSE. ===> Building for nettest-92.11.09 make objs INCLUDE="" DEFINES="-DWAIT3CODE -DBSD44 -DNAMEDPIPES -DNO_ISO -DNONVOID_SETPGRP" OPT="-O" LIBS="-lcompat" clang -O -DWAIT3CODE -DBSD44 -DNAMEDPIPES -DNO_ISO -DNONVOID_SETPGRP nettestd.c -o nettestd -lcompat nettestd.c:67:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] dochild() ^ int nettestd.c:73:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] ssize_t recv(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/socket.h:730:9: note: conflicting prototype is here 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] 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] 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 definition 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'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] s2 = accept(s, (struct sockaddr *)&name, &namesize); ^~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/socket.h:720:73: note: passing argument to parameter here 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] 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) { ^ 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 definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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 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(); ^~~~~~ nettestd.c:491:6: note: expanded from macro 'VRFY' hival, loval, ntohl(*(ldp-2)), \ ^~~~~ 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 definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] 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] &namesize); ^~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/socket.h:732:27: note: passing argument to parameter here 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 definition 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'; ISO C99 and later do not support implicit int [-Wimplicit-int] usage() ^ int 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'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] nettestd.c:776:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 74 warnings generated. 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 /Users/pbulk/build/benchmarks/nettest/work make[2]: 1 error make[2]: stopped making "objs" in /Users/pbulk/build/benchmarks/nettest/work *** [Darwin] Error code 2 make[1]: stopped making "Darwin" in /Users/pbulk/build/benchmarks/nettest/work make[1]: 1 error make[1]: stopped making "Darwin" in /Users/pbulk/build/benchmarks/nettest/work *** [all] Error code 2 bmake: stopped making "all" in /Users/pbulk/build/benchmarks/nettest/work bmake: 1 error bmake: stopped making "all" in /Users/pbulk/build/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