+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xpostit-3.3.1nb4/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xpostit-3.3.1nb4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for xpostit-3.3.1nb4
--- Plaid.o ---
--- confirm.o ---
--- Plaid.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c Plaid.c
--- confirm.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c confirm.c
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:53,
                 from confirm.c:42:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
--- Plaid.o ---
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:53,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/IntrinsicP.h:51,
                 from Plaid.c:50:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
--- menu.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c menu.c
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:53,
                 from menu.c:46:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
menu.c: In function 'CreateMenuWidget':
menu.c:123:72: warning: passing argument 4 of 'XtAddCallback' makes pointer from integer without a cast [-Wint-conversion]
  123 |                 XtAddCallback(entry, XtNcallback, HandleMenuSelection, i);
      |                                                                        ^
      |                                                                        |
      |                                                                        int
In file included from menu.c:46:
/home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:1257:5: note: expected 'XtPointer' {aka 'void *'} but argument is of type 'int'
 1257 |     XtPointer           /* closure */
      |     ^~~~~~~~~
menu.c: In function 'HandleMenuSelection':
menu.c:145:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  145 |         switch ((int) client_data) {
      |                 ^
--- note.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c note.c
--- plaid.o ---
--- note.o ---
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:53,
                 from note.c:97:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
--- plaid.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c plaid.c
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:53,
                 from plaid.c:47:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
--- note.o ---
In file included from note.c:111:
vroot.h: In function 'VirtualRootWindow':
vroot.h:29:1: warning: type of 'screen' defaults to 'int' [-Wimplicit-int]
   29 | VirtualRootWindow(dpy, screen)
      | ^~~~~~~~~~~~~~~~~
note.c: In function 'LoadSavedNotes':
note.c:241:15: warning: conflicting types for built-in function 'realloc'; expected 'void *(void *, long unsigned int)' [-Wbuiltin-declaration-mismatch]
  241 |         char *realloc();
      |               ^~~~~~~
note.c:112:1: note: 'realloc' is declared in header '<stdlib.h>'
  111 | #include "vroot.h"
  +++ |+#include <stdlib.h>
  112 | 
note.c:337:21: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
  337 |                 n = atoi(&(d->d_name[nlen]));
      |                     ^~~~
note.c: In function 'SaveAllNotes':
note.c:475:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  475 |                 SaveNote(pn->pn_shellwidget, (caddr_t) pn->pn_index, 0);
      |                                              ^
In file included from note.c:110:
note.c: In function 'MakeNoteWidget':
xpostit.h:110:56: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  110 |                                 callbacks[0].closure = (caddr_t) (val)
      |                                                        ^
note.c:555:9: note: in expansion of macro 'SetCallback'
  555 |         SetCallback(SaveNote, pn->pn_index);
      |         ^~~~~~~~~~~
xpostit.h:110:56: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  110 |                                 callbacks[0].closure = (caddr_t) (val)
      |                                                        ^
note.c:566:9: note: in expansion of macro 'SetCallback'
  566 |         SetCallback(EraseNote, pn->pn_index);
      |         ^~~~~~~~~~~
xpostit.h:110:56: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  110 |                                 callbacks[0].closure = (caddr_t) (val)
      |                                                        ^
note.c:578:9: note: in expansion of macro 'SetCallback'
  578 |         SetCallback(DestroyNote, pn->pn_index);
      |         ^~~~~~~~~~~
xpostit.h:110:56: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  110 |                                 callbacks[0].closure = (caddr_t) (val)
      |                                                        ^
note.c:590:9: note: in expansion of macro 'SetCallback'
  590 |         SetCallback(TitleNote, pn->pn_index);
      |         ^~~~~~~~~~~
note.c:653:17: warning: passing argument 4 of 'XtAddEventHandler' from incompatible pointer type [-Wincompatible-pointer-types]
  653 |                 (XtEventHandler *) StructureNotifyHandler, (XtPointer) pn);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 |
      |                 void (**)(struct _WidgetRec *, void *, XEvent *, Boolean *) {aka void (**)(struct _WidgetRec *, void *, union _XEvent *, char *)}
In file included from note.c:97:
/home/pbulk/build/x11/xpostit/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 (**)(struct _WidgetRec *, void *, XEvent *, Boolean *)' {aka 'void (**)(struct _WidgetRec *, void *, union _XEvent *, char *)'}
  849 |     XtEventHandler      /* proc */,
      |     ^~~~~~~~~~~~~~
note.c: In function 'SaveNote':
note.c:719:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  719 |         if ((pn = FindNote((int) client_data)) == NULL)
      |                            ^
note.c:731:9: warning: implicit declaration of function 'GetNotePosition' [-Wimplicit-function-declaration]
  731 |         GetNotePosition(pn->pn_shellwidget, &shellx, &shelly);
      |         ^~~~~~~~~~~~~~~
