WARNING: [license.mk] Every package should define a LICENSE.
===> Building for xmeter-1.15nb4
clang -Os -Wall -Wpointer-arith -no-cpp-precomp   -I. -I./X11  -I/opt/pkg/include    -D__x86_64__ -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' [-Wimplicit-int]
main(argc, argv)
^
xmeter.c:592:7: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration]
      usage();
      ^
xmeter.c:602:8: warning: implicit declaration of function 'printversion' is invalid in C99 [-Wimplicit-function-declaration]
       printversion();
       ^
xmeter.c:603:3: warning: implicit declaration of function 'init' is invalid in C99 [-Wimplicit-function-declaration]
  init(toplevel, &lw);
  ^
xmeter.c:604:3: warning: implicit declaration of function 'createmenus' is invalid in C99 [-Wimplicit-function-declaration]
  createmenus(form);
  ^
xmeter.c:667:3: warning: implicitly declaring library function 'free' with type 'void (void *)' [-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: implicit declaration of function 'setokbackgrounds' is invalid in C99 [-Wimplicit-function-declaration]
  setokbackgrounds(XtDisplay(toplevel), XtScreen(toplevel));
  ^
xmeter.c:683:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
usage()
^
xmeter.c:707:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-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' [-Wimplicit-int]
printversion()
^
xmeter.c:723:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
init(toplevel, lw)
^
xmeter.c:741:29: warning: implicitly declaring library function 'calloc' with type 'void *(unsigned long, unsigned long)' [-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: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
          fatal("lw");  
          ^
xmeter.c:745:4: warning: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
          fatal("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' [-Wimplicit-int]
createmenus(parent)
^
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: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 'long' [-Wformat]
              tdown / (60*60), (tdown / 60) % 60, tdown % 60);
              ^~~~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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 'long' [-Wformat]
              tdown / (60*60), (tdown / 60) % 60, tdown % 60);
                               ^~~~~~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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 'long' [-Wformat]
              tdown / (60*60), (tdown / 60) % 60, tdown % 60);
                                                  ^~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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:855:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
setokbackgrounds(d, s)
^
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:913:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
getstatus(w, h, data)
^
xmeter.c:937:7: warning: implicit declaration of function 'state' is invalid in C99 [-Wimplicit-function-declaration]
  s = state(l = getmeter(h), h);
      ^
xmeter.c:937:17: warning: implicit declaration of function 'getmeter' is invalid in C99 [-Wimplicit-function-declaration]
  s = state(l = getmeter(h), h);
                ^
xmeter.c:991:14: warning: implicit declaration of function 'waitforhost' is invalid in C99 [-Wimplicit-function-declaration]
          sh->pid = waitforhost(h);
                    ^
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: implicit declaration of function 'getport' is invalid in C99 [-Wimplicit-function-declaration]
      if (getport(h) > 0 || getppid() < 2)
          ^
xmeter.c:1034:7: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations]
  if (vfork())
      ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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")
^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
  fatal(ar.prog[s]);
  ^
xmeter.c:1044:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
selecthost(w, h, data)
^
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' [-Wimplicit-int]
changestat(w, statidx, data)
^
xmeter.c:1086:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
xmeter.c:1344:20: warning: implicit declaration of function 'getport' is invalid in C99 [-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,
                                                ^~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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,
                                                             ^~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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: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,
                                      ^~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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);
                 ^~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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:1416:23: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-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: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
      fatal("METER");
      ^
xmeter.c:1469:7: warning: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
      fatal("SHMETER");
      ^
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:1517:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
fatal(m)
^
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 $";
                 ^
50 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 -Os -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 x86_64:
  "_xdr_statstime", referenced from:
      _getmeter in xmeter.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [xmeter] Error code 1

bmake: stopped making "all" in /Users/pbulk/build/sysutils/xmeter/work
bmake: 1 error

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

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

Stop.
bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/sysutils/xmeter