+ 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/xscript-19930228nb2/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xscript-19930228nb2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for xscript-19930228nb2
--- scope.o ---
--- common.o ---
rm -f common.o
--- scope.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 scope.c
--- common.o ---
cc -c -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      common.c
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xscript/work/.buildlink/include/X11/Xos.h:42,
                 from scope.h:10,
                 from common.c:11:
/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"
      |   ^~~~~~~
--- scope.o ---
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/xscript/work/.buildlink/include/X11/Xos.h:42,
                 from scope.h:10,
                 from scope.c:13:
/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"
      |   ^~~~~~~
--- common.o ---
common.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int]
   20 | enterprocedure(s)
      | ^~~~~~~~~~~~~~
common.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int]
   26 | warn(s)
      | ^~~~
common.c:32:1: warning: return type defaults to 'int' [-Wimplicit-int]
   32 | panic(s)
      | ^~~~~
common.c: In function 'panic':
common.c:36:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   36 |   exit(1);
      |   ^~~~
common.c:12:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   11 | #include "scope.h"
  +++ |+#include <stdlib.h>
   12 | #include <fcntl.h>
common.c:36:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   36 |   exit(1);
      |   ^~~~
common.c:36:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
common.c: At top level:
common.c:45:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch]
   45 | extern char *malloc();
      |              ^~~~~~
common.c:45:14: note: 'malloc' is declared in header '<stdlib.h>'
common.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int]
   58 | Free(p)
      | ^~~~
common.c: In function 'Free':
common.c:62:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   62 |   free(p);
      |   ^~~~
common.c:62:3: note: include '<stdlib.h>' or provide a declaration of 'free'
common.c:62:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
common.c:62:3: note: include '<stdlib.h>' or provide a declaration of 'free'
common.c: In function 'SignalINT':
common.c:103:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  103 |   exit(1);
      |   ^~~~
common.c:103:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
common.c: In function 'SignalQUIT':
common.c:112:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  112 |   exit(1);
      |   ^~~~
common.c:112:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
common.c: In function 'SignalTERM':
common.c:121:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  121 |   exit(1);
      |   ^~~~
common.c:121:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
common.c: At top level:
common.c:151:1: warning: return type defaults to 'int' [-Wimplicit-int]
  151 | SetSignalHandling()
      | ^~~~~~~~~~~~~~~~~
common.c:191:1: warning: return type defaults to 'int' [-Wimplicit-int]
  191 | SetUpConnectionSocket(iport)
      | ^~~~~~~~~~~~~~~~~~~~~
--- scope.o ---
scope.c: In function 'GetServerport':
--- common.o ---
common.c: In function 'SetUpConnectionSocket':
common.c:208:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  208 |       exit(-1);
      |       ^~~~
common.c:208:7: note: include '<stdlib.h>' or provide a declaration of 'exit'
common.c:211:50: error: 'SO_USELOOPBACK' undeclared (first use in this function)
  211 |   (void)setsockopt(ConnectionSocket, SOL_SOCKET, SO_USELOOPBACK, (char *)NULL, 0);
      |                                                  ^~~~~~~~~~~~~~
common.c:211:50: note: each undeclared identifier is reported only once for each function it appears in
common.c:253:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  253 |       exit(-1);
      |       ^~~~
common.c:253:7: note: include '<stdlib.h>' or provide a declaration of 'exit'
common.c:263:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  263 |       exit(-1);
      |       ^~~~
common.c:263:7: note: include '<stdlib.h>' or provide a declaration of 'exit'
common.c:284:3: warning: implicit declaration of function 'UsingFD' [-Wimplicit-function-declaration]
  284 |   UsingFD(ConnectionSocket, NewConnection);
      |   ^~~~~~~
*** [common.o] Error code 1

bmake: stopped in /home/pbulk/build/x11/xscript/work/test-distrib/src
--- scope.o ---
scope.c:107:3: warning: implicit declaration of function 'enterprocedure' [-Wimplicit-function-declaration]
  107 |   enterprocedure("GetServerport");
      |   ^~~~~~~~~~~~~~
scope.c: At top level:
scope.c:129:1: warning: return type defaults to 'int' [-Wimplicit-int]
  129 | Usage(xscript)
      | ^~~~~
