=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/asnap", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for asnap-1.0nb2 --- asnap.o --- --- asnap._man --- --- asnap.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -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 /usr/bin/cpp -undef -traditional -D__GNUC__ -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:52:48: warning: parameter 'init_cursor' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 52 | Window create_event_window(a_display,a_window, init_cursor) | ^ 53 | Display *a_display; 54 | Window a_window; 55 | { asnap.c:52:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | Window create_event_window(a_display,a_window, init_cursor) | ^ asnap.c:86:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | void draw_box(a_display, a_window, a_gc, x1, y1, x2, y2) | ^ asnap.c:129:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 129 | get_region(a_display, a_window, x, y, width, height) | ^ | int asnap.c:176:6: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 176 | exit(1); | ^ asnap.c:176:6: note: include the header or explicitly provide a declaration for 'exit' asnap.c:188:28: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XMappingEvent *' [-Wincompatible-pointer-types] 188 | XRefreshKeyboardMapping(&event); | ^~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:3079:1: note: passing argument to parameter here 3079 | ); | ^ asnap.c:220:28: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XMappingEvent *' [-Wincompatible-pointer-types] 220 | XRefreshKeyboardMapping(&event); | ^~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:3079:1: note: passing argument to parameter here 3079 | ); | ^ asnap.c:281:25: warning: call to undeclared library function 'abs' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 281 | *width = (unsigned int)abs(last_x - init_x); | ^ asnap.c:281:25: note: include the header or explicitly provide a declaration for 'abs' asnap.c:129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | get_region(a_display, a_window, x, y, width, height) | ^ asnap.c:290:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 290 | } | ^ asnap.c:332:37: warning: incompatible pointer types passing 'int *' to parameter of type 'Window *' (aka 'unsigned long *') [-Wincompatible-pointer-types] 332 | XGetGeometry (a_display, a_window, &junk_root, &junk_left, &junk_top, | ^~~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:2633:31: note: passing argument to parameter here 2633 | Window* /* root_return */, | ^ asnap.c:333:9: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 333 | &junk_width, &junk_height, &junk_border_width, depth); | ^~~~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:2636:37: note: passing argument to parameter here 2636 | unsigned int* /* width_return */, | ^ asnap.c:333:22: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 333 | &junk_width, &junk_height, &junk_border_width, depth); | ^~~~~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:2637:38: note: passing argument to parameter here 2637 | unsigned int* /* height_return */, | ^ asnap.c:333:36: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 333 | &junk_width, &junk_height, &junk_border_width, depth); | ^~~~~~~~~~~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:2638:44: note: passing argument to parameter here 2638 | unsigned int* /* border_width_return */, | ^ asnap.c:318:6: warning: unused variable 'return_flag' [-Wunused-variable] 318 | int return_flag; | ^~~~~~~~~~~ asnap.c:304:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | Pixmap get_pixmap_region(a_display, a_screen, a_window, a_gc, x, y, | ^ asnap.c:352:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | int my_X_error_handler(display, myerr) | ^ asnap.c:381:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 381 | usage() | ^ | int asnap.c:406:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 406 | process_args(argc, argv) | ^ | int asnap.c:426:19: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | border_width = atoi(argv[++i]); | ^ asnap.c:406:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | process_args(argc, argv) | ^ asnap.c:491:1: warning: non-void function does not return a value [-Wreturn-type] 491 | } | ^ asnap.c:511:32: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 511 | if (!(*colors = (XColor *) malloc (sizeof(XColor) * ncolors))) | ^ asnap.c:511:32: note: include the header or explicitly provide a declaration for 'malloc' asnap.c:496:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | int Get_XColors(dpy, win_info, colors) | ^ asnap.c:526:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | int Image_Size(image, format) | ^ asnap.c:536:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 536 | _swapshort (bp, n) | ^ | int asnap.c:536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] asnap.c:549:1: warning: non-void function does not return a value [-Wreturn-type] 549 | } | ^ asnap.c:551:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 551 | _swaplong (bp, n) | ^ | int asnap.c:551:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] asnap.c:570:1: warning: non-void function does not return a value [-Wreturn-type] 570 | } | ^ asnap.c:572:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 572 | write_atk_bytes (file, curbyte, curcount) | ^ | int asnap.c:572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] asnap.c:619:1: warning: non-void function does not return a value [-Wreturn-type] 619 | } | ^ asnap.c:622:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 622 | process_atk_byte (pcurcount, pcurbyte, file, newbyte, eolflag) | ^ | int asnap.c:629:9: warning: unused variable 'curcount' [-Wunused-variable] 629 | int curcount = *pcurcount; | ^~~~~~~~ asnap.c:630:19: warning: unused variable 'curbyte' [-Wunused-variable] 630 | unsigned char curbyte = *pcurbyte; | ^~~~~~~ asnap.c:622:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 622 | process_atk_byte (pcurcount, pcurbyte, file, newbyte, eolflag) | ^ asnap.c:655:1: warning: non-void function does not return a value [-Wreturn-type] 655 | } | ^ asnap.c:657:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 657 | save_as_atk_file (display, screen, win_info, pixmap, width, height, depth) | ^ | int asnap.c:690:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 690 | if (crunch_to_bw = (image->depth > 1)) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ asnap.c:690:22: note: place parentheses around the assignment to silence this warning 690 | if (crunch_to_bw = (image->depth > 1)) | ^ | ( ) asnap.c:690:22: note: use '==' to turn this assignment into an equality comparison 690 | if (crunch_to_bw = (image->depth > 1)) | ^ | == asnap.c:703:41: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 703 | fprintf(output, "%ld %ld %ld %ld ", RASTERVERSION, | ~~~ ^~~~~~~~~~~~~ | %d asnap.c:700:23: note: expanded from macro 'RASTERVERSION' 700 | #define RASTERVERSION 2 | ^ asnap.c:704:7: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 703 | fprintf(output, "%ld %ld %ld %ld ", RASTERVERSION, | ~~~ | %d 704 | 0, DEFAULTSCALE, DEFAULTSCALE); | ^ asnap.c:704:10: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 703 | fprintf(output, "%ld %ld %ld %ld ", RASTERVERSION, | ~~~ | %d 704 | 0, DEFAULTSCALE, DEFAULTSCALE); | ^~~~~~~~~~~~ asnap.c:699:22: note: expanded from macro 'DEFAULTSCALE' 699 | #define DEFAULTSCALE (1<<16) | ^~~~~~~ asnap.c:704:24: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 703 | fprintf(output, "%ld %ld %ld %ld ", RASTERVERSION, | ~~~ | %d 704 | 0, DEFAULTSCALE, DEFAULTSCALE); | ^~~~~~~~~~~~ asnap.c:699:22: note: expanded from macro 'DEFAULTSCALE' 699 | #define DEFAULTSCALE (1<<16) | ^~~~~~~ asnap.c:706:7: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 705 | fprintf(output, "%ld %ld %ld %ld\n", | ~~~ | %d 706 | 0, 0, width, height); /* subraster */ | ^ asnap.c:706:10: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 705 | fprintf(output, "%ld %ld %ld %ld\n", | ~~~ | %d 706 | 0, 0, width, height); /* subraster */ | ^ asnap.c:706:13: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] 705 | fprintf(output, "%ld %ld %ld %ld\n", | ~~~ | %u 706 | 0, 0, width, height); /* subraster */ | ^~~~~ asnap.c:706:20: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] 705 | fprintf(output, "%ld %ld %ld %ld\n", | ~~~ | %u 706 | 0, 0, width, height); /* subraster */ | ^~~~~~ asnap.c:707:43: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 707 | fprintf(output, "bits %ld %ld %ld\n", 1, width, height); | ~~~ ^ | %d asnap.c:707:46: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] 707 | fprintf(output, "bits %ld %ld %ld\n", 1, width, height); | ~~~ ^~~~~ | %u asnap.c:707:53: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] 707 | fprintf(output, "bits %ld %ld %ld\n", 1, width, height); | ~~~ ^~~~~~ | %u asnap.c:657:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 657 | save_as_atk_file (display, screen, win_info, pixmap, width, height, depth) | ^ asnap.c:740:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 740 | } | ^ asnap.c:744:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 744 | save_as_xwd_file (display, screen, win_info, pixmap, width, height, depth) | ^ | int asnap.c:854:21: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 854 | if(ncolors > 0) free(colors); | ^ asnap.c:854:21: note: include the header or explicitly provide a declaration for 'free' asnap.c:754:9: warning: unused variable 'win_name_size' [-Wunused-variable] 754 | int win_name_size; | ^~~~~~~~~~~~~ asnap.c:757:11: warning: unused variable 'win_name' [-Wunused-variable] 757 | char *win_name; | ^~~~~~~~ asnap.c:759:9: warning: unused variable 'absx' [-Wunused-variable] 759 | int absx, absy, x, y; | ^~~~ asnap.c:759:15: warning: unused variable 'absy' [-Wunused-variable] 759 | int absx, absy, x, y; | ^~~~ asnap.c:759:21: warning: unused variable 'x' [-Wunused-variable] 759 | int absx, absy, x, y; | ^ asnap.c:759:24: warning: unused variable 'y' [-Wunused-variable] 759 | int absx, absy, x, y; | ^ asnap.c:760:9: warning: unused variable 'dwidth' [-Wunused-variable] 760 | int dwidth, dheight; | ^~~~~~ asnap.c:760:17: warning: unused variable 'dheight' [-Wunused-variable] 760 | int dwidth, dheight; | ^~~~~~~ asnap.c:761:9: warning: unused variable 'bw' [-Wunused-variable] 761 | int bw; | ^~ asnap.c:744:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 744 | save_as_xwd_file (display, screen, win_info, pixmap, width, height, depth) | ^ asnap.c:860:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 860 | } | ^ asnap.c:862:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 862 | save_in_cut_buffer (display, screen, pixmap, width, height, depth) | ^ | int asnap.c:862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] asnap.c:868:1: warning: non-void function does not return a value [-Wreturn-type] 868 | } | ^ asnap.c:870:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 870 | exitXsnap(the_display, snapshot, snap_pixmap, copy_gc) | ^ | int asnap.c:870:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] asnap.c:884:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 884 | main(argc, argv) | ^ | int asnap.c:957:26: warning: too few arguments in call to 'get_pixmap_region' 954 | snap_pixmap = get_pixmap_region(the_display, the_screen, | ~~~~~~~~~~~~~~~~~ 955 | window_to_snap, copy_gc, 956 | ®_x, ®_y, ®_width, 957 | ®_height, FALSE); | ^ asnap.c:1002:20: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1002 | &y_return, &width_return, | ^~~~~~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here 2871 | unsigned int* /* width_return */, | ^ asnap.c:1003:9: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1003 | &height_return); | ^~~~~~~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here 2873 | ); | ^ asnap.c:1065:20: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1065 | &y_return, &width_return, | ^~~~~~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here 2871 | unsigned int* /* width_return */, | ^ asnap.c:1066:9: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1066 | &height_return); | ^~~~~~~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here 2873 | ); | ^ asnap.c:1134:28: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'Window' (aka 'unsigned long') [-Wint-conversion] 1134 | exitXsnap (the_display, NULL, snap_pixmap, copy_gc); | ^~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:14: note: expanded from macro 'NULL' 26 | #define NULL ((void*)0) | ^~~~~~~~~~ asnap.c:1145:28: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XMappingEvent *' [-Wincompatible-pointer-types] 1145 | XRefreshKeyboardMapping(&an_event); | ^~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xlib.h:3079:1: note: passing argument to parameter here 3079 | ); | ^ asnap.c:1148:34: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XKeyEvent *' [-Wincompatible-pointer-types] 1148 | string_length = XLookupString(&an_event, buffer, | ^~~~~~~~~ /var/tmp/work/x11/asnap/work/.buildlink/include/X11/Xutil.h:535:35: note: passing argument to parameter here 535 | XKeyEvent* /* event_struct */, | ^ asnap.c:908:6: warning: unused variable 'icon_x' [-Wunused-variable] 908 | int icon_x, icon_y; | ^~~~~~ asnap.c:908:14: warning: unused variable 'icon_y' [-Wunused-variable] 908 | int icon_x, icon_y; | ^~~~~~ asnap.c:909:6: warning: unused variable 'snap_x' [-Wunused-variable] 909 | int snap_x, snap_y; | ^~~~~~ asnap.c:909:14: warning: unused variable 'snap_y' [-Wunused-variable] 909 | int snap_x, snap_y; | ^~~~~~ asnap.c:910:15: warning: unused variable 'snap_width' [-Wunused-variable] 910 | unsigned int snap_width, snap_height; | ^~~~~~~~~~ asnap.c:910:27: warning: unused variable 'snap_height' [-Wunused-variable] 910 | unsigned int snap_width, snap_height; | ^~~~~~~~~~~ asnap.c:884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | main(argc, argv) | ^ 88 warnings generated. --- asnap --- rm -f asnap clang -o asnap -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib asnap.o -lXext -lX11