cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o sundog.o sundog.c sundog.c: In function ‘event_loop’: sundog.c:515:13: warning: this statement may fall through [-Wimplicit-fallthrough=] switch (event.key.keysym.sym) { ^~~~~~ sundog.c:597:9: note: here case SDL_USEREVENT: ^~~~ cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o psys/psys_bootstrap.o psys/psys_bootstrap.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o psys/psys_debug.o psys/psys_debug.c psys/psys_debug.c: In function ‘psys_print_info’: psys/psys_debug.c:218:9: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("0x%x", val); ^~~~~~~~~~~~~~~~~~~ cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o psys/psys_interpreter.o psys/psys_interpreter.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o psys/psys_opcodes.o psys/psys_opcodes.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o psys/psys_registers.o psys/psys_registers.c psys/psys_registers.c: In function ‘psys_spr’: psys/psys_registers.c:44:28: warning: this statement may fall through [-Wimplicit-fallthrough=] state->curtask = value; ~~~~~~~~~~~~~~~^~~~~~~ psys/psys_registers.c:45:9: note: here case PSYS_REG_EVEC: ^~~~ psys/psys_registers.c:48:27: warning: this statement may fall through [-Wimplicit-fallthrough=] state->readyq = value; ~~~~~~~~~~~~~~^~~~~~~ psys/psys_registers.c:49:9: note: here default: ^~~~~~~ cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o psys/psys_rsp.o psys/psys_rsp.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o psys/psys_save_state.o psys/psys_save_state.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o psys/psys_set.o psys/psys_set.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o psys/psys_task.o psys/psys_task.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o game/game_gembind.o game/game_gembind.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o game/game_screen.o game/game_screen.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o game/game_shiplib.o game/game_shiplib.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o game/game_debug.o game/game_debug.c cc -Werror=implicit-function-declaration -Wmissing-declarations -Wall -Wextra -Wno-unused-parameter -Og -Wall -ggdb3 -g3 -I. -DFLIP_ENDIAN_HACK -DPSYS_DEBUGGER -DGAME_CHEATS -DENABLE_DEBUGUI -I/usr/include/SDL2 -D_REENTRANT -Wmissing-prototypes -c -o util/debugger.o util/debugger.c In file included from /usr/include/readline/history.h:35, from util/debugger.c:16: /usr/include/readline/rltypedefs.h:71:28: error: unknown type name ‘FILE’ typedef int rl_getc_func_t PARAMS((FILE *)); ^~~~~~ /usr/include/readline/rltypedefs.h:71:28: note: ‘FILE’ is defined in header ‘’; did you forget to ‘#include ’? /usr/include/readline/rltypedefs.h:1:1: +#include /* rltypedefs.h -- Type declarations for readline functions. */ /usr/include/readline/rltypedefs.h:71:28: typedef int rl_getc_func_t PARAMS((FILE *)); ^~~~~~ /usr/include/readline/readline.h:429:20: error: unknown type name ‘FILE’ extern int rl_getc PARAMS((FILE *)); ^~~~~~ /usr/include/readline/readline.h:429:20: note: ‘FILE’ is defined in header ‘’; did you forget to ‘#include ’? /usr/include/readline/readline.h:39:1: +#include #endif /usr/include/readline/readline.h:429:20: extern int rl_getc PARAMS((FILE *)); ^~~~~~ In file included from util/debugger.c:17: /usr/include/readline/readline.h:558:8: error: unknown type name ‘FILE’ extern FILE *rl_instream; ^~~~ /usr/include/readline/readline.h:559:8: error: unknown type name ‘FILE’ extern FILE *rl_outstream; ^~~~ /usr/include/readline/readline.h:588:8: error: unknown type name ‘rl_getc_func_t’ extern rl_getc_func_t *rl_getc_function; ^~~~~~~~~~~~~~ /usr/include/readline/readline.h:917:3: error: unknown type name ‘FILE’ FILE *inf; ^~~~ /usr/include/readline/readline.h:918:3: error: unknown type name ‘FILE’ FILE *outf; ^~~~ util/debugger.c: In function ‘psys_debugger_run’: util/debugger.c:319:9: error: implicit declaration of function ‘printf’ [-Werror=implicit-function-declaration] printf("** Entering psys debugger: type 'h' for help **\n"); ^~~~~~ util/debugger.c:319:9: warning: incompatible implicit declaration of built-in function ‘printf’ util/debugger.c:319:9: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:19:1: +#include util/debugger.c:319:9: printf("** Entering psys debugger: type 'h' for help **\n"); ^~~~~~ util/debugger.c:361:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Set breakpoint %d at %.8s:0x%x\n", brk->num, brk->seg.name, brk->addr); ^~~~~~ util/debugger.c:361:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:364:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf(ATITLE "> Breakpoints >" ARESET "\n"); ^~~~~~ util/debugger.c:364:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:379:25: warning: incompatible implicit declaration of built-in function ‘printf’ printf("%s breakpoint %d\n", enable ? "Enabled" : "Disabled", brk->num); ^~~~~~ util/debugger.c:379:25: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:381:25: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Breakpoint %i out of range\n", i); ^~~~~~ util/debugger.c:381:25: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:384:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("One argument required\n"); ^~~~~~ util/debugger.c:384:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:388:17: warning: incompatible implicit declaration of built-in function ‘printf’ printf(ATITLE "erec sib flg segname base size " ARESET "\n"); ^~~~~~ util/debugger.c:388:17: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:445:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Wrote memory dump to %s\n", args[1]); ^~~~~~ util/debugger.c:445:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:447:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Two arguments required\n"); ^~~~~~ util/debugger.c:447:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:457:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("One or two arguments required\n"); ^~~~~~ util/debugger.c:457:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:467:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("At least two arguments required\n"); ^~~~~~ util/debugger.c:467:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:477:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("At least two arguments required\n"); ^~~~~~ util/debugger.c:477:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:489:29: warning: incompatible implicit declaration of built-in function ‘printf’ printf("No such segment known\n"); ^~~~~~ util/debugger.c:489:29: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:491:29: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Global 0x%x out of range for segment\n", addr); ^~~~~~ util/debugger.c:491:29: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:495:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("At least three arguments required\n"); ^~~~~~ util/debugger.c:495:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:505:29: warning: incompatible implicit declaration of built-in function ‘printf’ printf("0x%04x\n", address); ^~~~~~ util/debugger.c:505:29: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:508:29: warning: incompatible implicit declaration of built-in function ‘printf’ printf("0x%04x\n", value); ^~~~~~ util/debugger.c:508:29: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:512:29: warning: incompatible implicit declaration of built-in function ‘printf’ printf("No such segment known\n"); ^~~~~~ util/debugger.c:512:29: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:514:29: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Global 0x%x out of range for segment\n", addr); ^~~~~~ util/debugger.c:514:29: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:518:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Two arguments are required\n"); ^~~~~~ util/debugger.c:518:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:526:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("At least two arguments required\n"); ^~~~~~ util/debugger.c:526:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:533:25: warning: incompatible implicit declaration of built-in function ‘printf’ printf("0x%04x\n", address); ^~~~~~ util/debugger.c:533:25: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:536:25: warning: incompatible implicit declaration of built-in function ‘printf’ printf("0x%04x\n", value); ^~~~~~ util/debugger.c:536:25: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:539:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("One argument is required\n"); ^~~~~~ util/debugger.c:539:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:549:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Cannot go further up\n"); ^~~~~~ util/debugger.c:549:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:557:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("No further lexical parent\n"); ^~~~~~ util/debugger.c:557:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:564:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Cannot go further down\n"); ^~~~~~ util/debugger.c:564:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:572:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("No lexical children of current frame\n"); ^~~~~~ util/debugger.c:572:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:580:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Two arguments are required\n"); ^~~~~~ util/debugger.c:580:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:586:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("0x%04x\n", value); ^~~~~~ util/debugger.c:586:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:588:21: warning: incompatible implicit declaration of built-in function ‘printf’ printf("One argument is required\n"); ^~~~~~ util/debugger.c:588:21: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:591:17: warning: incompatible implicit declaration of built-in function ‘printf’ printf(ATITLE "> Help >" ARESET "\n"); ^~~~~~ util/debugger.c:591:17: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c:630:17: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Unknown command %s. Type 'h' for help.\n", cmd); ^~~~~~ util/debugger.c:630:17: note: include ‘’ or provide a declaration of ‘printf’ util/debugger.c: In function ‘psys_debugger_trace’: util/debugger.c:673:17: warning: incompatible implicit declaration of built-in function ‘printf’ printf("Hit breakpoint %d at %.8s:0x%x\n", i, brk->seg.name, brk->addr); ^~~~~~ util/debugger.c:673:17: note: include ‘’ or provide a declaration of ‘printf’ cc1: some warnings being treated as errors make: *** [: util/debugger.o] Error 1