scope.c: In function 'Usage':
scope.c:158:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  158 |   exit(1);
      |   ^~~~
scope.c:34:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   33 | #include <X11/Xutil.h>
  +++ |+#include <stdlib.h>
   34 | 
scope.c:158:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  158 |   exit(1);
      |   ^~~~
scope.c:158:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
scope.c: At top level:
scope.c:166:1: warning: return type defaults to 'int' [-Wimplicit-int]
  166 | ScanArgs(argc, argv)
      | ^~~~~~~~
scope.c: In function 'ScanArgs':
scope.c:191:26: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
  191 |             debuglevel = atoi(++*argv);
      |                          ^~~~
scope.c:264:15: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  264 |               exit (1);
      |               ^~~~
scope.c:264:15: note: include '<stdlib.h>' or provide a declaration of 'exit'
scope.c:284:15: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  284 |               exit (1);
      |               ^~~~
scope.c:284:15: note: include '<stdlib.h>' or provide a declaration of 'exit'
scope.c: At top level:
scope.c:338:1: warning: return type defaults to 'int' [-Wimplicit-int]
  338 | main(argc, argv)
      | ^~~~
scope.c: In function 'main':
scope.c:346:3: warning: implicit declaration of function 'InitializeFD' [-Wimplicit-function-declaration]
  346 |   InitializeFD();
      |   ^~~~~~~~~~~~
scope.c:349:3: warning: implicit declaration of function 'InitializeX11' [-Wimplicit-function-declaration]
  349 |   InitializeX11();
      |   ^~~~~~~~~~~~~
scope.c:357:3: warning: implicit declaration of function 'SetUpStdin' [-Wimplicit-function-declaration]
  357 |   SetUpStdin();
      |   ^~~~~~~~~~
scope.c:359:3: warning: implicit declaration of function 'SetUpConnectionSocket' [-Wimplicit-function-declaration]
  359 |   SetUpConnectionSocket(GetScopePort());
      |   ^~~~~~~~~~~~~~~~~~~~~
scope.c:360:3: warning: implicit declaration of function 'SetSignalHandling' [-Wimplicit-function-declaration]
  360 |   SetSignalHandling();
      |   ^~~~~~~~~~~~~~~~~
scope.c:362:3: warning: implicit declaration of function 'MainLoop' [-Wimplicit-function-declaration]
  362 |   MainLoop();
      |   ^~~~~~~~
scope.c: At top level:
scope.c:381:1: warning: return type defaults to 'int' [-Wimplicit-int]
  381 | ReadStdin(fd)
      | ^~~~~~~~~
scope.c:392:1: warning: return type defaults to 'int' [-Wimplicit-int]
  392 | SetUpStdin()
      | ^~~~~~~~~~
scope.c: In function 'SetUpStdin':
scope.c:395:3: warning: implicit declaration of function 'UsingFD' [-Wimplicit-function-declaration]
  395 |   UsingFD(fileno(stdin), ReadStdin);
      |   ^~~~~~~
scope.c: In function 'ReportAndExit':
scope.c:404:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  404 |     exit (2);
      |     ^~~~
scope.c:404:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
scope.c:406:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  406 |   exit (0);
      |   ^~~~
scope.c:406:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
scope.c: At top level:
scope.c:433:1: warning: return type defaults to 'int' [-Wimplicit-int]
  433 | SetUpPair(client, server)
      | ^~~~~~~~~
scope.c: In function 'SetUpPair':
scope.c:442:9: warning: implicit declaration of function 'warn' [-Wimplicit-function-declaration]
  442 |         warn ("recording more than one client does not work very well.");
      |         ^~~~
scope.c:457:9: warning: implicit declaration of function 'NotUsingFD' [-Wimplicit-function-declaration]
  457 |         NotUsingFD(server);
      |         ^~~~~~~~~~
scope.c: At top level:
scope.c:462:1: warning: return type defaults to 'int' [-Wimplicit-int]
  462 | CloseConnection(fd)
      | ^~~~~~~~~~~~~~~
In file included from scope.c:13:
scope.c: In function 'CloseConnection':
scope.c:465:45: warning: implicit declaration of function 'FDPair' [-Wimplicit-function-declaration]
  465 |   debug(4,(stderr, "close %d and %d\n", fd, FDPair(fd)));
      |                                             ^~~~~~
