=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/battalion", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for battalion-1.4nb8 --- battalion.o --- --- audio.o --- --- battalion.o --- 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 --- audio.o --- 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 --- battalion.o --- battalion.c:260:62: warning: format specifies type 'char *' but the argument has type 'char (*)[256]' [-Wformat] 260 | 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] 262 | 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] 264 | 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] 266 | fscanf(hiScoreFile, "%d%c%s", &(T[c].number), &garbage, &(T[c].name)); | ~~ ^~~~~~~~~~~~ battalion.c:1332:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1332 | if ((tanktype == MECHAG)) | ~~~~~~~~~^~~~~~~~~ battalion.c:1332:16: note: remove extraneous parentheses around the comparison to silence this warning 1332 | if ((tanktype == MECHAG)) | ~ ^ ~ battalion.c:1332:16: note: use '=' to turn this equality comparison into an assignment 1332 | if ((tanktype == MECHAG)) | ^~ | = battalion.c:1364:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1364 | if ((tanktype == CHH)) | ~~~~~~~~~^~~~~~ battalion.c:1364:16: note: remove extraneous parentheses around the comparison to silence this warning 1364 | if ((tanktype == CHH)) | ~ ^ ~ battalion.c:1364:16: note: use '=' to turn this equality comparison into an assignment 1364 | if ((tanktype == CHH)) | ^~ | = battalion.c:1476:17: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1476 | if ( (tanktype == HERO)) | ~~~~~~~~~^~~~~~~ battalion.c:1476:17: note: remove extraneous parentheses around the comparison to silence this warning 1476 | if ( (tanktype == HERO)) | ~ ^ ~ battalion.c:1476:17: note: use '=' to turn this equality comparison into an assignment 1476 | if ( (tanktype == HERO)) | ^~ | = battalion.c:2141:20: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 2141 | if ((bboom->count == 2)) | ~~~~~~~~~~~~~^~~~ battalion.c:2141:20: note: remove extraneous parentheses around the comparison to silence this warning 2141 | if ((bboom->count == 2)) | ~ ^ ~ battalion.c:2141:20: note: use '=' to turn this equality comparison into an assignment 2141 | if ((bboom->count == 2)) | ^~ | = battalion.c:2148:20: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 2148 | if ((bboom->count == 4)) | ~~~~~~~~~~~~~^~~~ battalion.c:2148:20: note: remove extraneous parentheses around the comparison to silence this warning 2148 | if ((bboom->count == 4)) | ~ ^ ~ battalion.c:2148:20: note: use '=' to turn this equality comparison into an assignment 2148 | if ((bboom->count == 4)) | ^~ | = --- net.o --- --- battalion.o --- battalion.c:2655:21: warning: call to undeclared function 'cuserid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2655 | playerPointer = cuserid(NULL); | ^ battalion.c:2655:19: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] 2655 | playerPointer = cuserid(NULL); | ^ ~~~~~~~~~~~~~ battalion.c:3018:65: warning: format specifies type 'char *' but the argument has type 'FILE *' (aka 'struct __sFILE *') [-Wformat] 3018 | sprintf(textBuffer, "Couldn't create high score file: %s", hiScoreFile); | ~~ ^~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __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] 3051 | 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] 3052 | 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] 3053 | 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] 3055 | 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] 3056 | 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] 3057 | 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] 3059 | 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] 3060 | 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] --- net.o --- 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 --- battalion.o --- 3061 | 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] 3063 | 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] 3064 | 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] 3065 | 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] 3765 | if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate + 3600)) < fabs(thaMonster.headHorzRotate - nearAngle)) | ^ battalion.c:3765:6: note: use function 'abs' instead 3765 | 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] 3765 | if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate + 3600)) < fabs(thaMonster.headHorzRotate - nearAngle)) | ^ battalion.c:3765:82: note: use function 'abs' instead 3765 | 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] 3767 | if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate - 3600)) < fabs(thaMonster.headHorzRotate - nearAngle)) | ^ battalion.c:3767:6: note: use function 'abs' instead 3767 | 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] 3767 | if (fabs(thaMonster.headHorzRotate - (temptarget->net_headHorzRotate - 3600)) < fabs(thaMonster.headHorzRotate - nearAngle)) | ^ battalion.c:3767:82: note: use function 'abs' instead 3767 | 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] 4513 | glFogi(GL_FOG_START, MONSTERFOGSTART); | ~~~~~~ ^~~~~~~~~~~~~~~ ./battalion.h:199:33: note: expanded from macro 'MONSTERFOGSTART' 199 | #define MONSTERFOGSTART 2.5 | ^~~ battalion.c:4792:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] 4792 | else | ^ battalion.c:4926:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 4926 | else | ^ battalion.c:5236:47: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value] 5236 | if ((thaMonster.energyRemaining > 15) && (fabs(speed) < 6) && (r < 3.5)) | ^ battalion.c:5236:47: note: use function 'abs' instead 5236 | 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] 5243 | (t != MECHAG) && ((fabs(speed) < 3) || (r < 1))) | ^ battalion.c:5243:22: note: use function 'abs' instead 5243 | (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] 5246 | else if (((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r > 3)) | ^ battalion.c:5246:51: note: use function 'abs' instead 5246 | 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] 5249 | else if (((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r < .75)) | ^ battalion.c:5249:51: note: use function 'abs' instead 5249 | 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] 5257 | else if ((thaMonster.energyRemaining > 5) && ((fabs(speed) < 10) || (r < 4))) | ^ battalion.c:5257:53: note: use function 'abs' instead 5257 | 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] 5263 | (t != MECHAG) && ((fabs(speed) < 3) || (r < 1))) | ^ battalion.c:5263:22: note: use function 'abs' instead 5263 | (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] 5265 | else if (((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r > 3)) | ^ battalion.c:5265:50: note: use function 'abs' instead 5265 | 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] 5267 | else if (((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r < .75)) | ^ battalion.c:5267:50: note: use function 'abs' instead 5267 | 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] 5269 | else if (!(((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r < 1))) | ^ battalion.c:5269:52: note: use function 'abs' instead 5269 | else if (!(((t == MECHAG) || (t == HERO)) && (fabs(speed) < 5) && (r < 1))) | ^~~~ | abs battalion.c:5768:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 5768 | main (int argc, char*argv[]) | ^ | int --- net.o --- net.c:388:8: warning: format specifies type 'double' but the argument has type 'char' [-Wformat] 382 | sprintf(mesg, "%s %d %3.1f %3.1f %3.1f %3.1f %0.3f %d %d #", MESG_NEW_TANK, | ~~~~~ | %c 383 | tempTank->number, 384 | tempTank->x-globalxshift, 385 | tempTank->z-globalzshift, 386 | tempTank->finalR, 387 | tempTank->speed, 388 | tempTank->type, | ^~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ net.c:382:57: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 382 | sprintf(mesg, "%s %d %3.1f %3.1f %3.1f %3.1f %0.3f %d %d #", MESG_NEW_TANK, | ~^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __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] 694 | n = recvfrom(sockfd, recvline, MAXLINE, 0, (struct sockaddr *) &serv_addr, (int *)& servlen); | ^~~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:720:27: note: passing argument to parameter here 720 | 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] 801 | n = recvfrom(sockfd, recvline, MAXLINE, 0, (struct sockaddr *) &cli_addr, (int *)& clilen); | ^~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:720:27: note: passing argument to parameter here 720 | socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom); | ^ 4 warnings generated. --- gprim.o --- 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 --- battalion.o --- 41 warnings generated. --- graphics.o --- 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 --- objects.o --- 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 --- graphics.o --- graphics.c:1857:27: warning: comparison of array 'officeLogoData' not equal to a null pointer is always true [-Wtautological-pointer-compare] 1857 | 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] 1870 | 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] 2049 | 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] 2049 | if ((detail >= 2) && (picleft != NULL) && (picright != NULL)) | ^~~~~~~~ ~~~~ graphics.c:3409:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 3409 | else | ^ 5 warnings generated. --- text.o --- 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 --- update.o --- 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 --- tk.o --- 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 --- font.o --- 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] 1370 | for (j = 1; mode = strokeFont[i][j]; j += 3) | ~~~~~^~~~~~~~~~~~~~~~~~ font.c:1370:20: note: place parentheses around the assignment to silence this warning 1370 | for (j = 1; mode = strokeFont[i][j]; j += 3) | ^ | ( ) font.c:1370:20: note: use '==' to turn this assignment into an equality comparison 1370 | for (j = 1; mode = strokeFont[i][j]; j += 3) | ^ | == 1 warning generated. --- battalion --- 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 making "all" in /var/tmp/work/games/battalion/work/battalionSource bmake: 1 error bmake: stopped making "all" in /var/tmp/work/games/battalion/work/battalionSource *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/battalion *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/battalion