+ 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/sam-4.3nb4/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/sam-4.3nb4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for sam-4.3nb4
for d in libXg libframe sam samterm; do				 (cd /home/pbulk/build/editors/sam/work/$d; /opt/pkg/bin/bmake -f Make.solaris 	 OTHER_X_LIBS="-lSM -lICE");	 done
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c arc.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c arith.c
arith.c:110:1: warning: return type defaults to 'int' [-Wimplicit-int]
  110 | eqpt(Point p, Point q)
      | ^~~~
arith.c:115:1: warning: return type defaults to 'int' [-Wimplicit-int]
  115 | eqrect(Rectangle r, Rectangle s)
      | ^~~~~~
arith.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int]
  121 | rectXrect(Rectangle r, Rectangle s)
      | ^~~~~~~~~
arith.c:137:1: warning: return type defaults to 'int' [-Wimplicit-int]
  137 | ptinrect(Point p, Rectangle r)
      | ^~~~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c balloc.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c bitblt.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c bitbltclip.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c border.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c bscreenrect.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c circle.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c clipline.c
clipline.c:136:1: warning: return type defaults to 'int' [-Wimplicit-int]
  136 | code(Point *p, Rectangle *r)
      | ^~~~
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c clipr.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c copymasked.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c cursorset.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c cursorswitch.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c disc.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c ellipse.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c font.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c gcs.c
gcs.c: In function '_getgc':
gcs.c:163:9: warning: type defaults to 'int' in declaration of 'clipset' [-Wimplicit-int]
  163 |  static clipset = 0;
      |         ^~~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c getrect.c
getrect.c: In function 'grabcursor':
getrect.c:27:3: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
   27 |   sleep(2);
      |   ^~~~~
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c gwin.c
gwin.c: In function 'Keyaction':
gwin.c:281:14: warning: implicit declaration of function 'unicode' [-Wimplicit-function-declaration]
  281 |     c = (int)unicode(compose);
      |              ^~~~~~~
gwin.c:289:13: warning: implicit declaration of function 'latin1' [-Wimplicit-function-declaration]
  289 |    c = (int)latin1(compose);
      |             ^~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c ldconvert.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c latin1.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c mkfont.c
mkfont.c: In function 'mkfont':
mkfont.c:17:17: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   17 |  font = (Font *)malloc(sizeof(Font));
      |                 ^~~~~~
mkfont.c:17:17: warning: incompatible implicit declaration of built-in function 'malloc'
mkfont.c:5:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    4 | #include <string.h>
  +++ |+#include <stdlib.h>
    5 | 
mkfont.c:24:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   24 |   free(font);
      |   ^~~~
mkfont.c:24:3: warning: incompatible implicit declaration of built-in function 'free'
mkfont.c:24:3: note: include '<stdlib.h>' or provide a declaration of 'free'
mkfont.c:32:3: warning: incompatible implicit declaration of built-in function 'free'
   32 |   free(font->name);
      |   ^~~~
mkfont.c:32:3: note: include '<stdlib.h>' or provide a declaration of 'free'
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c menuhit.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c point.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c polysegment.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c rdbitmap.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c rdbitmapfile.c
rdbitmapfile.c: In function 'rdbitmapfile':
rdbitmapfile.c:20:5: warning: implicit declaration of function 'read'; did you mean 'eread'? [-Wimplicit-function-declaration]
   20 |  if(read(fd, hdr, 5*12)!=5*12)
      |     ^~~~
      |     eread
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c rdfontfile.c
rdfontfile.c: In function 'rdfontfile':
rdfontfile.c:32:3: warning: implicit declaration of function 'close'; did you mean 'bclose'? [-Wimplicit-function-declaration]
   32 |   close(fd);
      |   ^~~~~
      |   bclose
rdfontfile.c:39:6: warning: implicit declaration of function 'read'; did you mean 'eread'? [-Wimplicit-function-declaration]
   39 |  i = read(fd, buf, sbuf.st_size);
      |      ^~~~
      |      eread
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c rectclip.c
rectclip.c:5:1: warning: return type defaults to 'int' [-Wimplicit-int]
    5 | rectclip(Rectangle *rp, Rectangle b)  /* first by reference, second by value */
      | ^~~~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c rune.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c segment.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c string.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c strwidth.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c texture.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c wrbitmap.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c wrbitmapfile.c
