[root@fedoraws emulator-sun-2]# make
make -C m68k all
make[1]: Entering directory '/home/viktormadarasz/emulator-sun-2/m68k'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/viktormadarasz/emulator-sun-2/m68k'
make -C sim all
make[1]: Entering directory '/home/viktormadarasz/emulator-sun-2/sim'
Makefile:19: extraneous text after 'else' directive
cc -c -I. -I../m68k -I/usr/pkg/include -g -O2 -DM68K_V33 sim68k.c
In file included from sim68k.c:28:
sim.h:44:1: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
44 | uint32_t e3c400_read(uint32_t addr, int32_t size);
| ^~~~~~~~
| u_int32_t
sim.h:44:22: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
44 | uint32_t e3c400_read(uint32_t addr, int32_t size);
| ^~~~~~~~
| u_int32_t
sim.h:45:19: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
45 | void e3c400_write(uint32_t addr, uint32_t size, uint32_t value);
| ^~~~~~~~
| u_int32_t
sim.h:45:34: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
45 | void e3c400_write(uint32_t addr, uint32_t size, uint32_t value);
| ^~~~~~~~
| u_int32_t
sim.h:45:49: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
45 | void e3c400_write(uint32_t addr, uint32_t size, uint32_t value);
| ^~~~~~~~
| u_int32_t
sim68k.c: In function ‘io_read’:
sim68k.c:212:13: warning: implicit declaration of function ‘e3c400_read’ [-Wimplicit-function-declaration]
212 | value = e3c400_read(pa, size);
| ^~~~~~~~~~~
sim68k.c: In function ‘cpu_write_mbmem’:
sim68k.c:693:5: warning: implicit declaration of function ‘e3c400_write’; did you mean ‘e3c400_init’? [-Wimplicit-function-declaration]
693 | e3c400_write(address, size, value);
| ^~~~~~~~~~~~
| e3c400_init
make[1]: *** [Makefile:47: sim68k.o] Error 1
make[1]: Leaving directory '/home/viktormadarasz/emulator-sun-2/sim'
make: *** [GNUmakefile:4: all] Error 2
[root@fedoraws emulator-sun-2]#
Tried both with and without root account it throws the same issue also with make or gmake as well
[root@fedoraws emulator-sun-2]# make
make -C m68k all
make[1]: Entering directory '/home/viktormadarasz/emulator-sun-2/m68k'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/viktormadarasz/emulator-sun-2/m68k'
make -C sim all
make[1]: Entering directory '/home/viktormadarasz/emulator-sun-2/sim'
Makefile:19: extraneous text after 'else' directive
cc -c -I. -I../m68k -I/usr/pkg/include -g -O2 -DM68K_V33 sim68k.c
In file included from sim68k.c:28:
sim.h:44:1: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
44 | uint32_t e3c400_read(uint32_t addr, int32_t size);
| ^~~~~~~~
| u_int32_t
sim.h:44:22: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
44 | uint32_t e3c400_read(uint32_t addr, int32_t size);
| ^~~~~~~~
| u_int32_t
sim.h:45:19: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
45 | void e3c400_write(uint32_t addr, uint32_t size, uint32_t value);
| ^~~~~~~~
| u_int32_t
sim.h:45:34: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
45 | void e3c400_write(uint32_t addr, uint32_t size, uint32_t value);
| ^~~~~~~~
| u_int32_t
sim.h:45:49: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
45 | void e3c400_write(uint32_t addr, uint32_t size, uint32_t value);
| ^~~~~~~~
| u_int32_t
sim68k.c: In function ‘io_read’:
sim68k.c:212:13: warning: implicit declaration of function ‘e3c400_read’ [-Wimplicit-function-declaration]
212 | value = e3c400_read(pa, size);
| ^~~~~~~~~~~
sim68k.c: In function ‘cpu_write_mbmem’:
sim68k.c:693:5: warning: implicit declaration of function ‘e3c400_write’; did you mean ‘e3c400_init’? [-Wimplicit-function-declaration]
693 | e3c400_write(address, size, value);
| ^~~~~~~~~~~~
| e3c400_init
make[1]: *** [Makefile:47: sim68k.o] Error 1
make[1]: Leaving directory '/home/viktormadarasz/emulator-sun-2/sim'
make: *** [GNUmakefile:4: all] Error 2
[root@fedoraws emulator-sun-2]#
Tried both with and without root account it throws the same issue also with make or gmake as well