=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/time/gnyaclock", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for gnyaclock-20001218nb3 --- gnyaclock.o --- --- Clock.o --- --- gnyaclock.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -DSUPPORT_EDITRES -I/opt/pkg/include -c gnyaclock.c --- Clock.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -DSUPPORT_EDITRES -I/opt/pkg/include -c Clock.c --- gnyaclock.o --- gnyaclock.c:38:15: error: conflicting types for 'getenv'; have 'char *(void)' 38 | extern char *getenv(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from gnyaclock.c:15: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ gnyaclock.c:84: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] 84 | {"quit", quit} | ^~~~ gnyaclock.c:84:14: note: (near initialization for 'actions[0].proc') gnyaclock.c:39:14: note: 'quit' declared here 39 | static void quit(), biff(); | ^~~~ gnyaclock.c: In function 'Usage': gnyaclock.c:111:6: warning: old-style function definition [-Wold-style-definition] 111 | void Usage(st, estat) | ^~~~~ --- Clock.o --- Clock.c:57: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] 57 | {"toggle-digital", toggle_digital}, | ^~~~~~~~~~~~~~ Clock.c:57:25: note: (near initialization for 'actionList[0].proc') Clock.c:34:5: note: 'toggle_digital' declared here 34 | toggle_digital(), toggle_chase(), vn_evhandler(); | ^~~~~~~~~~~~~~ Clock.c:58: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] 58 | {"toggle-chase", toggle_chase}, | ^~~~~~~~~~~~ Clock.c:58:25: note: (near initialization for 'actionList[1].proc') Clock.c:34:23: note: 'toggle_chase' declared here 34 | toggle_digital(), toggle_chase(), vn_evhandler(); | ^~~~~~~~~~~~ Clock.c:59: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] 59 | {"motion", motion}, | ^~~~~~ Clock.c:59:25: note: (near initialization for 'actionList[2].proc') Clock.c:33:59: note: 'motion' declared here 33 | show_time(), set_timer(), reset_timer(), timerProc(), motion(), | ^~~~~~ --- gnyaclock.o --- gnyaclock.c: In function 'main': gnyaclock.c:191:5: warning: old-style function definition [-Wold-style-definition] 191 | int main(argc, argv) | ^~~~ gnyaclock.c:238:19: error: too many arguments to function 'getenv'; expected 0, have 1 238 | char *u = getenv("USER"); /* user name */ | ^~~~~~ ~~~~~~ gnyaclock.c:38:15: note: declared here 38 | extern char *getenv(); | ^~~~~~ gnyaclock.c:246:5: error: too many arguments to function 'biff'; expected 0, have 2 246 | biff((XtPointer) &gr, NULL); | ^~~~ ~~~~~~~~~~~~~~~ gnyaclock.c:39:22: note: declared here 39 | static void quit(), biff(); | ^~~~ gnyaclock.c: In function 'biff': gnyaclock.c:259:13: warning: old-style function definition [-Wold-style-definition] 259 | static void biff(client_data, timer) | ^~~~ gnyaclock.c:283:43: error: passing argument 3 of 'XtAppAddTimeOut' from incompatible pointer type [-Wincompatible-pointer-types] 283 | 1000*gr->biff_update, biff, client_data); | ^~~~ | | | void (*)(void) In file included from gnyaclock.c:20: /home/pbulk/work/time/gnyaclock/work/.buildlink/include/X11/Intrinsic.h:999:5: note: expected 'XtTimerCallbackProc' {aka 'void (*)(void *, long unsigned int *)'} but argument is of type 'void (*)(void)' 999 | XtTimerCallbackProc /* proc */, | ^~~~~~~~~~~~~~~~~~~ gnyaclock.c:259:13: note: 'biff' declared here 259 | static void biff(client_data, timer) | ^~~~ /home/pbulk/work/time/gnyaclock/work/.buildlink/include/X11/Intrinsic.h:318:16: note: 'XtTimerCallbackProc' declared here 318 | typedef void (*XtTimerCallbackProc)( | ^~~~~~~~~~~~~~~~~~~ gnyaclock.c: In function 'quit': gnyaclock.c:291:13: warning: old-style function definition [-Wold-style-definition] 291 | static void quit(w, xev) | ^~~~ --- Clock.o --- Clock.c:123:41: error: initialization of 'void (*)(struct _WidgetRec *, struct _WidgetRec *, struct *, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, struct _WidgetRec *, struct *, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 123 | /* initialize */ Initialize, | ^~~~~~~~~~ Clock.c:123:41: note: (near initialization for 'clockClassRec.core_class.initialize') Clock.c:30:24: note: 'Initialize' declared here 30 | ClassInitialize(), Initialize(), Realize(), Resize(), | ^~~~~~~~~~ Clock.c:125:41: error: initialization of 'void (*)(struct _WidgetRec *, XtValueMask *, XSetWindowAttributes *)' {aka 'void (*)(struct _WidgetRec *, long unsigned int *, XSetWindowAttributes *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 125 | /* realize */ Realize, | ^~~~~~~ Clock.c:125:41: note: (near initialization for 'clockClassRec.core_class.realize') Clock.c:30:38: note: 'Realize' declared here 30 | ClassInitialize(), Initialize(), Realize(), Resize(), | ^~~~~~~ Clock.c:135:41: error: initialization of 'void (*)(struct _WidgetRec *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 135 | /* destroy */ Destroy, | ^~~~~~~ Clock.c:135:41: note: (near initialization for 'clockClassRec.core_class.destroy') Clock.c:31:18: note: 'Destroy' declared here 31 | Redisplay(), Destroy(), freeGC(), getGC(), set_linewidth(), | ^~~~~~~ Clock.c:136:41: error: initialization of 'void (*)(struct _WidgetRec *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 136 | /* resize */ Resize, | ^~~~~~ Clock.c:136:41: note: (near initialization for 'clockClassRec.core_class.resize') Clock.c:30:49: note: 'Resize' declared here 30 | ClassInitialize(), Initialize(), Realize(), Resize(), | ^~~~~~ Clock.c:137:41: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, struct _XRegion *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, struct _XRegion *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 137 | /* expose */ Redisplay, | ^~~~~~~~~ Clock.c:137:41: note: (near initialization for 'clockClassRec.core_class.expose') Clock.c:31:5: note: 'Redisplay' declared here 31 | Redisplay(), Destroy(), freeGC(), getGC(), set_linewidth(), | ^~~~~~~~~ Clock.c:138:41: error: initialization of 'Boolean (*)(struct _WidgetRec *, struct _WidgetRec *, struct _WidgetRec *, struct *, Cardinal *)' {aka 'char (*)(struct _WidgetRec *, struct _WidgetRec *, struct _WidgetRec *, struct *, unsigned int *)'} from incompatible pointer type 'Boolean (*)(void)' {aka 'char (*)(void)'} [-Wincompatible-pointer-types] 138 | /* set_values */ SetValues, | ^~~~~~~~~ Clock.c:138:41: note: (near initialization for 'clockClassRec.core_class.set_values') Clock.c:37:5: note: 'SetValues' declared here 37 | SetValues(); | ^~~~~~~~~ Clock.c: In function 'Initialize': Clock.c:170:13: warning: old-style function definition [-Wold-style-definition] 170 | static void Initialize(request, new) | ^~~~~~~~~~ Clock.c:178:23: error: passing argument 4 of 'XtAddEventHandler' from incompatible pointer type [-Wincompatible-pointer-types] 178 | vn_evhandler, /* handler */ | ^~~~~~~~~~~~ | | | void (*)(void) In file included from /home/pbulk/work/time/gnyaclock/work/.buildlink/include/X11/IntrinsicP.h:51, from Clock.c:14: /home/pbulk/work/time/gnyaclock/work/.buildlink/include/X11/Intrinsic.h:849:5: note: expected 'XtEventHandler' {aka 'void (*)(struct _WidgetRec *, void *, union _XEvent *, char *)'} but argument is of type 'void (*)(void)' 849 | XtEventHandler /* proc */, | ^~~~~~~~~~~~~~ Clock.c:34:39: note: 'vn_evhandler' declared here 34 | toggle_digital(), toggle_chase(), vn_evhandler(); | ^~~~~~~~~~~~ /home/pbulk/work/time/gnyaclock/work/.buildlink/include/X11/Intrinsic.h:302:16: note: 'XtEventHandler' declared here 302 | typedef void (*XtEventHandler)( | ^~~~~~~~~~~~~~ Clock.c:186:5: error: too many arguments to function 'getGC'; expected 0, have 1 186 | getGC(new); | ^~~~~ ~~~ Clock.c:31:39: note: declared here 31 | Redisplay(), Destroy(), freeGC(), getGC(), set_linewidth(), | ^~~~~ Clock.c:193:9: error: too many arguments to function 'get_pix_geom'; expected 0, have 4 193 | get_pix_geom(cw, &wid, &hgt, NULL); /* set clock size */ | ^~~~~~~~~~~~ ~~ Clock.c:32:5: note: declared here 32 | get_pix_geom(), make_clock(), draw_hand(), calc_hand(), | ^~~~~~~~~~~~ Clock.c: In function 'Realize': Clock.c:203:13: warning: old-style function definition [-Wold-style-definition] 203 | static void Realize(w, valueMask, attrs) | ^~~~~~~ Clock.c:214:5: error: too many arguments to function 'Resize'; expected 0, have 1 214 | Resize(w); | ^~~~~~ ~ Clock.c:30:49: note: declared here 30 | ClassInitialize(), Initialize(), Realize(), Resize(), | ^~~~~~ Clock.c: In function 'Destroy': Clock.c:221:13: warning: old-style function definition [-Wold-style-definition] 221 | static void Destroy(w) | ^~~~~~~ Clock.c:226:5: error: too many arguments to function 'reset_timer'; expected 0, have 1 226 | reset_timer(cw); | ^~~~~~~~~~~ ~~ Clock.c:33:31: note: declared here 33 | show_time(), set_timer(), reset_timer(), timerProc(), motion(), | ^~~~~~~~~~~ Clock.c:228:5: error: too many arguments to function 'freeGC'; expected 0, have 1 228 | freeGC(w); | ^~~~~~ ~ Clock.c:31:29: note: declared here 31 | Redisplay(), Destroy(), freeGC(), getGC(), set_linewidth(), | ^~~~~~ Clock.c: In function 'Resize': Clock.c:235:13: warning: old-style function definition [-Wold-style-definition] 235 | static void Resize(w) | ^~~~~~ Clock.c:250:9: error: too many arguments to function 'make_clock'; expected 0, have 1 250 | make_clock(cw); | ^~~~~~~~~~ ~~ Clock.c:32:21: note: declared here 32 | get_pix_geom(), make_clock(), draw_hand(), calc_hand(), | ^~~~~~~~~~ Clock.c: In function 'Redisplay': Clock.c:258:13: warning: old-style function definition [-Wold-style-definition] 258 | static void Redisplay(w) | ^~~~~~~~~ Clock.c:263:9: error: too many arguments to function 'set_linewidth'; expected 0, have 1 263 | set_linewidth(cw); | ^~~~~~~~~~~~~ ~~ Clock.c:31:48: note: declared here 31 | Redisplay(), Destroy(), freeGC(), getGC(), set_linewidth(), | ^~~~~~~~~~~~~ Clock.c:264:9: error: too many arguments to function 'timerProc'; expected 0, have 2 264 | timerProc((XtPointer) w, NULL); | ^~~~~~~~~ ~~~~~~~~~~~~~ Clock.c:33:46: note: declared here 33 | show_time(), set_timer(), reset_timer(), timerProc(), motion(), | ^~~~~~~~~ Clock.c: In function 'SetValues': Clock.c:274:16: warning: old-style function definition [-Wold-style-definition] 274 | static Boolean SetValues(current, request, new) | ^~~~~~~~~ Clock.c:297:9: error: too many arguments to function 'getGC'; expected 0, have 1 297 | getGC(new); freeGC(current); | ^~~~~ ~~~ Clock.c:31:39: note: declared here 31 | Redisplay(), Destroy(), freeGC(), getGC(), set_linewidth(), | ^~~~~ Clock.c:297:21: error: too many arguments to function 'freeGC'; expected 0, have 1 297 | getGC(new); freeGC(current); | ^~~~~~ ~~~~~~~ Clock.c:31:29: note: declared here 31 | Redisplay(), Destroy(), freeGC(), getGC(), set_linewidth(), | ^~~~~~ Clock.c:305:16: error: too many arguments to function 'make_clock'; expected 0, have 1 305 | if(reconf) make_clock(new); | ^~~~~~~~~~ ~~~ Clock.c:32:21: note: declared here 32 | get_pix_geom(), make_clock(), draw_hand(), calc_hand(), | ^~~~~~~~~~ Clock.c:306:26: error: too many arguments to function 'Redisplay'; expected 0, have 1 306 | if(reconf || redraw) Redisplay(new); | ^~~~~~~~~ ~~~ Clock.c:258:13: note: declared here 258 | static void Redisplay(w) | ^~~~~~~~~ Clock.c: In function 'getGC': Clock.c:314:13: warning: old-style function definition [-Wold-style-definition] 314 | static void getGC(w) | ^~~~~ Clock.c:359:9: error: too many arguments to function 'get_pix_geom'; expected 0, have 4 359 | get_pix_geom(cw, NULL, NULL, &depth); /* BITMAP or PIXMAP */ | ^~~~~~~~~~~~ ~~ Clock.c:32:5: note: declared here 32 | get_pix_geom(), make_clock(), draw_hand(), calc_hand(), | ^~~~~~~~~~~~ Clock.c: In function 'freeGC': Clock.c:380:13: warning: old-style function definition [-Wold-style-definition] 380 | static void freeGC(w) | ^~~~~~ Clock.c: In function 'set_linewidth': Clock.c:396:13: warning: old-style function definition [-Wold-style-definition] 396 | static void set_linewidth(w) | ^~~~~~~~~~~~~ Clock.c: In function 'get_pix_geom': Clock.c:419:13: warning: old-style function definition [-Wold-style-definition] 419 | static void get_pix_geom(cw, rwid, rhgt, rdep) | ^~~~~~~~~~~~ Clock.c: In function 'make_clock': Clock.c:441:13: warning: old-style function definition [-Wold-style-definition] 441 | static void make_clock(cw) | ^~~~~~~~~~ Clock.c: In function 'draw_hand': Clock.c:497:13: warning: old-style function definition [-Wold-style-definition] 497 | static void draw_hand(cw, sec, mess) | ^~~~~~~~~ Clock.c:530:16: error: too many arguments to function 'time_str'; expected 0, have 1 530 | mess = time_str(sec); /* show time */ | ^~~~~~~~ ~~~ Clock.c:40:6: note: declared here 40 | *time_str(); | ^~~~~~~~ Clock.c:544:5: error: too many arguments to function 'calc_hand'; expected 0, have 3 544 | calc_hand(cw, co, sec); /* control pts */ | ^~~~~~~~~ ~~ Clock.c:32:48: note: declared here 32 | get_pix_geom(), make_clock(), draw_hand(), calc_hand(), | ^~~~~~~~~ Clock.c:545:5: error: too many arguments to function 'XDrawBezierCurve'; expected 0, have 5 545 | XDrawBezierCurve(dpy, pix, cw->gnya.gc_hand, co, 4); /* draw it */ | ^~~~~~~~~~~~~~~~ ~~~ Clock.c:502:10: note: declared here 502 | void XDrawBezierCurve(); | ^~~~~~~~~~~~~~~~ Clock.c: In function 'calc_hand': Clock.c:556:13: warning: old-style function definition [-Wold-style-definition] 556 | static void calc_hand(w, xp, tm) | ^~~~~~~~~ Clock.c: In function 'time_str': Clock.c:614:14: warning: old-style function definition [-Wold-style-definition] 614 | static char *time_str(cl) | ^~~~~~~~ Clock.c:623:5: error: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] 623 | sprintf(cp, "%d:%02d", hh, mm); | ^~~~~~~ Clock.c:19:1: note: include '' or provide a declaration of 'sprintf' 18 | #include "handdata.h" +++ |+#include 19 | Clock.c:623:5: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch] 623 | sprintf(cp, "%d:%02d", hh, mm); | ^~~~~~~ Clock.c:623:5: note: include '' or provide a declaration of 'sprintf' Clock.c: In function 'show_time': Clock.c:631:13: warning: old-style function definition [-Wold-style-definition] 631 | static void show_time(w) | ^~~~~~~~~ Clock.c:635:9: error: too many arguments to function 'draw_hand'; expected 0, have 3 635 | draw_hand(w, current_time(), w->gnya.label); /* draw the hand */ | ^~~~~~~~~ ~ Clock.c:497:13: note: declared here 497 | static void draw_hand(cw, sec, mess) | ^~~~~~~~~ Clock.c: In function 'timerProc': Clock.c:644:13: warning: old-style function definition [-Wold-style-definition] 644 | static void timerProc(client_data, timer_id) | ^~~~~~~~~ Clock.c:651:9: error: too many arguments to function 'show_time'; expected 0, have 1 651 | show_time(cw); /* update it */ | ^~~~~~~~~ ~~ Clock.c:631:13: note: declared here 631 | static void show_time(w) | ^~~~~~~~~ Clock.c:652:9: error: too many arguments to function 'set_timer'; expected 0, have 2 652 | set_timer(cw, 1000 * cw->gnya.update); /* set timer */ | ^~~~~~~~~ ~~ Clock.c:33:18: note: declared here 33 | show_time(), set_timer(), reset_timer(), timerProc(), motion(), | ^~~~~~~~~ Clock.c: In function 'set_timer': Clock.c:662:13: warning: old-style function definition [-Wold-style-definition] 662 | static void set_timer(w, delay) | ^~~~~~~~~ Clock.c:666:5: error: too many arguments to function 'reset_timer'; expected 0, have 1 666 | reset_timer(w); | ^~~~~~~~~~~ ~ Clock.c:33:31: note: declared here 33 | show_time(), set_timer(), reset_timer(), timerProc(), motion(), | ^~~~~~~~~~~ Clock.c:669:32: error: passing argument 3 of 'XtAppAddTimeOut' from incompatible pointer type [-Wincompatible-pointer-types] 669 | delay, timerProc, (XtPointer) w); | ^~~~~~~~~ | | | void (*)(void) /home/pbulk/work/time/gnyaclock/work/.buildlink/include/X11/Intrinsic.h:999:5: note: expected 'XtTimerCallbackProc' {aka 'void (*)(void *, long unsigned int *)'} but argument is of type 'void (*)(void)' 999 | XtTimerCallbackProc /* proc */, | ^~~~~~~~~~~~~~~~~~~ Clock.c:644:13: note: 'timerProc' declared here 644 | static void timerProc(client_data, timer_id) | ^~~~~~~~~ /home/pbulk/work/time/gnyaclock/work/.buildlink/include/X11/Intrinsic.h:318:16: note: 'XtTimerCallbackProc' declared here 318 | typedef void (*XtTimerCallbackProc)( | ^~~~~~~~~~~~~~~~~~~ Clock.c: In function 'reset_timer': Clock.c:676:13: warning: old-style function definition [-Wold-style-definition] 676 | static void reset_timer(w) | ^~~~~~~~~~~ Clock.c: In function 'toggle_digital': Clock.c:691:13: warning: old-style function definition [-Wold-style-definition] 691 | static void toggle_digital(w) | ^~~~~~~~~~~~~~ Clock.c: In function 'toggle_chase': Clock.c:698:13: warning: old-style function definition [-Wold-style-definition] 698 | static void toggle_chase(w) | ^~~~~~~~~~~~ Clock.c:703:5: error: too many arguments to function 'timerProc'; expected 0, have 2 703 | timerProc((XtPointer) w, NULL); | ^~~~~~~~~ ~~~~~~~~~~~~~ Clock.c:644:13: note: declared here 644 | static void timerProc(client_data, timer_id) | ^~~~~~~~~ Clock.c: In function 'motion': Clock.c:706:13: warning: old-style function definition [-Wold-style-definition] 706 | static void motion(w, xev) | ^~~~~~ Clock.c:719:9: error: too many arguments to function 'draw_hand'; expected 0, have 3 719 | draw_hand(w, ang, NULL); | ^~~~~~~~~ ~ Clock.c:497:13: note: declared here 497 | static void draw_hand(cw, sec, mess) | ^~~~~~~~~ Clock.c:720:9: error: too many arguments to function 'set_timer'; expected 0, have 2 720 | set_timer(w, DELAY); | ^~~~~~~~~ ~ Clock.c:662:13: note: declared here 662 | static void set_timer(w, delay) | ^~~~~~~~~ Clock.c: In function 'vn_evhandler': Clock.c:729:13: warning: old-style function definition [-Wold-style-definition] 729 | static void vn_evhandler(cw, client_data, xev, cont) | ^~~~~~~~~~~~ Clock.c:741:13: error: too many arguments to function 'timerProc'; expected 0, have 2 741 | timerProc((XtPointer) cw, NULL); /* invisible, update */ | ^~~~~~~~~ ~~~~~~~~~~~~~~ Clock.c:644:13: note: declared here 644 | static void timerProc(client_data, timer_id) | ^~~~~~~~~ --- gnyaclock.o --- *** [gnyaclock.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/time/gnyaclock/work/gnyaclock --- Clock.o --- *** [Clock.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/time/gnyaclock/work/gnyaclock bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/time/gnyaclock/work/gnyaclock *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/time/gnyaclock *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/time/gnyaclock