In file included from wrbitmapfile.c:2:
wrbitmapfile.c: In function 'wrbitmapfile':
../include/libc.h:9:19: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
    9 | #define sprint    sprintf
      |                   ^~~~~~~
wrbitmapfile.c:17:2: note: in expansion of macro 'sprint'
   17 |  sprint(hdr, "%11d %11d %11d %11d %11d ",
      |  ^~~~~~
../include/libc.h:9:19: warning: incompatible implicit declaration of built-in function 'sprintf'
    9 | #define sprint    sprintf
      |                   ^~~~~~~
wrbitmapfile.c:17:2: note: in expansion of macro 'sprint'
   17 |  sprint(hdr, "%11d %11d %11d %11d %11d ",
      |  ^~~~~~
wrbitmapfile.c:5:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
    4 | #include "libgint.h"
  +++ |+#include <stdio.h>
    5 | 
wrbitmapfile.c:19:5: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
   19 |  if(write(fd, hdr, 5*12) != 5*12)
      |     ^~~~~
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I/usr/openwin/include -I../include  -c xtbinit.c
xtbinit.c:86:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch]
   86 | static int log2(int);
      |            ^~~~
xtbinit.c:17:1: note: 'log2' is declared in header '<math.h>'
   16 | #include "Gwin.h"
  +++ |+#include <math.h>
   17 | 
xtbinit.c: In function 'gotinput':
xtbinit.c:311:7: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration]
  311 |   n = read(*pfd, (char *)eb->buf, es->size);
      |       ^~~~
      |       fread
ar rv libXg.a arc.o arith.o balloc.o bitblt.o bitbltclip.o border.o bscreenrect.o circle.o clipline.o clipr.o copymasked.o cursorset.o cursorswitch.o disc.o ellipse.o font.o gcs.o getrect.o gwin.o ldconvert.o latin1.o mkfont.o menuhit.o point.o polysegment.o rdbitmap.o rdbitmapfile.o rdfontfile.o rectclip.o rune.o segment.o string.o strwidth.o texture.o wrbitmap.o wrbitmapfile.o xtbinit.o
ar: creating libXg.a
ar: writing libXg.a
a - arc.o
a - arith.o
a - balloc.o
a - bitblt.o
a - bitbltclip.o
a - border.o
a - bscreenrect.o
a - circle.o
a - clipline.o
a - clipr.o
a - copymasked.o
a - cursorset.o
a - cursorswitch.o
a - disc.o
a - ellipse.o
a - font.o
a - gcs.o
a - getrect.o
a - gwin.o
a - ldconvert.o
a - latin1.o
a - mkfont.o
a - menuhit.o
a - point.o
a - polysegment.o
a - rdbitmap.o
a - rdbitmapfile.o
a - rdfontfile.o
a - rectclip.o
a - rune.o
a - segment.o
a - string.o
a - strwidth.o
a - texture.o
a - wrbitmap.o
a - wrbitmapfile.o
a - xtbinit.o
: libXg.a
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c frbox.c
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c frdelete.c
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c frdraw.c
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c frinit.c
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c frinsert.c
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c frptofchar.c
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c frselect.c
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c frstr.c
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c frutil.c
cc -c -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c misc.c
ar rv libframe.a frbox.o frdelete.o frdraw.o frinit.o frinsert.o frptofchar.o frselect.o frstr.o frutil.o misc.o
ar: creating libframe.a
ar: writing libframe.a
a - frbox.o
a - frdelete.o
a - frdraw.o
a - frinit.o
a - frinsert.o
a - frptofchar.o
a - frselect.o
a - frstr.o
a - frutil.o
a - misc.o
: libframe.a
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c sam.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c address.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c buffer.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c cmd.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c disc.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c error.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c file.c
file.c: In function 'puthdr_M':
file.c:380:9: warning: type defaults to 'int' in declaration of 'first' [-Wimplicit-int]
  380 |  static first = 1;
      |         ^~~~~
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c io.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c list.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c mesg.c
mesg.c: In function 'rcvchar':
mesg.c:102:9: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
  102 |  static i, nleft = 0;
      |         ^
mesg.c:102:12: warning: type defaults to 'int' in declaration of 'nleft' [-Wimplicit-int]
  102 |  static i, nleft = 0;
      |            ^~~~~
