=> Bootstrap dependency digest>=20010302: found digest-20111104
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 spellcast-1.2nb1
gcc -O -I/usr/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\"  -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/pkg/include -c engine.c
engine.c:37:36: warning: implicitly declaring C library function 'realloc' with type 'void *(void *, unsigned long)'
        self->querylist = (struct query *)realloc(self->querylist, sizeof(struct query) * self->querylist_size);
                                          ^
engine.c:37:36: note: please include the header <stdlib.h> or explicitly provide a declaration for 'realloc'
engine.c:107:5: warning: implicit declaration of function 'clear_round' is invalid in C99 [-Wimplicit-function-declaration]
    clear_round(fred);
    ^
engine.c:189:48: warning: implicitly declaring C library function 'malloc' with type 'void *(unsigned long)'
    struct realgame *self = (struct realgame *)malloc(sizeof(struct realgame));
                                               ^
engine.c:189:48: note: please include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
engine.c:192:5: warning: implicit declaration of function 'srandom' is invalid in C99 [-Wimplicit-function-declaration]
    srandom(getpid() + rock + numplayers);
    ^
engine.c:192:13: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration]
    srandom(getpid() + rock + numplayers);
            ^
engine.c:203:5: warning: implicit declaration of function 'init_transcript' is invalid in C99 [-Wimplicit-function-declaration]
    init_transcript(self);
    ^
engine.c:206:2: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration]
        PrintMsg("Too many players requested.\n");
        ^
./internal.h:3:26: note: expanded from macro 'PrintMsg'
#define PrintMsg(msg)   (log_text(self, msg),\
                         ^
engine.c:213:12: warning: incompatible pointer types passing 'struct wizard *' to parameter of type 'union being *' [-Wincompatible-pointer-types]
        InitBeing(self->wiz[ix]);
                  ^~~~~~~~~~~~~
engine.c:317:9: warning: implicit declaration of function 'random' is invalid in C99 [-Wimplicit-function-declaration]
                        jx = random() % 2;
                             ^
engine.c:431:5: warning: implicit declaration of function 'log_round_header' is invalid in C99 [-Wimplicit-function-declaration]
    log_round_header(self);
    ^
engine.c:615:2: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
        free((char *)self->wiz[ix]);
        ^
engine.c:1155:48: warning: incompatible pointer types passing 'int [11]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    add_query(self, wiznum, Qu_WhichToDelay, delnum);
                                                             ^~~~~~
engine.c:1210:47: warning: incompatible pointer types passing 'int [11]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    add_query(self, wiznum, Qu_WhichToPerm, delnum);
                                                            ^~~~~~
engine.c:1238:63: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *'; 
        add_query(self, tmp->caster, spelltargetlist[tmp->spellnum], tmp->spellnum | orval);
                                                                     ^~~~~~~~~~~~~~~~~~~~~
engine.c:1350:85: warning: data argument not used by format string [-Wformat-extra-args]
                sprintf(bigbuf, "%s collapses in a heap, twitching slightly.\n", fred->both.name, pro_his(fred->both.gender));
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                   ^
engine.c:1372:23: warning: incompatible pointer types passing 'struct wizard *' to parameter of type 'union being *' [-Wincompatible-pointer-types]
            clear_out_spells(self->wiz[ix], 1);
                             ^~~~~~~~~~~~~
engine.c:1377:26: warning: incompatible pointer types passing 'struct wizard *' to parameter of type 'union being *' [-Wincompatible-pointer-types]
            exec_unhealth(self, self->wiz[ix], ix, 1);
                                ^~~~~~~~~~~~~
engine.c:1403:23: warning: incompatible pointer types passing 'struct creature *' to parameter of type 'union being *' [-Wincompatible-pointer-types]
            clear_out_spells(&(self->cre[ix]), 0);
                             ^~~~~~~~~~~~~~~~
engine.c:1407:26: warning: incompatible pointer types passing 'struct creature *' to parameter of type 'union being *' [-Wincompatible-pointer-types]
            exec_unhealth(self, &self->cre[ix], ix, 0);
                                ^~~~~~~~~~~~~~
