=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for xmeter-1.15nb4
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.c:36:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif lint
       ^
       //
xmeter.c:563:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
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]
      usage();
      ^
xmeter.c:602:8: warning: call to undeclared function 'printversion'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       printversion();
       ^
xmeter.c:603:3: warning: call to undeclared function 'init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  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]
  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 C2x [-Wdeprecated-non-prototype]
      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]
  free(lw);
  ^
xmeter.c:667:3: note: include the header <stdlib.h> 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]
  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 C2x [-Wdeprecated-non-prototype]
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]
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]
  exit(1);
  ^
xmeter.c:707:3: note: include the header <stdlib.h> 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]
printversion()
^
int
xmeter.c:723:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
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]
      if ((*lw = (Widget *) calloc(ar.columns, sizeof(Widget))) == NULL)
                            ^
xmeter.c:741:29: note: include the header <stdlib.h> 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]
          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]
          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 C2x [-Wdeprecated-non-prototype]
init(toplevel, lw)
^
xmeter.c:752:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
xmeter.c:759:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
createmenus(parent)
^
int
xmeter.c:779:36: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast]
                    (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 C2x [-Wdeprecated-non-prototype]
createmenus(parent)
^
xmeter.c:786:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
xmeter.c:824:8: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat]
              tdown / (60*60), (tdown / 60) % 60, tdown % 60);
              ^~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
  __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]
              tdown / (60*60), (tdown / 60) % 60, tdown % 60);
                               ^~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
  __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]
              tdown / (60*60), (tdown / 60) % 60, tdown % 60);
                                                  ^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
  __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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
void            popdownscale();
                ^
xmeter.c:855:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
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 C2x [-Wdeprecated-non-prototype]
xmeter.c:878:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
xmeter.c:899:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
SIGTYPE         freechild();
                ^
xmeter.c:913:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
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]
  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]
  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]
          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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
int             getstatus();
                ^
xmeter.c:1010:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (pid = fork())
      ~~~~^~~~~~~~
xmeter.c:1010:11: note: place parentheses around the assignment to silence this warning
  if (pid = fork())
          ^
      (           )
xmeter.c:1010:11: note: use '==' to turn this assignment into an equality comparison
  if (pid = fork())
          ^
          ==
xmeter.c:1014:7: warning: extra tokens at end of #else directive [-Wextra-tokens]
#else !SVR4
      ^
      //
xmeter.c:1016:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#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]
      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 C2x [-Wdeprecated-non-prototype]
waitforhost(h)
^
xmeter.c:1034:7: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations]
  if (vfork())
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/unistd.h:604:1: note: 'vfork' has been explicitly marked deprecated here
__deprecated_msg("Use posix_spawn or fork")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:208:48: note: expanded from macro '__deprecated_msg'
        #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]
  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]
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 C2x [-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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
int             selecthost();
                ^
xmeter.c:1052:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
xmeter.c:1062:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
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 C2x [-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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
int             changestat();
                ^
xmeter.c:1086:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
xmeter.c:1092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
  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 C2x [-Wdeprecated-non-prototype]
  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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
  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 C2x [-Wdeprecated-non-prototype]
  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 C2x [-Wdeprecated-non-prototype]
 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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]
          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]
      cs = clnt_call(sh->clnt, RSTATPROC_STATS, xdr_void, 0, xdr_statstime,
                                                ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/rpc/clnt.h:197:38: note: expanded from macro 'clnt_call'
        ((*(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]
      cs = clnt_call(sh->clnt, RSTATPROC_STATS, xdr_void, 0, xdr_statstime,
                                                             ^~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/rpc/clnt.h:197:52: note: expanded from macro 'clnt_call'
        ((*(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 C2x [-Wdeprecated-non-prototype]
  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 C2x [-Wdeprecated-non-prototype]
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]
  cs = clnt_call(c, PMAPPROC_GETPORT, xdr_pmap, (caddr_t) &pm,
                                      ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/rpc/clnt.h:197:38: note: expanded from macro 'clnt_call'
        ((*(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]
                 xdr_u_short, (caddr_t) &p, tto);
                 ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/rpc/clnt.h:197:52: note: expanded from macro 'clnt_call'
        ((*(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 C2x [-Wdeprecated-non-prototype]
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]
  if (!(h = (METER *) malloc(sizeof(METER))))
                      ^
xmeter.c:1416:23: note: include the header <stdlib.h> 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]
      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 C2x [-Wdeprecated-non-prototype]
  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 C2x [-Wdeprecated-non-prototype]
*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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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]
      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 C2x [-Wdeprecated-non-prototype]
  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 C2x [-Wdeprecated-non-prototype]
      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 C2x [-Wdeprecated-non-prototype]
*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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
SHMETER         *newshmeter();
                 ^
xmeter.c:1501:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (t = (char *) malloc(strlen(s) + 1))
      ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmeter.c:1501:9: note: place parentheses around the assignment to silence this warning
  if (t = (char *) malloc(strlen(s) + 1))
        ^
      (                                 )
xmeter.c:1501:9: note: use '==' to turn this assignment into an equality comparison
  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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
void            quit();
                ^
xmeter.c:1517:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
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 C2x [-Wdeprecated-non-prototype]
xmeter.c:35:14: warning: unused variable 'RCSid' [-Wunused-variable]
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.
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
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 in /Users/pbulk/build/sysutils/xmeter/work
1 error

bmake: stopped in /Users/pbulk/build/sysutils/xmeter/work
*** Error code 2

Stop.
bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/xmeter
*** Error code 1

Stop.
bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/xmeter