scope.h:22:55: note: in definition of macro 'debug'
   22 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0)
      |                                                       ^
scope.c:466:3: warning: implicit declaration of function 'StopClientConnection' [-Wimplicit-function-declaration]
  466 |   StopClientConnection(ServerHalf(fd));
      |   ^~~~~~~~~~~~~~~~~~~~
scope.c:466:24: warning: implicit declaration of function 'ServerHalf' [-Wimplicit-function-declaration]
  466 |   StopClientConnection(ServerHalf(fd));
      |                        ^~~~~~~~~~
scope.c:467:3: warning: implicit declaration of function 'StopServerConnection' [-Wimplicit-function-declaration]
  467 |   StopServerConnection(ClientHalf(fd));
      |   ^~~~~~~~~~~~~~~~~~~~
scope.c:467:24: warning: implicit declaration of function 'ClientHalf'; did you mean 'ClientName'? [-Wimplicit-function-declaration]
  467 |   StopServerConnection(ClientHalf(fd));
      |                        ^~~~~~~~~~
      |                        ClientName
scope.c: In function 'WaitUntilWriteable':
scope.c:531:24: warning: passing argument 2 of 'select' from incompatible pointer type [-Wincompatible-pointer-types]
  531 |   nfds = select (fd+1, &rfds, &wfds, &xfds,
      |                        ^~~~~
      |                        |
      |                        long int *
In file included from /usr/include/sys/types.h:179,
                 from /home/pbulk/build/x11/xscript/work/.buildlink/include/X11/Xos.h:42,
                 from scope.h:10,
                 from scope.c:13:
/usr/include/sys/select.h:102:51: note: expected 'fd_set * restrict' but argument is of type 'long int *'
  102 | extern int select (int __nfds, fd_set *__restrict __readfds,
      |                                ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
scope.c:531:31: warning: passing argument 3 of 'select' from incompatible pointer type [-Wincompatible-pointer-types]
  531 |   nfds = select (fd+1, &rfds, &wfds, &xfds,
      |                               ^~~~~
      |                               |
      |                               long int *
In file included from /usr/include/sys/types.h:179,
                 from /home/pbulk/build/x11/xscript/work/.buildlink/include/X11/Xos.h:42,
                 from scope.h:10,
                 from scope.c:13:
/usr/include/sys/select.h:103:39: note: expected 'fd_set * restrict' but argument is of type 'long int *'
  103 |                    fd_set *__restrict __writefds,
      |                    ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
scope.c:531:38: warning: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types]
  531 |   nfds = select (fd+1, &rfds, &wfds, &xfds,
      |                                      ^~~~~
      |                                      |
      |                                      long int *
In file included from /usr/include/sys/types.h:179,
                 from /home/pbulk/build/x11/xscript/work/.buildlink/include/X11/Xos.h:42,
                 from scope.h:10,
                 from scope.c:13:
/usr/include/sys/select.h:104:39: note: expected 'fd_set * restrict' but argument is of type 'long int *'
  104 |                    fd_set *__restrict __exceptfds,
      |                    ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
scope.c: At top level:
scope.c:544:1: warning: return type defaults to 'int' [-Wimplicit-int]
  544 | DataFromClient(fd)
      | ^~~~~~~~~~~~~~
scope.c: In function 'DataFromClient':
scope.c:557:7: warning: implicit declaration of function 'PrintTime'; did you mean 'CurrentTime'? [-Wimplicit-function-declaration]
  557 |       PrintTime();
      |       ^~~~~~~~~
      |       CurrentTime
scope.c:560:7: warning: 'return' with no value, in function returning non-void
  560 |       return;
      |       ^~~~~~
scope.c:544:1: note: declared here
  544 | DataFromClient(fd)
      | ^~~~~~~~~~~~~~
scope.c:577:5: warning: 'return' with no value, in function returning non-void
  577 |     return;
      |     ^~~~~~
scope.c:544:1: note: declared here
  544 | DataFromClient(fd)
      | ^~~~~~~~~~~~~~
scope.c:583:18: warning: implicit declaration of function 'ConnectToServer' [-Wimplicit-function-declaration]
  583 |       ServerFD = ConnectToServer(false);
      |                  ^~~~~~~~~~~~~~~
scope.c:618:3: warning: implicit declaration of function 'ReportFromClient'; did you mean 'DataFromClient'? [-Wimplicit-function-declaration]
  618 |   ReportFromClient(fd, buf, n);
      |   ^~~~~~~~~~~~~~~~
      |   DataFromClient
scope.c: At top level:
scope.c:626:1: warning: return type defaults to 'int' [-Wimplicit-int]
  626 | WriteToClient (fd, buf, n)
      | ^~~~~~~~~~~~~
scope.c:669:1: warning: return type defaults to 'int' [-Wimplicit-int]
  669 | DataFromServer(fd)
      | ^~~~~~~~~~~~~~
scope.c: In function 'DataFromServer':
scope.c:684:7: warning: 'return' with no value, in function returning non-void
  684 |       return;
      |       ^~~~~~
scope.c:669:1: note: declared here
  669 | DataFromServer(fd)
      | ^~~~~~~~~~~~~~
scope.c:703:7: warning: 'return' with no value, in function returning non-void
  703 |       return;
      |       ^~~~~~
scope.c:669:1: note: declared here
  669 | DataFromServer(fd)
      | ^~~~~~~~~~~~~~
scope.c:710:7: warning: 'return' with no value, in function returning non-void
  710 |       return;
      |       ^~~~~~
scope.c:669:1: note: declared here
  669 | DataFromServer(fd)
      | ^~~~~~~~~~~~~~
scope.c:726:3: warning: implicit declaration of function 'ReportFromServer'; did you mean 'DataFromServer'? [-Wimplicit-function-declaration]
  726 |   ReportFromServer(fd, buf, n);
      |   ^~~~~~~~~~~~~~~~
      |   DataFromServer
scope.c: At top level:
scope.c:740:1: warning: return type defaults to 'int' [-Wimplicit-int]
  740 | NewConnection(fd)
      | ^~~~~~~~~~~~~
scope.c: In function 'NewConnection':
scope.c:746:14: warning: implicit declaration of function 'ConnectToClient' [-Wimplicit-function-declaration]
  746 |   ClientFD = ConnectToClient(fd);
      |              ^~~~~~~~~~~~~~~
scope.c: In function 'ConnectToClient':
scope.c:768:7: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration]
  768 |       panic("Can't connect to Client");
      |       ^~~~~
scope.c:792:3: warning: implicit declaration of function 'StartClientConnection' [-Wimplicit-function-declaration]
  792 |   StartClientConnection(ClientFD);
      |   ^~~~~~~~~~~~~~~~~~~~~
scope.c: In function 'ConnectToServer':
scope.c:828:43: error: 'SO_USELOOPBACK' undeclared (first use in this function)
  828 |   (void) setsockopt(ServerFD, SOL_SOCKET, SO_USELOOPBACK,(char *) NULL, 0);
      |                                           ^~~~~~~~~~~~~~
scope.c:828:43: note: each undeclared identifier is reported only once for each function it appears in
scope.c:895:7: warning: implicit declaration of function 'StartServerConnection' [-Wimplicit-function-declaration]
  895 |       StartServerConnection(ServerFD);
      |       ^~~~~~~~~~~~~~~~~~~~~
scope.c: In function 'DataOnXDisplay':
scope.c:946:33: warning: passing argument 1 of 'XRefreshKeyboardMapping' from incompatible pointer type [-Wincompatible-pointer-types]
  946 |       XRefreshKeyboardMapping ( &ev );
      |                                 ^~~
      |                                 |
      |                                 XEvent * {aka union _XEvent *}
In file included from scope.c:32:
/home/pbulk/build/x11/xscript/work/.buildlink/include/X11/Xlib.h:3082:5: note: expected 'XMappingEvent *' but argument is of type 'XEvent *' {aka 'union _XEvent *'}
 3082 |     XMappingEvent*      /* event_map */
      |     ^~~~~~~~~~~~~~
*** [scope.o] Error code 1

bmake: stopped in /home/pbulk/build/x11/xscript/work/test-distrib/src
2 errors

bmake: stopped in /home/pbulk/build/x11/xscript/work/test-distrib/src
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/x11/xscript
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/x11/xscript