+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/asnap-1.0nb2/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/asnap-1.0nb2/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for asnap-1.0nb2 --- asnap.o --- --- asnap._man --- --- asnap.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 asnap.c --- asnap._man --- rm -f asnap._man if test -z "" ; then cd `dirname asnap` && ln -s `basename asnap.man` `basename asnap._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" < asnap.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/\@\@$/\\/' >asnap._man; fi --- asnap.o --- asnap.c: In function 'create_event_window': asnap.c:52:8: error: type of 'init_cursor' defaults to 'int' [-Wimplicit-int] 52 | Window create_event_window(a_display,a_window, init_cursor) | ^~~~~~~~~~~~~~~~~~~ asnap.c: At top level: asnap.c:129:1: error: return type defaults to 'int' [-Wimplicit-int] 129 | get_region(a_display, a_window, x, y, width, height) | ^~~~~~~~~~ asnap.c: In function 'get_region': asnap.c:176:13: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 176 | exit(1); | ^~~~ asnap.c:19:1: note: include '' or provide a declaration of 'exit' 18 | #include +++ |+#include 19 | asnap.c:176:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 176 | exit(1); | ^~~~ asnap.c:176:13: note: include '' or provide a declaration of 'exit' asnap.c:188:49: error: passing argument 1 of 'XRefreshKeyboardMapping' from incompatible pointer type [-Wincompatible-pointer-types] 188 | XRefreshKeyboardMapping(&event); | ^~~~~~ | | | XEvent * {aka union _XEvent *} In file included from asnap.c:15: /home/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:3078:5: note: expected 'XMappingEvent *' but argument is of type 'XEvent *' {aka 'union _XEvent *'} 3078 | XMappingEvent* /* event_map */ | ^~~~~~~~~~~~~~ asnap.c:220:49: error: passing argument 1 of 'XRefreshKeyboardMapping' from incompatible pointer type [-Wincompatible-pointer-types] 220 | XRefreshKeyboardMapping(&event); | ^~~~~~ | | | XEvent * {aka union _XEvent *} /home/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:3078:5: note: expected 'XMappingEvent *' but argument is of type 'XEvent *' {aka 'union _XEvent *'} 3078 | XMappingEvent* /* event_map */ | ^~~~~~~~~~~~~~ asnap.c:281:32: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration] 281 | *width = (unsigned int)abs(last_x - init_x); | ^~~ asnap.c:281:32: note: include '' or provide a declaration of 'abs' asnap.c: In function 'get_pixmap_region': asnap.c:332:44: error: passing argument 3 of 'XGetGeometry' from incompatible pointer type [-Wincompatible-pointer-types] 332 | XGetGeometry (a_display, a_window, &junk_root, &junk_left, &junk_top, | ^~~~~~~~~~ | | | int * /home/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:2633:5: note: expected 'Window *' {aka 'long unsigned int *'} but argument is of type 'int *' 2633 | Window* /* root_return */, | ^~~~~~~ asnap.c: In function 'my_X_error_handler': asnap.c:373:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 373 | exit(1); | ^~~~ asnap.c:373:3: note: include '' or provide a declaration of 'exit' asnap.c: At top level: asnap.c:381:1: error: return type defaults to 'int' [-Wimplicit-int] 381 | usage() | ^~~~~ asnap.c: In function 'usage': asnap.c:399:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 399 | exit(1); | ^~~~ asnap.c:399:9: note: include '' or provide a declaration of 'exit' asnap.c: At top level: asnap.c:406:1: error: return type defaults to 'int' [-Wimplicit-int] 406 | process_args(argc, argv) | ^~~~~~~~~~~~ asnap.c: In function 'process_args': asnap.c:426:40: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 426 | border_width = atoi(argv[++i]); | ^~~~ asnap.c: In function 'Get_XColors': asnap.c:511:32: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 511 | if (!(*colors = (XColor *) malloc (sizeof(XColor) * ncolors))) | ^~~~~~ asnap.c:511:32: note: include '' or provide a declaration of 'malloc' asnap.c:511:32: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] asnap.c:511:32: note: include '' or provide a declaration of 'malloc' asnap.c: At top level: asnap.c:536:1: error: return type defaults to 'int' [-Wimplicit-int] 536 | _swapshort (bp, n) | ^~~~~~~~~~ asnap.c:551:1: error: return type defaults to 'int' [-Wimplicit-int] 551 | _swaplong (bp, n) | ^~~~~~~~~ asnap.c:572:1: error: return type defaults to 'int' [-Wimplicit-int] 572 | write_atk_bytes (file, curbyte, curcount) | ^~~~~~~~~~~~~~~ asnap.c:622:1: error: return type defaults to 'int' [-Wimplicit-int] 622 | process_atk_byte (pcurcount, pcurbyte, file, newbyte, eolflag) | ^~~~~~~~~~~~~~~~ asnap.c:657:1: error: return type defaults to 'int' [-Wimplicit-int] 657 | save_as_atk_file (display, screen, win_info, pixmap, width, height, depth) | ^~~~~~~~~~~~~~~~ asnap.c: In function 'save_as_atk_file': asnap.c:676:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 676 | exit (1); | ^~~~ asnap.c:676:9: note: include '' or provide a declaration of 'exit' asnap.c:693:35: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 693 | color_translate = (int *) malloc (sizeof(int) * ncolors); | ^~~~~~ asnap.c:693:35: note: include '' or provide a declaration of 'malloc' asnap.c: At top level: asnap.c:744:1: error: return type defaults to 'int' [-Wimplicit-int] 744 | save_as_xwd_file (display, screen, win_info, pixmap, width, height, depth) | ^~~~~~~~~~~~~~~~ asnap.c: In function 'save_as_xwd_file': asnap.c:770:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 770 | exit (1); | ^~~~ asnap.c:770:9: note: include '' or provide a declaration of 'exit' asnap.c:854:21: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 854 | if(ncolors > 0) free(colors); | ^~~~ asnap.c:854:21: note: include '' or provide a declaration of 'free' asnap.c:854:21: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] asnap.c:854:21: note: include '' or provide a declaration of 'free' asnap.c: At top level: asnap.c:862:1: error: return type defaults to 'int' [-Wimplicit-int] 862 | save_in_cut_buffer (display, screen, pixmap, width, height, depth) | ^~~~~~~~~~~~~~~~~~ asnap.c:870:1: error: return type defaults to 'int' [-Wimplicit-int] 870 | exitXsnap(the_display, snapshot, snap_pixmap, copy_gc) | ^~~~~~~~~ asnap.c: In function 'exitXsnap': asnap.c:881:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 881 | exit(0); | ^~~~ asnap.c:881:3: note: include '' or provide a declaration of 'exit' asnap.c: At top level: asnap.c:884:1: error: return type defaults to 'int' [-Wimplicit-int] 884 | main(argc, argv) | ^~~~ asnap.c: In function 'main': asnap.c:924:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 924 | exit(1); | ^~~~ asnap.c:924:13: note: include '' or provide a declaration of 'exit' asnap.c:1145:49: error: passing argument 1 of 'XRefreshKeyboardMapping' from incompatible pointer type [-Wincompatible-pointer-types] 1145 | XRefreshKeyboardMapping(&an_event); | ^~~~~~~~~ | | | XEvent * {aka union _XEvent *} /home/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:3078:5: note: expected 'XMappingEvent *' but argument is of type 'XEvent *' {aka 'union _XEvent *'} 3078 | XMappingEvent* /* event_map */ | ^~~~~~~~~~~~~~ asnap.c:1148:55: error: passing argument 1 of 'XLookupString' from incompatible pointer type [-Wincompatible-pointer-types] 1148 | string_length = XLookupString(&an_event, buffer, | ^~~~~~~~~ | | | XEvent * {aka union _XEvent *} In file included from asnap.c:17: /home/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xutil.h:535:5: note: expected 'XKeyEvent *' but argument is of type 'XEvent *' {aka 'union _XEvent *'} 535 | XKeyEvent* /* event_struct */, | ^~~~~~~~~~ *** [asnap.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/x11/asnap/work bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/x11/asnap/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/asnap *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/asnap