MidnightBSD Magus

games/battalion

Monsters, explosions, destruction game for X Window System

Flavor Version Run OSVersion Arch License Restricted Status
1.4b 347 1.0 amd64 other 0 fail

Events

Machine Type Time Message
Constellation10 info 2018-10-22 14:59:46.753819 Test Started
Constellation10 fail 2018-10-22 15:00:24.374675 make build returned non-zero: 1
Constellation10 fail 2018-10-22 15:00:24.547219 Test complete.

Log

===>  Building for battalion-1.4b
--- battalion.o ---
--- audio.o ---
--- battalion.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c battalion.c -o battalion.o
--- audio.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c audio.c -o audio.o
--- battalion.o ---
battalion.c:231: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:233: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:235: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:237: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:1303:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((tanktype == MECHAG))
             ~~~~~~~~~^~~~~~~~~
battalion.c:1303:16: note: remove extraneous parentheses around the comparison to silence this warning
        if ((tanktype == MECHAG))
            ~         ^        ~
battalion.c:1303:16: note: use '=' to turn this equality comparison into an assignment
        if ((tanktype == MECHAG))
                      ^~
                      =
battalion.c:1335:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((tanktype == CHH))
             ~~~~~~~~~^~~~~~
battalion.c:1335:16: note: remove extraneous parentheses around the comparison to silence this warning
        if ((tanktype == CHH))
            ~         ^     ~
battalion.c:1335:16: note: use '=' to turn this equality comparison into an assignment
        if ((tanktype == CHH))
                      ^~
                      =
battalion.c:1447:17: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ( (tanktype == HERO))
              ~~~~~~~~~^~~~~~~
battalion.c:1447:17: note: remove extraneous parentheses around the comparison to silence this warning
--- net.o ---
--- battalion.o ---
        if ( (tanktype == HERO))
             ~         ^      ~
battalion.c:1447:17: note: use '=' to turn this equality comparison into an assignment
        if ( (tanktype == HERO))
                       ^~
                       =
--- net.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c net.c -o net.o
--- battalion.o ---
battalion.c:2112:20: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((bboom->count == 2))
             ~~~~~~~~~~~~~^~~~
battalion.c:2112:20: note: remove extraneous parentheses around the comparison to silence this warning
        if ((bboom->count == 2))
            ~             ^   ~
battalion.c:2112:20: note: use '=' to turn this equality comparison into an assignment
        if ((bboom->count == 2))
                          ^~
                          =
battalion.c:2119:20: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((bboom->count == 4))
             ~~~~~~~~~~~~~^~~~
battalion.c:2119:20: note: remove extraneous parentheses around the comparison to silence this warning
        if ((bboom->count == 4))
            ~             ^   ~
battalion.c:2119:20: note: use '=' to turn this equality comparison into an assignment
        if ((bboom->count == 4))
                          ^~
                          =
battalion.c:2947: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:2980: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:2981: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:2982: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:2984: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:2985: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:2986: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:2988: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:2989: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:2990: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:2992: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:2993: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:2994: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:4367: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:138:26: note: expanded from macro 'MONSTERFOGSTART'
#define MONSTERFOGSTART         2.5
                                ^~~
battalion.c:4640:2: warning: add explicit braces to avoid dangling else [-Wdangling-else]
        else
        ^
battalion.c:4774:3: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                else
                ^
battalion.c:5472:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main (int argc, char*argv[])
^~~~
--- net.o ---
net.c:387:8: warning: format specifies type 'double' but the argument has type 'char' [-Wformat]
                                                 tempTank->type, 
                                                 ^~~~~~~~~~~~~~
net.c:381: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:696: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:610:96: note: passing argument to parameter here
ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                                               ^
net.c:804: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:610:96: note: passing argument to parameter here
ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                                               ^
4 warnings generated.
--- gprim.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c gprim.c -o gprim.o
--- graphics.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c graphics.c -o graphics.o
graphics.c:3387:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                    else
                    ^
--- battalion.o ---
26 warnings generated.
--- objects.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c objects.c -o objects.o
--- graphics.o ---
1 warning generated.
--- text.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c text.c -o text.o
--- update.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c update.c -o update.o
--- tk.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c tk.c -o tk.o
--- font.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c font.c -o font.o
font.c:1367:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
        for (j = 1; mode = strokeFont[i][j]; j += 3) {
                    ~~~~~^~~~~~~~~~~~~~~~~~
font.c:1367:19: note: place parentheses around the assignment to silence this warning
        for (j = 1; mode = strokeFont[i][j]; j += 3) {
                         ^
                    (                      )
font.c:1367:19: note: use '==' to turn this assignment into an equality comparison
        for (j = 1; mode = strokeFont[i][j]; j += 3) {
                         ^
                         ==
--- soundIt.o ---
cc -O2 -pipe  -I/usr/local/include/X11 -I/usr/local/include -DLINUXVERSION -DLINUXAUDIO -fno-strict-aliasing -c soundIt.c -o soundIt.o
--- font.o ---
1 warning generated.
--- battalion ---
cc -o battalion battalion.o audio.o net.o gprim.o graphics.o objects.o text.o update.o tk.o font.o soundIt.o  -lGL -lGLU -L/usr/local/lib -DLINUXAUDIO
/usr/bin/ld: undefined reference to symbol `XNextEvent' (try adding -lX11)
//usr/local/lib/libX11.so.6: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [battalion] Error code 1

make[1]: stopped in /magus/work/usr/mports/games/battalion/work/battalion1.4b
1 error

make[1]: stopped in /magus/work/usr/mports/games/battalion/work/battalion1.4b
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/mports/games/battalion

Links

Depends On

Depend Of

Nothing

Categories