=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for battalion-1.4nb8
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c battalion.c
battalion.c:260:62: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
            fscanf(hiScoreFile, "%d%c%s", &(G[c].number), &garbage, &(G[c].name));    
                                     ~~                             ^~~~~~~~~~~~
battalion.c:262:62: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
            fscanf(hiScoreFile, "%d%c%s", &(V[c].number), &garbage, &(V[c].name));
                                     ~~                             ^~~~~~~~~~~~
battalion.c:264:62: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
            fscanf(hiScoreFile, "%d%c%s", &(F[c].number), &garbage, &(F[c].name));
                                     ~~                             ^~~~~~~~~~~~
battalion.c:266:62: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
            fscanf(hiScoreFile, "%d%c%s", &(T[c].number), &garbage, &(T[c].name));
                                     ~~                             ^~~~~~~~~~~~
battalion.c:1332:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((tanktype == MECHAG))
             ~~~~~~~~~^~~~~~~~~
battalion.c:1332:16: note: remove extraneous parentheses around the comparison to silence this warning
        if ((tanktype == MECHAG))
            ~         ^        ~
battalion.c:1332:16: note: use '=' to turn this equality comparison into an assignment
        if ((tanktype == MECHAG))
                      ^~
                      =
battalion.c:1364:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((tanktype == CHH))
             ~~~~~~~~~^~~~~~
battalion.c:1364:16: note: remove extraneous parentheses around the comparison to silence this warning
        if ((tanktype == CHH))
            ~         ^     ~
battalion.c:1364:16: note: use '=' to turn this equality comparison into an assignment
        if ((tanktype == CHH))
                      ^~
                      =
battalion.c:1476:17: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ( (tanktype == HERO))
              ~~~~~~~~~^~~~~~~
battalion.c:1476:17: note: remove extraneous parentheses around the comparison to silence this warning
        if ( (tanktype == HERO))
             ~         ^      ~
battalion.c:1476:17: note: use '=' to turn this equality comparison into an assignment
        if ( (tanktype == HERO))
                       ^~
                       =
battalion.c:2141:20: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((bboom->count == 2))
             ~~~~~~~~~~~~~^~~~
battalion.c:2141:20: note: remove extraneous parentheses around the comparison to silence this warning
        if ((bboom->count == 2))
            ~             ^   ~
battalion.c:2141:20: note: use '=' to turn this equality comparison into an assignment
        if ((bboom->count == 2))
                          ^~
                          =
battalion.c:2148:20: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((bboom->count == 4))
             ~~~~~~~~~~~~~^~~~
battalion.c:2148:20: note: remove extraneous parentheses around the comparison to silence this warning
        if ((bboom->count == 4))
            ~             ^   ~
battalion.c:2148:20: note: use '=' to turn this equality comparison into an assignment
        if ((bboom->count == 4))
                          ^~
                          =
battalion.c:2655:21: warning: implicit declaration of function 'cuserid' is invalid in C99 [-Wimplicit-function-declaration]
    playerPointer = cuserid(NULL);
                    ^
battalion.c:2655:19: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
    playerPointer = cuserid(NULL);
                  ^ ~~~~~~~~~~~~~
battalion.c:3018:65: warning: format specifies type 'char *' but the argument has type 'FILE *' (aka 'struct __sFILE *') [-Wformat]
            sprintf(textBuffer, "Couldn't create high score file: %s", hiScoreFile);        
                                                                  ~~   ^~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^~~~~~~~~~~
battalion.c:3051:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(G[0].number), &garbage, &(G[0].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3052:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(G[1].number), &garbage, &(G[1].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3053:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(G[2].number), &garbage, &(G[2].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3055:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(V[0].number), &garbage, &(V[0].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3056:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(V[1].number), &garbage, &(V[1].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3057:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(V[2].number), &garbage, &(V[2].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3059:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(F[0].number), &garbage, &(F[0].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3060:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(F[1].number), &garbage, &(F[1].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3061:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(F[2].number), &garbage, &(F[2].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3063:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(T[0].number), &garbage, &(T[0].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3064:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(T[1].number), &garbage, &(T[1].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3065:58: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat]
        fscanf(hiScoreFile, "%d%c%s", &(T[2].number), &garbage, &(T[2].name));
                                 ~~                             ^~~~~~~~~~~~
battalion.c:3765:6: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
        if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate + 3600)) < fabs(thaMonster.headHorzRotate - nearAngle))
            ^
battalion.c:3765:6: note: use function 'abs' instead
        if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate + 3600)) < fabs(thaMonster.headHorzRotate - nearAngle))
            ^~~~
            abs
battalion.c:3765:82: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
        if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate + 3600)) < fabs(thaMonster.headHorzRotate - nearAngle))
                                                                                        ^
battalion.c:3765:82: note: use function 'abs' instead
        if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate + 3600)) < fabs(thaMonster.headHorzRotate - nearAngle))
                                                                                        ^~~~
                                                                                        abs