19 warnings generated.
gcc -O -I/usr/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\"  -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/pkg/include -c espells.c
gcc -O -I/usr/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\"  -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/pkg/include -c execute.c
execute.c:256:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration]
            PrintMsg3(ctmp->caster, ctmp->target, exbuf, exbuf2, exbuf3);
            ^
./internal.h:9:61: note: expanded from macro 'PrintMsg3'
#define PrintMsg3(person1, person2, msg1, msg2, msgelse)   (log_text(self, msgelse),\
                                                            ^
execute.c:335:14: warning: incompatible pointer types passing 'struct wizard *' to parameter of type 'union being *' [-Wincompatible-pointer-types]
        clear_round(self->wiz[ix]);
                    ^~~~~~~~~~~~~
execute.c:337:14: warning: incompatible pointer types passing 'struct creature *' to parameter of type 'union being *' [-Wincompatible-pointer-types]
        clear_round(&self->cre[ix]);
                    ^~~~~~~~~~~~~~
execute.c:622:5: warning: implicit declaration of function 'erase_queries' is invalid in C99 [-Wimplicit-function-declaration]
    erase_queries(self);
    ^
execute.c:626:3: warning: implicit declaration of function 'add_query' is invalid in C99 [-Wimplicit-function-declaration]
                add_query(self, ix, Qu_ElementalType, 0);
                ^
execute.c:812:3: warning: implicit declaration of function 'create_creature' is invalid in C99 [-Wimplicit-function-declaration]
                create_creature(self, ix+1, cnum);
                ^
execute.c:1172:3: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                else
                ^
7 warnings generated.
gcc -O -I/usr/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\"  -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/pkg/include -c execute2.c
execute2.c:28:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration]
            PrintMsg2(cnum, "The Amnesia spell curls around your mind.\n", exbuf2);
            ^
./internal.h:6:45: note: expanded from macro 'PrintMsg2'
#define PrintMsg2(person, msg1, msgelse)   (log_text(self, msgelse),\
                                            ^
execute2.c:71:7: warning: implicit declaration of function 'erase_queries' is invalid in C99 [-Wimplicit-function-declaration]
                    erase_queries(self);
                    ^
execute2.c:72:7: warning: implicit declaration of function 'add_query' is invalid in C99 [-Wimplicit-function-declaration]
                    add_query(self, fred->both.enchant_caster, Qu_ParalysisHand, cnum);
                    ^
execute2.c:121:110: warning: implicit declaration of function 'pro_he' is invalid in C99 [-Wimplicit-function-declaration]
                sprintf(exbuf2, "The Charm Monster spell curls around %s, and %s smiles dopily at %s.\n", fred->both.name, pro_he(fred->both.gender), self->wiz[fred->cre.owner]->name);
                                                                                                                           ^
execute2.c:121:66: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The Charm Monster spell curls around %s, and %s smiles dopily at %s.\n", fred->both.name, pro_he(fred->both.gender), self->wiz[fred->cre.owner]->name);
                                                                              ~^                                           ~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                              %d
execute2.c:268:117: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration]
                sprintf(exbuf2, "The Anti-Spell jolts %s, causing the magical energies around %s hands to flicker.\n", wiz->name, pro_his(wiz->gender));
                                                                                                                                  ^
execute2.c:268:82: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The Anti-Spell jolts %s, causing the magical energies around %s hands to flicker.\n", wiz->name, pro_his(wiz->gender));
                                                                                              ~^                                  ~~~~~~~~~~~~~~~~~~~~
                                                                                              %d
execute2.c:271:3: warning: implicit declaration of function 'write_gestures' is invalid in C99 [-Wimplicit-function-declaration]
                write_gestures(self, wiz, Gesture_ANTISPELL, Gesture_ANTISPELL);
                ^
execute2.c:325:61: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "%s blinks, then stumbles slightly as %s eyes turn milky.\n", fred->both.name, pro_his(fred->both.gender));
                                                                  ~^                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                  %d
execute2.c:376:56: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "A %s-shaped shadow appears, and %s rapidly becomes fully visible.\n", fred->both.name, pro_he(fred->both.gender));
                                                             ~^                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~
                                                             %d
execute2.c:451:64: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "%s seems to have stopped shivering, and %s skin is no longer flushed and damp.\n", fred->both.name, pro_his(fred->both.gender));
                                                                     ~^                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                     %d
