+ 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/mgdiff-1.0/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mgdiff-1.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for mgdiff-1.0
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c mgdiff.c
mgdiff.c: In function 'main':
mgdiff.c:1086:36: warning: passing argument 2 of 'XtAppSetErrorHandler' makes '__attribute__((noreturn))' qualified function pointer from unqualified [-Wdiscarded-qualifiers]
 1086 |         XtAppSetErrorHandler (app, xt_error_handler);
      |                                    ^~~~~~~~~~~~~~~~
In file included from mgdiff.c:45:
/home/pbulk/build/devel/mgdiff/work/.buildlink/include/X11/Intrinsic.h:1771:5: note: expected '__attribute__((noreturn)) void (*)(char *)' but argument is of type 'void (*)(char *)'
 1771 |     XtErrorHandler      /* handler */ _X_NORETURN
mgdiff.c:1092:12: warning: implicit declaration of function 'on_exit'; did you mean '_exit'? [-Wimplicit-function-declaration]
 1092 |     (void) on_exit (cleanup_at_exit, NULL);
      |            ^~~~~~~
      |            _exit
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c rundiff.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c misc.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c files.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c spawn.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c manual.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c modal.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c legend.c
rm -f mgdiff._man
if test -z "" ; then  cd `dirname mgdiff` &&  ln -s `basename mgdiff.man` `basename mgdiff._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"   < mgdiff.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/\@\@$/\\/' >mgdiff._man;  fi
rm -f mgdiff
LD_RUN_PATH=/opt/pkg/lib gcc -o mgdiff -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2  -B direct -Wl,-M,/usr/lib/ld/map.bssalign -Wl,-M,/usr/lib/ld/map.noexstk  -L/opt/pkg/lib -Wl,-R/opt/pkg/lib   -liconv -lintl -L/opt/pkg/lib   mgdiff.o rundiff.o misc.o files.o spawn.o manual.o modal.o legend.o -L/usr/dt/lib -R/usr/dt/lib -lXm -lm -lXt -lSM -lICE -lXmu -lXext -lX11    -lsocket -lnsl  -R/opt/pkg/lib -z lazyload -z combreloc -Wl,-M,/usr/lib/ld/map.pagealign -Wl,-M,/usr/lib/ld/map.noexdata
Undefined			first referenced
 symbol  			    in file
sys_nerr                            misc.o
on_exit                             mgdiff.o
sys_errlist                         misc.o
ld: fatal: symbol referencing errors. No output written to mgdiff
collect2: error: ld returned 1 exit status
*** [mgdiff] Error code 1

bmake: stopped in /home/pbulk/build/devel/mgdiff/work/mgdiff
1 error

bmake: stopped in /home/pbulk/build/devel/mgdiff/work/mgdiff
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/mgdiff
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/mgdiff