=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/games/xroach", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xroach-4.4nb1 --- xroach.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/home/pbulk/work/games/xroach/work/xroach/bitmaps -I/opt/pkg/include -I/opt/pkg/include -c xroach.c xroach.c: In function 'main': xroach.c:81:1: warning: old-style function definition [-Wold-style-definition] 81 | main(ac, av) | ^~~~ xroach.c:123:21: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 123 | signal(SIGKILL, SigHandler); | ^~~~~~~~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from xroach.c:22: /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ xroach.c:71:6: note: 'SigHandler' declared here 71 | void SigHandler(); | ^~~~~~~~~~ xroach.c:124:20: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 124 | signal(SIGINT, SigHandler); | ^~~~~~~~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ xroach.c:71:6: note: 'SigHandler' declared here 71 | void SigHandler(); | ^~~~~~~~~~ xroach.c:125:21: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 125 | signal(SIGTERM, SigHandler); | ^~~~~~~~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ xroach.c:71:6: note: 'SigHandler' declared here 71 | void SigHandler(); | ^~~~~~~~~~ xroach.c:126:20: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 126 | signal(SIGHUP, SigHandler); | ^~~~~~~~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ xroach.c:71:6: note: 'SigHandler' declared here 71 | void SigHandler(); | ^~~~~~~~~~ xroach.c:162:33: error: too many arguments to function 'AllocNamedColor'; expected 0, have 2 162 | XSetForeground(display, gc, AllocNamedColor(roachColor, black)); | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ xroach.c:78:7: note: declared here 78 | Pixel AllocNamedColor(); | ^~~~~~~~~~~~~~~ xroach.c:196:25: error: too many arguments to function 'MoveRoach'; expected 0, have 1 196 | MoveRoach(rx); | ^~~~~~~~~ ~~ xroach.c:73:6: note: declared here 73 | void MoveRoach(); | ^~~~~~~~~ xroach.c: In function 'RandInt': xroach.c:256:1: warning: old-style function definition [-Wold-style-definition] 256 | RandInt(maxVal) | ^~~~~~~ xroach.c: In function 'RoachInRect': xroach.c:266:1: warning: old-style function definition [-Wold-style-definition] 266 | RoachInRect(roach, rx, ry, x, y, width, height) | ^~~~~~~~~~~ xroach.c: In function 'RoachOverRect': xroach.c:287:1: warning: old-style function definition [-Wold-style-definition] 287 | RoachOverRect(roach, rx, ry, x, y, width, height) | ^~~~~~~~~~~~~ xroach.c: In function 'TurnRoach': xroach.c:330:1: warning: old-style function definition [-Wold-style-definition] 330 | TurnRoach(roach) | ^~~~~~~~~ xroach.c: In function 'MoveRoach': xroach.c:351:1: warning: old-style function definition [-Wold-style-definition] 351 | MoveRoach(rx) | ^~~~~~~~~ xroach.c:353:1: error: number of arguments doesn't match prototype 353 | { | ^ xroach.c:73:6: error: prototype declaration 73 | void MoveRoach(); | ^~~~~~~~~ xroach.c: In function 'RoachErrors': xroach.c:450:1: warning: old-style function definition [-Wold-style-definition] 450 | RoachErrors(dpy, err) | ^~~~~~~~~~~ xroach.c: In function 'CalcRootVisible': xroach.c:522:22: error: passing argument 1 of 'XSetErrorHandler' from incompatible pointer type [-Wincompatible-pointer-types] 522 | XSetErrorHandler((ErrorHandler *)NULL); | ^ | | | int (*)(void) In file included from xroach.c:16: /home/pbulk/work/games/xroach/work/.buildlink/include/X11/Xlib.h:1849:5: note: expected 'XErrorHandler' {aka 'int (*)(struct _XDisplay *, XErrorEvent *)'} but argument is of type 'int (*)(void)' 1849 | XErrorHandler /* handler */ | ^~~~~~~~~~~~~ /home/pbulk/work/games/xroach/work/.buildlink/include/X11/Xlib.h:1843:15: note: 'XErrorHandler' declared here 1843 | typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ^~~~~~~~~~~~~ xroach.c: In function 'AllocNamedColor': xroach.c:586:1: warning: old-style function definition [-Wold-style-definition] 586 | AllocNamedColor(colorName, dfltPix) | ^~~~~~~~~~~~~~~ xroach.c:589:1: error: number of arguments doesn't match prototype 589 | { | ^ xroach.c:78:7: error: prototype declaration 78 | Pixel AllocNamedColor(); | ^~~~~~~~~~~~~~~ *** [xroach.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/games/xroach/work/xroach bmake: 1 error bmake: stopped making "all" in /home/pbulk/work/games/xroach/work/xroach *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/xroach *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/xroach