execute2.c:555:2: warning: implicit declaration of function 'clear_permstats' is invalid in C99 [-Wimplicit-function-declaration]
        clear_permstats(&(fred->both.perm));
        ^
execute2.c:698:132: warning: implicit declaration of function 'pro_him' is invalid in C99 [-Wimplicit-function-declaration]
            sprintf(exbuf2, "The %s Lightning Bolts strike %s, staggering %s.\n", number_name(zapl[SP__LIGHTNING_BOLT]), fred->both.name, pro_him(fred->both.gender)); 
                                                                                                                                          ^
execute2.c:698:69: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "The %s Lightning Bolts strike %s, staggering %s.\n", number_name(zapl[SP__LIGHTNING_BOLT]), fred->both.name, pro_him(fred->both.gender)); 
                                                                          ~^                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                          %d
execute2.c:711:71: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The Fireball strikes %s, but the flames slide off %s Resist Heat aura.\n", fred->both.name, pro_his(fred->both.gender));
                                                                                   ~^                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                   %d
execute2.c:718:71: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The Fireballs strike %s, but the flames slide off %s Resist Heat aura.\n", fred->both.name, pro_his(fred->both.gender));
                                                                                   ~^                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                   %d
execute2.c:749:80: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "The Counter-Spell around %s cancels the Fire Storm near %s.\n", fred->both.name, pro_him(fred->both.gender));
                                                                                     ~^                       ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                     %d
execute2.c:757:83: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "The Fire Storm washes over %s, who remains unharmed inside %s blue aura.\n", fred->both.name, pro_his(fred->both.gender));
                                                                                        ~^                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                        %d
execute2.c:777:79: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "The Counter-Spell around %s cancels the Ice Storm near %s.\n", fred->both.name, pro_him(fred->both.gender));
                                                                                    ~^                       ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                    %d
execute2.c:788:82: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "The Ice Storm washes over %s, who remains unharmed inside %s pink aura.\n", fred->both.name, pro_his(fred->both.gender));
                                                                                       ~^                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                       %d
execute2.c:807:52: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
        sprintf(exbuf2, "%s turns very pale and drops to %s knees, clutching at %s chest....\n", fred->both.name, pro_his(fred->both.gender), pro_his(fred->both.gender));
                                                         ~^                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                         %d
execute2.c:807:75: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
        sprintf(exbuf2, "%s turns very pale and drops to %s knees, clutching at %s chest....\n", fred->both.name, pro_his(fred->both.gender), pro_his(fred->both.gender));
                                                                                ~^                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                %d
execute2.c:833:71: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The Cure Light Wounds spell weaves around %s, and %s wounds fade.\n", fred->both.name, pro_his(fred->both.gender));
                                                                                   ~^                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                   %d
execute2.c:841:74: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The %s Cure Light Wounds spells weave around %s, and %s wounds fade.\n", number_name(zapl[SP__CURE_LIGHT_WOUNDS]), fred->both.name, pro_his(fred->both.gender)); 
                                                                                      ~^                                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                      %d
execute2.c:853:71: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The Cure Heavy Wounds spell weaves around %s, and %s wounds heal.\n", fred->both.name, pro_his(fred->both.gender));
                                                                                   ~^                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                   %d
execute2.c:861:74: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The %s Cure Heavy Wounds spells weave around %s, and %s wounds heal.\n", number_name(zapl[SP__CURE_HEAVY_WOUNDS]), fred->both.name, pro_his(fred->both.gender)); 
                                                                                      ~^                                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                      %d
execute2.c:871:61: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "%s seems to have stopped shivering, and %s skin is no longer flushed and damp.\n", fred->both.name, pro_his(fred->both.gender));
                                                                         ~^                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                         %d
execute2.c:882:69: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The Raise Dead spell burns through %s. Although %s is not dead, the spell has a powerful healing effect.\n", fred->both.name, pro_he(fred->both.gender));
                                                                                 ~^                                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                 %d
execute2.c:890:72: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
                sprintf(exbuf2, "The %s Raise Dead spells burn through %s. Although %s is not dead, the spells have a powerful healing effect.\n", number_name(zapl[SP__RAISE_DEAD]), fred->both.name, pro_he(fred->both.gender)); 
                                                                                    ~^                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                    %d
