+ 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/xscript-19930228nb2/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xscript-19930228nb2/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xscript-19930228nb2 gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -I/opt/pkg/include -c scope.c scope.c: In function 'GetServerport': scope.c:107:3: error: implicit declaration of function 'enterprocedure' [-Wimplicit-function-declaration] 107 | enterprocedure("GetServerport"); | ^~~~~~~~~~~~~~ scope.c: At top level: scope.c:129:1: error: return type defaults to 'int' [-Wimplicit-int] 129 | Usage(xscript) | ^~~~~ scope.c: In function 'Usage': scope.c:158:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 158 | exit(1); | ^~~~ scope.c:34:1: note: include '' or provide a declaration of 'exit' 33 | #include +++ |+#include 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 '' or provide a declaration of 'exit' scope.c: At top level: scope.c:166:1: error: return type defaults to 'int' [-Wimplicit-int] 166 | ScanArgs(argc, argv) | ^~~~~~~~ scope.c: In function 'ScanArgs': scope.c:191:26: error: 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 '' 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 '' or provide a declaration of 'exit' scope.c: At top level: scope.c:338:1: error: return type defaults to 'int' [-Wimplicit-int] 338 | main(argc, argv) | ^~~~ scope.c: In function 'main': scope.c:346:3: error: implicit declaration of function 'InitializeFD' [-Wimplicit-function-declaration] 346 | InitializeFD(); | ^~~~~~~~~~~~ scope.c:349:3: error: implicit declaration of function 'InitializeX11' [-Wimplicit-function-declaration] 349 | InitializeX11(); | ^~~~~~~~~~~~~ scope.c:357:3: error: implicit declaration of function 'SetUpStdin' [-Wimplicit-function-declaration] 357 | SetUpStdin(); | ^~~~~~~~~~ scope.c:359:3: error: implicit declaration of function 'SetUpConnectionSocket' [-Wimplicit-function-declaration] 359 | SetUpConnectionSocket(GetScopePort()); | ^~~~~~~~~~~~~~~~~~~~~ scope.c:360:3: error: implicit declaration of function 'SetSignalHandling' [-Wimplicit-function-declaration] 360 | SetSignalHandling(); | ^~~~~~~~~~~~~~~~~ scope.c:362:3: error: implicit declaration of function 'MainLoop' [-Wimplicit-function-declaration] 362 | MainLoop(); | ^~~~~~~~ scope.c: At top level: scope.c:381:1: error: return type defaults to 'int' [-Wimplicit-int] 381 | ReadStdin(fd) | ^~~~~~~~~ scope.c:392:1: error: return type defaults to 'int' [-Wimplicit-int] 392 | SetUpStdin() | ^~~~~~~~~~ scope.c: In function 'SetUpStdin': scope.c:395:3: error: 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 '' 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 '' or provide a declaration of 'exit' scope.c: At top level: scope.c:433:1: error: return type defaults to 'int' [-Wimplicit-int] 433 | SetUpPair(client, server) | ^~~~~~~~~ scope.c: In function 'SetUpPair': scope.c:442:9: error: implicit declaration of function 'warn' [-Wimplicit-function-declaration] 442 | warn ("recording more than one client does not work very well."); | ^~~~ scope.c:457:9: error: implicit declaration of function 'NotUsingFD' [-Wimplicit-function-declaration] 457 | NotUsingFD(server); | ^~~~~~~~~~ scope.c: At top level: scope.c:462:1: error: 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: error: 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: error: implicit declaration of function 'StopClientConnection' [-Wimplicit-function-declaration] 466 | StopClientConnection(ServerHalf(fd)); | ^~~~~~~~~~~~~~~~~~~~ scope.c:466:24: error: implicit declaration of function 'ServerHalf' [-Wimplicit-function-declaration] 466 | StopClientConnection(ServerHalf(fd)); | ^~~~~~~~~~ scope.c:467:3: error: implicit declaration of function 'StopServerConnection' [-Wimplicit-function-declaration] 467 | StopServerConnection(ClientHalf(fd)); | ^~~~~~~~~~~~~~~~~~~~ scope.c:467:24: error: 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: error: 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:687, from /home/pbulk/build/x11/xscript/work/.buildlink/include/X11/Xos.h:42, from scope.h:10: /usr/include/sys/select.h:145:24: note: expected 'fd_set * restrict' but argument is of type 'long int *' 145 | extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD, | ^ scope.c:531:31: error: passing argument 3 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 531 | nfds = select (fd+1, &rfds, &wfds, &xfds, | ^~~~~ | | | long int * /usr/include/sys/select.h:145:48: note: expected 'fd_set * restrict' but argument is of type 'long int *' 145 | extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD, | ^ scope.c:531:38: error: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 531 | nfds = select (fd+1, &rfds, &wfds, &xfds, | ^~~~~ | | | long int * /usr/include/sys/select.h:146:9: note: expected 'fd_set * restrict' but argument is of type 'long int *' 146 | fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD); | ^ scope.c: At top level: scope.c:544:1: error: return type defaults to 'int' [-Wimplicit-int] 544 | DataFromClient(fd) | ^~~~~~~~~~~~~~ scope.c: In function 'DataFromClient': scope.c:557:7: error: implicit declaration of function 'PrintTime'; did you mean 'CurrentTime'? [-Wimplicit-function-declaration] 557 | PrintTime(); | ^~~~~~~~~ | CurrentTime scope.c:560:7: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 560 | return; | ^~~~~~ scope.c:544:1: note: declared here 544 | DataFromClient(fd) | ^~~~~~~~~~~~~~ scope.c:577:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 577 | return; | ^~~~~~ scope.c:544:1: note: declared here 544 | DataFromClient(fd) | ^~~~~~~~~~~~~~ scope.c:583:18: error: implicit declaration of function 'ConnectToServer' [-Wimplicit-function-declaration] 583 | ServerFD = ConnectToServer(false); | ^~~~~~~~~~~~~~~ scope.c:618:3: error: 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: error: return type defaults to 'int' [-Wimplicit-int] 626 | WriteToClient (fd, buf, n) | ^~~~~~~~~~~~~ scope.c:669:1: error: return type defaults to 'int' [-Wimplicit-int] 669 | DataFromServer(fd) | ^~~~~~~~~~~~~~ scope.c: In function 'DataFromServer': scope.c:684:7: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 684 | return; | ^~~~~~ scope.c:669:1: note: declared here 669 | DataFromServer(fd) | ^~~~~~~~~~~~~~ scope.c:703:7: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 703 | return; | ^~~~~~ scope.c:669:1: note: declared here 669 | DataFromServer(fd) | ^~~~~~~~~~~~~~ scope.c:710:7: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 710 | return; | ^~~~~~ scope.c:669:1: note: declared here 669 | DataFromServer(fd) | ^~~~~~~~~~~~~~ scope.c:726:3: error: 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: error: return type defaults to 'int' [-Wimplicit-int] 740 | NewConnection(fd) | ^~~~~~~~~~~~~ scope.c: In function 'NewConnection': scope.c:746:14: error: implicit declaration of function 'ConnectToClient' [-Wimplicit-function-declaration] 746 | ClientFD = ConnectToClient(fd); | ^~~~~~~~~~~~~~~ scope.c: In function 'ConnectToClient': scope.c:768:7: error: implicit declaration of function 'panic' [-Wimplicit-function-declaration] 768 | panic("Can't connect to Client"); | ^~~~~ scope.c:792:3: error: implicit declaration of function 'StartClientConnection' [-Wimplicit-function-declaration] 792 | StartClientConnection(ClientFD); | ^~~~~~~~~~~~~~~~~~~~~ scope.c: In function 'ConnectToServer': scope.c:895:7: error: implicit declaration of function 'StartServerConnection' [-Wimplicit-function-declaration] 895 | StartServerConnection(ServerFD); | ^~~~~~~~~~~~~~~~~~~~~ scope.c: In function 'DataOnXDisplay': scope.c:946:33: error: 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:3078:5: note: expected 'XMappingEvent *' but argument is of type 'XEvent *' {aka 'union _XEvent *'} 3078 | XMappingEvent* /* event_map */ | ^~~~~~~~~~~~~~ *** Error code 1 Stop. bmake: stopped making "all" in /home/pbulk/build/x11/xscript/work/test-distrib/src *** Error code 1 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/xscript *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/xscript