=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for battalion-1.4nb8 cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/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: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); ~~ ^~~~~~~~~~~ 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[]) ^ 39 warnings generated. cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/include -I./. -DMESAVERSION -c audio.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/include -I./. -DMESAVERSION -c net.c net.c:388:8: warning: format specifies type 'double' but the argument has type 'char' [-Wformat] tempTank->type, ^~~~~~~~~~~~~~ net.c:382:57: warning: more '%' conversions than data arguments [-Wformat] sprintf(mesg, "%s %d %3.1f %3.1f %3.1f %3.1f %0.3f %d %d #", MESG_NEW_TANK, ~^ 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); ^~~~~~~~~~~~~~~~ /usr/include/sys/socket.h:655:58: note: passing argument to parameter here struct sockaddr * __restrict, socklen_t * __restrict); ^ 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); ^~~~~~~~~~~~~~~ /usr/include/sys/socket.h:655:58: note: passing argument to parameter here struct sockaddr * __restrict, socklen_t * __restrict); ^ 4 warnings generated. cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/include -I./. -DMESAVERSION -c gprim.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/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. cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/include -I./. -DMESAVERSION -c objects.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/include -I./. -DMESAVERSION -c text.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/include -I./. -DMESAVERSION -c update.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/include -I./. -DMESAVERSION -c tk.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm -O -DDATADIR=\"/usr/pkg/share/battalion/\" -DVARDIR=\"/var/games/\" -I/usr/X11R7/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. cc -o battalion battalion.o audio.o net.o gprim.o graphics.o objects.o text.o update.o tk.o font.o -lcompat -L/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -lGL -lGLU -L./. -L/usr/X11R6/lib -lm -lX11 -lXext /usr/bin/ld: cannot find -lcompat clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/games/battalion/work/battalionSource *** Error code 1 Stop. bmake[1]: stopped in /usr/pkgsrc/games/battalion *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/games/battalion