execute2.c:913:62: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "%s twitches, glows, and then jumps to %s feet! Except for a bit of incipient mold, %s is in perfect health again.\n", fred->both.name, pro_his(fred->both.gender), pro_he(fred->both.gender));
                                                                   ~^                                                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                   %d
execute2.c:913:107: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(exbuf2, "%s twitches, glows, and then jumps to %s feet! Except for a bit of incipient mold, %s is in perfect health again.\n", fred->both.name, pro_his(fred->both.gender), pro_he(fred->both.gender));
                                                                                                                ~^                                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                                                %d
execute2.c:920:6: warning: implicit declaration of function 'clear_out_spells' is invalid in C99 [-Wimplicit-function-declaration]
            clear_out_spells(fred, wizflag);
            ^
32 warnings generated.
gcc -O -I/usr/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\"  -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/pkg/include -c emonster.c
emonster.c:23:18: warning: implicit declaration of function 'random' is invalid in C99 [-Wimplicit-function-declaration]
    int numsyl = random()%3+2;
                 ^
emonster.c:48:38: warning: implicit declaration of function 'islower' is invalid in C99 [-Wimplicit-function-declaration]
        if ((ix==0 || bigbuf[ix-1]==' ') && islower(bigbuf[ix]))
                                            ^
emonster.c:49:19: warning: implicit declaration of function 'toupper' is invalid in C99 [-Wimplicit-function-declaration]
            bigbuf[ix] = toupper(bigbuf[ix]);
                         ^
emonster.c:99:33: warning: implicitly declaring C library function 'realloc' with type 'void *(void *, unsigned long)'
        self->cre = (struct creature *)realloc(self->cre, sizeof(struct creature) * self->cre_size);
                                       ^
emonster.c:99:33: note: please include the header <stdlib.h> or explicitly provide a declaration for 'realloc'
emonster.c:149:26: warning: implicitly declaring C library function 'malloc' with type 'void *(unsigned long)'
    thud->name = (char *)malloc(strlen(bigbuf)+1);
                         ^
emonster.c:149:26: note: please include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
emonster.c:160:5: warning: implicit declaration of function 'erase_queries' is invalid in C99 [-Wimplicit-function-declaration]
    erase_queries(self);
    ^
emonster.c:181:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration]
                    PrintMsg("ERROR: wrong type of turn in execute_monsters()\n");
                    ^
./internal.h:3:26: note: expanded from macro 'PrintMsg'
#define PrintMsg(msg)   (log_text(self, msg),\
                         ^
emonster.c:220:3: warning: implicit declaration of function 'add_query' is invalid in C99 [-Wimplicit-function-declaration]
                add_query(self, thud->owner, qtype, ix + 256*(jx+numattacks));
                ^
emonster.c:265:13: warning: implicit declaration of function 'IndexOfTarget' is invalid in C99 [-Wimplicit-function-declaration]
                        target = IndexOfTarget((game *)self, targettype, kx) &
                                 ^
emonster.c:353:4: warning: implicit declaration of function 'pro_himself' is invalid in C99 [-Wimplicit-function-declaration]
                        pro_himself(fred->both.gender));
                        ^
emonster.c:352:45: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(bigbuf, "%s refuses to attack %s.\n", thud->name,
                                                  ~^
                                                  %d
emonster.c:363:21: warning: implicit declaration of function 'pro_him' is invalid in C99 [-Wimplicit-function-declaration]
                        fred->both.name, pro_him(fred->both.gender));
                                         ^
emonster.c:362:59: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
        sprintf(bigbuf2, "%s tries to attack %s, but cannot see %s.\n", thud->name,
                                                                ~^
                                                                %d
emonster.c:387:33: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration]
                        thud->name, fred->both.name, pro_his(fred->both.gender));
                                                     ^
