=> Bootstrap dependency digest>=20211023: found digest-20211023 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for spellcast-1.2nb1 --- engine.o --- --- espells.o --- --- execute.o --- --- execute2.o --- --- espells.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c espells.c --- execute2.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c execute2.c --- execute.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c execute.c --- engine.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c engine.c --- execute2.o --- In file included from execute2.c:5:0: execute2.c: In function 'exec_enchants': internal.h:6:45: warning: implicit declaration of function 'log_text' [-Wimplicit-function-declaration] #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:28:6: note: in expansion of macro 'PrintMsg2' PrintMsg2(cnum, "The Amnesia spell curls around your mind.\n", exbuf2); ^~~~~~~~~ --- engine.o --- engine.c: In function 'add_query': engine.c:37:36: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] self->querylist = (struct query *)realloc(self->querylist, sizeof(struct query) * self->querylist_size); ^~~~~~~ engine.c:37:36: warning: incompatible implicit declaration of built-in function 'realloc' engine.c:37:36: note: include '' or provide a declaration of 'realloc' --- execute2.o --- execute2.c:71:7: warning: implicit declaration of function 'erase_queries' [-Wimplicit-function-declaration] erase_queries(self); ^~~~~~~~~~~~~ --- engine.o --- engine.c: In function 'InitBeing': engine.c:107:5: warning: implicit declaration of function 'clear_round'; did you mean 'clearerr'? [-Wimplicit-function-declaration] clear_round(fred); ^~~~~~~~~~~ clearerr --- execute2.o --- execute2.c:72:7: warning: implicit declaration of function 'add_query' [-Wimplicit-function-declaration] add_query(self, fred->both.enchant_caster, Qu_ParalysisHand, cnum); ^~~~~~~~~ --- engine.o --- engine.c: In function 'write_gestures': engine.c:153:36: warning: incompatible implicit declaration of built-in function 'realloc' wiz->gests = (struct wizgesture *)realloc(wiz->gests, wiz->gests_size * sizeof(struct wizgesture)); ^~~~~~~ engine.c:153:36: note: include '' or provide a declaration of 'realloc' engine.c: In function 'BeginGame': engine.c:189:48: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] struct realgame *self = (struct realgame *)malloc(sizeof(struct realgame)); ^~~~~~ engine.c:189:48: warning: incompatible implicit declaration of built-in function 'malloc' engine.c:189:48: note: include '' or provide a declaration of 'malloc' engine.c:192:5: warning: implicit declaration of function 'srandom' [-Wimplicit-function-declaration] srandom(getpid() + rock + numplayers); ^~~~~~~ --- execute2.o --- In file included from /usr/include/stdio.h:597:0, from execute2.c:1: execute2.c:121:110: warning: implicit declaration of function 'pro_he' [-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); ^ --- engine.o --- engine.c:192:13: warning: implicit declaration of function 'getpid'; did you mean 'getline'? [-Wimplicit-function-declaration] srandom(getpid() + rock + numplayers); ^~~~~~ getline --- execute.o --- In file included from execute.c:5:0: execute.c: In function 'check_visibility': internal.h:9:61: warning: implicit declaration of function 'log_text' [-Wimplicit-function-declaration] #define PrintMsg3(person1, person2, msg1, msg2, msgelse) (log_text(self, msgelse),\ ^ execute.c:256:6: note: in expansion of macro 'PrintMsg3' PrintMsg3(ctmp->caster, ctmp->target, exbuf, exbuf2, exbuf3); ^~~~~~~~~ --- engine.o --- engine.c:203:5: warning: implicit declaration of function 'init_transcript'; did you mean 'WriteTranscript'? [-Wimplicit-function-declaration] init_transcript(self); ^~~~~~~~~~~~~~~ WriteTranscript In file included from engine.c:5:0: internal.h:3:26: warning: implicit declaration of function 'log_text' [-Wimplicit-function-declaration] #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:206:2: note: in expansion of macro 'PrintMsg' PrintMsg("Too many players requested.\n"); ^~~~~~~~ --- execute2.o --- execute2.c:268:117: warning: implicit declaration of function 'pro_his' [-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)); ^ --- engine.o --- engine.c: In function 'RunTurn': engine.c:317:9: warning: implicit declaration of function 'random'; did you mean 'rindex'? [-Wimplicit-function-declaration] jx = random() % 2; ^~~~~~ rindex --- execute2.o --- execute2.c:271:3: warning: implicit declaration of function 'write_gestures'; did you mean 'SeeGesture'? [-Wimplicit-function-declaration] write_gestures(self, wiz, Gesture_ANTISPELL, Gesture_ANTISPELL); ^~~~~~~~~~~~~~ SeeGesture --- engine.o --- engine.c:345:41: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] add_query(self, kx, Qu_CharmGesture, (char *)val); ^ --- execute.o --- execute.c: In function 'execute_spells': execute.c:622:5: warning: implicit declaration of function 'erase_queries' [-Wimplicit-function-declaration] erase_queries(self); ^~~~~~~~~~~~~ execute.c:626:3: warning: implicit declaration of function 'add_query' [-Wimplicit-function-declaration] add_query(self, ix, Qu_ElementalType, 0); ^~~~~~~~~ --- engine.o --- engine.c:431:5: warning: implicit declaration of function 'log_round_header' [-Wimplicit-function-declaration] log_round_header(self); ^~~~~~~~~~~~~~~~ --- execute2.o --- execute2.c:555:2: warning: implicit declaration of function 'clear_permstats' [-Wimplicit-function-declaration] clear_permstats(&(fred->both.perm)); ^~~~~~~~~~~~~~~ --- engine.o --- engine.c: In function 'FreeGame': engine.c:615:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free((char *)self->wiz[ix]); ^~~~ engine.c:615:2: warning: incompatible implicit declaration of built-in function 'free' engine.c:615:2: note: include '' or provide a declaration of 'free' engine.c:619:2: warning: incompatible implicit declaration of built-in function 'free' free(self->cre[ix].name); ^~~~ engine.c:619:2: note: include '' or provide a declaration of 'free' engine.c:621:5: warning: incompatible implicit declaration of built-in function 'free' free((char *)self->cre); ^~~~ engine.c:621:5: note: include '' or provide a declaration of 'free' engine.c: In function 'setup_targetlist': engine.c:635:41: warning: incompatible implicit declaration of built-in function 'realloc' self->targetlist[0] = (struct target *)realloc(self->targetlist[0], sizeof(struct target) * self->targetlist_size[0]); ^~~~~~~ engine.c:635:41: note: include '' or provide a declaration of 'realloc' engine.c:639:41: warning: incompatible implicit declaration of built-in function 'realloc' self->targetlist[1] = (struct target *)realloc(self->targetlist[1], sizeof(struct target) * self->targetlist_size[1]); ^~~~~~~ engine.c:639:41: note: include '' or provide a declaration of 'realloc' engine.c:643:41: warning: incompatible implicit declaration of built-in function 'realloc' self->targetlist[2] = (struct target *)realloc(self->targetlist[2], sizeof(struct target) * self->targetlist_size[2]); ^~~~~~~ engine.c:643:41: note: include '' or provide a declaration of 'realloc' --- execute2.o --- In file included from /usr/include/stdio.h:597:0, from execute2.c:1: execute2.c: In function 'exec_attacks': execute2.c:698:132: warning: implicit declaration of function 'pro_him' [-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)); ^ --- execute.o --- execute.c: In function 'exec_summons': execute.c:812:3: warning: implicit declaration of function 'create_creature' [-Wimplicit-function-declaration] create_creature(self, ix+1, cnum); ^~~~~~~~~~~~~~~ --- engine.o --- engine.c: In function 'restrict_gestures': engine.c:1009:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] add_query(self, wiznum, Qu_SetOffDelay, (char *)self->wiz[wiznum]->delay_bank); ^ engine.c: In function 'build_cast_list': engine.c:1037:2: warning: incompatible implicit declaration of built-in function 'free' free((char *)self->castlist); ^~~~ engine.c:1037:2: note: include '' or provide a declaration of 'free' engine.c:1072:33: warning: incompatible implicit declaration of built-in function 'malloc' res = (struct castspell *)malloc(sizeof(struct castspell)); ^~~~~~ engine.c:1072:33: note: include '' or provide a declaration of 'malloc' engine.c:1090:29: warning: incompatible implicit declaration of built-in function 'malloc' res = (struct castspell *)malloc(sizeof(struct castspell)); ^~~~~~ engine.c:1090:29: note: include '' or provide a declaration of 'malloc' engine.c:1099:29: warning: incompatible implicit declaration of built-in function 'malloc' res = (struct castspell *)malloc(sizeof(struct castspell)); ^~~~~~ engine.c:1099:29: note: include '' or provide a declaration of 'malloc' engine.c:1114:33: warning: incompatible implicit declaration of built-in function 'malloc' res = (struct castspell *)malloc(sizeof(struct castspell)); ^~~~~~ engine.c:1114:33: note: include '' or provide a declaration of 'malloc' engine.c:1182:4: warning: incompatible implicit declaration of built-in function 'free' free((char *)res); ^~~~ engine.c:1182:4: note: include '' or provide a declaration of 'free' --- execute2.o --- execute2.c: In function 'exec_heals': execute2.c:920:6: warning: implicit declaration of function 'clear_out_spells' [-Wimplicit-function-declaration] clear_out_spells(fred, wizflag); ^~~~~~~~~~~~~~~~ --- emonster.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c emonster.c emonster.c: In function 'kuruk_name': emonster.c:23:18: warning: implicit declaration of function 'random'; did you mean 'rindex'? [-Wimplicit-function-declaration] int numsyl = random()%3+2; ^~~~~~ rindex emonster.c:48:38: warning: implicit declaration of function 'islower' [-Wimplicit-function-declaration] if ((ix==0 || bigbuf[ix-1]==' ') && islower(bigbuf[ix])) ^~~~~~~ emonster.c:49:19: warning: implicit declaration of function 'toupper' [-Wimplicit-function-declaration] bigbuf[ix] = toupper(bigbuf[ix]); ^~~~~~~ emonster.c: In function 'create_creature': emonster.c:99:33: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] self->cre = (struct creature *)realloc(self->cre, sizeof(struct creature) * self->cre_size); ^~~~~~~ emonster.c:99:33: warning: incompatible implicit declaration of built-in function 'realloc' emonster.c:99:33: note: include '' or provide a declaration of 'realloc' emonster.c:149:26: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] thud->name = (char *)malloc(strlen(bigbuf)+1); ^~~~~~ emonster.c:149:26: warning: incompatible implicit declaration of built-in function 'malloc' emonster.c:149:26: note: include '' or provide a declaration of 'malloc' emonster.c: In function 'execute_monsters': emonster.c:160:5: warning: implicit declaration of function 'erase_queries' [-Wimplicit-function-declaration] erase_queries(self); ^~~~~~~~~~~~~ In file included from emonster.c:5:0: internal.h:3:26: warning: implicit declaration of function 'log_text' [-Wimplicit-function-declaration] #define PrintMsg(msg) (log_text(self, msg),\ ^ emonster.c:181:7: note: in expansion of macro 'PrintMsg' PrintMsg("ERROR: wrong type of turn in execute_monsters()\n"); ^~~~~~~~ emonster.c:220:3: warning: implicit declaration of function 'add_query' [-Wimplicit-function-declaration] add_query(self, thud->owner, qtype, ix + 256*(jx+numattacks)); ^~~~~~~~~ emonster.c:228:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] jx = (int)(self->querylist[qnum].rock); ^ emonster.c:265:13: warning: implicit declaration of function 'IndexOfTarget'; did you mean 'NameOfTarget'? [-Wimplicit-function-declaration] target = IndexOfTarget((game *)self, targettype, kx) & ^~~~~~~~~~~~~ NameOfTarget In file included from /usr/include/stdio.h:597:0, from emonster.c:1: emonster.c: In function 'exec_monster_attack': emonster.c:353:4: warning: implicit declaration of function 'pro_himself' [-Wimplicit-function-declaration] pro_himself(fred->both.gender)); ^ emonster.c:363:21: warning: implicit declaration of function 'pro_him' [-Wimplicit-function-declaration] fred->both.name, pro_him(fred->both.gender)); ^ emonster.c:387:33: warning: implicit declaration of function 'pro_his' [-Wimplicit-function-declaration] thud->name, fred->both.name, pro_his(fred->both.gender)); ^ --- etran.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c etran.c etran.c: In function 'init_transcript': etran.c:15:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] self->gamelog = (char *)malloc(sizeof(char) * self->gamelog_size); ^~~~~~ etran.c:15:29: warning: incompatible implicit declaration of built-in function 'malloc' etran.c:15:29: note: include '' or provide a declaration of 'malloc' etran.c: In function 'log_text': etran.c:35:26: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] self->gamelog = (char *)realloc(self->gamelog, sizeof(char) * self->gamelog_size); ^~~~~~~ etran.c:35:26: warning: incompatible implicit declaration of built-in function 'realloc' etran.c:35:26: note: include '' or provide a declaration of 'realloc' --- main.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c main.c --- xtext.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c xtext.c --- main.o --- main.c:45:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main.c: In function 'main': main.c:64:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(12); ^~~~ main.c:64:2: warning: incompatible implicit declaration of built-in function 'exit' main.c:64:2: note: include '' or provide a declaration of 'exit' main.c:74:34: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] displist[numplayers] = (char *)malloc(strlen(argv[ix])+6); ^~~~~~ main.c:74:34: warning: incompatible implicit declaration of built-in function 'malloc' main.c:74:34: note: include '' or provide a declaration of 'malloc' main.c:87:2: warning: incompatible implicit declaration of built-in function 'exit' exit(12); ^~~~ main.c:87:2: note: include '' or provide a declaration of 'exit' main.c:91:2: warning: incompatible implicit declaration of built-in function 'exit' exit(12); ^~~~ main.c:91:2: note: include '' or provide a declaration of 'exit' main.c:94:32: warning: incompatible implicit declaration of built-in function 'malloc' players = (struct player *)malloc(sizeof(struct player) * numplayers); ^~~~~~ main.c:94:32: note: include '' or provide a declaration of 'malloc' main.c:103:8: warning: implicit declaration of function 'win_init' [-Wimplicit-function-declaration] val = win_init(ix); ^~~~~~~~ main.c:106:6: warning: incompatible implicit declaration of built-in function 'exit' exit(-1); ^~~~ main.c:106:6: note: include '' or provide a declaration of 'exit' main.c:124:6: warning: implicit declaration of function 'clear_answers'; did you mean 'clearerr'? [-Wimplicit-function-declaration] clear_answers(py); ^~~~~~~~~~~~~ clearerr main.c:128:4: warning: implicit declaration of function 'add_answer' [-Wimplicit-function-declaration] add_answer(py, "Enter your gestures for your Hastened move.", ^~~~~~~~~~ main.c:154:6: warning: implicit declaration of function 'redraw_column' [-Wimplicit-function-declaration] redraw_column(py); ^~~~~~~~~~~~~ --- xquery.o --- --- main.o --- main.c:155:6: warning: implicit declaration of function 'draw_button'; did you mean 'XGrabButton'? [-Wimplicit-function-declaration] draw_button(py, 0, 1); /* redraw turn-end button */ ^~~~~~~~~~~ XGrabButton --- xquery.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c xquery.c --- main.o --- main.c:156:6: warning: implicit declaration of function 'redraw_queries_only' [-Wimplicit-function-declaration] redraw_queries_only(py, 0); ^~~~~~~~~~~~~~~~~~~ main.c:159:2: warning: implicit declaration of function 'mainloop'; did you mean 'main'? [-Wimplicit-function-declaration] mainloop(); ^~~~~~~~ main In file included from /usr/include/stdio.h:597:0, from main.c:7: main.c:202:51: warning: implicit declaration of function 'getpid'; did you mean 'getline'? [-Wimplicit-function-declaration] sprintf(fname, "%s/spellcast-%d", TRANSCRIPTDIR, getpid()); ^ main.c: In function 'win_init': main.c:256:17: warning: incompatible implicit declaration of built-in function 'malloc' name = (char *)malloc(strlen(tmp)+1); ^~~~~~ main.c:256:17: note: include '' or provide a declaration of 'malloc' --- xtext.o --- xtext.c: In function 'init_xtext': xtext.c:45:36: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] py->lineindex = (struct line *)malloc(sizeof(struct line)*py->lineindex_size); ^~~~~~ xtext.c:45:36: warning: incompatible implicit declaration of built-in function 'malloc' xtext.c:45:36: note: include '' or provide a declaration of 'malloc' xtext.c: In function 'complete_line': xtext.c:104:33: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] py->lineindex = (struct line *)realloc(py->lineindex, ^~~~~~~ xtext.c:104:33: warning: incompatible implicit declaration of built-in function 'realloc' xtext.c:104:33: note: include '' or provide a declaration of 'realloc' xtext.c:120:24: warning: incompatible implicit declaration of built-in function 'realloc' py->linebuf = (char *)realloc(py->linebuf, py->linebuf_size); ^~~~~~~ xtext.c:120:24: note: include '' or provide a declaration of 'realloc' --- main.o --- main.c:360:5: warning: implicit declaration of function 'init_bitmaps' [-Wimplicit-function-declaration] init_bitmaps(py); ^~~~~~~~~~~~ main.c:361:5: warning: implicit declaration of function 'init_xtext'; did you mean 'XFindContext'? [-Wimplicit-function-declaration] init_xtext(pnum); ^~~~~~~~~~ XFindContext main.c:362:5: warning: implicit declaration of function 'init_query'; did you mean 'ms_Query'? [-Wimplicit-function-declaration] init_query(py); ^~~~~~~~~~ ms_Query main.c:363:5: warning: implicit declaration of function 'init_stats' [-Wimplicit-function-declaration] init_stats(py); ^~~~~~~~~~ main.c:364:5: warning: implicit declaration of function 'init_talk' [-Wimplicit-function-declaration] init_talk(py); ^~~~~~~~~ main.c: In function 'PrintMsg': main.c:426:6: warning: implicit declaration of function 'dump_text' [-Wimplicit-function-declaration] dump_text(ix, msg); ^~~~~~~~~ --- xquery.o --- xquery.c: In function 'init_query': xquery.c:47:36: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] py->answers = (struct answer *)malloc(sizeof(struct answer) * py->answers_size); ^~~~~~ xquery.c:47:36: warning: incompatible implicit declaration of built-in function 'malloc' xquery.c:47:36: note: include '' or provide a declaration of 'malloc' xquery.c: In function 'flush_tempstrings': xquery.c:72:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(tempstringlist); ^~~~ xquery.c:72:2: warning: incompatible implicit declaration of built-in function 'free' xquery.c:72:2: note: include '' or provide a declaration of 'free' xquery.c: In function 'tempstring_malloc': xquery.c:82:24: warning: incompatible implicit declaration of built-in function 'malloc' pt = (tempstring *)malloc(sizeof(tempstring) + len + 1); ^~~~~~ xquery.c:82:24: note: include '' or provide a declaration of 'malloc' xquery.c: In function 'add_answer': xquery.c:107:33: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] py->answers = (struct answer *)realloc(py->answers, ^~~~~~~ xquery.c:107:33: warning: incompatible implicit declaration of built-in function 'realloc' xquery.c:107:33: note: include '' or provide a declaration of 'realloc' xquery.c: In function 'redraw_queries_only': xquery.c:165:5: warning: implicit declaration of function 'redraw_scrollbar' [-Wimplicit-function-declaration] redraw_scrollbar(&(py->siquery)); ^~~~~~~~~~~~~~~~ xquery.c: In function 'add_to_targetlist': xquery.c:195:21: warning: incompatible implicit declaration of built-in function 'malloc' tl->tnums = (int *)malloc(tl->size*sizeof(int)); ^~~~~~ xquery.c:195:21: note: include '' or provide a declaration of 'malloc' xquery.c:205:21: warning: incompatible implicit declaration of built-in function 'realloc' tl->tnums = (int *)realloc(tl->tnums, tl->size*sizeof(int)); ^~~~~~~ xquery.c:205:21: note: include '' or provide a declaration of 'realloc' xquery.c: In function 'XQueries': xquery.c:291:12: warning: type defaults to 'int' in declaration of 'qu_buf' [-Wimplicit-int] static qu_buf[MAXQUESTIONLENGTH], ans_buf[MAXANSWERLENGTH]; ^~~~~~ xquery.c:291:39: warning: type defaults to 'int' in declaration of 'ans_buf' [-Wimplicit-int] static qu_buf[MAXQUESTIONLENGTH], ans_buf[MAXANSWERLENGTH]; ^~~~~~~ In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:313:14: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(qu_buf, "What spell do you want to cast with your left hand?"); ^ xquery.c:313:14: note: expected 'char *' but argument is of type 'int *' xquery.c:313:14: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(qu_buf, "What spell do you want to cast with your left hand?"); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:317:14: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(qu_buf, "What spell do you want to cast with your right hand?"); ^ xquery.c:317:14: note: expected 'char *' but argument is of type 'int *' xquery.c:317:14: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(qu_buf, "What spell do you want to cast with your right hand?"); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:336:10: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ xquery.c:336:10: note: expected 'char *' but argument is of type 'int *' xquery.c:336:10: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:341:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] jx = (int)(qlist[ix].rock); ^ In file included from /usr/include/stdio.h:597:0, from xquery.c:1: xquery.c:350:11: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "What gesture do you want %s's %s hand to make?", ^ xquery.c:350:11: note: expected 'char *' but argument is of type 'int *' In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:353:10: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ xquery.c:353:10: note: expected 'char *' but argument is of type 'int *' xquery.c:353:10: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ In file included from /usr/include/stdio.h:597:0, from xquery.c:1: xquery.c:363:15: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Which spell do you want to delay?"); ^ xquery.c:363:15: note: expected 'char *' but argument is of type 'int *' xquery.c:367:15: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Which spell do you want to make permanent?"); ^ xquery.c:367:15: note: expected 'char *' but argument is of type 'int *' In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:374:10: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ xquery.c:374:10: note: expected 'char *' but argument is of type 'int *' xquery.c:374:10: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ In file included from /usr/include/stdio.h:597:0, from xquery.c:1: xquery.c:380:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] spelllist[(int)qlist[ix].rock].name); ^ xquery.c:379:11: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Do you want to release the %s from the Delayed Effect?", ^ xquery.c:379:11: note: expected 'char *' but argument is of type 'int *' In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:381:10: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, "No"); ^ xquery.c:381:10: note: expected 'char *' but argument is of type 'int *' xquery.c:381:10: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, "No"); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ In file included from /usr/include/stdio.h:597:0, from xquery.c:1: xquery.c:388:15: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Which of %s's hands do you want to paralyze?", ^ xquery.c:388:15: note: expected 'char *' but argument is of type 'int *' xquery.c:392:15: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Which of %s's hands do you want to control?", ^ xquery.c:392:15: note: expected 'char *' but argument is of type 'int *' In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:395:10: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ xquery.c:395:10: note: expected 'char *' but argument is of type 'int *' xquery.c:395:10: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ In file included from /usr/include/stdio.h:597:0, from xquery.c:1: xquery.c:399:11: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Which type of elemental do you want to summon?"); ^ xquery.c:399:11: note: expected 'char *' but argument is of type 'int *' In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:400:10: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ xquery.c:400:10: note: expected 'char *' but argument is of type 'int *' xquery.c:400:10: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:404:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] jx = (int)(qlist[ix].rock); ^ In file included from /usr/include/stdio.h:597:0, from xquery.c:1: xquery.c:409:12: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Whom do you want %s to attack?", ^ xquery.c:409:12: note: expected 'char *' but argument is of type 'int *' xquery.c:414:12: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Whom do you want %s's first attack to be at?", ^ xquery.c:414:12: note: expected 'char *' but argument is of type 'int *' xquery.c:419:12: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Whom do you want %s's second attack to be at?", ^ xquery.c:419:12: note: expected 'char *' but argument is of type 'int *' xquery.c:424:12: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "ERROR: Query about %d (%d)", spellnum, attnum); ^ xquery.c:424:12: note: expected 'char *' but argument is of type 'int *' In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:429:14: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, "nobody"); ^ xquery.c:429:14: note: expected 'char *' but argument is of type 'int *' xquery.c:429:14: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, "nobody"); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:432:10: warning: implicit declaration of function 'IndexOfTarget'; did you mean 'NameOfTarget'? [-Wimplicit-function-declaration] kx = (IndexOfTarget(gameval, QuVal_Target_Wizard, jx) & ^~~~~~~~~~~~~ NameOfTarget In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:436:15: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, NameOfTarget(gameval, ^ xquery.c:436:15: note: expected 'char *' but argument is of type 'int *' xquery.c:436:15: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, NameOfTarget(gameval, ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:449:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] jx = (int)(qlist[ix].rock); ^ In file included from /usr/include/stdio.h:597:0, from xquery.c:1: xquery.c:460:15: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Who do you want to stab at (%s)?", handage); ^ xquery.c:460:15: note: expected 'char *' but argument is of type 'int *' xquery.c:462:15: warning: passing argument 1 of '__builtin___sprintf_chk' from incompatible pointer type [-Wincompatible-pointer-types] sprintf(qu_buf, "Who do you want to cast %s at (%s)?", ^ xquery.c:462:15: note: expected 'char *' but argument is of type 'int *' In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:466:14: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, "nobody"); ^ xquery.c:466:14: note: expected 'char *' but argument is of type 'int *' xquery.c:466:14: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, "nobody"); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:473:15: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, NameOfTarget(gameval, ^ xquery.c:473:15: note: expected 'char *' but argument is of type 'int *' xquery.c:473:15: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, NameOfTarget(gameval, ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:477:12: warning: passing argument 1 of '__builtin___strcat_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcat(ans_buf, " [invisible]"); ^ xquery.c:477:12: note: expected 'char *' but argument is of type 'int *' xquery.c:477:12: warning: passing argument 1 of '__strcat_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcat(ans_buf, " [invisible]"); ^ /usr/include/ssp/string.h:90:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcat, char *, const char *) ^ xquery.c:484:14: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, "nobody"); ^ xquery.c:484:14: note: expected 'char *' but argument is of type 'int *' xquery.c:484:14: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, "nobody"); ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:491:15: warning: passing argument 1 of '__builtin___strcpy_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, NameOfTarget(gameval, ^ xquery.c:491:15: note: expected 'char *' but argument is of type 'int *' xquery.c:491:15: warning: passing argument 1 of '__strcpy_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcpy(ans_buf, NameOfTarget(gameval, ^ /usr/include/ssp/string.h:89:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ xquery.c:495:12: warning: passing argument 1 of '__builtin___strcat_chk' from incompatible pointer type [-Wincompatible-pointer-types] strcat(ans_buf, " [invisible]"); ^ xquery.c:495:12: note: expected 'char *' but argument is of type 'int *' xquery.c:495:12: warning: passing argument 1 of '__strcat_ichk' from incompatible pointer type [-Wincompatible-pointer-types] strcat(ans_buf, " [invisible]"); ^ /usr/include/ssp/string.h:90:1: note: expected 'char *' but argument is of type 'int *' __ssp_bos_icheck2_restrict(strcat, char *, const char *) ^ xquery.c:519:2: warning: implicit declaration of function 'redraw_column'; did you mean 'redraw_queries'? [-Wimplicit-function-declaration] redraw_column(py); ^~~~~~~~~~~~~ redraw_queries xquery.c:520:2: warning: implicit declaration of function 'draw_button'; did you mean 'XGrabButton'? [-Wimplicit-function-declaration] draw_button(py, 0, 1); /* redraw turn-end button */ ^~~~~~~~~~~ XGrabButton xquery.c:524:5: warning: implicit declaration of function 'mainloop'; did you mean 'GXnoop'? [-Wimplicit-function-declaration] mainloop(); ^~~~~~~~ GXnoop xquery.c: In function 'draw_query_menu': xquery.c:539:5: warning: implicit declaration of function 'draw_frame' [-Wimplicit-function-declaration] draw_frame(py, &py->query_rect); ^~~~~~~~~~ --- xloop.o --- --- xquery.o --- xquery.c: In function 'query_hit': xquery.c:665:5: warning: implicit declaration of function 'adjust_rect' [-Wimplicit-function-declaration] adjust_rect(&py->query_rect); ^~~~~~~~~~~ --- xloop.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c xloop.c --- xquery.o --- xquery.c:666:5: warning: implicit declaration of function 'backing_store'; did you mean 'CWBackingStore'? [-Wimplicit-function-declaration] backing_store(py, &py->query_rect); ^~~~~~~~~~~~~ CWBackingStore xquery.c: In function 'query_release': xquery.c:761:5: warning: implicit declaration of function 'backing_restore'; did you mean 'CWBackingStore'? [-Wimplicit-function-declaration] backing_restore(py); ^~~~~~~~~~~~~~~ CWBackingStore In file included from /usr/include/string.h:127:0, from xquery.c:2: xquery.c:766:49: warning: implicit declaration of function 'gesture_name'; did you mean 'Gesture_WAVE'? [-Wimplicit-function-declaration] strcpy(py->answers[py->query_hit].ans_str, gesture_name(py->query_sel)); ^ xquery.c:766:49: warning: passing argument 2 of '__builtin___strcpy_chk' makes pointer from integer without a cast [-Wint-conversion] xquery.c:766:49: note: expected 'const char *' but argument is of type 'int' xquery.c:766:49: warning: passing argument 2 of '__strcpy_ichk' makes pointer from integer without a cast [-Wint-conversion] strcpy(py->answers[py->query_hit].ans_str, gesture_name(py->query_sel)); ^ /usr/include/ssp/string.h:89:1: note: expected 'const char *' but argument is of type 'int' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ --- xgest.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c xgest.c --- xloop.o --- xloop.c: In function 'mainloop': xloop.c:33:35: warning: implicit declaration of function 'random'; did you mean 'rindex'? [-Wimplicit-function-declaration] players[pnum].turn_blinklimit = (random() % 50) + 5; ^~~~~~ rindex xloop.c:58:27: warning: passing argument 1 of 'XLookupString' from incompatible pointer type [-Wincompatible-pointer-types] if (1 == XLookupString(&event, &c, 1, NULL, NULL)) { ^ In file included from xloop.c:5:0: /tmp/games/spellcast/work/.x11-buildlink/include/X11/Xutil.h:534:12: note: expected 'XKeyEvent * {aka struct *}' but argument is of type 'XEvent * {aka union _XEvent *}' extern int XLookupString( ^~~~~~~~~~~~~ --- xbutton.o --- --- xloop.o --- xloop.c:64:9: warning: implicit declaration of function 'talk_handle_char' [-Wimplicit-function-declaration] talk_handle_char(py, c); ^~~~~~~~~~~~~~~~ --- xbutton.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c xbutton.c --- xloop.o --- xloop.c:72:8: warning: implicit declaration of function 'in_gesture_box'; did you mean 'gesture_hit'? [-Wimplicit-function-declaration] if (in_gesture_box(py, event.xbutton.x, event.xbutton.y)) { ^~~~~~~~~~~~~~ gesture_hit xloop.c:77:13: warning: implicit declaration of function 'in_bbox_box' [-Wimplicit-function-declaration] else if (in_bbox_box(py, event.xbutton.x, event.xbutton.y)) { ^~~~~~~~~~~ xloop.c:78:25: warning: implicit declaration of function 'button_hit'; did you mean 'Button2'? [-Wimplicit-function-declaration] py->mousestate = button_hit(py, event.xbutton.x, ^~~~~~~~~~ Button2 xloop.c:82:13: warning: implicit declaration of function 'in_scrollbar_box' [-Wimplicit-function-declaration] else if (in_scrollbar_box(&(py->sitext), event.xbutton.x, ^~~~~~~~~~~~~~~~ xloop.c:84:25: warning: implicit declaration of function 'scrollbar_hit' [-Wimplicit-function-declaration] py->mousestate = scrollbar_hit(&(py->sitext), ^~~~~~~~~~~~~ xloop.c:103:13: warning: implicit declaration of function 'in_query_box' [-Wimplicit-function-declaration] else if (in_query_box(py, event.xbutton.x, ^~~~~~~~~~~~ xloop.c:105:25: warning: implicit declaration of function 'query_hit'; did you mean 'query_motion'? [-Wimplicit-function-declaration] py->mousestate = query_hit(py, event.xbutton.x, ^~~~~~~~~ query_motion xloop.c:120:5: warning: implicit declaration of function 'scrollbar_motion' [-Wimplicit-function-declaration] scrollbar_motion(py->scroll_active, event.xbutton.x, ^~~~~~~~~~~~~~~~ xloop.c:129:5: warning: implicit declaration of function 'button_motion'; did you mean 'query_motion'? [-Wimplicit-function-declaration] button_motion(py, event.xbutton.x, event.xbutton.y, ^~~~~~~~~~~~~ query_motion xloop.c:140:9: warning: implicit declaration of function 'gesture_release'; did you mean 'gesture_hit'? [-Wimplicit-function-declaration] gesture_release(py, event.xbutton.x, ^~~~~~~~~~~~~~~ gesture_hit --- xgest.o --- xgest.c: In function 'redraw_column': xgest.c:137:2: warning: implicit declaration of function 'DrawStringCentered'; did you mean 'XDrawString16'? [-Wimplicit-function-declaration] DrawStringCentered(py, NameOfBeing(gameval, QuVal_Target_Wizard, ix), ^~~~~~~~~~~~~~~~~~ XDrawString16 xgest.c: In function 'draw_gesture_menu': xgest.c:208:5: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(gesture_prompt[0], "What gesture do you want to"); ^~~~~~~ xgest.c:208:5: warning: incompatible implicit declaration of built-in function 'sprintf' xgest.c:208:5: note: include '' or provide a declaration of 'sprintf' xgest.c: In function 'gesture_hit': xgest.c:265:2: warning: implicit declaration of function 'adjust_rect' [-Wimplicit-function-declaration] adjust_rect(&py->gesture_rect); ^~~~~~~~~~~ --- xloop.o --- xloop.c:144:9: warning: implicit declaration of function 'scrollbar_release'; did you mean '__sync_lock_release'? [-Wimplicit-function-declaration] scrollbar_release(py->scroll_active, ^~~~~~~~~~~~~~~~~ __sync_lock_release --- xgest.o --- xgest.c:266:2: warning: implicit declaration of function 'backing_store'; did you mean 'CWBackingStore'? [-Wimplicit-function-declaration] backing_store(py, &py->gesture_rect); ^~~~~~~~~~~~~ CWBackingStore --- xloop.o --- xloop.c:149:9: warning: implicit declaration of function 'query_release'; did you mean 'KeyRelease'? [-Wimplicit-function-declaration] query_release(py, event.xbutton.x, ^~~~~~~~~~~~~ KeyRelease xloop.c:154:9: warning: implicit declaration of function 'button_release'; did you mean 'ButtonRelease'? [-Wimplicit-function-declaration] button_release(py, event.xbutton.x, ^~~~~~~~~~~~~~ ButtonRelease xloop.c: In function 'redraw': xloop.c:218:5: warning: implicit declaration of function 'redraw_talk'; did you mean 'redraw_text'? [-Wimplicit-function-declaration] redraw_talk(py); ^~~~~~~~~~~ redraw_text --- xgest.o --- xgest.c: In function 'gesture_release': xgest.c:328:5: warning: implicit declaration of function 'backing_restore'; did you mean 'CWBackingStore'? [-Wimplicit-function-declaration] backing_restore(py); ^~~~~~~~~~~~~~~ CWBackingStore --- xbutton.o --- xbutton.c: In function 'draw_spelllist': xbutton.c:47:5: warning: implicit declaration of function 'draw_frame' [-Wimplicit-function-declaration] draw_frame(py, &py->spelllist_rect); ^~~~~~~~~~ --- xloop.o --- xloop.c:222:3: warning: implicit declaration of function 'draw_gesture_menu' [-Wimplicit-function-declaration] draw_gesture_menu(py); ^~~~~~~~~~~~~~~~~ --- xbutton.o --- xbutton.c: In function 'button_hit': xbutton.c:240:6: warning: implicit declaration of function 'backing_store'; did you mean 'CWBackingStore'? [-Wimplicit-function-declaration] backing_store(py, &py->spelllist_rect); ^~~~~~~~~~~~~ CWBackingStore xbutton.c:245:6: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] printf("ERROR: unknown button thing!\n"); ^~~~~~ xbutton.c:245:6: warning: incompatible implicit declaration of built-in function 'printf' xbutton.c:245:6: note: include '' or provide a declaration of 'printf' --- xloop.o --- xloop.c:225:3: warning: implicit declaration of function 'draw_spelllist' [-Wimplicit-function-declaration] draw_spelllist(py); ^~~~~~~~~~~~~~ --- xbutton.o --- xbutton.c: In function 'button_release': xbutton.c:297:7: warning: implicit declaration of function 'redraw_done_markers' [-Wimplicit-function-declaration] redraw_done_markers(py); ^~~~~~~~~~~~~~~~~~~ --- xloop.o --- xloop.c:228:3: warning: implicit declaration of function 'draw_query_menu'; did you mean 'redraw_queries'? [-Wimplicit-function-declaration] draw_query_menu(py); ^~~~~~~~~~~~~~~ redraw_queries xloop.c: In function 'init_stats': xloop.c:245:40: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] py->statlist = (struct statthing *)malloc(sizeof(struct statthing) * py->statlist_size); ^~~~~~ xloop.c:245:40: warning: incompatible implicit declaration of built-in function 'malloc' xloop.c:245:40: note: include '' or provide a declaration of 'malloc' xloop.c: In function 'add_statthing': xloop.c:276:37: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] py->statlist = (struct statthing *)realloc(py->statlist, ^~~~~~~ xloop.c:276:37: warning: incompatible implicit declaration of built-in function 'realloc' xloop.c:276:37: note: include '' or provide a declaration of 'realloc' xloop.c: In function 'redraw_done_markers': xloop.c:314:7: warning: implicit declaration of function 'DrawStringField'; did you mean 'XDrawString16'? [-Wimplicit-function-declaration] DrawStringField(py, "*", STATS_X+4, ypos, 12); ^~~~~~~~~~~~~~~ XDrawString16 --- xbutton.o --- xbutton.c:300:7: warning: implicit declaration of function 'redraw_queries_only'; did you mean 'redraw_buttons'? [-Wimplicit-function-declaration] redraw_queries_only(py, 0); ^~~~~~~~~~~~~~~~~~~ redraw_buttons --- xloop.o --- xloop.c: In function 'redraw_stats_only': xloop.c:374:5: warning: implicit declaration of function 'redraw_scrollbar'; did you mean 'redraw_column'? [-Wimplicit-function-declaration] redraw_scrollbar(&(py->sistats)); ^~~~~~~~~~~~~~~~ redraw_column xloop.c: In function 'update_statlist': xloop.c:448:5: warning: implicit declaration of function 'qsort' [-Wimplicit-function-declaration] qsort(py->statlist, py->sistats.nlines, sizeof(struct statthing), statthing_compare); ^~~~~ --- xbutton.o --- xbutton.c:306:6: warning: implicit declaration of function 'backing_restore'; did you mean 'CWBackingStore'? [-Wimplicit-function-declaration] backing_restore(py); ^~~~~~~~~~~~~~~ CWBackingStore --- xtalk.o --- gcc -O -I/usr/X11R7/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/usr/X11R7/include -c xtalk.c xtalk.c: In function 'init_talk': xtalk.c:21:28: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] py->talk_buf = (char *)malloc(sizeof(char) * py->talk_size); ^~~~~~ xtalk.c:21:28: warning: incompatible implicit declaration of built-in function 'malloc' xtalk.c:21:28: note: include '' or provide a declaration of 'malloc' xtalk.c: In function 'redraw_talk_only': xtalk.c:54:13: warning: implicit declaration of function 'DrawStringField'; did you mean 'XDrawString16'? [-Wimplicit-function-declaration] width = DrawStringField(py, py->talk_buf, TALK_X, TALK_Y+py->lineheight, TALK_W); ^~~~~~~~~~~~~~~ XDrawString16 xtalk.c: In function 'ensure_talk_size': xtalk.c:82:28: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] py->talk_buf = (char *)realloc(py->talk_buf, sizeof(char) * py->talk_size); ^~~~~~~ xtalk.c:82:28: warning: incompatible implicit declaration of built-in function 'realloc' xtalk.c:82:28: note: include '' or provide a declaration of 'realloc' xtalk.c: In function 'talk_handle_char': xtalk.c:116:8: warning: implicit declaration of function 'dump_text' [-Wimplicit-function-declaration] dump_text(ix, bigbuf); ^~~~~~~~~ --- spellcast --- gcc -Wl,-R/usr/X11R7/lib -o spellcast engine.o espells.o execute.o execute2.o emonster.o etran.o main.o xtext.o xquery.o xloop.o xgest.o xbutton.o xtalk.o -L/usr/X11R7/lib -lX11 ld: engine.o: in function `BeginGame': engine.c:(.text+0x12ef): warning: warning: reference to compatibility srandom(); include for correct reference