+ 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
--- 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
--- confirm.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 confirm.c:42:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # 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
--- 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
--- menu.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 menu.c:46:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
--- 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
--- menu.o ---
menu.c: In function 'CreateMenuWidget':
menu.c:123:58: warning: passing argument 4 of 'XtAddCallback' makes pointer from integer without a cast [-Wint-conversion]
   XtAddCallback(entry, XtNcallback, HandleMenuSelection, i);
                                                          ^
In file included from menu.c:46:
/home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:1262:5: note: expected 'XtPointer' {aka 'void *'} but argument is of type 'int'
     XtPointer   /* closure */
     ^~~~~~~~~
menu.c: In function 'HandleMenuSelection':
menu.c:145:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  switch ((int) client_data) {
          ^
--- 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]
 VirtualRootWindow(dpy, screen)
 ^~~~~~~~~~~~~~~~~
note.c: In function 'LoadSavedNotes':
note.c:241:8: warning: conflicting types for built-in function 'realloc' [-Wbuiltin-declaration-mismatch]
  char *realloc();
        ^~~~~~~
note.c:337:7: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
   n = atoi(&(d->d_name[nlen]));
       ^~~~
note.c: In function 'SaveAllNotes':
note.c:475:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   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:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     callbacks[0].closure = (caddr_t) (val)
                            ^
note.c:555:2: note: in expansion of macro 'SetCallback'
  SetCallback(SaveNote, pn->pn_index);
  ^~~~~~~~~~~
xpostit.h:110:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     callbacks[0].closure = (caddr_t) (val)
                            ^
note.c:566:2: note: in expansion of macro 'SetCallback'
  SetCallback(EraseNote, pn->pn_index);
  ^~~~~~~~~~~
xpostit.h:110:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     callbacks[0].closure = (caddr_t) (val)
                            ^
note.c:578:2: note: in expansion of macro 'SetCallback'
  SetCallback(DestroyNote, pn->pn_index);
  ^~~~~~~~~~~
xpostit.h:110:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     callbacks[0].closure = (caddr_t) (val)
                            ^
note.c:590:2: note: in expansion of macro 'SetCallback'
  SetCallback(TitleNote, pn->pn_index);
  ^~~~~~~~~~~
note.c:653:3: warning: passing argument 4 of 'XtAddEventHandler' from incompatible pointer type [-Wincompatible-pointer-types]
   (XtEventHandler *) StructureNotifyHandler, (XtPointer) pn);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from note.c:97:
/home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:854: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 *)'}
     XtEventHandler  /* proc */,
     ^~~~~~~~~~~~~~
note.c: In function 'SaveNote':
note.c:719:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if ((pn = FindNote((int) client_data)) == NULL)
                     ^
note.c:731:2: warning: implicit declaration of function 'GetNotePosition'; did you mean 'XtCPosition'? [-Wimplicit-function-declaration]
  GetNotePosition(pn->pn_shellwidget, &shellx, &shelly);
  ^~~~~~~~~~~~~~~
  XtCPosition
