=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for moria-5.5.2nb3 cc -O2 -march=i586 -Dunix -DLIBDIR=\"/usr/pkg/share/games/moria\" -DMORIA_TOP=\"/usr/pkg/var/games/moria.scores\" -c main.c main.c:224:12: warning: implicit declaration of function 'setuid' is invalid in C99 [-Wimplicit-function-declaration] if (0 != setuid(getuid())) ^ main.c:226:7: warning: implicit declaration of function 'perror' is invalid in C99 [-Wimplicit-function-declaration] perror("Can't set permissions correctly! Setuid call failed.\n"); ^ main.c:227:7: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(0); ^ main.c:227:7: note: please include the header or explicitly provide a declaration for 'exit' main.c:229:12: warning: implicit declaration of function 'setgid' is invalid in C99 [-Wimplicit-function-declaration] if (0 != setgid(getgid())) ^ main.c:279:11: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] seed = atoi(&argv[0][2]); ^ main.c:281:23: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' default: (void) printf("Usage: moria [-norsw] [savefile]\n"); ^ main.c:281:23: note: please include the header or explicitly provide a declaration for 'printf' main.c:326:12: warning: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)' (void) sprintf(savefile, "%s/%s", p, MORIA_SAV); ^ main.c:326:12: note: please include the header or explicitly provide a declaration for 'sprintf' main.c:342:31: warning: implicit declaration of function 'access' is invalid in C99 [-Wimplicit-function-declaration] if ((new_game == FALSE) && !access(savefile, 0) && get_char(&generate)) ^ 8 warnings generated. cc -O2 -march=i586 -Dunix -DLIBDIR=\"/usr/pkg/share/games/moria\" -DMORIA_TOP=\"/usr/pkg/var/games/moria.scores\" -c misc1.c misc1.c:443:14: warning: implicitly declaring library function 'abs' with type 'int (int)' scale2 = abs(deltaX * deltaY); ^ misc1.c:443:14: note: please include the header or explicitly provide a declaration for 'abs' misc1.c:794:2: warning: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' abort(); ^ misc1.c:794:2: note: please include the header or explicitly provide a declaration for 'abort' 2 warnings generated. cc -O2 -march=i586 -Dunix -DLIBDIR=\"/usr/pkg/share/games/moria\" -DMORIA_TOP=\"/usr/pkg/var/games/moria.scores\" -c misc2.c misc2.c:1042:14: warning: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)' (void) sprintf(string, "%-38s: %s", options[max].o_prompt, ^ misc2.c:1042:14: note: please include the header or explicitly provide a declaration for 'sprintf' 1 warning generated. cc -O2 -march=i586 -Dunix -DLIBDIR=\"/usr/pkg/share/games/moria\" -DMORIA_TOP=\"/usr/pkg/var/games/moria.scores\" -c misc3.c misc3.c:249:9: warning: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)' (void) sprintf(out_val, " %2d/%02d", part1, part2); ^ misc3.c:249:9: note: please include the header or explicitly provide a declaration for 'sprintf' misc3.c:286:46: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat] (void) sprintf(out_val, "%s:%7ld", header, num); ~~~~ ^~~ %7d misc3.c:298:47: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat] (void) sprintf(out_val, "%s: %7ld", header, num); ~~~~ ^~~ %7d misc3.c:320:35: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat] (void) sprintf(out_val, "%7ld", num); ~~~~ ^~~ %7d misc3.c:2243:47: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat] (void) sprintf(object_str, "%s+%ld%s", str1, number, str2); ~~~ ^~~~~~ %d misc3.c:2245:46: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat] (void) sprintf(object_str, "%s%ld%s", str1, number, str2); ~~~ ^~~~~~ %d 6 warnings generated. cc -O2 -march=i586 -Dunix -DLIBDIR=\"/usr/pkg/share/games/moria\" -DMORIA_TOP=\"/usr/pkg/var/games/moria.scores\" -c misc4.c misc4.c:43:11: warning: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)' (void) sprintf(out_val, "Inscribing %s", tmp_str); ^ misc4.c:43:11: note: please include the header or explicitly provide a declaration for 'sprintf' 1 warning generated. cc -O2 -march=i586 -Dunix -DLIBDIR=\"/usr/pkg/share/games/moria\" -DMORIA_TOP=\"/usr/pkg/var/games/moria.scores\" -c store1.c store1.c:450:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 1 warning generated. cc -O2 -march=i586 -Dunix -DLIBDIR=\"/usr/pkg/share/games/moria\" -DMORIA_TOP=\"/usr/pkg/var/games/moria.scores\" -c files.c files.c:420:60: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat] (void) fprintf(file1, "%7sExperience : %7ld", blank, py.misc.exp); ~~~~ ^~~~~~~~~~~ %7d files.c:423:60: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat] (void) fprintf(file1, "%7sMax Exp : %7ld", blank, py.misc.max_exp); ~~~~ ^~~~~~~~~~~~~~~ %7d files.c:430:10: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat] (int32)(player_exp[py.misc.lev-1] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ files.c:434:8: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat] py.misc.au); ^~~~~~~~~~ 4 warnings generated. cc -O2 -march=i586 -Dunix -DLIBDIR=\"/usr/pkg/share/games/moria\" -DMORIA_TOP=\"/usr/pkg/var/games/moria.scores\" -c io.c io.c:217:23: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct ltchars' [-Wtentative-definition-incomplete-type] static struct ltchars save_special_chars; ^ io.c:217:15: note: forward declaration of 'struct ltchars' static struct ltchars save_special_chars; ^ io.c:218:22: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct sgttyb' [-Wtentative-definition-incomplete-type] static struct sgttyb save_ttyb; ^ io.c:218:15: note: forward declaration of 'struct sgttyb' static struct sgttyb save_ttyb; ^ io.c:219:22: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct tchars' [-Wtentative-definition-incomplete-type] static struct tchars save_tchars; ^ io.c:219:15: note: forward declaration of 'struct tchars' static struct tchars save_tchars; ^ io.c:251:17: error: variable has incomplete type 'struct sgttyb' struct sgttyb tbuf; ^ io.c:218:15: note: forward declaration of 'struct sgttyb' static struct sgttyb save_ttyb; ^ io.c:252:18: error: variable has incomplete type 'struct ltchars' struct ltchars lcbuf; ^ io.c:217:15: note: forward declaration of 'struct ltchars' static struct ltchars save_special_chars; ^ io.c:253:17: error: variable has incomplete type 'struct tchars' struct tchars cbuf; ^ io.c:219:15: note: forward declaration of 'struct tchars' static struct tchars save_tchars; ^ io.c:258:19: error: use of undeclared identifier 'TIOCGETP' (void) ioctl(0, TIOCGETP, (char *)&tbuf); ^ io.c:259:19: error: use of undeclared identifier 'TIOCGETC' (void) ioctl(0, TIOCGETC, (char *)&cbuf); ^ io.c:260:19: error: use of undeclared identifier 'TIOCGLTC' (void) ioctl(0, TIOCGLTC, (char *)&lcbuf); ^ io.c:267:19: error: use of undeclared identifier 'TIOCSETP' (void) ioctl(0, TIOCSETP, (char *)&tbuf); ^ io.c:268:19: error: use of undeclared identifier 'TIOCSETC' (void) ioctl(0, TIOCSETC, (char *)&cbuf); ^ io.c:269:19: error: use of undeclared identifier 'TIOCSLTC' (void) ioctl(0, TIOCSLTC, (char *)&lcbuf); ^ io.c:308:19: error: use of undeclared identifier 'TIOCGLTC' (void) ioctl(0, TIOCGLTC, (char *)&save_special_chars); ^ io.c:309:19: error: use of undeclared identifier 'TIOCGETP' (void) ioctl(0, TIOCGETP, (char *)&save_ttyb); ^ io.c:310:19: error: use of undeclared identifier 'TIOCGETC' (void) ioctl(0, TIOCGETC, (char *)&save_tchars); ^ io.c:326:17: warning: comparison between pointer and integer ('WINDOW *' (aka 'struct __window *') and 'int') if (initscr() == ERR) ~~~~~~~~~ ^ ~~~ io.c:330:7: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(1); ^ io.c:330:7: note: please include the header or explicitly provide a declaration for 'exit' io.c:401:18: error: variable has incomplete type 'struct ltchars' struct ltchars lbuf; ^ io.c:217:15: note: forward declaration of 'struct ltchars' static struct ltchars save_special_chars; ^ io.c:402:17: error: variable has incomplete type 'struct tchars' struct tchars buf; ^ io.c:219:15: note: forward declaration of 'struct tchars' static struct tchars save_tchars; ^ io.c:452:19: error: use of undeclared identifier 'TIOCGLTC' (void) ioctl(0, TIOCGLTC, (char *)&lbuf); ^ io.c:459:19: error: use of undeclared identifier 'TIOCSLTC' (void) ioctl(0, TIOCSLTC, (char *)&lbuf); ^ io.c:461:20: error: use of undeclared identifier 'TIOCGETC' (void) ioctl (0, TIOCGETC, (char *)&buf); ^ io.c:468:19: error: use of undeclared identifier 'TIOCSETC' (void) ioctl(0, TIOCSETC, (char *)&buf); ^ io.c:504:7: warning: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' abort(); ^ io.c:504:7: note: please include the header or explicitly provide a declaration for 'abort' io.c:512:14: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] (void) sleep(2); ^ io.c:568:19: error: use of undeclared identifier 'TIOCSLTC' (void) ioctl(0, TIOCSLTC, (char *)&save_special_chars); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 7 warnings and 20 errors generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/games/moria/work/umoria *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/games/moria *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/games/moria