note.c:757:13: warning: implicit declaration of function 'access'; did you mean 'Success'? [-Wimplicit-function-declaration]
  757 |         if (access(app_res.note_dir, 0) < 0) {
      |             ^~~~~~
      |             Success
--- title.o ---
--- note.o ---
note.c:758:21: warning: implicit declaration of function 'mkdir'; did you mean 'seekdir'? [-Wimplicit-function-declaration]
  758 |                 if (mkdir(app_res.note_dir, 0700) < 0) {
      |                     ^~~~~
      |                     seekdir
note.c: In function 'EraseNote':
note.c:823:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  823 |         if ((pn = FindNote((int) client_data)) == NULL)
      |                            ^
--- title.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c title.c
--- note.o ---
note.c:841:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  841 |         confirm[0].closure = (caddr_t) pn->pn_index;
      |                              ^
note.c:843:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  843 |         cancel[0].closure = (caddr_t) pn->pn_index;
      |                             ^
note.c: In function 'DestroyNote':
note.c:868:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  868 |         if ((pn = FindNote((int) client_data)) == NULL)
      |                            ^
note.c:872:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  872 |         confirm[0].closure = (caddr_t) pn->pn_index;
      |                              ^
note.c:874:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  874 |         cancel[0].closure = (caddr_t) pn->pn_index;
      |                             ^
note.c: In function 'TitleNote':
note.c:895:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  895 |         if ((pn = FindNote((int) client_data)) == NULL)
      |                            ^
note.c:901:9: warning: implicit declaration of function 'GetNoteTitle' [-Wimplicit-function-declaration]
  901 |         GetNoteTitle(pn, OkayTitle, CancelTitle);
      |         ^~~~~~~~~~~~
note.c: In function 'ConfirmErase':
note.c:924:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  924 |         if ((pn = FindNote((int) client_data)) == NULL)
      |                            ^
note.c: In function 'ConfirmDestroy':
note.c:970:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  970 |         if ((pn = FindNote((int) client_data)) == NULL)
      |                            ^
note.c:998:17: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration]
  998 |                 unlink(pn->pn_file);
      |                 ^~~~~~
note.c:999:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
  999 |                 free(pn->pn_file);
      |                 ^~~~
note.c:999:17: note: include '<stdlib.h>' or provide a declaration of 'free'
note.c:999:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
note.c:999:17: note: include '<stdlib.h>' or provide a declaration of 'free'
note.c:1005:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
 1005 |         free(pn->pn_text);
      |         ^~~~
note.c:1005:9: note: include '<stdlib.h>' or provide a declaration of 'free'
--- title.o ---
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:53,
                 from title.c:48:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
--- note.o ---
note.c: In function 'OkayTitle':
note.c:1039:9: warning: implicit declaration of function 'ClearTitle' [-Wimplicit-function-declaration]
 1039 |         ClearTitle();
      |         ^~~~~~~~~~
note.c:1050:26: warning: implicit declaration of function 'XawDialogGetValueString' [-Wimplicit-function-declaration]
 1050 |         title = (String) XawDialogGetValueString(dialog);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~
note.c:1050:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1050 |         title = (String) XawDialogGetValueString(dialog);
      |                 ^
note.c:1055:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
 1055 |         free(pn->pn_title);
      |         ^~~~
note.c:1055:9: note: include '<stdlib.h>' or provide a declaration of 'free'
note.c: At top level:
note.c:1172:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1172 | GetNotePosition(w, x, y)
      | ^~~~~~~~~~~~~~~
note.c: In function 'LoadSavedNotes':
note.c:294:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  294 |                 fgets(buf, sizeof(buf), fp);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
note.c:394:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  394 |                 fread(pn->pn_text, sizeof(char), pn->pn_textsize, fp);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- util.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c util.c
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:53,
                 from util.c:45:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
util.c: In function 'SetNoteDir':
util.c:92:37: warning: implicit declaration of function 'getuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration]
   92 |                 if ((pwd = getpwuid(getuid())) == NULL) {
      |                                     ^~~~~~
      |                                     getpwuid
--- version.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c version.c
--- xpostit.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c xpostit.c
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:53,
                 from xpostit.c:52:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
--- xpostit._man ---
rm -f xpostit._man
if test -z "" ; then  cd `dirname xpostit` &&  ln -s `basename xpostit.man` `basename xpostit._man`;  else  cpp -undef -traditional  -D__apploaddir__=/usr/share/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/usr/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"   < xpostit.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/\@\@$/\\/' >xpostit._man;  fi
--- xpostit.o ---
xpostit.c: In function 'main':
xpostit.c:181:56: warning: passing argument 5 of 'XtGetApplicationResources' from incompatible pointer type [-Wincompatible-pointer-types]
  181 |                                   XtNumber(resources), argv, argc);
      |                                                        ^~~~
      |                                                        |
      |                                                        char **
In file included from xpostit.c:52:
/home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:1571:5: note: expected 'ArgList' {aka 'struct <anonymous> *'} but argument is of type 'char **'
 1571 |     ArgList             /* args */,
      |     ^~~~~~~
xpostit.c:187:9: warning: implicit declaration of function 'SetNoteDir'; did you mean 'DefaultNoteDir'? [-Wimplicit-function-declaration]
  187 |         SetNoteDir();
      |         ^~~~~~~~~~
      |         DefaultNoteDir
xpostit.c:221:9: warning: implicit declaration of function 'LoadSavedNotes' [-Wimplicit-function-declaration]
  221 |         LoadSavedNotes();
      |         ^~~~~~~~~~~~~~
--- xpostit ---
rm -f xpostit
cc -o xpostit -O2 -fno-strength-reduce -fno-strict-aliasing     -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib   Plaid.o confirm.o menu.o note.o plaid.o title.o util.o 	   	  version.o xpostit.o    -lXaw -lXmu -lXt -lSM -lICE -lXpm  -lXext -lX11   -Wl,-rpath,/usr/pkg/lib -Wl,-rpath-link,./exports/lib