+ 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 ---
--- 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 ---
rm -f 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
--- 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: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"
   ^~~~~~~
--- common.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 common.c:11:
/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"
   ^~~~~~~
--- scope.o ---
scope.c: In function 'GetServerport':
scope.c:107:3: warning: implicit declaration of function 'enterprocedure' [-Wimplicit-function-declaration]
   enterprocedure("GetServerport");
   ^~~~~~~~~~~~~~
scope.c: At top level:
scope.c:129:1: warning: return type defaults to 'int' [-Wimplicit-int]
 Usage(xscript)
 ^~~~~
scope.c: In function 'Usage':
scope.c:158:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   exit(1);
   ^~~~
scope.c:158:3: warning: incompatible implicit declaration of built-in function 'exit'
scope.c:158:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
scope.c:34:1:
+#include <stdlib.h>
 
scope.c:158:3:
   exit(1);
   ^~~~
scope.c: At top level:
scope.c:166:1: warning: return type defaults to 'int' [-Wimplicit-int]
 ScanArgs(argc, argv)
 ^~~~~~~~
scope.c: In function 'ScanArgs':
scope.c:191:19: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
      debuglevel = atoi(++*argv);
                   ^~~~
scope.c:264:8: warning: incompatible implicit declaration of built-in function 'exit'
        exit (1);
        ^~~~
scope.c:264:8: note: include '<stdlib.h>' or provide a declaration of 'exit'
scope.c:284:8: warning: incompatible implicit declaration of built-in function 'exit'
        exit (1);
        ^~~~
scope.c:284:8: 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]
 main(argc, argv)
 ^~~~
scope.c: In function 'main':
scope.c:346:3: warning: implicit declaration of function 'InitializeFD'; did you mean 'XrmInitialize'? [-Wimplicit-function-declaration]
   InitializeFD();
   ^~~~~~~~~~~~
   XrmInitialize
scope.c:349:3: warning: implicit declaration of function 'InitializeX11'; did you mean 'XrmInitialize'? [-Wimplicit-function-declaration]
   InitializeX11();
   ^~~~~~~~~~~~~
   XrmInitialize
scope.c:357:3: warning: implicit declaration of function 'SetUpStdin' [-Wimplicit-function-declaration]
   SetUpStdin();
   ^~~~~~~~~~
scope.c:359:3: warning: implicit declaration of function 'SetUpConnectionSocket'; did you mean 'XConnectionNumber'? [-Wimplicit-function-declaration]
   SetUpConnectionSocket(GetScopePort());
   ^~~~~~~~~~~~~~~~~~~~~
   XConnectionNumber
scope.c:360:3: warning: implicit declaration of function 'SetSignalHandling' [-Wimplicit-function-declaration]
   SetSignalHandling();
   ^~~~~~~~~~~~~~~~~
scope.c:362:3: warning: implicit declaration of function 'MainLoop'; did you mean 'GXnoop'? [-Wimplicit-function-declaration]
   MainLoop();
   ^~~~~~~~
   GXnoop
scope.c: At top level:
scope.c:381:1: warning: return type defaults to 'int' [-Wimplicit-int]
 ReadStdin(fd)
 ^~~~~~~~~
scope.c:392:1: warning: return type defaults to 'int' [-Wimplicit-int]
 SetUpStdin()
 ^~~~~~~~~~
scope.c: In function 'SetUpStdin':
scope.c:395:3: warning: implicit declaration of function 'UsingFD' [-Wimplicit-function-declaration]
   UsingFD(fileno(stdin), ReadStdin);
   ^~~~~~~
scope.c: In function 'ReportAndExit':
scope.c:404:5: warning: incompatible implicit declaration of built-in function 'exit'
     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'
   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]
 SetUpPair(client, server)
 ^~~~~~~~~
scope.c: In function 'SetUpPair':
scope.c:442:2: warning: implicit declaration of function 'warn'; did you mean 'main'? [-Wimplicit-function-declaration]
  warn ("recording more than one client does not work very well.");
  ^~~~
  main
scope.c:457:2: warning: implicit declaration of function 'NotUsingFD'; did you mean 'NotUseful'? [-Wimplicit-function-declaration]
  NotUsingFD(server);
  ^~~~~~~~~~
  NotUseful
scope.c: At top level:
scope.c:462:1: warning: return type defaults to 'int' [-Wimplicit-int]
 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]
   debug(4,(stderr, "close %d and %d\n", fd, FDPair(fd)));
                                             ^~~~~~
scope.h:22:55: note: in definition of macro 'debug'
 #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0)
                                                       ^