emonster.c:386:68: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(bigbuf2, "%s reaches toward %s, but cannot penetrate %s blue aura.\n",
                                                                         ~^
                                                                         %d
emonster.c:407:68: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(bigbuf2, "%s reaches toward %s, but cannot penetrate %s pink aura.\n",
                                                                         ~^
                                                                         %d
emonster.c:427:35: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
            sprintf(bigbuf, "%s attacks %s!\n", thud->name,
                                        ~^
                                        %d
17 warnings generated.
gcc -O -I/usr/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\"  -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/pkg/include -c etran.c
etran.c:15:29: warning: implicitly declaring C library function 'malloc' with type 'void *(unsigned long)'
    self->gamelog = (char *)malloc(sizeof(char) * self->gamelog_size);
                            ^
etran.c:15:29: note: please include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
etran.c:35:26: warning: implicitly declaring C library function 'realloc' with type 'void *(void *, unsigned long)'
        self->gamelog = (char *)realloc(self->gamelog, sizeof(char) * self->gamelog_size);
                                ^
etran.c:35:26: note: please include the header <stdlib.h> or explicitly provide a declaration for 'realloc'
2 warnings generated.
gcc -O -I/usr/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\"  -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/pkg/include -c main.c
main.c:45:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(argc, argv)
^~~~
main.c:64:2: warning: implicitly declaring C library function 'exit' with type 'void (int) __attribute__((noreturn))'
        exit(12);
        ^
main.c:64:2: note: please include the header <stdlib.h> or explicitly provide a declaration for 'exit'
main.c:74:34: warning: implicitly declaring C library function 'malloc' with type 'void *(unsigned long)'
                displist[numplayers] = (char *)malloc(strlen(argv[ix])+6);
                                               ^
main.c:74:34: note: please include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
main.c:103:8: warning: implicit declaration of function 'win_init' is invalid in C99 [-Wimplicit-function-declaration]
        val = win_init(ix);
              ^
main.c:124:6: warning: implicit declaration of function 'clear_answers' is invalid in C99 [-Wimplicit-function-declaration]
            clear_answers(py);
            ^
main.c:128:4: warning: implicit declaration of function 'add_answer' is invalid in C99 [-Wimplicit-function-declaration]
                        add_answer(py, "Enter your gestures for your Hastened move.",
                        ^
main.c:154:6: warning: implicit declaration of function 'redraw_column' is invalid in C99 [-Wimplicit-function-declaration]
            redraw_column(py);
            ^
main.c:155:6: warning: implicit declaration of function 'draw_button' is invalid in C99 [-Wimplicit-function-declaration]
            draw_button(py, 0, 1); /* redraw turn-end button */
            ^
main.c:156:6: warning: implicit declaration of function 'redraw_queries_only' is invalid in C99 [-Wimplicit-function-declaration]
            redraw_queries_only(py, 0);
            ^
main.c:159:2: warning: implicit declaration of function 'mainloop' is invalid in C99 [-Wimplicit-function-declaration]
        mainloop();
        ^
main.c:202:51: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration]
        sprintf(fname, "%s/spellcast-%d", TRANSCRIPTDIR, getpid());
                                                         ^
main.c:360:5: warning: implicit declaration of function 'init_bitmaps' is invalid in C99 [-Wimplicit-function-declaration]
    init_bitmaps(py);
    ^
main.c:361:5: warning: implicit declaration of function 'init_xtext' is invalid in C99 [-Wimplicit-function-declaration]
    init_xtext(pnum);
    ^
main.c:362:5: warning: implicit declaration of function 'init_query' is invalid in C99 [-Wimplicit-function-declaration]
    init_query(py);
    ^
main.c:363:5: warning: implicit declaration of function 'init_stats' is invalid in C99 [-Wimplicit-function-declaration]
    init_stats(py);
    ^
main.c:364:5: warning: implicit declaration of function 'init_talk' is invalid in C99 [-Wimplicit-function-declaration]
    init_talk(py);
    ^
main.c:426:6: warning: implicit declaration of function 'dump_text' is invalid in C99 [-Wimplicit-function-declaration]
            dump_text(ix, msg);
            ^
17 warnings generated.
gcc -O -I/usr/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\"  -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/pkg/include -c xtext.c
xtext.c:45:36: warning: implicitly declaring C library function 'malloc' with type 'void *(unsigned long)'
    py->lineindex = (struct line *)malloc(sizeof(struct line)*py->lineindex_size);
                                   ^
xtext.c:45:36: note: please include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
xtext.c:104:33: warning: implicitly declaring C library function 'realloc' with type 'void *(void *, unsigned long)'
        py->lineindex = (struct line *)realloc(py->lineindex,
                                       ^
xtext.c:104:33: note: please include the header <stdlib.h> or explicitly provide a declaration for 'realloc'
xtext.c:291:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
xtext.c:321:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
4 warnings generated.
gcc -O -I/usr/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\"  -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/pkg/include -c xquery.c
xquery.c:47:36: warning: implicitly declaring C library function 'malloc' with type 'void *(unsigned long)'
    py->answers = (struct answer *)malloc(sizeof(struct answer) * py->answers_size);
                                   ^
xquery.c:47:36: note: please include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
xquery.c:72:2: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
        free(tempstringlist);
        ^
xquery.c:107:33: warning: implicitly declaring C library function 'realloc' with type 'void *(void *, unsigned long)'
        py->answers = (struct answer *)realloc(py->answers,
                                       ^
xquery.c:107:33: note: please include the header <stdlib.h> or explicitly provide a declaration for 'realloc'
xquery.c:165:5: warning: implicit declaration of function 'redraw_scrollbar' is invalid in C99 [-Wimplicit-function-declaration]
    redraw_scrollbar(&(py->siquery));
    ^
xquery.c:291:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
    static qu_buf[MAXQUESTIONLENGTH], ans_buf[MAXANSWERLENGTH];
    ~~~~~~ ^
xquery.c:291:39: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
    static qu_buf[MAXQUESTIONLENGTH], ans_buf[MAXANSWERLENGTH];
    ~~~~~~                            ^
xquery.c:313:14: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    strcpy(qu_buf, "What spell do you want to cast with your left hand?");
                           ^~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:317:14: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    strcpy(qu_buf, "What spell do you want to cast with your right hand?");
                           ^~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:336:10: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                strcpy(ans_buf, "");
                       ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:337:18: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), (long)hlist);
                               ^~~~~~
xquery.c:337:26: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), (long)hlist);
                                       ^~~~~~~
xquery.c:350:11: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                sprintf(qu_buf, "What gesture do you want %s's %s hand to make?",
                        ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:353:10: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                strcpy(ans_buf, "");
                       ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:354:18: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0);
                               ^~~~~~
xquery.c:354:26: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0);
                                       ^~~~~~~
