>>> Building on exopi-1 under games/vitetris DIST = [games/vitetris:vitetris-0.59.1.tar.gz] FULLPKGNAME = vitetris-0.59.1 RDEPENDS = [devel/desktop-file-utils] distfiles size=97182 >>> Running build in games/vitetris at 1711504556.03 ===> games/vitetris ===> Building from scratch vitetris-0.59.1 ===> Verifying specs: c curses ===> found c.99.0 curses.15.0 ===> Checking files for vitetris-0.59.1 `/exopi-cvs/ports/distfiles/vitetris-0.59.1.tar.gz' is up to date. >> (SHA256) vitetris-0.59.1.tar.gz: OK ===> Extracting for vitetris-0.59.1 sed -i 's,Exec=tetris,Exec=vitetris,' /exopi-obj/pobj/vitetris-0.59.1/vitetris-0.59.1/vitetris.desktop ===> Patching for vitetris-0.59.1 ===> Applying OpenBSD patch patch-Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: Makefile |--- Makefile.orig |+++ Makefile -------------------------- Patching file Makefile using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 18. done ===> Applying OpenBSD patch patch-src_draw_Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/draw/Makefile.orig Mon Mar 30 20:43:06 2009 |+++ src/draw/Makefile Mon Mar 30 20:43:29 2009 -------------------------- Patching file src/draw/Makefile using Plan A... Hunk #1 succeeded at 4. done ===> Applying OpenBSD patch patch-src_game_Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/game/Makefile.orig Mon Mar 30 20:46:27 2009 |+++ src/game/Makefile Mon Mar 30 20:45:11 2009 -------------------------- Patching file src/game/Makefile using Plan A... Hunk #1 succeeded at 4. done ===> Applying OpenBSD patch patch-src_input_Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/input/Makefile.orig Mon Mar 30 20:48:17 2009 |+++ src/input/Makefile Mon Mar 30 20:49:08 2009 -------------------------- Patching file src/input/Makefile using Plan A... Hunk #1 succeeded at 6. done ===> Applying OpenBSD patch patch-src_menu_Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/menu/Makefile.orig Sun Oct 12 16:13:11 2008 |+++ src/menu/Makefile Fri Nov 9 17:08:44 2012 -------------------------- Patching file src/menu/Makefile using Plan A... Hunk #1 succeeded at 12. done ===> Applying OpenBSD patch patch-src_netw_Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/netw/Makefile.orig Thu Oct 16 11:39:35 2008 |+++ src/netw/Makefile Fri Nov 9 17:08:44 2012 -------------------------- Patching file src/netw/Makefile using Plan A... Hunk #1 succeeded at 7. done ===> Applying OpenBSD patch patch-src_textgfx_Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/textgfx/Makefile.orig Mon Mar 30 20:49:59 2009 |+++ src/textgfx/Makefile Mon Mar 30 20:50:22 2009 -------------------------- Patching file src/textgfx/Makefile using Plan A... Hunk #1 succeeded at 5. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for vitetris-0.59.1 ===> Configuring for vitetris-0.59.1 checking for linux/joystick.h... no checking for curses.h... found in /usr/include checking for conio.h... no checking for stdint.h... yes checking for sys/types.h... yes checking for sys/select.h... yes checking for sys/un.h... yes updating src/config.h updating config.mk INSTALLATION DIRECTORIES: prefix = /usr/local bindir = $(prefix)/bin datarootdir = $(prefix)/share docdir = $(datarootdir)/doc/vitetris pixmapdir = $(datarootdir)/pixmaps desktopdir = $(datarootdir)/applications FEATURES: 2player network curses term_resizing menu blockstyles (If you wish to change anything, run "configure help" for options.) Now run make ===> Building for vitetris-0.59.1 generating src/src-conf.mk ./src-conf.sh 'cc' '-O2 -pipe -fsigned-char' '' ./src-conf.sh def TWOPLAYER y ./src-conf.sh obj tetris2p y ./src-conf.sh def JOYSTICK ./src-conf.sh obj joylinux ./src-conf.sh obj select y ./src-conf.sh set BACKEND curses y ./src-conf.sh def CURSES y ./src-conf.sh set CURSES_INC "" y ./src-conf.sh set BACKEND ansi -z y ./src-conf.sh set BACKEND allegro ./src-conf.sh def ALLEGRO ./src-conf.sh def XLIB ./src-conf.sh def TERM_RESIZING y ./src-conf.sh def NO_MENU -z y ./src-conf.sh lib menuext y ./src-conf.sh def NO_BLOCKSTYLES -z y ./src-conf.sh lib netw y ./src-conf.sh def SOCKET y ./src-conf.sh def INET y ./src-conf.sh obj inet y ./src-conf.sh def TTY_SOCKET "y" -a y ./src-conf.sh obj tty_socket "y" -a y ./src-conf.sh set DHISCORE_FILENAME "-D'HISCORE_FILENAME=\"/var/games/vitetris-hiscores\"'" /var/games/vitetris-hiscores ./src-conf.sh def PCTIMER ./src-conf.sh obj pctimer cd src; /usr/bin/make tetris cc -O2 -pipe -fsigned-char -I. -DTWOPLAYER=1 -DSOCKET=1 -DINET=1 -DTTY_SOCKET=1 -DTERM_RESIZING=1 -c main.c cc -O2 -pipe -fsigned-char -I. -DTWOPLAYER=1 -DCURSES=1 -DSOCKET=1 -DINET=1 -DTTY_SOCKET=1 -D'HISCORE_FILENAME="/var/games/vitetris-hiscores"' -c cmdline.c cmdline.c:66:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (n = subexplen(pattern)) { ~~^~~~~~~~~~~~~~~~~~~~ cmdline.c:66:11: note: place parentheses around the assignment to silence this warning while (n = subexplen(pattern)) { ^ ( ) cmdline.c:66:11: note: use '==' to turn this assignment into an equality comparison while (n = subexplen(pattern)) { ^ == cmdline.c:446:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msg = mksocket_local(NULL, 1)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ cmdline.c:446:11: note: place parentheses around the assignment to silence this warning if (msg = mksocket_local(NULL, 1)) { ^ ( ) cmdline.c:446:11: note: use '==' to turn this assignment into an equality comparison if (msg = mksocket_local(NULL, 1)) { ^ == cmdline.c:707:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (q = strchr(p, '=')) { ~~^~~~~~~~~~~~~~~~ cmdline.c:707:9: note: place parentheses around the assignment to silence this warning if (q = strchr(p, '=')) { ^ ( ) cmdline.c:707:9: note: use '==' to turn this assignment into an equality comparison if (q = strchr(p, '=')) { ^ == cc -O2 -pipe -fsigned-char -I. -DTWOPLAYER=1 -DCURSES=1 -c cfgfile.c 3 warnings generated. cfgfile.c:89:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strchr(line, '=')) { ~~^~~~~~~~~~~~~~~~~~~ cfgfile.c:89:9: note: place parentheses around the assignment to silence this warning if (p = strchr(line, '=')) { ^ ( ) cfgfile.c:89:9: note: use '==' to turn this assignment into an equality comparison if (p = strchr(line, '=')) { ^ == cfgfile.c:205:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (input = stdin_convertval(&val, tp)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cfgfile.c:205:17: note: place parentheses around the assignment to silence this warning else if (input = stdin_convertval(&val, tp)) { ^ ( ) cfgfile.c:205:17: note: use '==' to turn this assignment into an equality comparison else if (input = stdin_convertval(&val, tp)) { ^ == cfgfile.c:218:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strchr(tcolor_keys, key[0])) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cfgfile.c:218:8: note: place parentheses around the assignment to silence this warning if (p = strchr(tcolor_keys, key[0])) ^ ( ) cfgfile.c:218:8: note: use '==' to turn this assignment into an equality comparison if (p = strchr(tcolor_keys, key[0])) ^ == 3 warnings generated. cc -O2 -pipe -fsigned-char -c options.c options.c:226:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (o = s->opts) { ~~^~~~~~~~~ options.c:226:11: note: place parentheses around the assignment to silence this warning while (o = s->opts) { ^ ( ) options.c:226:11: note: use '==' to turn this assignment into an equality comparison while (o = s->opts) { ^ == 1 warning generated. cc -O2 -pipe -fsigned-char -I. -D'HISCORE_FILENAME="/var/games/vitetris-hiscores"' -c hiscore.c hiscore.c:14:37: warning: illegal character encoding in string literal [-Winvalid-source-encoding] static const char last_chars[8] = "Z!?"; ^~~~~~~~~~~~ ~~~~ hiscore.c:45:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (i = 0; c = name[i]; i++) { ~~^~~~~~~~~ hiscore.c:45:16: note: place parentheses around the assignment to silence this warning for (i = 0; c = name[i]; i++) { ^ ( ) hiscore.c:45:16: note: use '==' to turn this assignment into an equality comparison for (i = 0; c = name[i]; i++) { ^ == hiscore.c:48:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (p = strchr(last_chars, c)) ~~^~~~~~~~~~~~~~~~~~~~~~~ hiscore.c:48:14: note: place parentheses around the assignment to silence this warning else if (p = strchr(last_chars, c)) ^ ( ) hiscore.c:48:14: note: use '==' to turn this assignment into an equality comparison else if (p = strchr(last_chars, c)) ^ == hiscore.c:281:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(cfgfilename, "r")) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ hiscore.c:281:9: note: place parentheses around the assignment to silence this warning if (fp = fopen(cfgfilename, "r")) ^ ( ) hiscore.c:281:9: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(cfgfilename, "r")) ^ == hiscore.c:284:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(HISCORE_FILENAME, "r")) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hiscore.c:284:9: note: place parentheses around the assignment to silence this warning if (fp = fopen(HISCORE_FILENAME, "r")) ^ ( ) hiscore.c:284:9: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(HISCORE_FILENAME, "r")) ^ == hiscore.c:342:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] const char lat1[5] = ""; ^~~~~~~~~~~~~~~~ hiscore.c:350:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strchr(lat1, *nm)) ~~^~~~~~~~~~~~~~~~~~~ hiscore.c:350:9: note: place parentheses around the assignment to silence this warning if (p = strchr(lat1, *nm)) ^ ( ) hiscore.c:350:9: note: use '==' to turn this assignment into an equality comparison if (p = strchr(lat1, *nm)) ^ == 7 warnings generated. cc -O2 -pipe -fsigned-char -c lang.c cc -O2 -pipe -fsigned-char -c timer.c cc -O2 -pipe -fsigned-char -c focus.c /usr/bin/make -Cgame cc -O2 -pipe -fsigned-char -I.. -c tetris.c tetris.c:74:40: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] if (1<blocks & 1<blocks & 1<= p->y && p->blocks & 1<<4*(i-p->y+y)+x) ~~~~~~~~~~~~~~^~ tetris.c:648:53: note: place parentheses around the '+' expression to silence this warning do if (y+i >= p->y && p->blocks & 1<<4*(i-p->y+y)+x) ^ ( ) tetris.c:857:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (key = getkeypress(tm-d, IN_GAME | SINGLE_PL)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tetris.c:857:11: note: place parentheses around the assignment to silence this warning if (key = getkeypress(tm-d, IN_GAME | SINGLE_PL)) { ^ ( ) tetris.c:857:11: note: use '==' to turn this assignment into an equality comparison if (key = getkeypress(tm-d, IN_GAME | SINGLE_PL)) { ^ == 8 warnings generated. cc -O2 -pipe -fsigned-char -I.. -DSOCKET=1 -c tetris2p.c tetris2p.c:189:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = isplayer2(p)) { ~~^~~~~~~~~~~~~~ tetris2p.c:189:9: note: place parentheses around the assignment to silence this warning if (i = isplayer2(p)) { ^ ( ) tetris2p.c:189:9: note: use '==' to turn this assignment into an equality comparison if (i = isplayer2(p)) { ^ == tetris2p.c:531:11: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] !player2.lines)) ^~~~~~~ ./tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ tetris2p.c:570:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (plr = play_round()) { ~~~~^~~~~~~~~~~~~~ tetris2p.c:570:13: note: place parentheses around the assignment to silence this warning while (plr = play_round()) { ^ ( ) tetris2p.c:570:13: note: use '==' to turn this assignment into an equality comparison while (plr = play_round()) { ^ == tetris2p.c:559:2: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] player2.score = 0; ^~~~~~~ ./tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ 4 warnings generated. cc -O2 -pipe -fsigned-char -I.. -DTWOPLAYER=1 -DSOCKET=1 -c game.c cc -O2 -pipe -fsigned-char -c wonlost.c ar r game.a tetris.o tetris2p.o game.o wonlost.o ar: warning: creating game.a ranlib game.a /usr/bin/make -Cmenu cc -O2 -pipe -fsigned-char -c menucore.c menucore.c:46:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strchr(str, ' ')) { ~~^~~~~~~~~~~~~~~~~~ menucore.c:46:9: note: place parentheses around the assignment to silence this warning if (p = strchr(str, ' ')) { ^ ( ) menucore.c:46:9: note: use '==' to turn this assignment into an equality comparison if (p = strchr(str, ' ')) { ^ == menucore.c:144:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = find_firstletter(menu, n, j, keypr)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menucore.c:144:9: note: place parentheses around the assignment to silence this warning if (m = find_firstletter(menu, n, j, keypr)) ^ ( ) menucore.c:144:9: note: use '==' to turn this assignment into an equality comparison if (m = find_firstletter(menu, n, j, keypr)) ^ == 2 warnings generated. cc -O2 -pipe -fsigned-char -c dropdown.c cc -O2 -pipe -fsigned-char -DTWOPLAYER=1 -c inputset.c cc -O2 -pipe -fsigned-char -DTWOPLAYER=1 -c inputdev.c cc -O2 -pipe -fsigned-char -I.. -DTWOPLAYER=1 -DSOCKET=1 -c gamemenu.c cc -O2 -pipe -fsigned-char -c gm_2p.c cc -O2 -pipe -fsigned-char -I.. -c gm_sock.c gm_sock.c:187:10: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] putch(player2.startlevel+'0'); ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../textgfx/textgfx.h:135:26: note: expanded from macro 'putch' #define putch(ch) put_ch(ch) ^~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ gm_sock.c:190:10: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] putch(player2.height+'0'); ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../textgfx/textgfx.h:135:26: note: expanded from macro 'putch' #define putch(ch) put_ch(ch) ^~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ gm_sock.c:247:4: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] player2.height = 0; ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ 3 warnings generated. cc -O2 -pipe -fsigned-char -I.. -c hslist.c cc -O2 -pipe -fsigned-char -I.. -c gameover.c gameover.c:67:30: warning: illegal character encoding in string literal [-Winvalid-source-encoding] const char lat1_chars[5] = ""; ^~~~~~~~~~~~~~~~ gameover.c:68:36: warning: illegal character encoding in string literal [-Winvalid-source-encoding] const char lat1_chars_small[5] = ""; ^~~~~~~~~~~~~~~~ gameover.c:94:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (p = strchr(lat1_chars_small, k)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameover.c:94:14: note: place parentheses around the assignment to silence this warning else if (p = strchr(lat1_chars_small, k)) ^ ( ) gameover.c:94:14: note: use '==' to turn this assignment into an equality comparison else if (p = strchr(lat1_chars_small, k)) ^ == gameover.c:230:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 4 warnings generated. ar r menu.a menucore.o dropdown.o inputset.o inputdev.o gamemenu.o gm_2p.o gm_sock.o hslist.o gameover.o ar: warning: creating menu.a ranlib menu.a cc -O2 -pipe -fsigned-char -I.. -c startup.c -DINET=1 cc -O2 -pipe -fsigned-char -c invit.c cc -O2 -pipe -fsigned-char -c netplay.c netplay.c:20:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static init_field(char *str, const char *val, int maxlen) ~~~~~~ ^ int netplay.c:28:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 2 warnings generated. cc -O2 -pipe -fsigned-char -DTWOPLAYER=1 -c optsmenu.c optsmenu.c:155:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (i = openmenu(menu, n, i, x, y, handlers)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ optsmenu.c:155:11: note: place parentheses around the assignment to silence this warning while (i = openmenu(menu, n, i, x, y, handlers)) { ^ ( ) optsmenu.c:155:11: note: use '==' to turn this assignment into an equality comparison while (i = openmenu(menu, n, i, x, y, handlers)) { ^ == 1 warning generated. cc -O2 -pipe -fsigned-char -c blockstyle.c cc -O2 -pipe -fsigned-char -I.. -DTWOPLAYER=1 -DINET=1 -DTTY_SOCKET=1 -c men_curses.c rm -f menuext.a ar rc menuext.a startup.o invit.o netplay.o optsmenu.o blockstyle.o men_curses.o ranlib menuext.a /usr/bin/make -Cnetw cc -O2 -pipe -fsigned-char -I.. -c socket.c socket.c:210:18: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] if (sock_flags & (CONN_PROXY | CONNECTED) != ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ socket.c:210:18: note: place parentheses around the '!=' expression to silence this warning if (sock_flags & (CONN_PROXY | CONNECTED) != ^ ( socket.c:210:18: note: place parentheses around the & expression to evaluate it first if (sock_flags & (CONN_PROXY | CONNECTED) != ^ ( ) 1 warning generated. cc -O2 -pipe -fsigned-char -I.. -c comm.c comm.c:37:3: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] player2.lineslimit = player1.lineslimit; ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ comm.c:71:3: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] player2.startlevel = s[0]; ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ comm.c:72:3: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] player2.rotationsys = s[1]; ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ comm.c:187:10: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] memcpy(player2.board, player1.board, 20*sizeof(uint_least32_t)); ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ comm.c:189:25: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] memcpy(player1.board, player2.board, 20*sizeof(uint_least32_t)); ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ comm.c:236:3: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] player2.board[--i] = row; ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ comm.c:439:5: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] player2.height = b-'0'; ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ comm.c:460:3: warning: array index 1 is past the end of the array (that has type 'struct player[1]') [-Warray-bounds] player2.lineslimit = player1.lineslimit; ^~~~~~~ ./../game/tetris.h:101:18: note: expanded from macro 'player2' #define player2 game->player[1] ^ ~ ./../game/tetris.h:84:2: note: array 'player' declared here GAME_members(1); ^ ./../game/tetris.h:81:2: note: expanded from macro 'GAME_members' struct player player[n] \ ^ 8 warnings generated. cc -O2 -pipe -fsigned-char -I.. -c inet.c cc -O2 -pipe -fsigned-char -c tty_socket.c tty_socket.c:69:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pw = getpwuid(st.st_uid)) { ~~~^~~~~~~~~~~~~~~~~~~~~ tty_socket.c:69:9: note: place parentheses around the assignment to silence this warning if (pw = getpwuid(st.st_uid)) { ^ ( ) tty_socket.c:69:9: note: use '==' to turn this assignment into an equality comparison if (pw = getpwuid(st.st_uid)) { ^ == tty_socket.c:254:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msg = mksocket_local(tty, 1)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ tty_socket.c:254:10: note: place parentheses around the assignment to silence this warning if (msg = mksocket_local(tty, 1)) { ^ ( ) tty_socket.c:254:10: note: use '==' to turn this assignment into an equality comparison if (msg = mksocket_local(tty, 1)) { ^ == 2 warnings generated. cc -O2 -pipe -fsigned-char -I.. -c comm_inet.c ar dc netw.a no_inet.o *** Error 1 in target 'netw.ainet.o' (ignored) ar r netw.a socket.o comm.o inet.o tty_socket.o comm_inet.o ar: error: unable to load 'netw.a': No such file or directory ar: warning: creating netw.a ranlib netw.a /usr/bin/make -Cinput cc -O2 -pipe -fsigned-char -I.. -DTWOPLAYER=1 -DSOCKET=1 -DTTY_SOCKET=1 -DTERM_RESIZING=1 -c input.c input.c:182:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (c = getkeypress_select(100, SINGLE_PL)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ input.c:182:9: note: place parentheses around the assignment to silence this warning if (c = getkeypress_select(100, SINGLE_PL)) ^ ( ) input.c:182:9: note: use '==' to turn this assignment into an equality comparison if (c = getkeypress_select(100, SINGLE_PL)) ^ == 1 warning generated. cc -O2 -pipe -fsigned-char -I.. -DTWOPLAYER=1 -DCURSES=1 -c keyboard.c keyboard.c:39:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = transl_chr(c, k | PLAYER_1)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyboard.c:39:9: note: place parentheses around the assignment to silence this warning if (i = transl_chr(c, k | PLAYER_1)) ^ ( ) keyboard.c:39:9: note: use '==' to turn this assignment into an equality comparison if (i = transl_chr(c, k | PLAYER_1)) ^ == keyboard.c:41:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = transl_chr(c, k | PLAYER_2)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyboard.c:41:9: note: place parentheses around the assignment to silence this warning if (i = transl_chr(c, k | PLAYER_2)) ^ ( ) keyboard.c:41:9: note: use '==' to turn this assignment into an equality comparison if (i = transl_chr(c, k | PLAYER_2)) ^ == keyboard.c:81:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (c = transl_input(s, flags)) ~~^~~~~~~~~~~~~~~~~~~~~~~~ keyboard.c:81:8: note: place parentheses around the assignment to silence this warning if (c = transl_input(s, flags)) ^ ( ) keyboard.c:81:8: note: use '==' to turn this assignment into an equality comparison if (c = transl_input(s, flags)) ^ == keyboard.c:155:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (old = transl_strict(input, flags)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyboard.c:155:10: note: place parentheses around the assignment to silence this warning if (old = transl_strict(input, flags)) ^ ( ) keyboard.c:155:10: note: use '==' to turn this assignment into an equality comparison if (old = transl_strict(input, flags)) ^ == keyboard.c:158:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (old = transl_strict(input, flags)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyboard.c:158:10: note: place parentheses around the assignment to silence this warning if (old = transl_strict(input, flags)) ^ ( ) keyboard.c:158:10: note: use '==' to turn this assignment into an equality comparison if (old = transl_strict(input, flags)) ^ == 5 warnings generated. cc -O2 -pipe -fsigned-char -c joystick.c joystick.c:51:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = getbtn(b, btns, 5)) ~~^~~~~~~~~~~~~~~~~~~~ joystick.c:51:9: note: place parentheses around the assignment to silence this warning if (p = getbtn(b, btns, 5)) ^ ( ) joystick.c:51:9: note: use '==' to turn this assignment into an equality comparison if (p = getbtn(b, btns, 5)) ^ == joystick.c:55:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = getbtn(b, btns, 7)) ~~^~~~~~~~~~~~~~~~~~~~ joystick.c:55:8: note: place parentheses around the assignment to silence this warning if (p = getbtn(b, btns, 7)) ^ ( ) joystick.c:55:8: note: use '==' to turn this assignment into an equality comparison if (p = getbtn(b, btns, 7)) ^ == 2 warnings generated. cc -O2 -pipe -fsigned-char -c playerin.c cc -O2 -pipe -fsigned-char -c inp_curses.c cc -O2 -pipe -fsigned-char -I.. -c select.c rm -f input.a ar rc input.a input.o keyboard.o joystick.o playerin.o inp_curses.o select.o ranlib input.a /usr/bin/make -Cdraw cc -O2 -pipe -fsigned-char -I.. -DTWOPLAYER=1 -DSOCKET=1 -c draw.c draw.c:63:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (p = strchr(str, '\\')) { ~~^~~~~~~~~~~~~~~~~~~ draw.c:63:11: note: place parentheses around the assignment to silence this warning while (p = strchr(str, '\\')) { ^ ( ) draw.c:63:11: note: use '==' to turn this assignment into an equality comparison while (p = strchr(str, '\\')) { ^ == 1 warning generated. cc -O2 -pipe -fsigned-char -c draw_menu.c cc -O2 -pipe -fsigned-char -I.. -c draw2p.c cc -O2 -pipe -fsigned-char -c draw2p_menu.c ar r draw.a draw.o draw_menu.o draw2p.o draw2p_menu.o ar: warning: creating draw.a ranlib draw.a /usr/bin/make -Ctextgfx cc -O2 -pipe -fsigned-char -c block.c cc -O2 -pipe -fsigned-char -I.. -DTWOPLAYER=1 -c win.c cc -O2 -pipe -fsigned-char -c print.c cc -O2 -pipe -fsigned-char -c ibmgfx.c cc -O2 -pipe -fsigned-char -c curses.c cc -O2 -pipe -fsigned-char -I.. -DTWOPLAYER=1 -c curses_win.c cc -O2 -pipe -fsigned-char -I.. -c term.c term.c:53:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = getenv("COLUMNS")) ~~^~~~~~~~~~~~~~~~~~~ term.c:53:8: note: place parentheses around the assignment to silence this warning if (s = getenv("COLUMNS")) ^ ( ) term.c:53:8: note: use '==' to turn this assignment into an equality comparison if (s = getenv("COLUMNS")) ^ == term.c:55:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = getenv("LINES")) ~~^~~~~~~~~~~~~~~~~ term.c:55:8: note: place parentheses around the assignment to silence this warning if (s = getenv("LINES")) ^ ( ) term.c:55:8: note: use '==' to turn this assignment into an equality comparison if (s = getenv("LINES")) ^ == 2 warnings generated. cc -O2 -pipe -fsigned-char -I.. -DTWOPLAYER=1 -DCURSES=1 -DTERM_RESIZING=1 -DSOCKET=1 -c resize.c rm -f textgfx.a ar rc textgfx.a block.o win.o print.o ibmgfx.o curses.o curses_win.o term.o resize.o ranlib textgfx.a mv -f game/game.a . mv -f menu/*.a . mv -f netw/netw.a . mv -f input/input.a . mv -f draw/draw.a . mv -f textgfx/textgfx.a . cc -o tetris main.o cmdline.o cfgfile.o options.o hiscore.o lang.o timer.o focus.o game.a menuext.a menu.a netw.a input.a draw.a textgfx.a -lncurses cfgfile.c(cfgfile.o:(setcfgfilename)): warning: strcpy() is almost always misused, please use strlcpy() socket.c(socket.o:(sock_errmsg) in archive netw.a): warning: strcat() is almost always misused, please use strlcat() cmdline.c(cmdline.o:(connect_to)): warning: sprintf() is often misused, please use snprintf() tetris.c(tetris.o:(randnum) in archive game.a): warning: rand() may return deterministic values, is that what you want? mv -f src/tetris vitetris stripping symbols to reduce program size: strip vitetris Done. Now run ./vitetris (or make install) >>> Running package in games/vitetris at 1711504569.36 ===> games/vitetris ===> Faking installation for vitetris-0.59.1 install -d /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/bin /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/doc/vitetris install -m755 vitetris /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/bin install -m644 README licence.txt /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/doc/vitetris if [ -n "/usr/local/share/pixmaps" ]; then install -d /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/pixmaps && install -m644 vitetris.xpm /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/pixmaps; fi if [ -n "/usr/local/share/applications" ]; then install -d /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/applications && install -m644 vitetris.desktop /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/applications; fi if [ -n "" ]; then install -d /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/allegro && install -m644 pc8x16.fnt /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/allegro; fi Done. You may also wish to create the system-wide highscore file with "make install-hiscores". /exopi-obj/pobj/vitetris-0.59.1/bin/install -d -m 755 /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/examples/vitetris /exopi-obj/pobj/vitetris-0.59.1/bin/install -c -m 644 /dev/null /exopi-obj/pobj/vitetris-0.59.1/fake-amd64/usr/local/share/examples/vitetris/vitetris-hiscores ===> Building package for vitetris-0.59.1 Create /exopi-cvs/ports/packages/amd64/all/vitetris-0.59.1.tgz Creating package vitetris-0.59.1 reading plist| checking dependencies| checking dependencies|devel/desktop-file-utils checksumming| checksumming| | 0% checksumming|** | 3% checksumming|**** | 7% checksumming|****** | 10% checksumming|******** | 14% checksumming|*********** | 17% checksumming|************* | 21% checksumming|*************** | 24% checksumming|***************** | 28% checksumming|******************* | 31% checksumming|********************* | 34% checksumming|*********************** | 38% checksumming|************************* | 41% checksumming|*************************** | 45% checksumming|***************************** | 48% checksumming|******************************** | 52% checksumming|********************************** | 55% checksumming|************************************ | 59% checksumming|************************************** | 62% checksumming|**************************************** | 66% checksumming|****************************************** | 69% checksumming|******************************************** | 72% checksumming|********************************************** | 76% checksumming|************************************************ | 79% checksumming|************************************************** | 83% checksumming|***************************************************** | 86% checksumming|******************************************************* | 90% checksumming|********************************************************* | 93% checksumming|*********************************************************** | 97% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|************************************************************ | 94% archiving|************************************************************** | 97% archiving|*************************************************************** | 98% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/vitetris-0.59.1.tgz >>> Running clean in games/vitetris at 1711504574.93 ===> games/vitetris ===> Cleaning for vitetris-0.59.1 >>> Ended at 1711504575.49 max_stuck=3.17/build=13.35/package=5.57/clean=0.59