+ 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 --- scope.o --- --- common.o --- --- fd.o --- --- server.o --- --- scope.o --- 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 --- common.o --- rm -f common.o gcc -c -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 common.c --- fd.o --- 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 fd.c --- server.o --- 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 server.c --- common.o --- common.c:20:1: error: return type defaults to 'int' [-Wimplicit-int] 20 | enterprocedure(s) | ^~~~~~~~~~~~~~ common.c:26:1: error: return type defaults to 'int' [-Wimplicit-int] 26 | warn(s) | ^~~~ common.c:32:1: error: return type defaults to 'int' [-Wimplicit-int] 32 | panic(s) | ^~~~~ common.c: In function 'panic': common.c:36:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 36 | exit(1); | ^~~~ common.c:12:1: note: include '' or provide a declaration of 'exit' 11 | #include "scope.h" +++ |+#include 12 | #include 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 '' 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 '' common.c:58:1: error: return type defaults to 'int' [-Wimplicit-int] 58 | Free(p) | ^~~~ common.c: In function 'Free': common.c:62:3: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 62 | free(p); | ^~~~ common.c:62:3: note: include '' 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 '' 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 '' 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 '' 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 '' or provide a declaration of 'exit' common.c: At top level: common.c:151:1: error: return type defaults to 'int' [-Wimplicit-int] 151 | SetSignalHandling() | ^~~~~~~~~~~~~~~~~ common.c:191:1: error: return type defaults to 'int' [-Wimplicit-int] 191 | SetUpConnectionSocket(iport) | ^~~~~~~~~~~~~~~~~~~~~ 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 '' or provide a declaration of 'exit' 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 '' 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 '' or provide a declaration of 'exit' common.c:284:3: error: implicit declaration of function 'UsingFD' [-Wimplicit-function-declaration] 284 | UsingFD(ConnectionSocket, NewConnection); | ^~~~~~~ *** [common.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/x11/xscript/work/test-distrib/src --- scope.o --- 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] --- server.o --- In file included from server.c:12: x11.h:475:8: error: type defaults to 'int' in declaration of 'PrintString8' [-Wimplicit-int] 475 | extern PrintString8(); | ^~~~~~~~~~~~ x11.h:476:8: error: type defaults to 'int' in declaration of 'PrintString16' [-Wimplicit-int] 476 | extern PrintString16(); | ^~~~~~~~~~~~~ x11.h:477:8: error: type defaults to 'int' in declaration of 'PrintListSTR' [-Wimplicit-int] 477 | extern PrintListSTR(); | ^~~~~~~~~~~~ server.c:21:1: error: return type defaults to 'int' [-Wimplicit-int] 21 | ReportFromClient(fd, buf, n) | ^~~~~~~~~~~~~~~~ server.c: In function 'ReportFromClient': server.c:27:7: error: implicit declaration of function 'PrintTime'; did you mean 'PrintList'? [-Wimplicit-function-declaration] 27 | PrintTime(); | ^~~~~~~~~ | PrintList server.c:31:3: error: implicit declaration of function 'ProcessBuffer' [-Wimplicit-function-declaration] 31 | ProcessBuffer(fd, buf, n); --- scope.o --- 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] --- server.o --- | ^~~~~~~~~~~~~ server.c: At top level: server.c:34:1: error: return type defaults to 'int' [-Wimplicit-int] 34 | ReportFromServer(fd, buf, n) | ^~~~~~~~~~~~~~~~ server.c:59:1: error: return type defaults to 'int' [-Wimplicit-int] 59 | PrintTime() | ^~~~~~~~~ server.c:195:1: error: return type defaults to 'int' [-Wimplicit-int] 195 | SaveBytes(fd, buf, n) | ^~~~~~~~~ server.c: In function 'SaveBytes': server.c:211:11: error: implicit declaration of function 'Free' [-Wimplicit-function-declaration] 211 | Free((char *)CS[fd].SavedBytes); | ^~~~ server.c: At top level: server.c:224:1: error: return type defaults to 'int' [-Wimplicit-int] 224 | RemoveSavedBytes(fd, n) | ^~~~~~~~~~~~~~~~ server.c: In function 'RemoveSavedBytes': server.c:232:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 232 | return; | ^~~~~~ server.c:224:1: note: declared here 224 | RemoveSavedBytes(fd, n) --- scope.o --- 442 | warn ("recording more than one client does not work very well."); | ^~~~ --- server.o --- | ^~~~~~~~~~~~~~~~ server.c: At top level: server.c:272:1: error: return type defaults to 'int' [-Wimplicit-int] 272 | ProcessBuffer(fd, buf, n) | ^~~~~~~~~~~~~ server.c: In function 'ProcessBuffer': server.c:356:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 356 | return; | ^~~~~~ server.c:272:1: note: declared here 272 | ProcessBuffer(fd, buf, n) | ^~~~~~~~~~~~~ server.c: At top level: server.c:371:1: error: return type defaults to 'int' [-Wimplicit-int] 371 | StartClientConnection(fd) | ^~~~~~~~~~~~~~~~~~~~~ server.c: In function 'StartClientConnection': server.c:374:3: error: implicit declaration of function 'enterprocedure' [-Wimplicit-function-declaration] 374 | enterprocedure("StartClientConnection"); | ^~~~~~~~~~~~~~ --- scope.o --- 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)); | ^~~~~~~~~~~~~~~~~~~~ --- server.o --- server.c:381:3: error: implicit declaration of function 'FlushReplyQ' [-Wimplicit-function-declaration] 381 | FlushReplyQ(fd); | ^~~~~~~~~~~ server.c: At top level: server.c:391:1: error: return type defaults to 'int' [-Wimplicit-int] 391 | StopClientConnection(fd) | ^~~~~~~~~~~~~~~~~~~~ server.c: In function 'FinishSetUpMessage': server.c:434:6: error: implicit declaration of function 'ServerHalf' [-Wimplicit-function-declaration] 434 | CS[ServerHalf(fd)].littleEndian = CS[fd].littleEndian; | ^~~~~~~~~~ server.c:437:5: error: implicit declaration of function 'PrintSetUpMessage'; did you mean 'StartSetUpMessage'? [-Wimplicit-function-declaration] 437 | PrintSetUpMessage(buf); | ^~~~~~~~~~~~~~~~~ | StartSetUpMessage server.c: In function 'FinishRequest': server.c:475:7: error: implicit declaration of function 'DecodeRequest' [-Wimplicit-function-declaration] 475 | DecodeRequest(fd, buf, n); | ^~~~~~~~~~~~~ server.c:477:3: error: implicit declaration of function 'ProcessGrab' [-Wimplicit-function-declaration] 477 | ProcessGrab (fd, buf, n); | ^~~~~~~~~~~ server.c: At top level: server.c:489:1: error: return type defaults to 'int' [-Wimplicit-int] 489 | StartServerConnection(fd) | ^~~~~~~~~~~~~~~~~~~~~ server.c:506:1: error: return type defaults to 'int' [-Wimplicit-int] 506 | StopServerConnection(fd) | ^~~~~~~~~~~~~~~~~~~~ server.c: In function 'FinishSetUpReply': server.c:543:7: error: implicit declaration of function 'PrintSetUpReply'; did you mean 'StartSetUpReply'? [-Wimplicit-function-declaration] 543 | PrintSetUpReply(buf); | ^~~~~~~~~~~~~~~ | StartSetUpReply server.c:546:37: error: implicit declaration of function 'WriteToClient' [-Wimplicit-function-declaration] 546 | if (Playback!= PLAYBACK_INACTIVE) WriteToClient (fd, buf, n); | ^~~~~~~~~~~~~ server.c: In function 'ErrorPacket': server.c:570:3: error: implicit declaration of function 'DecodeError' [-Wimplicit-function-declaration] 570 | DecodeError(fd, buf, n); | ^~~~~~~~~~~ server.c: In function 'EventPacket': server.c:589:5: error: implicit declaration of function 'DecodeEvent' [-Wimplicit-function-declaration] 589 | DecodeEvent(fd, buf, n); | ^~~~~~~~~~~ server.c:592:5: error: implicit declaration of function 'RecordEvent' [-Wimplicit-function-declaration] 592 | RecordEvent(fd, buf, n); | ^~~~~~~~~~~ server.c:640:5: error: implicit declaration of function 'panic' [-Wimplicit-function-declaration] 640 | panic ("bad Playback value."); | ^~~~~ server.c: In function 'FinishReply': server.c:699:5: error: implicit declaration of function 'DecodeReply' [-Wimplicit-function-declaration] 699 | DecodeReply(fd, buf, n); | ^~~~~~~~~~~ --- scope.o --- scope.c:466:24: error: implicit declaration of function 'ServerHalf' [-Wimplicit-function-declaration] 466 | StopClientConnection(ServerHalf(fd)); | ^~~~~~~~~~ --- server.o --- *** [server.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/x11/xscript/work/test-distrib/src --- scope.o --- 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 * --- fd.o --- fd.c: In function 'time_subtract': fd.c:89:12: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 89 | register i = time_compare (t1, t2); | ^ fd.c: In function 'DeleteTimer': fd.c:205:7: error: implicit declaration of function 'Free' [-Wimplicit-function-declaration] 205 | Free (n); | ^~~~ fd.c: In function 'handleTimers': fd.c:258:17: error: implicit declaration of function 'panic' [-Wimplicit-function-declaration] 258 | if (i <= 0) panic ("cant happen in HandleTimers"); | ^~~~~ fd.c: At top level: fd.c:276:1: error: return type defaults to 'int' [-Wimplicit-int] 276 | InitializeFD() | ^~~~~~~~~~~~ fd.c: In function 'InitializeFD': fd.c:280:3: error: implicit declaration of function 'enterprocedure' [-Wimplicit-function-declaration] 280 | enterprocedure("InitializeFD"); | ^~~~~~~~~~~~~~ fd.c:314:3: error: implicit declaration of function 'UsingFD' [-Wimplicit-function-declaration] --- scope.o --- /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': --- fd.o --- 314 | UsingFD(fileno(stdin), (int (*)())NULL); | ^~~~~~~ fd.c: At top level: fd.c:321:1: error: return type defaults to 'int' [-Wimplicit-int] 321 | UsingFD(fd, Handler) | ^~~~~~~ fd.c: In function 'UsingFD': fd.c:326:5: error: implicit declaration of function 'NotUsingFD'; did you mean 'UsingFD'? [-Wimplicit-function-declaration] 326 | NotUsingFD(fd); | ^~~~~~~~~~ | UsingFD fd.c: At top level: fd.c:347:1: error: return type defaults to 'int' [-Wimplicit-int] 347 | NotUsingFD(fd) | ^~~~~~~~~~ fd.c:366:1: error: return type defaults to 'int' [-Wimplicit-int] 366 | EOFonFD(fd) | ^~~~~~~ fd.c:385:1: error: return type defaults to 'int' [-Wimplicit-int] 385 | MainLoop() | ^~~~~~~~ fd.c: In function 'MainLoop': fd.c:406:21: error: passing argument 2 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 406 | &rfds, &wfds, &xfds, | ^~~~~ | | --- scope.o --- 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); | ^~~~~~~~~~~~~~~ --- fd.o --- | 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, from fd.c:11: /usr/include/sys/select.h:145:24: note: expected 'fd_set * restrict' but argument is of type 'int *' 145 | extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD, | ^ fd.c:406:28: error: passing argument 3 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 406 | &rfds, &wfds, &xfds, | ^~~~~ | | | int * /usr/include/sys/select.h:145:48: note: expected 'fd_set * restrict' but argument is of type 'int *' 145 | extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD, | ^ fd.c:406:35: error: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 406 | &rfds, &wfds, &xfds, | ^~~~~ | | | int * /usr/include/sys/select.h:146:9: note: expected 'fd_set * restrict' but argument is of type 'int *' 146 | fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD); | ^ --- scope.o --- 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) | ^~~~~~~~~~~~~~ --- fd.o --- *** [fd.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/x11/xscript/work/test-distrib/src --- scope.o --- 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 */ | ^~~~~~~~~~~~~~ *** [scope.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/x11/xscript/work/test-distrib/src bmake: 4 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-upstream-trunk/x11/xscript *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/xscript