=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/xmeter", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xmeter-1.15nb4 --- xmeter.o --- --- xmeter._man --- --- xmeter.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I./X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c xmeter.c --- xmeter._man --- rm -f xmeter._man if test -z "" ; then cd `dirname xmeter` && ln -s `basename xmeter.man` `basename xmeter._man`; else /usr/bin/cpp -undef -traditional -D__GNUC__ -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/opt/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/opt/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'` X.Org" < xmeter.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\/' >xmeter._man; fi --- xmeter.o --- xmeter.c:36:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 36 | #endif lint | ^ | // xmeter.c:563:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 563 | main(argc, argv) | ^ | int xmeter.c:592:7: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 592 | usage(); | ^ xmeter.c:602:8: warning: call to undeclared function 'printversion'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 602 | printversion(); | ^ xmeter.c:603:3: warning: call to undeclared function 'init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 603 | init(toplevel, &lw); | ^ xmeter.c:604:3: warning: call to undeclared function 'createmenus'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 604 | createmenus(form); | ^ xmeter.c:614:28: warning: passing arguments to 'initmeter' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | meterlist = initmeter(meterlist, &i, argc, argv); | ^ xmeter.c:667:3: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 667 | free(lw); | ^ xmeter.c:667:3: note: include the header or explicitly provide a declaration for 'free' xmeter.c:678:3: warning: call to undeclared function 'setokbackgrounds'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 678 | setokbackgrounds(XtDisplay(toplevel), XtScreen(toplevel)); | ^ xmeter.c:563:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 563 | main(argc, argv) | ^ xmeter.c:683:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 683 | usage() | ^ | int xmeter.c:707:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 707 | exit(1); | ^ xmeter.c:707:3: note: include the header or explicitly provide a declaration for 'exit' xmeter.c:713:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 713 | printversion() | ^ | int xmeter.c:723:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 723 | init(toplevel, lw) | ^ | int xmeter.c:741:29: warning: call to undeclared library function 'calloc' with type 'void *(unsigned long, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 741 | if ((*lw = (Widget *) calloc(ar.columns, sizeof(Widget))) == NULL) | ^ xmeter.c:741:29: note: include the header or explicitly provide a declaration for 'calloc' xmeter.c:742:4: warning: call to undeclared function 'fatal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 742 | fatal("lw"); | ^ xmeter.c:745:4: warning: call to undeclared function 'fatal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 745 | fatal("lw"); | ^ xmeter.c:723:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 723 | init(toplevel, lw) | ^ xmeter.c:752:1: warning: non-void function does not return a value [-Wreturn-type] 752 | } | ^ xmeter.c:759:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 759 | createmenus(parent) | ^ | int xmeter.c:779:36: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 779 | (XtCallbackProc) changestat, (XtPointer) i); | ^~~~~~~~~~~~~ xmeter.c:759:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | createmenus(parent) | ^ xmeter.c:786:1: warning: non-void function does not return a value [-Wreturn-type] 786 | } | ^ xmeter.c:824:8: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 819 | sprintf(buf, "%s\nversion %d.%d\nscale %d\ndown %02d:%02d:%02d", | ~~~~ | %02ld 820 | h->sh->name, 821 | MAJORVERSION, PATCHLEVEL, 822 | h->stat == S_LOAD ? ar.scales[h->stat] / FSCALE : 823 | ar.scales[h->stat], 824 | tdown / (60*60), (tdown / 60) % 60, tdown % 60); | ^~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ xmeter.c:824:25: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 819 | sprintf(buf, "%s\nversion %d.%d\nscale %d\ndown %02d:%02d:%02d", | ~~~~ | %02ld 820 | h->sh->name, 821 | MAJORVERSION, PATCHLEVEL, 822 | h->stat == S_LOAD ? ar.scales[h->stat] / FSCALE : 823 | ar.scales[h->stat], 824 | tdown / (60*60), (tdown / 60) % 60, tdown % 60); | ^~~~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ xmeter.c:824:44: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 819 | sprintf(buf, "%s\nversion %d.%d\nscale %d\ndown %02d:%02d:%02d", | ~~~~ | %02ld 820 | h->sh->name, 821 | MAJORVERSION, PATCHLEVEL, 822 | h->stat == S_LOAD ? ar.scales[h->stat] / FSCALE : 823 | ar.scales[h->stat], 824 | tdown / (60*60), (tdown / 60) % 60, tdown % 60); | ^~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ xmeter.c:789:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 789 | popupscale(w, event, params, num) | ^ xmeter.c:249: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] 249 | void popupscale(); | ^ xmeter.c:838:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | popdownscale(w, event, params, num) | ^ xmeter.c:250: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] 250 | void popdownscale(); | ^ xmeter.c:855:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 855 | setokbackgrounds(d, s) | ^ | int xmeter.c:855:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] xmeter.c:878:1: warning: non-void function does not return a value [-Wreturn-type] 878 | } | ^ xmeter.c:899:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 899 | #endif SYSV | ^ | // xmeter.c:884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | freechild(sig) | ^ xmeter.c:242: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] 242 | SIGTYPE freechild(); | ^ xmeter.c:913:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 913 | getstatus(w, h, data) | ^ | int xmeter.c:937:7: warning: call to undeclared function 'state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 937 | s = state(l = getmeter(h), h); | ^ xmeter.c:937:17: warning: call to undeclared function 'getmeter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 937 | s = state(l = getmeter(h), h); | ^ xmeter.c:991:14: warning: call to undeclared function 'waitforhost'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 991 | sh->pid = waitforhost(h); | ^ xmeter.c:913:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | getstatus(w, h, data) | ^ xmeter.c:239: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] 239 | int getstatus(); | ^ xmeter.c:1010:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1010 | if (pid = fork()) | ~~~~^~~~~~~~ xmeter.c:1010:11: note: place parentheses around the assignment to silence this warning 1010 | if (pid = fork()) | ^ | ( ) xmeter.c:1010:11: note: use '==' to turn this assignment into an equality comparison 1010 | if (pid = fork()) | ^ | == xmeter.c:1014:7: warning: extra tokens at end of #else directive [-Wextra-tokens] 1014 | #else !SVR4 | ^ | // xmeter.c:1016:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1016 | #endif !SVR4 | ^ | // xmeter.c:1019:11: warning: call to undeclared function 'getport'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1019 | if (getport(h) > 0 || getppid() < 2) | ^ xmeter.c:1003:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1003 | waitforhost(h) | ^ xmeter.c:1034:7: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] 1034 | if (vfork()) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/unistd.h:608:1: note: 'vfork' has been explicitly marked deprecated here 608 | __deprecated_msg("Use posix_spawn or fork") | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' 218 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) | ^ xmeter.c:1038:3: warning: call to undeclared function 'fatal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1038 | fatal(ar.prog[s]); | ^ xmeter.c:1044:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1044 | selecthost(w, h, data) | ^ | int xmeter.c:1044:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] xmeter.c:241: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] 241 | int selecthost(); | ^ xmeter.c:1052:1: warning: non-void function does not return a value [-Wreturn-type] 1052 | } | ^ xmeter.c:1062:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1062 | changestat(w, statidx, data) | ^ | int xmeter.c:1062:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] xmeter.c:240: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] 240 | int changestat(); | ^ xmeter.c:1086:1: warning: non-void function does not return a value [-Wreturn-type] 1086 | } | ^ xmeter.c:1092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1092 | state(l, h) | ^ xmeter.c:1120:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1120 | fcoll(h) | ^ xmeter.c:245: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] 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^ xmeter.c:1129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1129 | fcpu(h) | ^ xmeter.c:245:15: 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] 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^ xmeter.c:1144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1144 | fdisks(h) | ^ xmeter.c:248:15: 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] 248 | int fpkts(), fdisks(), fswap(), ferr(); | ^ xmeter.c:1163:15: warning: passing arguments to 'fierr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1163 | return(fierr(h) + foerr(h)); | ^ xmeter.c:1163:26: warning: passing arguments to 'foerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1163 | return(fierr(h) + foerr(h)); | ^ xmeter.c:1158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1158 | ferr(h) | ^ xmeter.c:248:34: 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] 248 | int fpkts(), fdisks(), fswap(), ferr(); | ^ xmeter.c:1167:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1167 | fierr(h) | ^ xmeter.c:245:23: 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] 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^ xmeter.c:1176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1176 | fintr(h) | ^ xmeter.c:245:32: 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] 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^ xmeter.c:1185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1185 | fipkt(h) | ^ xmeter.c:245:41: 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] 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^ xmeter.c:1194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1194 | fload(h) | ^ xmeter.c:245:50: 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] 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^ xmeter.c:1203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1203 | foerr(h) | ^ xmeter.c:246: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] 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^ xmeter.c:1212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1212 | fopkt(h) | ^ xmeter.c:246:15: 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] 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^ xmeter.c:1221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1221 | fpage(h) | ^ xmeter.c:246:24: 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] 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^ xmeter.c:1230:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1230 | fpgpgin(h) | ^ xmeter.c:246:33: 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] 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^ xmeter.c:1239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1239 | fpkts(h) | ^ xmeter.c:248: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] 248 | int fpkts(), fdisks(), fswap(), ferr(); | ^ xmeter.c:1248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1248 | fpgpgout(h) | ^ xmeter.c:246:44: 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] 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^ xmeter.c:1262:17: warning: passing arguments to 'fpswpin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1262 | return(fpswpin(h) + fpswpout(h)); | ^ xmeter.c:1262:31: warning: passing arguments to 'fpswpout' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1262 | return(fpswpin(h) + fpswpout(h)); | ^ xmeter.c:1257:2: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1257 | fswap(h) | ^ xmeter.c:248:25: 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] 248 | int fpkts(), fdisks(), fswap(), ferr(); | ^ xmeter.c:1266:2: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1266 | fpswpin(h) | ^ xmeter.c:247: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] 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^ xmeter.c:1275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1275 | fpswpout(h) | ^ xmeter.c:247:17: 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] 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^ xmeter.c:1284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1284 | fswt(h) | ^ xmeter.c:247:29: 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] 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^ xmeter.c:1293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1293 | fsys(h) | ^ xmeter.c:247:37: 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] 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^ xmeter.c:1308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1308 | fuser(h) | ^ xmeter.c:247:45: 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] 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^ xmeter.c:1344:20: warning: call to undeclared function 'getport'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1344 | if ((p = getport(h)) <= 0) | ^ xmeter.c:1357:49: warning: incompatible function pointer types passing 'int (void)' to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types] 1357 | cs = clnt_call(sh->clnt, RSTATPROC_STATS, xdr_void, 0, xdr_statstime, | ^~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/rpc/clnt.h:197:38: note: expanded from macro 'clnt_call' 197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp, secs)) | ^~~~~ xmeter.c:1357:62: warning: incompatible function pointer types passing 'int (XDR *, statstime *)' (aka 'int (struct __rpc_xdr *, struct statstime *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types] 1357 | cs = clnt_call(sh->clnt, RSTATPROC_STATS, xdr_void, 0, xdr_statstime, | ^~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/rpc/clnt.h:197:52: note: expanded from macro 'clnt_call' 197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp, secs)) | ^~~~ xmeter.c:1366:67: 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] 1366 | return(sh->first ? 0 : sh->clnt == NULL ? -1 : (sd[h->stat].val)(h)); | ^ xmeter.c:1330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1330 | getmeter(h) | ^ xmeter.c:1389:39: warning: incompatible function pointer types passing 'int (XDR *, struct pmap *)' (aka 'int (struct __rpc_xdr *, struct pmap *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types] 1389 | cs = clnt_call(c, PMAPPROC_GETPORT, xdr_pmap, (caddr_t) &pm, | ^~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/rpc/clnt.h:197:38: note: expanded from macro 'clnt_call' 197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp, secs)) | ^~~~~ xmeter.c:1390:4: warning: incompatible function pointer types passing 'int (XDR *, unsigned short *)' (aka 'int (struct __rpc_xdr *, unsigned short *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types] 1390 | xdr_u_short, (caddr_t) &p, tto); | ^~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/rpc/clnt.h:197:52: note: expanded from macro 'clnt_call' 197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp, secs)) | ^~~~ xmeter.c:1373:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1373 | getport(h) | ^ xmeter.c:1416:23: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1416 | if (!(h = (METER *) malloc(sizeof(METER)))) | ^ xmeter.c:1416:23: note: include the header or explicitly provide a declaration for 'malloc' xmeter.c:1417:7: warning: call to undeclared function 'fatal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1417 | fatal("METER"); | ^ xmeter.c:1431:21: warning: passing arguments to 'newshmeter' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1431 | h->sh = newshmeter(he); | ^ xmeter.c:1400:2: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1400 | *initmeter(meterlist, idx, argc, argv) | ^ xmeter.c:243: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 subsequent definition [-Wdeprecated-non-prototype] 243 | METER *initmeter(); | ^ xmeter.c:1469:7: warning: call to undeclared function 'fatal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1469 | fatal("SHMETER"); | ^ xmeter.c:1472:28: warning: passing arguments to 'mystrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1472 | if (!(sh->name = mystrdup(he->h_name))) | ^ xmeter.c:1476:33: warning: passing arguments to 'mystrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1476 | if (!(sh->label = mystrdup(he->h_name))) | ^ xmeter.c:1448:2: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1448 | *newshmeter(he) | ^ xmeter.c:244:11: 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] 244 | SHMETER *newshmeter(); | ^ xmeter.c:1501:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1501 | if (t = (char *) malloc(strlen(s) + 1)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmeter.c:1501:9: note: place parentheses around the assignment to silence this warning 1501 | if (t = (char *) malloc(strlen(s) + 1)) | ^ | ( ) xmeter.c:1501:9: note: use '==' to turn this assignment into an equality comparison 1501 | if (t = (char *) malloc(strlen(s) + 1)) | ^ | == xmeter.c:1494:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1494 | mystrdup(s) | ^ xmeter.c:252: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] 252 | char *mystrdup(); | ^ xmeter.c:1508:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1508 | quit(w) | ^ xmeter.c:251: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] 251 | void quit(); | ^ xmeter.c:1517:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1517 | fatal(m) | ^ | int xmeter.c:1517:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] xmeter.c:35:14: warning: unused variable 'RCSid' [-Wunused-variable] 35 | static char *RCSid="$Header: /net/src/rand/bin/xmeter/RCS/xmeter.c,v 1.19 1994/05/25 01:01:08 bobs Exp $"; | ^~~~~ 128 warnings generated. --- xmeter --- rm -f xmeter clang -o xmeter -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib xmeter.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lrpcsvc Undefined symbols for architecture arm64: "_xdr_statstime", referenced from: _getmeter in xmeter.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [xmeter] Error code 1 bmake: stopped making "all" in /var/tmp/work/sysutils/xmeter/work bmake: 1 error bmake: stopped making "all" in /var/tmp/work/sysutils/xmeter/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/xmeter *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/xmeter