xquery.c:363:15: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    sprintf(qu_buf, "Which spell do you want to delay?");
                            ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:367:15: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    sprintf(qu_buf, "Which spell do you want to make permanent?");
                            ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:374:10: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                strcpy(ans_buf, "");
                       ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:375:18: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0);
                               ^~~~~~
xquery.c:375:26: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0);
                                       ^~~~~~~
xquery.c:379:11: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                sprintf(qu_buf, "Do you want to release the %s from the Delayed Effect?",
                        ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:381:10: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                strcpy(ans_buf, "No");
                       ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:382:18: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 1, 0, &(qlist[ix]), 0);
                               ^~~~~~
xquery.c:382:26: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 1, 0, &(qlist[ix]), 0);
                                       ^~~~~~~
xquery.c:388:15: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    sprintf(qu_buf, "Which of %s's hands do you want to paralyze?",
                            ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:392:15: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    sprintf(qu_buf, "Which of %s's hands do you want to control?",
                            ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:395:10: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                strcpy(ans_buf, "");
                       ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:396:18: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0);
                               ^~~~~~
xquery.c:396:26: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0);
                                       ^~~~~~~
xquery.c:399:11: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                sprintf(qu_buf, "Which type of elemental do you want to summon?");
                        ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:400:10: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                strcpy(ans_buf, "");
                       ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:401:18: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0);
                               ^~~~~~
xquery.c:401:26: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0);
                                       ^~~~~~~
