+ 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/knightcap-3.6nb9/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/knightcap-3.6nb9/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for knightcap-3.6nb9
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c knightcap.c
In file included from knightcap.c:7:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from knightcap.c:5:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
knightcap.c: In function 'parse_stdin':
knightcap.c:359:28: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
  359 |                         if (opponent == CRAFTY)
      |                            ^
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c trackball.c
trackball.c:248:17: warning: argument 1 of type 'float[4]' with mismatched bound [-Warray-parameter=]
  248 | add_quats(float q1[4], float q2[4], float dest[4])
      |           ~~~~~~^~~~~
In file included from trackball.c:54:
trackball.h:62:18: note: previously declared as 'float *'
   62 | add_quats(float *q1, float *q2, float *dest);
      |           ~~~~~~~^~
trackball.c:248:30: warning: argument 2 of type 'float[4]' with mismatched bound [-Warray-parameter=]
  248 | add_quats(float q1[4], float q2[4], float dest[4])
      |                        ~~~~~~^~~~~
trackball.h:62:29: note: previously declared as 'float *'
   62 | add_quats(float *q1, float *q2, float *dest);
      |                      ~~~~~~~^~
trackball.c:248:43: warning: argument 3 of type 'float[4]' with mismatched bound [-Warray-parameter=]
  248 | add_quats(float q1[4], float q2[4], float dest[4])
      |                                     ~~~~~~^~~~~~~
trackball.h:62:40: note: previously declared as 'float *'
   62 | add_quats(float *q1, float *q2, float *dest);
      |                                 ~~~~~~~^~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c move.c
In file included from move.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from move.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
move.c: In function 'search_expired':
move.c:43:20: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   43 |                 if (state->computer == 0)
      |                    ^
move.c: At top level:
move.c:1828:13: warning: 'show_eval' defined but not used [-Wunused-function]
 1828 | static void show_eval(Position *b, Eval v, int edepth)
      |             ^~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c util.c
In file included from util.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from util.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
util.c: In function 'parse_algebraic':
util.c:190:13: warning: variable 'capture' set but not used [-Wunused-but-set-variable]
  190 |         int capture = 0;
      |             ^~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c generate.c
In file included from generate.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from generate.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
generate.c: In function 'update_moves1':
generate.c:892:6: warning: infinite recursion detected [-Winfinite-recursion]
  892 | void update_moves1(Position *b, Position *oldb, Move *move)
      |      ^~~~~~~~~~~~~
generate.c:900:9: note: recursive call
  900 |         update_moves1(b, oldb, move);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c eval.c
In file included from eval.c:4:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from eval.c:3:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
eval.c: In function 'board_control1':
eval.c:1169:58: warning: variable 'oldblack_holes' set but not used [-Wunused-but-set-variable]
 1169 |         uint64 white_holes, black_holes, oldwhite_holes, oldblack_holes;
      |                                                          ^~~~~~~~~~~~~~
eval.c:1169:42: warning: variable 'oldwhite_holes' set but not used [-Wunused-but-set-variable]
 1169 |         uint64 white_holes, black_holes, oldwhite_holes, oldblack_holes;
      |                                          ^~~~~~~~~~~~~~
eval.c:1169:29: warning: variable 'black_holes' set but not used [-Wunused-but-set-variable]
 1169 |         uint64 white_holes, black_holes, oldwhite_holes, oldblack_holes;
      |                             ^~~~~~~~~~~
eval.c:1169:16: warning: variable 'white_holes' set but not used [-Wunused-but-set-variable]
 1169 |         uint64 white_holes, black_holes, oldwhite_holes, oldblack_holes;
      |                ^~~~~~~~~~~
eval.c: In function 'eval1':
eval.c:2513:6: warning: infinite recursion detected [-Winfinite-recursion]
 2513 | Eval eval1(Position *b, etype testv, int depth)
      |      ^~~~~
eval.c:2522:16: note: recursive call
 2522 |         ret1 = eval1(b, testv, depth);
      |                ^~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c movement.c
In file included from movement.c:8:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from movement.c:7:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c ordering.c
In file included from ordering.c:3:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from ordering.c:2:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c hash.c
In file included from hash.c:8:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from hash.c:7:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c board.c
In file included from board.c:6:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from board.c:5:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c log.c
In file included from log.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from log.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c prog.c
In file included from prog.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from prog.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c timer.c
In file included from timer.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from timer.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c ics.c
In file included from ics.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from ics.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c display.c
In file included from display.c:6:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from display.c:5:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c testsuite.c
In file included from testsuite.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from testsuite.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c brain.c
In file included from brain.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from brain.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
brain.c: In function 'brain_fill_hash':
brain.c:312:18: warning: variable 'size' set but not used [-Wunused-but-set-variable]
  312 |         unsigned size;
      |                  ^~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c td.c
In file included from td.c:2:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from td.c:1:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
td.c:16:12: warning: 'max_compare' defined but not used [-Wunused-function]
   16 | static int max_compare(struct max_struct *m1, struct max_struct *m2)
      |            ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c tactics.c