battalion.c:3767:6: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
        if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate - 3600)) < fabs(thaMonster.headHorzRotate - nearAngle))
            ^
battalion.c:3767:6: note: use function 'abs' instead
        if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate - 3600)) < fabs(thaMonster.headHorzRotate - nearAngle))
            ^~~~
            abs
battalion.c:3767:82: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
        if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate - 3600)) < fabs(thaMonster.headHorzRotate - nearAngle))
                                                                                        ^
battalion.c:3767:82: note: use function 'abs' instead
        if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate - 3600)) < fabs(thaMonster.headHorzRotate - nearAngle))
                                                                                        ^~~~
                                                                                        abs
battalion.c:4513:24: warning: implicit conversion from 'double' to 'GLint' (aka 'int') changes value from 2.5 to 2 [-Wliteral-conversion]
        glFogi(GL_FOG_START,  MONSTERFOGSTART);
        ~~~~~~                ^~~~~~~~~~~~~~~
././battalion.h:199:33: note: expanded from macro 'MONSTERFOGSTART'
    #define MONSTERFOGSTART         2.5
                                    ^~~
battalion.c:4792:2: warning: add explicit braces to avoid dangling else [-Wdangling-else]
        else
        ^
battalion.c:4926:3: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                else
                ^
battalion.c:5236:47: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
    if ((thaMonster.energyRemaining > 15) && (fabs(speed) < 6) && (r < 3.5))
                                              ^
battalion.c:5236:47: note: use function 'abs' instead
    if ((thaMonster.energyRemaining > 15) && (fabs(speed) < 6) && (r < 3.5))
                                              ^~~~
                                              abs
battalion.c:5243:22: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
                (t != MECHAG) && ((fabs(speed) < 3) || (r < 1)))
                                   ^
battalion.c:5243:22: note: use function 'abs' instead
                (t != MECHAG) && ((fabs(speed) < 3) || (r < 1)))
                                   ^~~~
                                   abs
battalion.c:5246:51: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
            else if (((t == MECHAG)  || (t == HERO)) && (fabs(speed) < 5) && (r > 3))
                                                         ^
battalion.c:5246:51: note: use function 'abs' instead
            else if (((t == MECHAG)  || (t == HERO)) && (fabs(speed) < 5) && (r > 3))
                                                         ^~~~
                                                         abs
battalion.c:5249:51: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
            else if (((t == MECHAG)  || (t == HERO)) && (fabs(speed) < 5) && (r < .75))
                                                         ^
battalion.c:5249:51: note: use function 'abs' instead
            else if (((t == MECHAG)  || (t == HERO)) && (fabs(speed) < 5) && (r < .75))
                                                         ^~~~
                                                         abs
battalion.c:5257:53: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
            else if ((thaMonster.energyRemaining > 5) && ((fabs(speed) < 10) || (r < 4)))
                                                           ^
battalion.c:5257:53: note: use function 'abs' instead
            else if ((thaMonster.energyRemaining > 5) && ((fabs(speed) < 10) || (r < 4)))
                                                           ^~~~
                                                           abs
battalion.c:5263:22: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
                (t != MECHAG) && ((fabs(speed) < 3) || (r < 1)))
                                   ^
battalion.c:5263:22: note: use function 'abs' instead
                (t != MECHAG) && ((fabs(speed) < 3) || (r < 1)))
                                   ^~~~
                                   abs