xquery.c:409:12: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                        sprintf(qu_buf, "Whom do you want %s to attack?",
                                ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:414:12: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                        sprintf(qu_buf, "Whom do you want %s's first attack to be at?",
                                ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:419:12: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                        sprintf(qu_buf, "Whom do you want %s's second attack to be at?",
                                ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:424:12: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                        sprintf(qu_buf, "ERROR: Query about %d (%d)", spellnum, attnum);
                                ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:429:14: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    strcpy(ans_buf, "nobody");
                           ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:432:10: warning: implicit declaration of function 'IndexOfTarget' is invalid in C99 [-Wimplicit-function-declaration]
                        kx = (IndexOfTarget(gameval, QuVal_Target_Wizard, jx) &
                              ^
xquery.c:436:15: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                            strcpy(ans_buf, NameOfTarget(gameval,
                                   ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:442:18: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 1, answer_init, &(qlist[ix]), 0);
                               ^~~~~~
xquery.c:442:26: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 1, answer_init, &(qlist[ix]), 0);
                                       ^~~~~~~
xquery.c:460:15: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    sprintf(qu_buf, "Who do you want to stab at (%s)?", handage);
                            ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:462:15: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    sprintf(qu_buf, "Who do you want to cast %s at (%s)?",
                            ^~~~~~
/usr/include/stdio.h:275:31: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                  ^
xquery.c:466:14: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    strcpy(ans_buf, "nobody");
                           ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:473:15: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                            strcpy(ans_buf, NameOfTarget(gameval,
                                   ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:477:12: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                                strcat(ans_buf, " [invisible]");
                                       ^~~~~~~
/usr/include/string.h:54:31: note: passing argument to parameter here
char    *strcat(char * __restrict, const char * __restrict);
                                 ^
xquery.c:484:14: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                    strcpy(ans_buf, "nobody");
                           ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:491:15: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                            strcpy(ans_buf, NameOfTarget(gameval,
                                   ^~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
xquery.c:495:12: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                                strcat(ans_buf, " [invisible]");
                                       ^~~~~~~
/usr/include/string.h:54:31: note: passing argument to parameter here
char    *strcat(char * __restrict, const char * __restrict);
                                 ^
xquery.c:500:18: warning: incompatible pointer types passing 'int [256]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 1, answer_init, &(qlist[ix]), 0);
                               ^~~~~~
xquery.c:500:26: warning: incompatible pointer types passing 'int [64]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                add_answer(py, qu_buf, ans_buf, 1, answer_init, &(qlist[ix]), 0);
                                       ^~~~~~~
xquery.c:519:2: warning: implicit declaration of function 'redraw_column' is invalid in C99 [-Wimplicit-function-declaration]
        redraw_column(py);
        ^
xquery.c:520:2: warning: implicit declaration of function 'draw_button' is invalid in C99 [-Wimplicit-function-declaration]
        draw_button(py, 0, 1); /* redraw turn-end button */
        ^
xquery.c:524:5: warning: implicit declaration of function 'mainloop' is invalid in C99 [-Wimplicit-function-declaration]
    mainloop();
    ^
xquery.c:539:5: warning: implicit declaration of function 'draw_frame' is invalid in C99 [-Wimplicit-function-declaration]
    draw_frame(py, &py->query_rect);
    ^
xquery.c:665:5: warning: implicit declaration of function 'adjust_rect' is invalid in C99 [-Wimplicit-function-declaration]
    adjust_rect(&py->query_rect);
    ^
xquery.c:666:5: warning: implicit declaration of function 'backing_store' is invalid in C99 [-Wimplicit-function-declaration]
    backing_store(py, &py->query_rect);
    ^
xquery.c:668:5: warning: implicit declaration of function 'query_motion' is invalid in C99 [-Wimplicit-function-declaration]
    query_motion(py, xpos, ypos, button);
    ^
xquery.c:696:6: error: non-void function 'query_motion' should return a value [-Wreturn-type]
            return;
            ^
xquery.c:732:6: error: non-void function 'query_motion' should return a value [-Wreturn-type]
            return;
            ^
xquery.c:764:5: warning: implicit declaration of function 'backing_restore' is invalid in C99 [-Wimplicit-function-declaration]
    backing_restore(py);
    ^
xquery.c:769:49: warning: implicit declaration of function 'gesture_name' is invalid in C99 [-Wimplicit-function-declaration]
            strcpy(py->answers[py->query_hit].ans_str, gesture_name(py->query_sel));
                                                       ^
xquery.c:769:49: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *'; 
            strcpy(py->answers[py->query_hit].ans_str, gesture_name(py->query_sel));
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/string.h:58:56: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                                          ^
62 warnings and 2 errors generated.
*** Error code 1

Stop.
make: stopped in /scratch/games/spellcast/work/spellcast
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/games/spellcast
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/games/spellcast