In file included from tactics.c:6:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from tactics.c:5:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c epd.c
epd.c: In function 'EPDDecode':
epd.c:2485:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
 2485 | if (flag)
      |    ^
epd.c:2626:20: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
 2626 |                 if (flag)
      |                    ^
epd.c: In function 'EPDIsLegal':
epd.c:3936:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
 3936 | if (flag && (ese.ese_epsq != sq_nil))
      |    ^
epd.c: In function 'EPDGeneratePL':
epd.c:4264:44: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
 4264 |                                         if (gen_m.m_tocp == cp_v0)
      |                                            ^
epd.c:4303:52: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
 4303 |                                                 if (cv_c_cpv[gen_m.m_tocp] == inv_cv[ese.ese_actc])
      |                                                    ^
epd.c:4331:52: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
 4331 |                                                 if (cv_c_cpv[gen_m.m_tocp] == inv_cv[ese.ese_actc])
      |                                                    ^
epd.c:4389:44: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
 4389 |                                         if (gen_m.m_tocp == cp_v0)
      |                                            ^
epd.c:4428:52: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
 4428 |                                                 if (cv_c_cpv[gen_m.m_tocp] == inv_cv[ese.ese_actc])
      |                                                    ^
epd.c:4456:52: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
 4456 |                                                 if (cv_c_cpv[gen_m.m_tocp] == inv_cv[ese.ese_actc])
      |                                                    ^
epd.c: In function 'EPDMapToDuration':
epd.c:367:31: warning: '%02hd' directive writing between 2 and 3 bytes into a region of size between 0 and 3 [-Wformat-overflow=]
  367 | sprintf(s, "%04hd:%02hd:%02hd:%02hd", dys, hrs, mns, scs);
      |                               ^~~~~
epd.c:367:12: note: directive argument in the range [-59, 59]
  367 | sprintf(s, "%04hd:%02hd:%02hd:%02hd", dys, hrs, mns, scs);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
epd.c:367:1: note: 'sprintf' output between 14 and 18 bytes into a destination of size 14
  367 | sprintf(s, "%04hd:%02hd:%02hd:%02hd", dys, hrs, mns, scs);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -O2 -fshort-enums -Wall -DTB_DIR=\"/opt/pkg/share/egtb\" -I/opt/pkg/include -I/opt/pkg/include -DRENDERED_DISPLAY=1  -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -c epdglue.c
In file included from epdglue.c:31:
knightcap.h:234: warning: "INFINITY" redefined
  234 | #define INFINITY (40.50*STATIC_PAWN_VALUE)
      | 
In file included from /usr/include/math.h:36,
                 from includes.h:8,
                 from epdglue.c:30:
/usr/include/iso/math_c99.h:59: note: this is the location of the previous definition
   59 | #define INFINITY        (__builtin_inff())
      | 
epdglue.c:309:1: warning: 'EGMapFromHostScore' defined but not used [-Wunused-function]
  309 | EGMapFromHostScore(liT score)
      | ^~~~~~~~~~~~~~~~~~
epdglue.c:277:1: warning: 'EGMapFromHostSq' defined but not used [-Wunused-function]
  277 | EGMapFromHostSq(siT index)
      | ^~~~~~~~~~~~~~~
epdglue.c:220:1: warning: 'EGMapToHostCP' defined but not used [-Wunused-function]
  220 | EGMapToHostCP(cpT cp)
      | ^~~~~~~~~~~~~
epdglue.c:127:1: warning: 'EGMapToHostPiece' defined but not used [-Wunused-function]
  127 | EGMapToHostPiece(pT p)
      | ^~~~~~~~~~~~~~~~
epdglue.c:88:1: warning: 'EGMapFromHostPiece' defined but not used [-Wunused-function]
   88 | EGMapFromHostPiece(siT piece)
      | ^~~~~~~~~~~~~~~~~~
epdglue.c:69:1: warning: 'EGMapToHostColor' defined but not used [-Wunused-function]
   69 | EGMapToHostColor(cT c)
      | ^~~~~~~~~~~~~~~~
mv KnightCap KnightCap.old
mv: cannot access KnightCap
gcc  -o KnightCap knightcap.o trackball.o move.o util.o generate.o eval.o movement.o  ordering.o hash.o board.o log.o prog.o timer.o ics.o display.o  testsuite.o brain.o td.o tactics.o epd.o epdglue.o -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lglut -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lGLU -lGL -lm -L/opt/pkg/lib -lXmu -lXt -lXext -lX11 -lXi -lICE -lSM
Undefined			first referenced
 symbol  			    in file
fghJoystickRawRead                  /home/pbulk/build/games/knightcap/work/.buildlink/lib/libglut.so
ld: fatal: symbol referencing errors. No output written to KnightCap
collect2: error: ld returned 1 exit status
*** [KnightCap] Error code 1 (ignored)