scope.c:466:3: warning: implicit declaration of function 'StopClientConnection'; did you mean 'CloseConnection'? [-Wimplicit-function-declaration]
   StopClientConnection(ServerHalf(fd));
   ^~~~~~~~~~~~~~~~~~~~
   CloseConnection
--- common.o ---
common.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int]
 enterprocedure(s)
 ^~~~~~~~~~~~~~
common.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int]
 warn(s)
 ^~~~
common.c:32:1: warning: return type defaults to 'int' [-Wimplicit-int]
 panic(s)
 ^~~~~
common.c: In function 'panic':
common.c:36:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   exit(1);
   ^~~~
common.c:36:3: warning: incompatible implicit declaration of built-in function 'exit'
common.c:36:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
common.c:12:1:
+#include <stdlib.h>
 #include <fcntl.h>
common.c:36:3:
   exit(1);
   ^~~~
common.c: At top level:
common.c:45:14: warning: conflicting types for built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
 extern char *malloc();
              ^~~~~~
common.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int]
 Free(p)
 ^~~~
common.c: In function 'Free':
common.c:62:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   free(p);
   ^~~~
common.c:62:3: warning: incompatible implicit declaration of built-in function 'free'
common.c:62:3: note: include '<stdlib.h>' or provide a declaration of 'free'
--- scope.o ---
scope.c:466:24: warning: implicit declaration of function 'ServerHalf' [-Wimplicit-function-declaration]
   StopClientConnection(ServerHalf(fd));
                        ^~~~~~~~~~
scope.c:467:3: warning: implicit declaration of function 'StopServerConnection'; did you mean 'CloseConnection'? [-Wimplicit-function-declaration]
   StopServerConnection(ClientHalf(fd));
   ^~~~~~~~~~~~~~~~~~~~
   CloseConnection
--- common.o ---
common.c: In function 'SignalINT':
common.c:103:3: warning: incompatible implicit declaration of built-in function 'exit'
   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'
   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'
   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]
 SetSignalHandling()
 ^~~~~~~~~~~~~~~~~
--- scope.o ---
scope.c:467:24: warning: implicit declaration of function 'ClientHalf'; did you mean 'ClientName'? [-Wimplicit-function-declaration]
   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]
   nfds = select (fd+1, &rfds, &wfds, &xfds,
                        ^~~~~
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:101:51: note: expected 'fd_set * restrict' {aka 'struct <anonymous> * restrict'} but argument is of type 'long int *'
 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]
   nfds = select (fd+1, &rfds, &wfds, &xfds,
                               ^~~~~
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:25: note: expected 'fd_set * restrict' {aka 'struct <anonymous> * restrict'} but argument is of type 'long int *'
      fd_set *__restrict __writefds,
      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
scope.c:531:38: warning: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types]
   nfds = select (fd+1, &rfds, &wfds, &xfds,
                                      ^~~~~
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:25: note: expected 'fd_set * restrict' {aka 'struct <anonymous> * restrict'} but argument is of type 'long int *'
      fd_set *__restrict __exceptfds,
      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
scope.c: At top level:
scope.c:544:1: warning: return type defaults to 'int' [-Wimplicit-int]
 DataFromClient(fd)
 ^~~~~~~~~~~~~~
scope.c: In function 'DataFromClient':
scope.c:557:7: warning: implicit declaration of function 'PrintTime'; did you mean 'CurrentTime'? [-Wimplicit-function-declaration]
       PrintTime();
       ^~~~~~~~~
       CurrentTime
scope.c:560:7: warning: 'return' with no value, in function returning non-void
       return;
       ^~~~~~
scope.c:544:1: note: declared here
 DataFromClient(fd)
 ^~~~~~~~~~~~~~
scope.c:577:5: warning: 'return' with no value, in function returning non-void
     return;
     ^~~~~~
scope.c:544:1: note: declared here
 DataFromClient(fd)
 ^~~~~~~~~~~~~~
scope.c:583:18: warning: implicit declaration of function 'ConnectToServer'; did you mean 'ConnectionNumber'? [-Wimplicit-function-declaration]
       ServerFD = ConnectToServer(false);
                  ^~~~~~~~~~~~~~~
                  ConnectionNumber
--- common.o ---
common.c:191:1: warning: return type defaults to 'int' [-Wimplicit-int]
 SetUpConnectionSocket(iport)
 ^~~~~~~~~~~~~~~~~~~~~
common.c: In function 'SetUpConnectionSocket':
common.c:208:7: warning: incompatible implicit declaration of built-in function 'exit'
       exit(-1);
       ^~~~
common.c:208:7: note: include '<stdlib.h>' or provide a declaration of 'exit'
--- scope.o ---
scope.c:618:3: warning: implicit declaration of function 'ReportFromClient'; did you mean 'DataFromClient'? [-Wimplicit-function-declaration]
   ReportFromClient(fd, buf, n);
   ^~~~~~~~~~~~~~~~
   DataFromClient
scope.c: At top level:
scope.c:626:1: warning: return type defaults to 'int' [-Wimplicit-int]
 WriteToClient (fd, buf, n)
 ^~~~~~~~~~~~~
scope.c:669:1: warning: return type defaults to 'int' [-Wimplicit-int]
 DataFromServer(fd)
 ^~~~~~~~~~~~~~
scope.c: In function 'DataFromServer':
scope.c:684:7: warning: 'return' with no value, in function returning non-void
       return;
       ^~~~~~
scope.c:669:1: note: declared here
 DataFromServer(fd)
 ^~~~~~~~~~~~~~
scope.c:703:7: warning: 'return' with no value, in function returning non-void
       return;
       ^~~~~~
scope.c:669:1: note: declared here
 DataFromServer(fd)
 ^~~~~~~~~~~~~~
scope.c:710:7: warning: 'return' with no value, in function returning non-void
       return;
       ^~~~~~
scope.c:669:1: note: declared here
 DataFromServer(fd)
 ^~~~~~~~~~~~~~
--- common.o ---
common.c:211:50: error: 'SO_USELOOPBACK' undeclared (first use in this function); did you mean 'SO_BSDCOMPAT'?
   (void)setsockopt(ConnectionSocket, SOL_SOCKET, SO_USELOOPBACK, (char *)NULL, 0);
                                                  ^~~~~~~~~~~~~~
                                                  SO_BSDCOMPAT
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'
       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'
       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]
   UsingFD(ConnectionSocket, NewConnection);
   ^~~~~~~
