=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/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 --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I. -I./X11 -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -Dvfork=fork -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 cpp -undef -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 [-Wendif-labels] 36 | #endif lint | ^~~~ xmeter.c:553:20: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 553 | {"popupscale", popupscale}, | ^~~~~~~~~~ xmeter.c:553:20: note: (near initialization for 'scact[0].proc') xmeter.c:249:17: note: 'popupscale' declared here 249 | void popupscale(); | ^~~~~~~~~~ xmeter.c:554:22: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 554 | {"popdownscale", popdownscale} | ^~~~~~~~~~~~ xmeter.c:554:22: note: (near initialization for 'scact[1].proc') xmeter.c:250:17: note: 'popdownscale' declared here 250 | void popdownscale(); | ^~~~~~~~~~~~ xmeter.c:559:14: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 559 | {"quit", quit}, | ^~~~ xmeter.c:559:14: note: (near initialization for 'actions[0].proc') xmeter.c:251:17: note: 'quit' declared here 251 | void quit(); | ^~~~ xmeter.c:563:1: error: return type defaults to 'int' [-Wimplicit-int] 563 | main(argc, argv) | ^~~~ xmeter.c: In function 'main': xmeter.c:563:1: warning: old-style function definition [-Wold-style-definition] xmeter.c:592:7: error: implicit declaration of function 'usage' [-Wimplicit-function-declaration] 592 | usage(); | ^~~~~ xmeter.c:602:8: error: implicit declaration of function 'printversion' [-Wimplicit-function-declaration] 602 | printversion(); | ^~~~~~~~~~~~ xmeter.c:603:3: error: implicit declaration of function 'init' [-Wimplicit-function-declaration] 603 | init(toplevel, &lw); | ^~~~ xmeter.c:604:3: error: implicit declaration of function 'createmenus' [-Wimplicit-function-declaration] 604 | createmenus(form); | ^~~~~~~~~~~ xmeter.c:614:19: error: too many arguments to function 'initmeter'; expected 0, have 4 614 | meterlist = initmeter(meterlist, &i, argc, argv); | ^~~~~~~~~ ~~~~~~~~~ xmeter.c:243:18: note: declared here 243 | METER *initmeter(); | ^~~~~~~~~ xmeter.c:667:3: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 667 | free(lw); | ^~~~ xmeter.c:176:1: note: include '' or provide a declaration of 'free' 175 | #include "patchlevel.h" +++ |+#include 176 | xmeter.c:667:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 667 | free(lw); | ^~~~ xmeter.c:667:3: note: include '' or provide a declaration of 'free' xmeter.c:669:19: error: passing argument 2 of 'sigset' from incompatible pointer type [-Wincompatible-pointer-types] 669 | sigset(SIGCHLD, freechild); | ^~~~~~~~~ | | | void (*)(void) In file included from xmeter.c:133: /usr/include/signal.h:108:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 108 | extern void (*sigset(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ xmeter.c:242:17: note: 'freechild' declared here 242 | SIGTYPE freechild(); | ^~~~~~~~~ xmeter.c:678:3: error: implicit declaration of function 'setokbackgrounds'; did you mean 'XSetBackground'? [-Wimplicit-function-declaration] 678 | setokbackgrounds(XtDisplay(toplevel), XtScreen(toplevel)); | ^~~~~~~~~~~~~~~~ | XSetBackground xmeter.c: At top level: xmeter.c:683:1: error: return type defaults to 'int' [-Wimplicit-int] 683 | usage() | ^~~~~ xmeter.c: In function 'usage': xmeter.c:707:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 707 | exit(1); | ^~~~ xmeter.c:707:3: note: include '' or provide a declaration of 'exit' xmeter.c:707:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] xmeter.c:707:3: note: include '' or provide a declaration of 'exit' xmeter.c: At top level: xmeter.c:713:1: error: return type defaults to 'int' [-Wimplicit-int] 713 | printversion() | ^~~~~~~~~~~~ xmeter.c: In function 'printversion': xmeter.c:717:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 717 | exit(0); | ^~~~ xmeter.c:717:3: note: include '' or provide a declaration of 'exit' xmeter.c: At top level: xmeter.c:723:1: error: return type defaults to 'int' [-Wimplicit-int] 723 | init(toplevel, lw) | ^~~~ xmeter.c: In function 'init': xmeter.c:723:1: warning: old-style function definition [-Wold-style-definition] xmeter.c:741:29: error: implicit declaration of function 'calloc' [-Wimplicit-function-declaration] 741 | if ((*lw = (Widget *) calloc(ar.columns, sizeof(Widget))) == NULL) | ^~~~~~ xmeter.c:741:29: note: include '' or provide a declaration of 'calloc' xmeter.c:741:29: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch] xmeter.c:741:29: note: include '' or provide a declaration of 'calloc' xmeter.c:742:11: error: implicit declaration of function 'fatal' [-Wimplicit-function-declaration] 742 | fatal("lw"); | ^~~~~ xmeter.c:744:29: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch] 744 | if ((*lw = (Widget *) calloc(ar.rows, sizeof(Widget))) == NULL) | ^~~~~~ xmeter.c:744:29: note: include '' or provide a declaration of 'calloc' xmeter.c: At top level: xmeter.c:759:1: error: return type defaults to 'int' [-Wimplicit-int] 759 | createmenus(parent) | ^~~~~~~~~~~ xmeter.c: In function 'createmenus': xmeter.c:759:1: warning: old-style function definition [-Wold-style-definition] xmeter.c:779:50: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 779 | (XtCallbackProc) changestat, (XtPointer) i); | ^ xmeter.c: In function 'popupscale': xmeter.c:789:1: warning: old-style function definition [-Wold-style-definition] 789 | popupscale(w, event, params, num) | ^~~~~~~~~~ xmeter.c:796:1: error: number of arguments doesn't match prototype 796 | { | ^ xmeter.c:249:17: error: prototype declaration 249 | void popupscale(); | ^~~~~~~~~~ xmeter.c:810:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 810 | exit(1); | ^~~~ xmeter.c:810:7: note: include '' or provide a declaration of 'exit' xmeter.c: In function 'popdownscale': xmeter.c:838:1: warning: old-style function definition [-Wold-style-definition] 838 | popdownscale(w, event, params, num) | ^~~~~~~~~~~~ xmeter.c:845:1: error: number of arguments doesn't match prototype 845 | { | ^ xmeter.c:250:17: error: prototype declaration 250 | void popdownscale(); | ^~~~~~~~~~~~ xmeter.c: At top level: xmeter.c:855:1: error: return type defaults to 'int' [-Wimplicit-int] 855 | setokbackgrounds(d, s) | ^~~~~~~~~~~~~~~~ xmeter.c: In function 'setokbackgrounds': xmeter.c:855:1: warning: old-style function definition [-Wold-style-definition] xmeter.c: In function 'freechild': xmeter.c:884:1: warning: old-style function definition [-Wold-style-definition] 884 | freechild(sig) | ^~~~~~~~~ xmeter.c:888:1: error: number of arguments doesn't match prototype 888 | { | ^ xmeter.c:242:17: error: prototype declaration 242 | SIGTYPE freechild(); | ^~~~~~~~~ xmeter.c:899:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 899 | #endif SYSV | ^~~~ xmeter.c: At top level: xmeter.c:913:1: error: return type defaults to 'int' [-Wimplicit-int] 913 | getstatus(w, h, data) | ^~~~~~~~~ xmeter.c: In function 'getstatus': xmeter.c:913:1: warning: old-style function definition [-Wold-style-definition] xmeter.c:919:1: error: number of arguments doesn't match prototype 919 | { | ^ xmeter.c:239:17: error: prototype declaration 239 | int getstatus(); | ^~~~~~~~~ xmeter.c:937:7: error: implicit declaration of function 'state'; did you mean 'stat'? [-Wimplicit-function-declaration] 937 | s = state(l = getmeter(h), h); | ^~~~~ | stat xmeter.c:937:17: error: implicit declaration of function 'getmeter'; did you mean 'initmeter'? [-Wimplicit-function-declaration] 937 | s = state(l = getmeter(h), h); | ^~~~~~~~ | initmeter xmeter.c:991:21: error: implicit declaration of function 'waitforhost' [-Wimplicit-function-declaration] 991 | sh->pid = waitforhost(h); | ^~~~~~~~~~~ xmeter.c: In function 'waitforhost': xmeter.c:1003:1: warning: old-style function definition [-Wold-style-definition] 1003 | waitforhost(h) | ^~~~~~~~~~~ xmeter.c:1014:7: warning: extra tokens at end of '#else' directive [-Wendif-labels] 1014 | #else !SVR4 | ^ xmeter.c:1016:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1016 | #endif !SVR4 | ^ xmeter.c:1019:11: error: implicit declaration of function 'getport'; did you mean 'getpgrp'? [-Wimplicit-function-declaration] 1019 | if (getport(h) > 0 || getppid() < 2) | ^~~~~~~ | getpgrp xmeter.c:1020:11: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1020 | exit(0); | ^~~~ xmeter.c:1020:11: note: include '' or provide a declaration of 'exit' xmeter.c: At top level: xmeter.c:1044:1: error: return type defaults to 'int' [-Wimplicit-int] 1044 | selecthost(w, h, data) | ^~~~~~~~~~ xmeter.c: In function 'selecthost': xmeter.c:1044:1: warning: old-style function definition [-Wold-style-definition] xmeter.c:1050:1: error: number of arguments doesn't match prototype 1050 | { | ^ xmeter.c:241:17: error: prototype declaration 241 | int selecthost(); | ^~~~~~~~~~ xmeter.c: At top level: xmeter.c:1062:1: error: return type defaults to 'int' [-Wimplicit-int] 1062 | changestat(w, statidx, data) | ^~~~~~~~~~ xmeter.c: In function 'changestat': xmeter.c:1062:1: warning: old-style function definition [-Wold-style-definition] xmeter.c:1068:1: error: number of arguments doesn't match prototype 1068 | { | ^ xmeter.c:240:17: error: prototype declaration 240 | int changestat(); | ^~~~~~~~~~ xmeter.c: In function 'state': xmeter.c:1092:1: warning: old-style function definition [-Wold-style-definition] 1092 | state(l, h) | ^~~~~ xmeter.c: In function 'fcoll': xmeter.c:1120:1: warning: old-style function definition [-Wold-style-definition] 1120 | fcoll(h) | ^~~~~ xmeter.c:1124:1: error: number of arguments doesn't match prototype 1124 | { | ^ xmeter.c:245:17: error: prototype declaration 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^~~~~ xmeter.c: In function 'fcpu': xmeter.c:1129:1: warning: old-style function definition [-Wold-style-definition] 1129 | fcpu(h) | ^~~~ xmeter.c:1133:1: error: number of arguments doesn't match prototype 1133 | { | ^ xmeter.c:245:26: error: prototype declaration 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^~~~ xmeter.c: In function 'fdisks': xmeter.c:1144:1: warning: old-style function definition [-Wold-style-definition] 1144 | fdisks(h) | ^~~~~~ xmeter.c:1148:1: error: number of arguments doesn't match prototype 1148 | { | ^ xmeter.c:248:26: error: prototype declaration 248 | int fpkts(), fdisks(), fswap(), ferr(); | ^~~~~~ xmeter.c: In function 'ferr': xmeter.c:1158:1: warning: old-style function definition [-Wold-style-definition] 1158 | ferr(h) | ^~~~ xmeter.c:1162:1: error: number of arguments doesn't match prototype 1162 | { | ^ xmeter.c:248:45: error: prototype declaration 248 | int fpkts(), fdisks(), fswap(), ferr(); | ^~~~ xmeter.c:1163:10: error: too many arguments to function 'fierr'; expected 0, have 1 1163 | return(fierr(h) + foerr(h)); | ^~~~~ ~ xmeter.c:245:34: note: declared here 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^~~~~ xmeter.c:1163:21: error: too many arguments to function 'foerr'; expected 0, have 1 1163 | return(fierr(h) + foerr(h)); | ^~~~~ ~ xmeter.c:246:17: note: declared here 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^~~~~ xmeter.c: In function 'fierr': xmeter.c:1167:1: warning: old-style function definition [-Wold-style-definition] 1167 | fierr(h) | ^~~~~ xmeter.c:1171:1: error: number of arguments doesn't match prototype 1171 | { | ^ xmeter.c:245:34: error: prototype declaration 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^~~~~ xmeter.c: In function 'fintr': xmeter.c:1176:1: warning: old-style function definition [-Wold-style-definition] 1176 | fintr(h) | ^~~~~ xmeter.c:1180:1: error: number of arguments doesn't match prototype 1180 | { | ^ xmeter.c:245:43: error: prototype declaration 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^~~~~ xmeter.c: In function 'fipkt': xmeter.c:1185:1: warning: old-style function definition [-Wold-style-definition] 1185 | fipkt(h) | ^~~~~ xmeter.c:1189:1: error: number of arguments doesn't match prototype 1189 | { | ^ xmeter.c:245:52: error: prototype declaration 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^~~~~ xmeter.c: In function 'fload': xmeter.c:1194:1: warning: old-style function definition [-Wold-style-definition] 1194 | fload(h) | ^~~~~ xmeter.c:1198:1: error: number of arguments doesn't match prototype 1198 | { | ^ xmeter.c:245:61: error: prototype declaration 245 | int fcoll(), fcpu(), fierr(), fintr(), fipkt(), fload(); | ^~~~~ xmeter.c: In function 'foerr': xmeter.c:1203:1: warning: old-style function definition [-Wold-style-definition] 1203 | foerr(h) | ^~~~~ xmeter.c:1207:1: error: number of arguments doesn't match prototype 1207 | { | ^ xmeter.c:246:17: error: prototype declaration 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^~~~~ xmeter.c: In function 'fopkt': xmeter.c:1212:1: warning: old-style function definition [-Wold-style-definition] 1212 | fopkt(h) | ^~~~~ xmeter.c:1216:1: error: number of arguments doesn't match prototype 1216 | { | ^ xmeter.c:246:26: error: prototype declaration 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^~~~~ xmeter.c: In function 'fpage': xmeter.c:1221:1: warning: old-style function definition [-Wold-style-definition] 1221 | fpage(h) | ^~~~~ xmeter.c:1225:1: error: number of arguments doesn't match prototype 1225 | { | ^ xmeter.c:246:35: error: prototype declaration 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^~~~~ xmeter.c: In function 'fpgpgin': xmeter.c:1230:1: warning: old-style function definition [-Wold-style-definition] 1230 | fpgpgin(h) | ^~~~~~~ xmeter.c:1234:1: error: number of arguments doesn't match prototype 1234 | { | ^ xmeter.c:246:44: error: prototype declaration 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^~~~~~~ xmeter.c: In function 'fpkts': xmeter.c:1239:1: warning: old-style function definition [-Wold-style-definition] 1239 | fpkts(h) | ^~~~~ xmeter.c:1243:1: error: number of arguments doesn't match prototype 1243 | { | ^ xmeter.c:248:17: error: prototype declaration 248 | int fpkts(), fdisks(), fswap(), ferr(); | ^~~~~ xmeter.c:1244:10: error: too many arguments to function 'fipkt'; expected 0, have 1 1244 | return(fipkt(h) + fopkt(h)); | ^~~~~ ~ xmeter.c:1185:1: note: declared here 1185 | fipkt(h) | ^~~~~ xmeter.c:1244:21: error: too many arguments to function 'fopkt'; expected 0, have 1 1244 | return(fipkt(h) + fopkt(h)); | ^~~~~ ~ xmeter.c:1212:1: note: declared here 1212 | fopkt(h) | ^~~~~ xmeter.c: In function 'fpgpgout': xmeter.c:1248:1: warning: old-style function definition [-Wold-style-definition] 1248 | fpgpgout(h) | ^~~~~~~~ xmeter.c:1252:1: error: number of arguments doesn't match prototype 1252 | { | ^ xmeter.c:246:55: error: prototype declaration 246 | int foerr(), fopkt(), fpage(), fpgpgin(), fpgpgout(); | ^~~~~~~~ xmeter.c: In function 'fswap': xmeter.c:1257:2: warning: old-style function definition [-Wold-style-definition] 1257 | fswap(h) | ^~~~~ xmeter.c:1261:1: error: number of arguments doesn't match prototype 1261 | { | ^ xmeter.c:248:36: error: prototype declaration 248 | int fpkts(), fdisks(), fswap(), ferr(); | ^~~~~ xmeter.c:1262:10: error: too many arguments to function 'fpswpin'; expected 0, have 1 1262 | return(fpswpin(h) + fpswpout(h)); | ^~~~~~~ ~ xmeter.c:247:17: note: declared here 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^~~~~~~ xmeter.c:1262:23: error: too many arguments to function 'fpswpout'; expected 0, have 1 1262 | return(fpswpin(h) + fpswpout(h)); | ^~~~~~~~ ~ xmeter.c:247:28: note: declared here 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^~~~~~~~ xmeter.c: In function 'fpswpin': xmeter.c:1266:2: warning: old-style function definition [-Wold-style-definition] 1266 | fpswpin(h) | ^~~~~~~ xmeter.c:1270:1: error: number of arguments doesn't match prototype 1270 | { | ^ xmeter.c:247:17: error: prototype declaration 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^~~~~~~ xmeter.c: In function 'fpswpout': xmeter.c:1275:1: warning: old-style function definition [-Wold-style-definition] 1275 | fpswpout(h) | ^~~~~~~~ xmeter.c:1279:1: error: number of arguments doesn't match prototype 1279 | { | ^ xmeter.c:247:28: error: prototype declaration 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^~~~~~~~ xmeter.c: In function 'fswt': xmeter.c:1284:1: warning: old-style function definition [-Wold-style-definition] 1284 | fswt(h) | ^~~~ xmeter.c:1288:1: error: number of arguments doesn't match prototype 1288 | { | ^ xmeter.c:247:40: error: prototype declaration 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^~~~ xmeter.c: In function 'fsys': xmeter.c:1293:1: warning: old-style function definition [-Wold-style-definition] 1293 | fsys(h) | ^~~~ xmeter.c:1297:1: error: number of arguments doesn't match prototype 1297 | { | ^ xmeter.c:247:48: error: prototype declaration 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^~~~ xmeter.c: In function 'fuser': xmeter.c:1308:1: warning: old-style function definition [-Wold-style-definition] 1308 | fuser(h) | ^~~~~ xmeter.c:1312:1: error: number of arguments doesn't match prototype 1312 | { | ^ xmeter.c:247:56: error: prototype declaration 247 | int fpswpin(), fpswpout(), fswt(), fsys(), fuser(); | ^~~~~ xmeter.c: In function 'getmeter': xmeter.c:1330:1: warning: old-style function definition [-Wold-style-definition] 1330 | getmeter(h) | ^~~~~~~~ In file included from /usr/include/rpc/rpc.h:58, from xmeter.c:136: xmeter.c:1357:62: error: passing argument 5 of 'sh->clnt->cl_ops->cl_call' from incompatible pointer type [-Wincompatible-pointer-types] 1357 | cs = clnt_call(sh->clnt, RSTATPROC_STATS, xdr_void, 0, xdr_statstime, | ^~~~~~~~~~~~~ | | | bool_t (*)(XDR *, statstime *) {aka int (*)(XDR *, statstime *)} xmeter.c:1357:62: note: expected 'xdrproc_t' {aka 'int (*)(void)'} but argument is of type 'bool_t (*)(XDR *, statstime *)' {aka 'int (*)(XDR *, statstime *)'} In file included from xmeter.c:140: /usr/include/rpcsvc/rstat.h:148:16: note: 'xdr_statstime' declared here 148 | extern bool_t xdr_statstime(XDR *, statstime*); | ^~~~~~~~~~~~~ In file included from /usr/include/rpc/rpc.h:56: /usr/include/rpc/xdr.h:294:18: note: 'xdrproc_t' declared here 294 | typedef bool_t (*xdrproc_t)(); /* For Backward compatibility */ | ^~~~~~~~~ xmeter.c:1366:62: error: too many arguments to function 'sd[h->stat].val'; expected 0, have 1 1366 | return(sh->first ? 0 : sh->clnt == NULL ? -1 : (sd[h->stat].val)(h)); | ~~~~~~~~~~~~^~~~~ ~ xmeter.c:229:19: note: declared here 229 | int (*val)(); /* Function that computes this stat */ | ^~~ xmeter.c: In function 'getport': xmeter.c:1373:1: warning: old-style function definition [-Wold-style-definition] 1373 | getport(h) | ^~~~~~~ xmeter.c:1390:18: error: passing argument 5 of 'c->cl_ops->cl_call' from incompatible pointer type [-Wincompatible-pointer-types] 1390 | xdr_u_short, (caddr_t) &p, tto); | ^~~~~~~~~~~ | | | bool_t (*)(XDR *, ushort_t *) {aka int (*)(XDR *, short unsigned int *)} xmeter.c:1390:18: note: expected 'xdrproc_t' {aka 'int (*)(void)'} but argument is of type 'bool_t (*)(XDR *, ushort_t *)' {aka 'int (*)(XDR *, short unsigned int *)'} /usr/include/rpc/xdr.h:418:17: note: 'xdr_u_short' declared here 418 | extern bool_t xdr_u_short(XDR *, ushort_t *); | ^~~~~~~~~~~ /usr/include/rpc/xdr.h:294:18: note: 'xdrproc_t' declared here 294 | typedef bool_t (*xdrproc_t)(); /* For Backward compatibility */ | ^~~~~~~~~ xmeter.c: In function 'initmeter': xmeter.c:1400:2: warning: old-style function definition [-Wold-style-definition] 1400 | *initmeter(meterlist, idx, argc, argv) | ^~~~~~~~~ xmeter.c:1407:1: error: number of arguments doesn't match prototype 1407 | { | ^ xmeter.c:243:18: error: prototype declaration 243 | METER *initmeter(); | ^~~~~~~~~ xmeter.c:1416:23: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 1416 | if (!(h = (METER *) malloc(sizeof(METER)))) | ^~~~~~ xmeter.c:1416:23: note: include '' or provide a declaration of 'malloc' xmeter.c:1416:23: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] xmeter.c:1416:23: note: include '' or provide a declaration of 'malloc' xmeter.c:1431:11: error: too many arguments to function 'newshmeter'; expected 0, have 1 1431 | h->sh = newshmeter(he); | ^~~~~~~~~~ ~~ xmeter.c:244:18: note: declared here 244 | SHMETER *newshmeter(); | ^~~~~~~~~~ xmeter.c:1432:29: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1432 | if (!(h->label = (char *) malloc(strlen(h->sh->label) + 2 + MAXSTATNAME + | ^~~~~~ xmeter.c:1432:29: note: include '' or provide a declaration of 'malloc' xmeter.c: In function 'newshmeter': xmeter.c:1448:2: warning: old-style function definition [-Wold-style-definition] 1448 | *newshmeter(he) | ^~~~~~~~~~ xmeter.c:1452:1: error: number of arguments doesn't match prototype 1452 | { | ^ xmeter.c:244:18: error: prototype declaration 244 | SHMETER *newshmeter(); | ^~~~~~~~~~ xmeter.c:1468:26: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1468 | if (!(sh = (SHMETER *) malloc(sizeof(SHMETER)))) | ^~~~~~ xmeter.c:1468:26: note: include '' or provide a declaration of 'malloc' xmeter.c:1472:20: error: too many arguments to function 'mystrdup'; expected 0, have 1 1472 | if (!(sh->name = mystrdup(he->h_name))) | ^~~~~~~~ ~~~~~~~~~~ xmeter.c:252:18: note: declared here 252 | char *mystrdup(); | ^~~~~~~~ xmeter.c:1476:25: error: too many arguments to function 'mystrdup'; expected 0, have 1 1476 | if (!(sh->label = mystrdup(he->h_name))) | ^~~~~~~~ ~~~~~~~~~~ xmeter.c:252:18: note: declared here 252 | char *mystrdup(); | ^~~~~~~~ xmeter.c: In function 'mystrdup': xmeter.c:1494:1: warning: old-style function definition [-Wold-style-definition] 1494 | mystrdup(s) | ^~~~~~~~ xmeter.c:1498:1: error: number of arguments doesn't match prototype 1498 | { | ^ xmeter.c:252:18: error: prototype declaration 252 | char *mystrdup(); | ^~~~~~~~ xmeter.c:1501:20: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1501 | if (t = (char *) malloc(strlen(s) + 1)) | ^~~~~~ xmeter.c:1501:20: note: include '' or provide a declaration of 'malloc' xmeter.c: In function 'quit': xmeter.c:1508:1: warning: old-style function definition [-Wold-style-definition] 1508 | quit(w) | ^~~~ xmeter.c:1512:1: error: number of arguments doesn't match prototype 1512 | { | ^ xmeter.c:251:17: error: prototype declaration 251 | void quit(); | ^~~~ xmeter.c:1514:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1514 | exit(0); | ^~~~ xmeter.c:1514:3: note: include '' or provide a declaration of 'exit' xmeter.c: At top level: xmeter.c:1517:1: error: return type defaults to 'int' [-Wimplicit-int] 1517 | fatal(m) | ^~~~~ xmeter.c: In function 'fatal': xmeter.c:1517:1: warning: old-style function definition [-Wold-style-definition] xmeter.c:1523:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1523 | exit(1); | ^~~~ xmeter.c:1523:3: note: include '' or provide a declaration of 'exit' *** [xmeter.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/sysutils/xmeter/work bmake: 1 error bmake: stopped making "all" in /home/pbulk/work/sysutils/xmeter/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/xmeter *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/xmeter