=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/xdu", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xdu-3.0nb8 --- xdu.o --- --- xwin.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -I/opt/pkg/include -c xwin.c --- xdu.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -I/opt/pkg/include -c xdu.c xdu.c:38:8: error: type defaults to 'int' in declaration of 'nodeinfo' [-Wimplicit-int] 38 | extern nodeinfo(), helpinfo(); | ^~~~~~~~ xdu.c:38:20: error: type defaults to 'int' in declaration of 'helpinfo' [-Wimplicit-int] 38 | extern nodeinfo(), helpinfo(); | ^~~~~~~~ xdu.c:42:7: error: conflicting types for 'strdup'; have 'char *(void)' 42 | char *strdup(); | ^~~~~~ In file included from xdu.c:24: /usr/include/string.h:142:14: note: previous declaration of 'strdup' with type 'char *(const char *)' 142 | extern char *strdup(const char *); | ^~~~~~ xdu.c: In function 'makenode': xdu.c:93:1: warning: old-style function definition [-Wold-style-definition] 93 | makenode(name,size) | ^~~~~~~~ xdu.c:99:29: error: implicit declaration of function 'calloc' [-Wimplicit-function-declaration] 99 | np = (struct node *)calloc(1,sizeof(struct node)); | ^~~~~~ xdu.c:26:1: note: include '' or provide a declaration of 'calloc' 25 | #include "version.h" +++ |+#include 26 | xdu.c:99:29: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch] 99 | np = (struct node *)calloc(1,sizeof(struct node)); | ^~~~~~ xdu.c:99:29: note: include '' or provide a declaration of 'calloc' xdu.c:102:17: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 102 | exit(1); | ^~~~ xdu.c:102:17: note: include '' or provide a declaration of 'exit' xdu.c:102:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] xdu.c:102:17: note: include '' or provide a declaration of 'exit' xdu.c:104:20: error: too many arguments to function 'strdup'; expected 0, have 1 104 | np->name = strdup(name); | ^~~~~~ ~~~~ xdu.c:42:7: note: declared here 42 | char *strdup(); | ^~~~~~ xdu.c: In function 'findnode': xdu.c:117:1: warning: old-style function definition [-Wold-style-definition] 117 | findnode(treep, x, y) | ^~~~~~~~ xdu.c: In function 'numchildren': xdu.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | numchildren(nodep) | ^~~~~~~~~~~ xdu.c: In function 'fix_tree': xdu.c:166:1: warning: old-style function definition [-Wold-style-definition] 166 | fix_tree(top) | ^~~~~~~~ xdu.c: At top level: xdu.c:199:1: error: return type defaults to 'int' [-Wimplicit-int] 199 | main(argc,argv) | ^~~~ xdu.c: In function 'main': xdu.c:199:1: warning: old-style function definition [-Wold-style-definition] xdu.c:203:20: error: too many arguments to function 'strdup'; expected 0, have 1 203 | top.name = strdup("[root]"); | ^~~~~~ ~~~~~~~~ xdu.c:42:7: note: declared here 42 | char *strdup(); | ^~~~~~ xdu.c:206:9: error: too many arguments to function 'xsetup'; expected 0, have 2 206 | xsetup(&argc,argv); | ^~~~~~ ~~~~~ xdu.c:33:12: note: declared here 33 | extern int xsetup(), xmainloop(), xrepaint(); | ^~~~~~ xdu.c:208:21: error: implicit declaration of function 'isatty' [-Wimplicit-function-declaration] 208 | if (isatty(fileno(stdin))) { | ^~~~~~ xdu.c:210:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 210 | exit(1); | ^~~~ xdu.c:210:25: note: include '' or provide a declaration of 'exit' xdu.c:212:25: error: too many arguments to function 'parse_file'; expected 0, have 1 212 | parse_file("-"); | ^~~~~~~~~~ ~~~ xdu.c:44:6: note: declared here 44 | void parse_file(); | ^~~~~~~~~~ xdu.c:215:17: error: too many arguments to function 'parse_file'; expected 0, have 1 215 | parse_file(argv[1]); | ^~~~~~~~~~ ~~~~~~~ xdu.c:44:6: note: declared here 44 | void parse_file(); | ^~~~~~~~~~ xdu.c:218:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 218 | exit(1); | ^~~~ xdu.c:218:17: note: include '' or provide a declaration of 'exit' xdu.c:224:17: error: too many arguments to function 'sorttree'; expected 0, have 2 224 | sorttree(&top, order); | ^~~~~~~~ ~~~~ xdu.c:48:6: note: declared here 48 | void sorttree(); | ^~~~~~~~ xdu.c:232:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 232 | exit(0); | ^~~~ xdu.c:232:9: note: include '' or provide a declaration of 'exit' xdu.c: In function 'parse_file': xdu.c:236:1: warning: old-style function definition [-Wold-style-definition] 236 | parse_file(filename) | ^~~~~~~~~~ xdu.c:238:1: error: number of arguments doesn't match prototype 238 | { | ^ xdu.c:44:6: error: prototype declaration 44 | void parse_file(); | ^~~~~~~~~~ xdu.c:249:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 249 | exit(1); | ^~~~ xdu.c:249:25: note: include '' or provide a declaration of 'exit' xdu.c:254:29: error: implicit declaration of function 'strtol'; did you mean 'strtok'? [-Wimplicit-function-declaration] 254 | size = (int)strtol( buf, &name, 10 ); | ^~~~~~ | strtok xdu.c:255:25: error: implicit declaration of function 'isspace' [-Wimplicit-function-declaration] 255 | while ( isspace(*name) ) name++; | ^~~~~~~ xdu.c:26:1: note: include '' or provide a declaration of 'isspace' 25 | #include "version.h" +++ |+#include 26 | xdu.c:257:17: error: too many arguments to function 'parse_entry'; expected 0, have 2 257 | parse_entry(name,size); | ^~~~~~~~~~~ ~~~~ xdu.c:45:6: note: declared here 45 | void parse_entry(); | ^~~~~~~~~~~ xdu.c: In function 'parse_entry': xdu.c:264:1: warning: old-style function definition [-Wold-style-definition] 264 | parse_entry(name,size) | ^~~~~~~~~~~ xdu.c:267:1: error: number of arguments doesn't match prototype 267 | { | ^ xdu.c:45:6: error: prototype declaration 45 | void parse_entry(); | ^~~~~~~~~~~ xdu.c:281:13: error: too many arguments to function 'strdup'; expected 0, have 1 281 | s = strdup(name); | ^~~~~~ ~~~~ xdu.c:42:7: note: declared here 42 | char *strdup(); | ^~~~~~ xdu.c:289:9: error: too many arguments to function 'addtree'; expected 0, have 3 289 | addtree(&top,path,size); | ^~~~~~~ ~~~~ xdu.c:43:6: note: declared here 43 | void addtree(); | ^~~~~~~ xdu.c: In function 'compare': xdu.c:300:1: warning: old-style function definition [-Wold-style-definition] 300 | compare(n1,n2,order) | ^~~~~~~ xdu.c: In function 'insertchild': xdu.c:343:1: warning: old-style function definition [-Wold-style-definition] 343 | insertchild(nodep,childp,order) | ^~~~~~~~~~~ xdu.c: In function 'addtree': xdu.c:386:1: warning: old-style function definition [-Wold-style-definition] 386 | addtree(top, path, size) | ^~~~~~~ xdu.c:390:1: error: number of arguments doesn't match prototype 390 | { | ^ xdu.c:43:6: error: prototype declaration 43 | void addtree(); | ^~~~~~~ xdu.c:405:25: error: too many arguments to function 'addtree'; expected 0, have 3 405 | addtree(np,&path[1],size); | ^~~~~~~ ~~ xdu.c:386:1: note: declared here 386 | addtree(top, path, size) | ^~~~~~~ xdu.c:419:9: error: too many arguments to function 'addtree'; expected 0, have 3 419 | addtree(np,&path[1],size); | ^~~~~~~ ~~ xdu.c:386:1: note: declared here 386 | addtree(top, path, size) | ^~~~~~~ xdu.c: In function 'dumptree': xdu.c:425:1: warning: old-style function definition [-Wold-style-definition] 425 | dumptree(np,level) | ^~~~~~~~ xdu.c:428:1: error: number of arguments doesn't match prototype 428 | { | ^ xdu.c:46:6: error: prototype declaration 46 | void dumptree(); | ^~~~~~~~ xdu.c:437:17: error: too many arguments to function 'dumptree'; expected 0, have 2 437 | dumptree(subnp,level+1); | ^~~~~~~~ ~~~~~ xdu.c:425:1: note: declared here 425 | dumptree(np,level) | ^~~~~~~~ xdu.c: In function 'sorttree': xdu.c:442:1: warning: old-style function definition [-Wold-style-definition] 442 | sorttree(np, order) | ^~~~~~~~ xdu.c:445:1: error: number of arguments doesn't match prototype 445 | { | ^ xdu.c:48:6: error: prototype declaration 48 | void sorttree(); | ^~~~~~~~ xdu.c:451:17: error: too many arguments to function 'sorttree'; expected 0, have 2 451 | sorttree(subnp, order); | ^~~~~~~~ ~~~~~ xdu.c:442:1: note: declared here 442 | sorttree(np, order) | ^~~~~~~~ xdu.c: At top level: xdu.c:481:1: error: return type defaults to 'int' [-Wimplicit-int] 481 | drawnode(nodep, rect) | ^~~~~~~~ xdu.c: In function 'drawnode': xdu.c:481:1: warning: old-style function definition [-Wold-style-definition] xdu.c:503:9: error: implicit declaration of function 'drawchildren'; did you mean 'numchildren'? [-Wimplicit-function-declaration] 503 | drawchildren(nodep, subrect); | ^~~~~~~~~~~~ | numchildren xdu.c: At top level: xdu.c:510:1: error: return type defaults to 'int' [-Wimplicit-int] 510 | drawchildren(nodep, rect) | ^~~~~~~~~~~~ xdu.c: In function 'drawchildren': xdu.c:510:1: warning: old-style function definition [-Wold-style-definition] xdu.c: In function 'clearrects': xdu.c:569:1: warning: old-style function definition [-Wold-style-definition] 569 | clearrects(nodep) | ^~~~~~~~~~ xdu.c:571:1: error: number of arguments doesn't match prototype 571 | { | ^ xdu.c:47:6: error: prototype declaration 47 | void clearrects(); | ^~~~~~~~~~ xdu.c:584:17: error: too many arguments to function 'clearrects'; expected 0, have 1 584 | clearrects(np); | ^~~~~~~~~~ ~~ xdu.c:569:1: note: declared here 569 | clearrects(nodep) | ^~~~~~~~~~ xdu.c: At top level: xdu.c:588:1: error: return type defaults to 'int' [-Wimplicit-int] 588 | pwd() | ^~~ xdu.c: In function 'press': xdu.c:621:1: warning: old-style function definition [-Wold-style-definition] 621 | press(x,y) | ^~~~~ xdu.c:623:1: error: number of arguments doesn't match prototype 623 | { | ^ xdu.c:37:12: error: prototype declaration 37 | extern int press(), reset(), repaint(), setorder(), reorder(); | ^~~~~ xdu.c: In function 'repaint': xdu.c:651:1: warning: old-style function definition [-Wold-style-definition] 651 | repaint(width,height) | ^~~~~~~ xdu.c:653:1: error: number of arguments doesn't match prototype 653 | { | ^ xdu.c:37:30: error: prototype declaration 37 | extern int press(), reset(), repaint(), setorder(), reorder(); | ^~~~~~~ xdu.c:662:9: error: too many arguments to function 'clearrects'; expected 0, have 1 662 | clearrects(&top); /* clear current rectangle info */ | ^~~~~~~~~~ ~~~~ xdu.c:569:1: note: declared here 569 | clearrects(nodep) | ^~~~~~~~~~ xdu.c: In function 'setorder': xdu.c:670:1: warning: old-style function definition [-Wold-style-definition] 670 | setorder(op) | ^~~~~~~~ xdu.c:672:1: error: number of arguments doesn't match prototype 672 | { | ^ xdu.c:37:41: error: prototype declaration 37 | extern int press(), reset(), repaint(), setorder(), reorder(); | ^~~~~~~~ xdu.c: In function 'reorder': xdu.c:712:1: warning: old-style function definition [-Wold-style-definition] 712 | reorder(op) | ^~~~~~~ xdu.c:714:1: error: number of arguments doesn't match prototype 714 | { | ^ xdu.c:37:53: error: prototype declaration 37 | extern int press(), reset(), repaint(), setorder(), reorder(); | ^~~~~~~ xdu.c:715:9: error: too many arguments to function 'setorder'; expected 0, have 1 715 | setorder(op); | ^~~~~~~~ ~~ xdu.c:670:1: note: declared here 670 | setorder(op) | ^~~~~~~~ xdu.c:716:9: error: too many arguments to function 'sorttree'; expected 0, have 2 716 | sorttree(topp, order); | ^~~~~~~~ ~~~~ xdu.c:442:1: note: declared here 442 | sorttree(np, order) | ^~~~~~~~ *** [xdu.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/sysutils/xdu/work --- xwin.o --- xwin.c:116:25: 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] 116 | { "reset", a_reset }, | ^~~~~~~ xwin.c:116:25: note: (near initialization for 'actionsTable[0].proc') xwin.c:106:13: note: 'a_reset' declared here 106 | static void a_reset(); | ^~~~~~~ xwin.c:117:25: 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] 117 | { "goto", a_goto }, | ^~~~~~ xwin.c:117:25: note: (near initialization for 'actionsTable[1].proc') xwin.c:105:13: note: 'a_goto' declared here 105 | static void a_goto(); | ^~~~~~ xwin.c:118:25: 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] 118 | { "quit", a_quit }, | ^~~~~~ xwin.c:118:25: note: (near initialization for 'actionsTable[2].proc') xwin.c:107:13: note: 'a_quit' declared here 107 | static void a_quit(); | ^~~~~~ xwin.c:119:25: 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] 119 | { "reorder", a_reorder }, | ^~~~~~~~~ xwin.c:119:25: note: (near initialization for 'actionsTable[3].proc') xwin.c:108:13: note: 'a_reorder' declared here 108 | static void a_reorder(); | ^~~~~~~~~ xwin.c:120:25: 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] 120 | { "size", a_size }, | ^~~~~~ xwin.c:120:25: note: (near initialization for 'actionsTable[4].proc') xwin.c:109:13: note: 'a_size' declared here 109 | static void a_size(); | ^~~~~~ xwin.c:121:25: 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] 121 | { "ncol", a_ncol }, | ^~~~~~ xwin.c:121:25: note: (near initialization for 'actionsTable[5].proc') xwin.c:110:13: note: 'a_ncol' declared here 110 | static void a_ncol(); | ^~~~~~ xwin.c:122:25: 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] 122 | { "info", a_info }, | ^~~~~~ xwin.c:122:25: note: (near initialization for 'actionsTable[6].proc') xwin.c:111:13: note: 'a_info' declared here 111 | static void a_info(); | ^~~~~~ xwin.c:123:25: 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] 123 | { "help", a_help }, | ^~~~~~ xwin.c:123:25: note: (near initialization for 'actionsTable[7].proc') xwin.c:112:13: note: 'a_help' declared here 112 | static void a_help(); | ^~~~~~ xwin.c:124:25: 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] 124 | { "RemoveHelp", a_removehelp } | ^~~~~~~~~~~~ xwin.c:124:25: note: (near initialization for 'actionsTable[8].proc') xwin.c:113:13: note: 'a_removehelp' declared here 113 | static void a_removehelp(); | ^~~~~~~~~~~~ xwin.c: In function 'a_quit': xwin.c:158:13: warning: old-style function definition [-Wold-style-definition] 158 | static void a_quit(w, event, params, num_params) | ^~~~~~ xwin.c: In function 'a_goto': xwin.c:168:13: warning: old-style function definition [-Wold-style-definition] 168 | static void a_goto(w, event, params, num_params) | ^~~~~~ xwin.c:174:9: error: too many arguments to function 'press'; expected 0, have 2 174 | press(event->xbutton.x, event->xbutton.y); | ^~~~~ ~~~~~~~~~~~~~~~~ xwin.c:38:12: note: declared here 38 | extern int press(); | ^~~~~ xwin.c: In function 'a_reset': xwin.c:177:13: warning: old-style function definition [-Wold-style-definition] 177 | static void a_reset(w, event, params, num_params) | ^~~~~~~ xwin.c: In function 'a_reorder': xwin.c:186:13: warning: old-style function definition [-Wold-style-definition] 186 | static void a_reorder(w, event, params, num_params) | ^~~~~~~~~ xwin.c:195:17: error: too many arguments to function 'reorder'; expected 0, have 1 195 | reorder(*params); | ^~~~~~~ ~~~~~~~ xwin.c:41:12: note: declared here 41 | extern int reorder(); | ^~~~~~~ xwin.c: In function 'a_size': xwin.c:199:13: warning: old-style function definition [-Wold-style-definition] 199 | static void a_size(w, event, params, num_params) | ^~~~~~ xwin.c: In function 'a_ncol': xwin.c:212:13: warning: old-style function definition [-Wold-style-definition] 212 | static void a_ncol(w, event, params, num_params) | ^~~~~~ xwin.c: In function 'a_info': xwin.c:233:13: warning: old-style function definition [-Wold-style-definition] 233 | static void a_info(w, event, params, num_params) | ^~~~~~ xwin.c: In function 'a_help': xwin.c:242:13: warning: old-style function definition [-Wold-style-definition] 242 | static void a_help(w, event, params, num_params) | ^~~~~~ xwin.c: In function 'a_removehelp': xwin.c:252:13: warning: old-style function definition [-Wold-style-definition] 252 | static void a_removehelp(w, event, params, num_params) | ^~~~~~~~~~~~ xwin.c: In function 'c_resize': xwin.c:263:13: warning: old-style function definition [-Wold-style-definition] 263 | static void c_resize(w, data, event, continue_to_dispatch) | ^~~~~~~~ xwin.c: In function 'c_repaint': xwin.c:273:13: warning: old-style function definition [-Wold-style-definition] 273 | static void c_repaint(w, data, event, continue_to_dispatch) | ^~~~~~~~~ xwin.c: In function 'xsetup': xwin.c:298:1: warning: old-style function definition [-Wold-style-definition] 298 | xsetup(argcp, argv) | ^~~~~~ xwin.c:301:1: error: number of arguments doesn't match prototype 301 | { | ^ xwin.c:48:12: error: prototype declaration 48 | extern int xsetup(); | ^~~~~~ xwin.c:347:9: error: too many arguments to function 'setorder'; expected 0, have 1 347 | setorder(res.order); | ^~~~~~~~ ~~~~~~~~~ xwin.c:42:12: note: declared here 42 | extern int setorder(); | ^~~~~~~~ xwin.c: At top level: xwin.c:351:1: error: return type defaults to 'int' [-Wimplicit-int] 351 | xmainloop() | ^~~~~~~~~ xwin.c:357:1: error: return type defaults to 'int' [-Wimplicit-int] 357 | xclear() | ^~~~~~ xwin.c:362:1: error: return type defaults to 'int' [-Wimplicit-int] 362 | xrepaint() | ^~~~~~~~ xwin.c: In function 'xrepaint': xwin.c:368:9: error: too many arguments to function 'repaint'; expected 0, have 2 368 | repaint(xwa.width, xwa.height); | ^~~~~~~ ~~~~~~~~~ xwin.c:40:12: note: declared here 40 | extern int repaint(); | ^~~~~~~ xwin.c: At top level: xwin.c:371:1: error: return type defaults to 'int' [-Wimplicit-int] 371 | xrepaint_noclear() | ^~~~~~~~~~~~~~~~ xwin.c: In function 'xrepaint_noclear': xwin.c:376:9: error: too many arguments to function 'repaint'; expected 0, have 2 376 | repaint(xwa.width, xwa.height); | ^~~~~~~ ~~~~~~~~~ xwin.c:40:12: note: declared here 40 | extern int repaint(); | ^~~~~~~ *** [xwin.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/sysutils/xdu/work bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/sysutils/xdu/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/xdu *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/xdu