mesg.c: In function 'rcv':
mesg.c:117:9: warning: type defaults to 'int' in declaration of 'state' [-Wimplicit-int]
  117 |  static state = 0;
      |         ^~~~~
mesg.c:118:9: warning: type defaults to 'int' in declaration of 'count' [-Wimplicit-int]
  118 |  static count = 0;
      |         ^~~~~
mesg.c:119:9: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
  119 |  static i = 0;
      |         ^
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c moveto.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c multi.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c rasp.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c regexp.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c shell.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c string.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c sys.c
cc -c -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include -DHOMEDIR=\"HOME\" -DRSAMNAME=\"sam\"  -DTERMNAME=\"/bin/samterm\" -DTMP=\"/tmp\"  -DSHELLNAME=\"sh\" -DSHELLPATH=\"/bin/sh\"  -DRXNAME=\"rsh\" -DRXPATHNAME=\"/usr/ucb/rsh\"  -DSAMSAVE=\"/bin/sh\\n/bin/samsave\" unix.c
cc -D_POSIX_SOURCE -DSOLARIS -D_LIBXG_EXTENSION -I../include  -c xec.c
cc -o sam sam.o address.o buffer.o cmd.o disc.o error.o file.o io.o  list.o mesg.o moveto.o multi.o rasp.o regexp.o shell.o  string.o sys.o unix.o xec.o ../libframe/libframe.a ../libXg/libXg.a
cc -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c main.c
In file included from main.c:7:
samterm.h:71:7: warning: conflicting types for built-in function 'gettext'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch]
   71 | Rune *gettext(Flayer*, long, ulong*);
      |       ^~~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c flayer.c
In file included from flayer.c:7:
samterm.h:71:7: warning: conflicting types for built-in function 'gettext'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch]
   71 | Rune *gettext(Flayer*, long, ulong*);
      |       ^~~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c icons.c
cc -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c io.c
In file included from io.c:7:
samterm.h:71:7: warning: conflicting types for built-in function 'gettext'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch]
   71 | Rune *gettext(Flayer*, long, ulong*);
      |       ^~~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c menu.c
In file included from menu.c:7:
samterm.h:71:7: warning: conflicting types for built-in function 'gettext'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch]
   71 | Rune *gettext(Flayer*, long, ulong*);
      |       ^~~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c mesg.c
In file included from mesg.c:7:
samterm.h:71:7: warning: conflicting types for built-in function 'gettext'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch]
   71 | Rune *gettext(Flayer*, long, ulong*);
      |       ^~~~~~~
mesg.c: In function 'rcv':
mesg.c:30:9: warning: type defaults to 'int' in declaration of 'state' [-Wimplicit-int]
   30 |  static state = 0;
      |         ^~~~~
mesg.c:31:9: warning: type defaults to 'int' in declaration of 'count' [-Wimplicit-int]
   31 |  static count = 0;
      |         ^~~~~
mesg.c:32:9: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
   32 |  static i = 0;
      |         ^
cc -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c rasp.c
In file included from rasp.c:7:
samterm.h:71:7: warning: conflicting types for built-in function 'gettext'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch]
   71 | Rune *gettext(Flayer*, long, ulong*);
      |       ^~~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c scroll.c
In file included from scroll.c:7:
samterm.h:71:7: warning: conflicting types for built-in function 'gettext'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch]
   71 | Rune *gettext(Flayer*, long, ulong*);
      |       ^~~~~~~
cc -D_POSIX_SOURCE -DSOLARIS -I../include -D_LIBXG_EXTENSION  -c unix.c
In file included from unix.c:7:
samterm.h:71:7: warning: conflicting types for built-in function 'gettext'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch]
   71 | Rune *gettext(Flayer*, long, ulong*);
      |       ^~~~~~~
cc -o samterm main.o flayer.o icons.o io.o menu.o mesg.o rasp.o scroll.o unix.o ../libframe/libframe.a ../libXg/libXg.a -L/lib -lXt -lX11 -lSM -lICE -lsocket -lnsl
ld: fatal: library -lXt: not found
ld: fatal: library -lX11: not found
ld: fatal: library -lSM: not found
ld: fatal: library -lICE: not found
ld: fatal: file processing errors. No output written to samterm
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake[2]: stopped in /home/pbulk/build/editors/sam/work/samterm
*** Error code 1

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/editors/sam