=> Bootstrap dependency digest>=20010302: found digest-20160304 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for kajaani-kombat-0.7nb10 clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o game_obj.o game_obj.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o terrain.o terrain.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o msg.o msg.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o rotozoom.o rotozoom.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o gfx.o gfx.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o game_client.o game_client.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o main.o main.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o coord.o coord.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o block.o block.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o particle_efects.o particle_efects.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o animation.o animation.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o gfx_functions.o gfx_functions.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o gui.o gui.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o gui_screens.o gui_screens.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o game_server.o game_server.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o audio.o audio.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o game_statistic.o game_statistic.cpp In file included from block.cpp:21: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ In file included from particle_efects.cpp:21: In file included from ./particle_efects.h:24: In file included from ./msg.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ In file included from rotozoom.cpp:21: In file included from ./rotozoom.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ In file included from animation.cpp:21: In file included from ./animation.h:25: In file included from ./particle_efects.h:24: In file included from ./msg.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ In file included from gui.cpp:21: In file included from ./gui.h:34: In file included from ./gfx.h:29: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ particle_efects.cpp:199:13: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (color < 0) ~~~~~ ^ ~ 1 warning generated. 1 warning generated. clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o mosaic.o mosaic.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o interpolation.o interpolation.cpp In file included from main.cpp:26: In file included from ./msg.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ gui.cpp:283:17: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression] if (typeid (*objs[i]) != typeid(starfield_efect)) ^ gui.cpp:284:7: warning: delete called on 'game_obj' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete objs[i]; ^ gui.cpp:667:7: warning: delete called on 'game_obj' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete o; ^ gui.cpp:702:4: warning: delete called on 'game_obj' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete o; ^ In file included from terrain.cpp:21: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ In file included from msg.cpp:21: In file included from ./msg.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ In file included from game_server.cpp:21: In file included from ./game_server.h:28: In file included from ./msg.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ In file included from gui_screens.cpp:21: In file included from ./gui_screens.h:25: In file included from ./gui.h:34: In file included from ./gfx.h:29: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o connects.o connects.cpp clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o player.o player.cpp In file included from gfx.cpp:21: In file included from ./gfx.h:29: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ 1 warning generated. clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o client_net.o client_net.cpp 2 warnings generated. clang++ `sdl-config --cflags` -Wall -O -D MEDIA_PATH=\"/usr/pkg/share/kajaani-kombat/\" -I/usr/pkg/include/SDL -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -c -o config.o config.cpp msg.cpp:377:7: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete tbuf; ^ [] msg.cpp:373:16: note: allocated with 'new[]' here char *tbuf = new char[slen+1]; ^ msg.cpp:382:3: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete tbuf; ^ [] msg.cpp:373:16: note: allocated with 'new[]' here char *tbuf = new char[slen+1]; ^ In file included from game_client.cpp:21: In file included from ./game_client.h:33: In file included from ./msg.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ gui_screens.cpp:23:1: warning: typedef requires a name [-Wmissing-declarations] typedef struct server_numpl { ^~~~~~~ game_server.cpp:30:5: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete output_queue.pop(); ^ game_server.cpp:67:14: error: ordered comparison between pointer and zero ('SDL_Thread *' and 'int') if (con_th < 0) ~~~~~~ ^ ~ game_server.cpp:500:29: warning: variable 't' is uninitialized when used within its own initialization [-Wuninitialized] tile t (tile::TYPE_WALL, t.owner); ~ ^ game_server.cpp:508:29: warning: variable 't' is uninitialized when used within its own initialization [-Wuninitialized] tile t (tile::TYPE_WALL, t.owner); ~ ^ game_server.cpp:516:29: warning: variable 't' is uninitialized when used within its own initialization [-Wuninitialized] tile t (tile::TYPE_WALL, t.owner); ~ ^ game_server.cpp:524:29: warning: variable 't' is uninitialized when used within its own initialization [-Wuninitialized] tile t (tile::TYPE_WALL, t.owner); ~ ^ game_server.cpp:707:4: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete m; ^ game_server.cpp:806:7: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete sm; ^ game_server.cpp:881:12: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] if (m) {delete m; m=0; } ^ gfx.cpp:1112:16: warning: unused variable 'r' [-Wunused-variable] SDL_Rect r = draw_text_baseline (screen, font, buf, tpos); ^ gfx.cpp:1119:12: warning: unused variable 'r' [-Wunused-variable] SDL_Rect r = draw_text_baseline (screen, font, buf, tpos); ^ 1 warning generated. 9 warnings and 1 error generated. : recipe for target 'game_server.o' failed gmake: *** [game_server.o] Error 1 gmake: *** Waiting for unfinished jobs.... 5 warnings generated. game_client.cpp:87:7: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete m; ^ game_client.cpp:98:7: warning: delete called on 'client_net' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete serv_conn; ^ game_client.cpp:137:14: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] if (m) { delete m; m = 0; } ^ game_client.cpp:141:5: warning: delete called on 'client_net' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete serv_conn; ^ game_client.cpp:145:12: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] if (m) { delete m; m = 0;} ^ game_client.cpp:532:7: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete m; ^ game_client.cpp:540:7: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete sm; ^ game_client.cpp:839:16: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression] if (typeid(*(objs[i])) == typeid(starfield_efect)) return; ^ game_client.cpp:905:33: warning: unused variable 'ite' [-Wunused-variable] vector::iterator ite = own_cannons[player_index[pn]].begin(); ^ game_client.cpp:922:33: warning: unused variable 'ite' [-Wunused-variable] vector::iterator ite = own_cannons[player_index[pn]].begin(); ^ config.cpp:231:89: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fprintf( stderr," Unknown key/value pair (%s/%s) on line %u\n", key.c_str(), v, linenum ); ~~ ^~~~~~~ %lu In file included from connects.cpp:1: In file included from ./connects.h:10: In file included from ./msg.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ In file included from client_net.cpp:21: In file included from ./client_net.h:29: In file included from ./msg.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ game_client.cpp:1563:66: warning: '&&' within '||' [-Wlogical-op-parentheses] if(players[player_index[i]].get_kredits() >= BIG_CANNON_COST && players[player_index[i]].is_alive() || (players[player_index[i]].get_kredits() >= CANNON_COST && players[player_index[i]].is_alive())) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ game_client.cpp:1563:66: note: place parentheses around the '&&' expression to silence this warning if(players[player_index[i]].get_kredits() >= BIG_CANNON_COST && players[player_index[i]].is_alive() || (players[player_index[i]].get_kredits() >= CANNON_COST && players[player_index[i]].is_alive())) ^ ( ) game_client.cpp:1654:66: warning: '&&' within '||' [-Wlogical-op-parentheses] if(players[player_index[i]].get_kredits() >= BIG_CANNON_COST && players[player_index[i]].is_alive() || (players[player_index[i]].get_kredits() >= CANNON_COST && players[player_index[i]].is_alive())) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ game_client.cpp:1654:66: note: place parentheses around the '&&' expression to silence this warning if(players[player_index[i]].get_kredits() >= BIG_CANNON_COST && players[player_index[i]].is_alive() || (players[player_index[i]].get_kredits() >= CANNON_COST && players[player_index[i]].is_alive())) ^ ( ) In file included from player.cpp:1: In file included from ./player.h:27: In file included from ./connects.h:10: In file included from ./msg.h:25: In file included from ./terrain.h:34: ./block.h:39:3: warning: typedef requires a name [-Wmissing-declarations] typedef enum block_type { ^~~~~~~ game_client.cpp:2868:7: warning: delete called on 'game_obj' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete o; ^ client_net.cpp:34:12: error: ordered comparison between pointer and zero ('SDL_cond *' and 'int') if (cond <0) ~~~~ ^~ client_net.cpp:40:13: error: ordered comparison between pointer and zero ('SDL_mutex *' and 'int') if (mutex < 0) ~~~~~ ^ ~ client_net.cpp:48:16: error: ordered comparison between pointer and zero ('SDL_Thread *' and 'int') if (trans_th < 0) ~~~~~~~~ ^ ~ client_net.cpp:54:16: error: ordered comparison between pointer and zero ('SDL_Thread *' and 'int') if (input_th < 0) ~~~~~~~~ ^ ~ client_net.cpp:171:15: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] if (m) delete m; ^ client_net.cpp:177:11: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] if (m) delete m; ^ client_net.cpp:200:15: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] if (m) delete m; ^ client_net.cpp:205:11: warning: delete called on 'msg' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] if (m) delete m; ^ 1 warning generated. 5 warnings and 4 errors generated. 3 warnings generated. : recipe for target 'client_net.o' failed gmake: *** [client_net.o] Error 1 1 warning generated. 1 warning generated. 3 warnings generated. 2 warnings generated. 1 warning generated. 14 warnings generated. *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/games/kajaani-kombat *** Error code 1 Stop. make: stopped in /data/pkgsrc/games/kajaani-kombat