battalion.c:5265:50: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
            else if (((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r > 3))
                                                        ^
battalion.c:5265:50: note: use function 'abs' instead
            else if (((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r > 3))
                                                        ^~~~
                                                        abs
battalion.c:5267:50: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
            else if (((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r < .75))
                                                        ^
battalion.c:5267:50: note: use function 'abs' instead
            else if (((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r < .75))
                                                        ^~~~
                                                        abs
battalion.c:5269:52: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
            else if (!(((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r < 1)))
                                                          ^
battalion.c:5269:52: note: use function 'abs' instead
            else if (!(((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r < 1)))
                                                          ^~~~
                                                          abs
battalion.c:5768:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main (int argc, char*argv[])
^
41 warnings generated.
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c audio.c
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c net.c
net.c:388:8: warning: format specifies type 'double' but the argument has type 'char' [-Wformat]
                                                 tempTank->type, 
                                                 ^~~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^~~~~~~~~~~
net.c:382:57: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
        sprintf(mesg, "%s %d %3.1f %3.1f %3.1f %3.1f %0.3f %d %d #", MESG_NEW_TANK,
                                                              ~^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^~~~~~~~~~~
net.c:694:78: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
         n = recvfrom(sockfd, recvline, MAXLINE, 0, (struct sockaddr *) &serv_addr, (int *)& servlen);
                                                                                    ^~~~~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/socket.h:716:27: note: passing argument to parameter here
    socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom);
                          ^
net.c:801:76: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
        n = recvfrom(sockfd, recvline, MAXLINE, 0, (struct sockaddr *) &cli_addr, (int *)& clilen);
                                                                                  ^~~~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/socket.h:716:27: note: passing argument to parameter here
    socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom);
                          ^
4 warnings generated.
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c gprim.c
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c graphics.c
graphics.c:1857:27: warning: comparison of array 'officeLogoData' not equal to a null pointer is always true [-Wtautological-pointer-compare]
    if ((detail >= 2) && (officeLogoData != NULL))
                          ^~~~~~~~~~~~~~    ~~~~
graphics.c:1870:27: warning: comparison of array 'picleft' not equal to a null pointer is always true [-Wtautological-pointer-compare]
    if ((detail >= 2) && (picleft != NULL))
                          ^~~~~~~    ~~~~
graphics.c:2049:28: warning: comparison of array 'picleft' not equal to a null pointer is always true [-Wtautological-pointer-compare]
    if ((detail >= 2) &&  (picleft != NULL) && (picright != NULL))
                           ^~~~~~~    ~~~~
graphics.c:2049:49: warning: comparison of array 'picright' not equal to a null pointer is always true [-Wtautological-pointer-compare]
    if ((detail >= 2) &&  (picleft != NULL) && (picright != NULL))
                                                ^~~~~~~~    ~~~~
graphics.c:3409:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                    else
                    ^
5 warnings generated.
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c objects.c
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c text.c
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c update.c
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c tk.c
clang -pipe -Os -I/opt/pkg/include -O -DDATADIR=\"/opt/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/opt/pkg/include -I./.  -DMESAVERSION  -c font.c
font.c:1370:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
                for (j = 1; mode = strokeFont[i][j]; j += 3)
                            ~~~~~^~~~~~~~~~~~~~~~~~
font.c:1370:20: note: place parentheses around the assignment to silence this warning
                for (j = 1; mode = strokeFont[i][j]; j += 3)
                                 ^
                            (                      )
font.c:1370:20: note: use '==' to turn this assignment into an equality comparison
                for (j = 1; mode = strokeFont[i][j]; j += 3)
                                 ^
                                 ==
1 warning generated.
clang -o battalion battalion.o audio.o net.o gprim.o graphics.o objects.o text.o update.o tk.o font.o -L/opt/pkg/lib -L/opt/pkg/lib -lGL -lGLU -L./. -L/usr/X11R6/lib -lm -lX11 -lXext 
Undefined symbols for architecture arm64:
  "_cuserid", referenced from:
      _initialization in battalion.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [battalion] Error code 1

bmake: stopped in /Users/pbulk/build/games/battalion/work/battalionSource
1 error

bmake: stopped in /Users/pbulk/build/games/battalion/work/battalionSource
*** Error code 2

Stop.
bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/battalion
*** Error code 1

Stop.
bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/battalion