1.17 fails to build

FreeBSD 15 CURRENT / clang 17.0.6

===>  Building for vms-empire-1.17
--- attack.o ---
--- compmove.o ---
--- data.o ---
--- display.o ---
--- edit.o ---
--- empire.o ---
--- game.o ---
--- main.o ---
--- map.o ---
--- math.o ---
--- object.o ---
--- term.o ---
--- attack.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c attack.c -o attack.o
--- compmove.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c compmove.c -o compmove.o
--- data.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c data.c -o data.o
--- display.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c display.c -o display.o
--- edit.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c edit.c -o edit.o
--- empire.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c empire.c -o empire.o
--- game.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c game.c -o game.o
--- main.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c main.c -o main.o
--- map.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c map.c -o map.o
--- math.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c math.c -o math.o
--- object.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c object.c -o object.o
--- term.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c term.c -o term.o
--- empire.o ---
empire.c:176:3: error: expected expression
  176 |                 char e = get_chx();
      |                 ^
empire.c:177:7: error: use of undeclared identifier 'e'
  177 |                 if (e == '+') {
      |                     ^
empire.c:179:14: error: use of undeclared identifier 'e'
  179 |                 } else if (e == '-') {
      |                            ^
--- usermove.o ---
cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -c usermove.c -o usermove.o
--- empire.o ---
3 errors generated.
*** [empire.o] Error code 1

make[1]: stopped in /wrkdirs/usr/ports/games/vms-empire/work/vms-empire-1.17
--- main.o ---
main.c:35:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
   35 | int main(argc, argv)
      |     ^
--- display.o ---
In file included from display.c:21:
./extern.h:133:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated
-non-prototype]
  133 | int direction();
      |     ^
display.c:64:5: note: conflicting prototype is here
   64 | int direction(chtype c) {
      |     ^
--- game.o ---
game.c:196:25: warning: passing arguments to 'regen_land' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  196 |                         num_land = regen_land(placed);
      |                                              ^
game.c:184:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-no
n-prototype]
  184 |         count_t regen_land();
      |                 ^
game.c:224:9: note: conflicting prototype is here
  224 | count_t regen_land(count_t placed) {
      |         ^
--- edit.o ---
edit.c:137:16: warning: passing arguments to 'direction' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  137 |                 p = direction(e);
      |                              ^
--- object.o ---
object.c:466:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  466 |                 (void)sprintf(func, func_name[FUNCI(obj->func)]);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
object.c:466:23: note: treat the string as an argument to avoid this
  466 |                 (void)sprintf(func, func_name[FUNCI(obj->func)]);
      |                                     ^
      |                                     "%s",
--- main.o ---
1 warning generated.
--- object.o ---
1 warning generated.
--- edit.o ---
1 warning generated.
--- display.o ---
1 warning generated.
--- game.o ---
2 warnings generated.
make[1]: 1 error

Thanks