note.c:757:6: warning: implicit declaration of function 'access'; did you mean 'Success'? [-Wimplicit-function-declaration]
  if (access(app_res.note_dir, 0) < 0) {
      ^~~~~~
      Success
note.c:758:7: warning: implicit declaration of function 'mkdir'; did you mean 'seekdir'? [-Wimplicit-function-declaration]
   if (mkdir(app_res.note_dir, 0700) < 0) {
       ^~~~~
       seekdir
note.c: In function 'EraseNote':
note.c:823:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if ((pn = FindNote((int) client_data)) == NULL)
                     ^
note.c:841:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  confirm[0].closure = (caddr_t) pn->pn_index;
                       ^
note.c:843:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  cancel[0].closure = (caddr_t) pn->pn_index;
                      ^
note.c: In function 'DestroyNote':
note.c:868:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if ((pn = FindNote((int) client_data)) == NULL)
                     ^
note.c:872:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  confirm[0].closure = (caddr_t) pn->pn_index;
                       ^
note.c:874:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  cancel[0].closure = (caddr_t) pn->pn_index;
                      ^
note.c: In function 'TitleNote':
note.c:895:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if ((pn = FindNote((int) client_data)) == NULL)
                     ^
note.c:901:2: warning: implicit declaration of function 'GetNoteTitle'; did you mean 'XtNtitle'? [-Wimplicit-function-declaration]
  GetNoteTitle(pn, OkayTitle, CancelTitle);
  ^~~~~~~~~~~~
  XtNtitle
note.c: In function 'ConfirmErase':
note.c:924:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if ((pn = FindNote((int) client_data)) == NULL)
                     ^
note.c: In function 'ConfirmDestroy':
note.c:970:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if ((pn = FindNote((int) client_data)) == NULL)
                     ^
note.c:998:3: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration]
   unlink(pn->pn_file);
   ^~~~~~
   unix
note.c:999:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   free(pn->pn_file);
   ^~~~
note.c:999:3: warning: incompatible implicit declaration of built-in function 'free'
note.c:999:3: note: include '<stdlib.h>' or provide a declaration of 'free'
note.c:112:1:
+#include <stdlib.h>
 
note.c:999:3:
   free(pn->pn_file);
   ^~~~
note.c:1005:2: warning: incompatible implicit declaration of built-in function 'free'
  free(pn->pn_text);
  ^~~~
note.c:1005:2: note: include '<stdlib.h>' or provide a declaration of 'free'
note.c: In function 'OkayTitle':
note.c:1039:2: warning: implicit declaration of function 'ClearTitle'; did you mean 'OkayTitle'? [-Wimplicit-function-declaration]
  ClearTitle();
  ^~~~~~~~~~
  OkayTitle
note.c:1050:19: warning: implicit declaration of function 'XawDialogGetValueString' [-Wimplicit-function-declaration]
  title = (String) XawDialogGetValueString(dialog);
                   ^~~~~~~~~~~~~~~~~~~~~~~
note.c:1050:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  title = (String) XawDialogGetValueString(dialog);
          ^
note.c:1055:2: warning: incompatible implicit declaration of built-in function 'free'
  free(pn->pn_title);
  ^~~~
note.c:1055:2: 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]
 GetNotePosition(w, x, y)
 ^~~~~~~~~~~~~~~
note.c: In function 'LoadSavedNotes':
note.c:294:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
   fgets(buf, sizeof(buf), fp);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
note.c:394:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread(pn->pn_text, sizeof(char), pn->pn_textsize, fp);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
--- 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
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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
--- 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
--- 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
--- util.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 util.c:45:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
--- 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
--- util.o ---
util.c: In function 'SetNoteDir':
util.c:92:23: warning: implicit declaration of function 'getuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration]
   if ((pwd = getpwuid(getuid())) == NULL) {
                       ^~~~~~
                       getpwuid
--- xpostit.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 xpostit.c:52:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
xpostit.c: In function 'main':
xpostit.c:181:28: warning: passing argument 5 of 'XtGetApplicationResources' from incompatible pointer type [-Wincompatible-pointer-types]
       XtNumber(resources), argv, argc);
                            ^~~~
In file included from xpostit.c:52:
/home/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:1576:5: note: expected 'ArgList' {aka 'struct <anonymous> *'} but argument is of type 'char **'
     ArgList   /* args */,
     ^~~~~~~
xpostit.c:187:2: warning: implicit declaration of function 'SetNoteDir'; did you mean 'DefaultNoteDir'? [-Wimplicit-function-declaration]
  SetNoteDir();
  ^~~~~~~~~~
  DefaultNoteDir
xpostit.c:221:2: warning: implicit declaration of function 'LoadSavedNotes'; did you mean 'LowerAllNotes'? [-Wimplicit-function-declaration]
  LoadSavedNotes();
  ^~~~~~~~~~~~~~
  LowerAllNotes
--- 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 ---
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