--- scope.o ---
scope.c:726:3: warning: implicit declaration of function 'ReportFromServer'; did you mean 'DataFromServer'? [-Wimplicit-function-declaration]
   ReportFromServer(fd, buf, n);
   ^~~~~~~~~~~~~~~~
   DataFromServer
scope.c: At top level:
scope.c:740:1: warning: return type defaults to 'int' [-Wimplicit-int]
 NewConnection(fd)
 ^~~~~~~~~~~~~
scope.c: In function 'NewConnection':
scope.c:746:14: warning: implicit declaration of function 'ConnectToClient'; did you mean 'WriteToClient'? [-Wimplicit-function-declaration]
   ClientFD = ConnectToClient(fd);
              ^~~~~~~~~~~~~~~
              WriteToClient
scope.c: In function 'ConnectToClient':
scope.c:768:7: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration]
       panic("Can't connect to Client");
       ^~~~~
--- common.o ---
*** [common.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/x11/xscript/work/test-distrib/src
--- scope.o ---
scope.c:792:3: warning: implicit declaration of function 'StartClientConnection'; did you mean 'CloseConnection'? [-Wimplicit-function-declaration]
   StartClientConnection(ClientFD);
   ^~~~~~~~~~~~~~~~~~~~~
   CloseConnection
scope.c: In function 'ConnectToServer':
scope.c:828:43: error: 'SO_USELOOPBACK' undeclared (first use in this function); did you mean 'SO_BSDCOMPAT'?
   (void) setsockopt(ServerFD, SOL_SOCKET, SO_USELOOPBACK,(char *) NULL, 0);
                                           ^~~~~~~~~~~~~~
                                           SO_BSDCOMPAT
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'; did you mean 'NewConnection'? [-Wimplicit-function-declaration]
       StartServerConnection(ServerFD);
       ^~~~~~~~~~~~~~~~~~~~~
       NewConnection
scope.c: In function 'DataOnXDisplay':
scope.c:946:33: warning: passing argument 1 of 'XRefreshKeyboardMapping' from incompatible pointer type [-Wincompatible-pointer-types]
       XRefreshKeyboardMapping ( &ev );
                                 ^~~
In file included from scope.c:32:
/home/pbulk/build/x11/xscript/work/.buildlink/include/X11/Xlib.h:3078:5: note: expected 'XMappingEvent *' {aka 'struct <anonymous> *'} but argument is of type 'XEvent *' {aka 'union _XEvent *'}
     XMappingEvent* /* event_map */
     ^~~~~~~~~~~~~~
*** [scope.o] Error code 1

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

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

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

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/x11/xscript