=> Bootstrap dependency digest>=20211023: found digest-20211023 ===> 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 glimpse-4.18.6 for d in compress agrep libtemplate index ; do \ ( cd $d; /usr/pkg/bin/gmake ); \ done gmake[1]: Entering directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/compress' gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o hash.o hash.c hash.c:168:1: warning: return type defaults to 'int' [-Wimplicit-int] thash4k(word, len) ^~~~~~~ hash.c:522:1: warning: return type defaults to 'int' [-Wimplicit-int] pad_hash_file(filename, FILEBLOCKSIZE) ^~~~~~~~~~~~~ gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o string.o string.c string.c:213:1: warning: return type defaults to 'int' [-Wimplicit-int] pad_string_file(filename, FILEBLOCKSIZE) ^~~~~~~~~~~~~~~ gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o misc.o misc.c misc.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int] set_usemalloc() ^~~~~~~~~~~~~ misc.c:39:1: warning: return type defaults to 'int' [-Wimplicit-int] unset_usemalloc() ^~~~~~~~~~~~~~~ misc.c: In function 'mygetc': misc.c:45:1: warning: type of 'maxlen' defaults to 'int' [-Wimplicit-int] mygetc(fp, buf, maxlen, lenp) ^~~~~~ misc.c: At top level: misc.c:61:1: warning: return type defaults to 'int' [-Wimplicit-int] myfpcopy(fp, src) ^~~~~~~~ misc.c:75:1: warning: return type defaults to 'int' [-Wimplicit-int] mystrcpy(dest, src) ^~~~~~~~ misc.c:203:1: warning: return type defaults to 'int' [-Wimplicit-int] build_freq(freq_words_table, freq_words_strings, freq_words_lens, freq_file, flags) ^~~~~~~~~~ misc.c: In function 'build_freq': misc.c:203:1: warning: type of 'flags' defaults to 'int' [-Wimplicit-int] misc.c: At top level: misc.c:274:1: warning: return type defaults to 'int' [-Wimplicit-int] initialize_common(freq_file, flags) ^~~~~~~~~~~~~~~~~ misc.c: In function 'exists_tcompressed_word': misc.c:304:1: warning: type of 'flags' defaults to 'int' [-Wimplicit-int] exists_tcompressed_word(word, wordlen, line, linelen, flags) ^~~~~~~~~~~~~~~~~~~~~~~ gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o quick.o quick.c quick.c: In function 'quick_tcompress': quick.c:63:4: warning: implicit declaration of function 'uninitialize_tcompress'; did you mean 'quick_tcompress'? [-Wimplicit-function-declaration] uninitialize_tcompress(); ^~~~~~~~~~~~~~~~~~~~~~ quick_tcompress quick.c:68:8: warning: implicit declaration of function 'initialize_common' [-Wimplicit-function-declaration] if (!initialize_common(freq_file, flags)) return 0; /* don't call initialize_tcompress since that will load the FULL hash table */ ^~~~~~~~~~~~~~~~~ quick.c:127:2: warning: implicit declaration of function 'build_partial_hash'; did you mean 'build_hash'? [-Wimplicit-function-declaration] build_partial_hash(compress_hash_table, hashfp, hashindexbuf, hashindexsize, pattern, len, blocksize, loaded_hash_table); ^~~~~~~~~~~~~~~~~~ build_hash quick.c:128:11: warning: implicit declaration of function 'tcompress' [-Wimplicit-function-declaration] newlen = tcompress(pattern, len, newpattern, maxnewlen, flags); ^~~~~~~~~ quick.c: In function 'quick_tuncompress': quick.c:165:4: warning: implicit declaration of function 'uninitialize_tuncompress'; did you mean 'quick_tuncompress'? [-Wimplicit-function-declaration] uninitialize_tuncompress(); ^~~~~~~~~~~~~~~~~~~~~~~~ quick_tuncompress quick.c:223:2: warning: implicit declaration of function 'build_partial_string'; did you mean 'build_string'? [-Wimplicit-function-declaration] build_partial_string(compress_string_table, stringfp, stringindexbuf, stringindexsize, pattern, len, blocksize, loaded_string_table); ^~~~~~~~~~~~~~~~~~~~ build_string quick.c:224:11: warning: implicit declaration of function 'tuncompress'; did you mean 'quick_tuncompress'? [-Wimplicit-function-declaration] newlen = tuncompress(pattern, len, newpattern, maxnewlen, flags); ^~~~~~~~~~~ quick_tuncompress gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o cast.o cast.c cast.c:42:1: warning: return type defaults to 'int' [-Wimplicit-int] initialize_tcompress(hash_file, freq_file, flags) ^~~~~~~~~~~~~~~~~~~~ cast.c: In function 'initialize_tcompress': cast.c:48:7: warning: implicit declaration of function 'initialize_common'; did you mean 'initialize_tcompress'? [-Wimplicit-function-declaration] if (!initialize_common(freq_file, flags)) return 0; ^~~~~~~~~~~~~~~~~ initialize_tcompress cast.c:61:7: warning: implicit declaration of function 'tbuild_hash'; did you mean 'build_hash'? [-Wimplicit-function-declaration] if (!tbuild_hash(compress_hash_table, hashfp, -1)) { /* read all bytes until end */ ^~~~~~~~~~~ build_hash cast.c: At top level: cast.c:69:1: warning: return type defaults to 'int' [-Wimplicit-int] uninitialize_tcompress() ^~~~~~~~~~~~~~~~~~~~~~ cast.c: In function 'uninitialize_tcompress': cast.c:74:2: warning: implicit declaration of function 'uninitialize_common'; did you mean 'uninitialize_tcompress'? [-Wimplicit-function-declaration] uninitialize_common(); ^~~~~~~~~~~~~~~~~~~ uninitialize_tcompress cast.c: In function 'tcompressible': cast.c:121:12: warning: implicit declaration of function 'ttest_binary' [-Wimplicit-function-declaration] if(ttest_binary(buffer, num_read)) { ^~~~~~~~~~~~ cast.c:126:12: warning: implicit declaration of function 'ttest_uuencode' [-Wimplicit-function-declaration] if(ttest_uuencode(buffer, num_read)) { ^~~~~~~~~~~~~~ cast.c:131:12: warning: implicit declaration of function 'ttest_postscript' [-Wimplicit-function-declaration] if(ttest_postscript(buffer, num_read)) { ^~~~~~~~~~~~~~~~ cast.c: At top level: cast.c:140:1: warning: return type defaults to 'int' [-Wimplicit-int] tcompressible_file(name, flags) ^~~~~~~~~~~~~~~~~~ cast.c:160:1: warning: return type defaults to 'int' [-Wimplicit-int] tcompressible_fp(fp, flags) ^~~~~~~~~~~~~~~~ trecursive.c: In function 'tcompress_directory': cast.c:730:18: warning: implicit declaration of function 'tcompress_file'; did you mean 'tcompressible'? [-Wimplicit-function-declaration] #define FUNCTION tcompress_file ^ trecursive.c:109:3: note: in expansion of macro 'FUNCTION' FUNCTION(name, outname, flags); ^~~~~~~~ cast.c: At top level: cast.c:735:1: warning: return type defaults to 'int' [-Wimplicit-int] tcompress_file(name, outname, flags) ^~~~~~~~~~~~~~ gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o uncast.o uncast.c uncast.c:39:1: warning: return type defaults to 'int' [-Wimplicit-int] initialize_tuncompress(string_file, freq_file, flags) ^~~~~~~~~~~~~~~~~~~~~~ uncast.c: In function 'initialize_tuncompress': uncast.c:45:7: warning: implicit declaration of function 'initialize_common'; did you mean 'initialize_tuncompress'? [-Wimplicit-function-declaration] if (!initialize_common(freq_file, flags)) return 0; ^~~~~~~~~~~~~~~~~ initialize_tuncompress uncast.c: At top level: uncast.c:66:1: warning: return type defaults to 'int' [-Wimplicit-int] uninitialize_tuncompress() ^~~~~~~~~~~~~~~~~~~~~~~~ uncast.c: In function 'uninitialize_tuncompress': uncast.c:70:2: warning: implicit declaration of function 'uninitialize_common'; did you mean 'uninitialize_tuncompress'? [-Wimplicit-function-declaration] uninitialize_common(); ^~~~~~~~~~~~~~~~~~~ uninitialize_tuncompress uncast.c: At top level: uncast.c:128:1: warning: return type defaults to 'int' [-Wimplicit-int] tuncompressible_fp(fp) ^~~~~~~~~~~~~~~~~~ uncast.c: In function 'tuncompress': uncast.c:371:36: warning: implicit declaration of function 'myfpcopy'; did you mean 'bcopy'? [-Wimplicit-function-declaration] if (outfp != NULL) outlen += myfpcopy(outfp, compress_string_table[dindex]); ^~~~~~~~ bcopy uncast.c:373:18: warning: implicit declaration of function 'mystrcpy'; did you mean 'strcpy'? [-Wimplicit-function-declaration] outlen += mystrcpy(outbuf+outlen, compress_string_table[dindex]); ^~~~~~~~ strcpy trecursive.c: In function 'tuncompress_directory': uncast.c:520:18: warning: implicit declaration of function 'tuncompress_file'; did you mean 'tuncompressible'? [-Wimplicit-function-declaration] #define FUNCTION tuncompress_file ^ trecursive.c:109:3: note: in expansion of macro 'FUNCTION' FUNCTION(name, outname, flags); ^~~~~~~~ gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o tsimpletest.o tsimpletest.c tsimpletest.c:32:1: warning: return type defaults to 'int' [-Wimplicit-int] ttest_binary(buffer, length) ^~~~~~~~~~~~ tsimpletest.c: In function 'ttest_binary': tsimpletest.c:42:8: warning: implicit declaration of function 'isgraph' [-Wimplicit-function-declaration] if (!(isgraph(*buffer) || isspace(*buffer))) --permitted_errors; ^~~~~~~ tsimpletest.c:42:28: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration] if (!(isgraph(*buffer) || isspace(*buffer))) --permitted_errors; ^~~~~~~ tsimpletest.c: At top level: tsimpletest.c:51:1: warning: return type defaults to 'int' [-Wimplicit-int] ttest_uuencode(buffer, length) ^~~~~~~~~~~~~~ tsimpletest.c: In function 'ttest_uuencode': tsimpletest.c:64:13: warning: implicit declaration of function 'tmemlook'; did you mean 'memmove'? [-Wimplicit-function-declaration] i = tmemlook("\nbegin", buffer, length); ^~~~~~~~ memmove gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o tmemlook.o tmemlook.c gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o tbuild.o tbuild.c tbuild.c: In function 'compute_dictionary': tbuild.c:30:1: warning: type of 'SPECIAL_WORDS' defaults to 'int' [-Wimplicit-int] compute_dictionary(THRESHOLD, FILEBLOCKSIZE, SPECIAL_WORDS, comp_dir) ^~~~~~~~~~~~~~~~~~ tbuild.c:229:7: warning: implicit declaration of function 'dump_small_hash'; did you mean 'get_small_hash'? [-Wimplicit-function-declaration] if (!dump_small_hash(dict_hash_table, hash_file)) return -1; ^~~~~~~~~~~~~~~ get_small_hash tbuild.c:304:2: warning: implicit declaration of function 'pad_hash_file' [-Wimplicit-function-declaration] pad_hash_file(hash_file, FILEBLOCKSIZE); ^~~~~~~~~~~~~ tbuild.c:305:2: warning: implicit declaration of function 'pad_string_file' [-Wimplicit-function-declaration] pad_string_file(string_file, FILEBLOCKSIZE); ^~~~~~~~~~~~~~~ /usr/bin/ar rcv ../lib/libcast.a hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o a - hash.o a - string.o a - misc.o a - quick.o a - cast.o a - uncast.o a - tsimpletest.o a - tmemlook.o a - tbuild.o ranlib ../lib/libcast.a gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o main_tbuild.o main_tbuild.c main_tbuild.c:17:1: warning: return type defaults to 'int' [-Wimplicit-int] usage(progname) ^~~~~ gcc -o tbuild hash.o string.o misc.o tbuild.o main_tbuild.o gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o main_cast.o main_cast.c main_cast.c:15:1: warning: return type defaults to 'int' [-Wimplicit-int] usage(progname) ^~~~~ main_cast.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main_cast.c: In function 'main': main_cast.c:125:7: warning: implicit declaration of function 'initialize_tcompress' [-Wimplicit-function-declaration] if (!initialize_tcompress(hash_file, freq_file, FLAGS)) exit(2); ^~~~~~~~~~~~~~~~~~~~ main_cast.c:133:5: warning: implicit declaration of function 'tcompress_file'; did you mean 'tmpfile'? [-Wimplicit-function-declaration] tcompress_file(name, outname, FLAGS); ^~~~~~~~~~~~~~ tmpfile main_cast.c:136:8: warning: implicit declaration of function 'tcompress' [-Wimplicit-function-declaration] else tcompress(stdin, -1, stdout, -1, FLAGS); ^~~~~~~~~ gcc -o cast main_cast.o hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o gcc -I../index -I../agrep -I../libtemplate/include -O2 -c -o main_uncast.o main_uncast.c main_uncast.c:15:1: warning: return type defaults to 'int' [-Wimplicit-int] usage(progname) ^~~~~ main_uncast.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main_uncast.c: In function 'main': main_uncast.c:129:7: warning: implicit declaration of function 'initialize_tuncompress' [-Wimplicit-function-declaration] if (!initialize_tuncompress(string_file, freq_file, FLAGS)) exit(2); ^~~~~~~~~~~~~~~~~~~~~~ main_uncast.c:137:5: warning: implicit declaration of function 'tuncompress_file'; did you mean '__noprofile'? [-Wimplicit-function-declaration] tuncompress_file(name, outname, FLAGS); ^~~~~~~~~~~~~~~~ __noprofile main_uncast.c:142:9: warning: implicit declaration of function 'tuncompressible' [-Wimplicit-function-declaration] if (!tuncompressible(buffer, num_read)) { ^~~~~~~~~~~~~~~ main_uncast.c:146:4: warning: implicit declaration of function 'tuncompress' [-Wimplicit-function-declaration] tuncompress(stdin, -1, stdout, -1, FLAGS); ^~~~~~~~~~~ gcc -o uncast main_uncast.o hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o gmake[1]: Leaving directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/compress' gmake[1]: Entering directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/agrep' gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o follow.o follow.c gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o asearch.o asearch.c asearch.c: In function 'asearch': asearch.c:49:10: warning: implicit declaration of function 'asearch0'; did you mean 'asearch'? [-Wimplicit-function-declaration] return asearch0(old_D_pat, text, D); ^~~~~~~~ asearch asearch.c:71:15: warning: implicit declaration of function 'fill_buf'; did you mean 'free_buf'? [-Wimplicit-function-declaration] while ((l = fill_buf(text, buffer + Max_record, BlockSize)) > 0) ^~~~~~~~ free_buf asearch.c:186:18: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^~~~~~ gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o asearch1.o asearch1.c asearch1.c: In function 'asearch1': asearch1.c:62:22: warning: implicit declaration of function 'fill_buf'; did you mean 'free_buf'? [-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Max_record, BlockSize)) > 0) ^~~~~~~~ free_buf asearch1.c:158:18: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} ^~~~~~ gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o agrep.o agrep.c agrep.c: In function 'reinit_value': agrep.c:179:24: warning: implicit declaration of function 'destroy_tree' [-Wimplicit-function-declaration] if (AComplexBoolean) destroy_tree(AParse); ^~~~~~~~~~~~ agrep.c: In function 'compute_next': agrep.c:331:7: warning: implicit declaration of function 'exponen'; did you mean 'popen'? [-Wimplicit-function-declaration] k = exponen(M); ^~~~~~~ popen agrep.c: In function 're1': agrep.c:427:22: warning: implicit declaration of function 'fill_buf'; did you mean 'free_buf'? [-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Maxline, BlockSize)) > 0) ^~~~~~~~ free_buf agrep.c:518:17: warning: implicit declaration of function 'r_output' [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^~~~~~~~ agrep.c: In function 'agrep_init': agrep.c:2467:23: warning: implicit declaration of function 'agrep_usage'; did you mean 'agrep_init'? [-Wimplicit-function-declaration] if (argc < 2) return agrep_usage(); ^~~~~~~~~~~ agrep_init agrep.c:2803:9: warning: implicit declaration of function 'prepf'; did you mean 'pread'? [-Wimplicit-function-declaration] if (prepf(multifd, NULL, 0) <= -1) { ^~~~~ pread agrep.c:3030:2: warning: implicit declaration of function 'initialize_common' [-Wimplicit-function-declaration] initialize_common(FREQ_FILE, 0); /* no error msgs */ ^~~~~~~~~~~~~~~~~ agrep.c:3084:38: warning: implicit declaration of function 'check_file'; did you mean 'flockfile'? [-Wimplicit-function-declaration] if (!glimpse_call && ((filetype = check_file(*argv)) == NOSUCHFILE) && !PRINTNONEXISTENTFILE) { ^~~~~~~~~~ flockfile agrep.c: In function 'agrep_search': agrep.c:3292:13: warning: implicit declaration of function 'checksg' [-Wimplicit-function-declaration] if (-1 == checksg(Pattern, D, 1)) return -1; /* check if the pattern is simple */ ^~~~~~~ agrep.c:3296:14: warning: implicit declaration of function 'preprocess' [-Wimplicit-function-declaration] if (-1 == preprocess(D_pattern, Pattern)) return -1; ^~~~~~~~~~ agrep.c:3299:25: warning: implicit declaration of function 'maskgen' [-Wimplicit-function-declaration] if(!AParse && ((M = maskgen(Pattern, D)) == -1)) return -1; ^~~~~~~ agrep.c:3306:24: warning: implicit declaration of function 'quick_tcompress' [-Wimplicit-function-declaration] if ((tc_D_length = quick_tcompress(FREQ_FILE,HASH_FILE,D_pattern,D_length,tc_D_pattern,MaxDelimit*2,TC_EASYSEARCH)) <= 0) { ^~~~~~~~~~~~~~~ agrep.c:3335:35: warning: implicit declaration of function 'exec'; did you mean 'exect'? [-Wimplicit-function-declaration] if (agrep_initialfd == -1) ret = exec(execfd, NULL); ^~~~ exect agrep.c:3336:28: warning: implicit declaration of function 'recursive' [-Wimplicit-function-declaration] else if(RECURSIVE) ret = (recursive(Numfiles, Textfiles)); ^~~~~~~~~ agrep.c: In function 'exec': agrep.c:3445:13: warning: implicit declaration of function 'compat'; did you mean 'crypt'? [-Wimplicit-function-declaration] if ((-1 == compat())) return -1; /* check compatibility between options */ ^~~~~~ crypt agrep.c:3458:30: warning: implicit declaration of function 'mgrep'; did you mean 'memagrep'? [-Wimplicit-function-declaration] if(PAT_FILE || PAT_BUFFER) mgrep(fd, AParse); ^~~~~ memagrep agrep.c:3460:20: warning: implicit declaration of function 'sgrep'; did you mean 'strsep'? [-Wimplicit-function-declaration] if(SGREP) ret = sgrep(OldPattern, strlen(OldPattern), fd, D, 0); ^~~~~ strsep agrep.c:3461:20: warning: implicit declaration of function 'bitap' [-Wimplicit-function-declaration] else ret = bitap(old_D_pat, Pattern, fd, M, D); ^~~~~ agrep.c:3521:9: warning: implicit declaration of function 'tuncompressible_filename' [-Wimplicit-function-declaration] if (!tuncompressible_filename(file_list[i], strlen(file_list[i]))) TCOMPRESSED = OFF; ^~~~~~~~~~~~~~~~~~~~~~~~ agrep.c:3702:16: warning: implicit declaration of function 'file_out'; did you mean 'fileno'? [-Wimplicit-function-declaration] if (-1 == file_out(file_list[i])) { ^~~~~~~~ fileno gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o bitap.o bitap.c bitap.c: In function 'bitap': bitap.c:72:11: warning: implicit declaration of function 're' [-Wimplicit-function-declaration] return re(fd, M, D); /* SUN: need to find a even point */ ^~ bitap.c:75:11: warning: implicit declaration of function 're1'; did you mean 'read'? [-Wimplicit-function-declaration] return re1(fd, M, D); ^~~ read bitap.c:80:10: warning: implicit declaration of function 'asearch1'; did you mean 'bsearch'? [-Wimplicit-function-declaration] return asearch1(old_D_pat, fd, D); ^~~~~~~~ bsearch bitap.c:84:10: warning: implicit declaration of function 'asearch'; did you mean 'bsearch'? [-Wimplicit-function-declaration] return asearch(old_D_pat, fd, D); ^~~~~~~ bsearch bitap.c:106:22: warning: implicit declaration of function 'fill_buf'; did you mean 'free_buf'? [-Wimplicit-function-declaration] while ((num_read = fill_buf(fd, buffer + Max_record, BlockSize)) > 0) ^~~~~~~~ free_buf bitap.c:197:18: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, print_end, j - (NumBufferFills - 1))) { free_buf(fd, buffer); return -1;} ^~~~~~ bitap.c: At top level: bitap.c:500:1: warning: return type defaults to 'int' [-Wimplicit-int] fill_buf(fd, buf, record_size) ^~~~~~~~ gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o checkfile.o checkfile.c checkfile.c: In function 'check_file': checkfile.c:49:6: warning: implicit declaration of function 'my_stat'; did you mean 'lstat'? [-Wimplicit-function-declaration] if (my_stat(fname, &buf) != 0) { ^~~~~~~ lstat gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o compat.o compat.c compat.c:9:8: warning: type defaults to 'int' in declaration of 'FILEOUT' [-Wimplicit-int] extern FILEOUT; ^~~~~~~ compat.c:10:8: warning: type defaults to 'int' in declaration of 'REGEX' [-Wimplicit-int] extern REGEX; ^~~~~ compat.c:11:8: warning: type defaults to 'int' in declaration of 'DELIMITER' [-Wimplicit-int] extern DELIMITER; ^~~~~~~~~ compat.c:12:8: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] extern WHOLELINE; ^~~~~~~~~ compat.c:13:8: warning: type defaults to 'int' in declaration of 'LINENUM' [-Wimplicit-int] extern LINENUM; ^~~~~~~ compat.c:14:8: warning: type defaults to 'int' in declaration of 'I' [-Wimplicit-int] extern I, S, DD; ^ compat.c:14:11: warning: type defaults to 'int' in declaration of 'S' [-Wimplicit-int] extern I, S, DD; ^ compat.c:14:14: warning: type defaults to 'int' in declaration of 'DD' [-Wimplicit-int] extern I, S, DD; ^~ compat.c:15:8: warning: type defaults to 'int' in declaration of 'JUMP' [-Wimplicit-int] extern JUMP; ^~~~ gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o maskgen.o maskgen.c maskgen.c:6:8: warning: type defaults to 'int' in declaration of 'Mask' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ^~~~ maskgen.c:6:16: warning: type defaults to 'int' in declaration of 'Bit' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ^~~ maskgen.c:6:23: warning: type defaults to 'int' in declaration of 'Init' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ^~~~ maskgen.c:6:31: warning: type defaults to 'int' in declaration of 'NO_ERR_MASK' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ^~~~~~~~~~~ gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o parse.o parse.c In file included from parse.c:7:0: parse.c: In function 'mk_leaf': re.h:75:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(2);\ ^ parse.c:45:2: note: in expansion of macro 'new_node' new_node(Re_Lit, l, l); ^~~~~~~~ re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:45:2: note: in expansion of macro 'new_node' new_node(Re_Lit, l, l); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:45:2: note: in expansion of macro 'new_node' new_node(Re_Lit, l, l); ^~~~~~~~ re.h:77:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] memset((l), '\0', sizeof(*(x)));\ ^ parse.c:45:2: note: in expansion of macro 'new_node' new_node(Re_Lit, l, l); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:45:2: note: in expansion of macro 'new_node' new_node(Re_Lit, l, l); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:45:2: note: in expansion of macro 'new_node' new_node(Re_Lit, l, l); ^~~~~~~~ re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:46:2: note: in expansion of macro 'new_node' new_node(Re_node, node, node); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:46:2: note: in expansion of macro 'new_node' new_node(Re_node, node, node); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:46:2: note: in expansion of macro 'new_node' new_node(Re_node, node, node); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:46:2: note: in expansion of macro 'new_node' new_node(Re_node, node, node); ^~~~~~~~ parse.c:48:18: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] if (l != NULL) free(l); ^~~~ parse.c:48:18: warning: incompatible implicit declaration of built-in function 'free' parse.c:48:18: note: include '' or provide a declaration of 'free' parse.c:49:21: warning: incompatible implicit declaration of built-in function 'free' if (node != NULL) free(node); ^~~~ parse.c:49:21: note: include '' or provide a declaration of 'free' In file included from parse.c:7:0: parse.c: In function 'parse_cset': re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:76:2: note: in expansion of macro 'new_node' new_node(Ch_Set, curr_ptr, curr_ptr); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:76:2: note: in expansion of macro 'new_node' new_node(Ch_Set, curr_ptr, curr_ptr); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:76:2: note: in expansion of macro 'new_node' new_node(Ch_Set, curr_ptr, curr_ptr); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:76:2: note: in expansion of macro 'new_node' new_node(Ch_Set, curr_ptr, curr_ptr); ^~~~~~~~ re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:79:3: note: in expansion of macro 'new_node' new_node(Ch_Range, range, range); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:79:3: note: in expansion of macro 'new_node' new_node(Ch_Range, range, range); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:79:3: note: in expansion of macro 'new_node' new_node(Ch_Range, range, range); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:79:3: note: in expansion of macro 'new_node' new_node(Ch_Range, range, range); ^~~~~~~~ parse.c:83:4: warning: incompatible implicit declaration of built-in function 'free' free(range); ^~~~ parse.c:83:4: note: include '' or provide a declaration of 'free' parse.c:89:4: warning: incompatible implicit declaration of built-in function 'free' free(range); ^~~~ parse.c:89:4: note: include '' or provide a declaration of 'free' parse.c:96:5: warning: incompatible implicit declaration of built-in function 'free' free(range); ^~~~ parse.c:96:5: note: include '' or provide a declaration of 'free' In file included from parse.c:7:0: re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:104:3: note: in expansion of macro 'new_node' new_node(Ch_Set, curr_ptr, curr_ptr); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:104:3: note: in expansion of macro 'new_node' new_node(Ch_Set, curr_ptr, curr_ptr); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:104:3: note: in expansion of macro 'new_node' new_node(Ch_Set, curr_ptr, curr_ptr); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:104:3: note: in expansion of macro 'new_node' new_node(Ch_Set, curr_ptr, curr_ptr); ^~~~~~~~ parse.c:112:22: warning: incompatible implicit declaration of built-in function 'free' if (range != NULL) free(range); ^~~~ parse.c:112:22: note: include '' or provide a declaration of 'free' parse.c:113:3: warning: incompatible implicit declaration of built-in function 'free' free(curr_ptr); ^~~~ parse.c:113:3: note: include '' or provide a declaration of 'free' In file included from parse.c:7:0: parse.c: In function 'parse_wildcard': re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:128:2: note: in expansion of macro 'new_node' new_node(Ch_Range, r, r); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:128:2: note: in expansion of macro 'new_node' new_node(Ch_Range, r, r); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:128:2: note: in expansion of macro 'new_node' new_node(Ch_Range, r, r); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:128:2: note: in expansion of macro 'new_node' new_node(Ch_Range, r, r); ^~~~~~~~ re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:131:2: note: in expansion of macro 'new_node' new_node(Ch_Set, s, s); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:131:2: note: in expansion of macro 'new_node' new_node(Ch_Set, s, s); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:131:2: note: in expansion of macro 'new_node' new_node(Ch_Set, s, s); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:131:2: note: in expansion of macro 'new_node' new_node(Ch_Set, s, s); ^~~~~~~~ parse.c: In function 'free_tok': parse.c:163:3: warning: incompatible implicit declaration of built-in function 'free' free(next_token); ^~~~ parse.c:163:3: note: include '' or provide a declaration of 'free' In file included from parse.c:7:0: parse.c: In function 'get_token': re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:181:2: note: in expansion of macro 'new_node' new_node(Tok_node, rn, rn); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:181:2: note: in expansion of macro 'new_node' new_node(Tok_node, rn, rn); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:181:2: note: in expansion of macro 'new_node' new_node(Tok_node, rn, rn); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:181:2: note: in expansion of macro 'new_node' new_node(Tok_node, rn, rn); ^~~~~~~~ parse.c: In function 'cat2': re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:245:2: note: in expansion of macro 'new_node' new_node(Re_node, r, r); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:245:2: note: in expansion of macro 'new_node' new_node(Re_node, r, r); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:245:2: note: in expansion of macro 'new_node' new_node(Re_node, r, r); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:245:2: note: in expansion of macro 'new_node' new_node(Re_node, r, r); ^~~~~~~~ parse.c:253:3: warning: incompatible implicit declaration of built-in function 'free' free(r); ^~~~ parse.c:253:3: note: include '' or provide a declaration of 'free' In file included from parse.c:7:0: parse.c: In function 'wrap': re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:277:2: note: in expansion of macro 'new_node' new_node(Re_node, r, r); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:277:2: note: in expansion of macro 'new_node' new_node(Re_node, r, r); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:277:2: note: in expansion of macro 'new_node' new_node(Re_node, r, r); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:277:2: note: in expansion of macro 'new_node' new_node(Re_node, r, r); ^~~~~~~~ parse.c:283:3: warning: incompatible implicit declaration of built-in function 'free' free(r); ^~~~ parse.c:283:3: note: include '' or provide a declaration of 'free' In file included from parse.c:7:0: parse.c: In function 'mk_alt': re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ parse.c:303:2: note: in expansion of macro 'new_node' new_node(Re_node, node, node); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ parse.c:303:2: note: in expansion of macro 'new_node' new_node(Re_node, node, node); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:303:2: note: in expansion of macro 'new_node' new_node(Re_node, node, node); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:303:2: note: in expansion of macro 'new_node' new_node(Re_node, node, node); ^~~~~~~~ parse.c: In function 'parse_re': parse.c:339:5: warning: incompatible implicit declaration of built-in function 'free' free(top); ^~~~ parse.c:339:5: note: include '' or provide a declaration of 'free' parse.c:355:5: warning: incompatible implicit declaration of built-in function 'free' free(ret); ^~~~ parse.c:355:5: note: include '' or provide a declaration of 'free' parse.c:360:5: warning: incompatible implicit declaration of built-in function 'free' free(ret); ^~~~ parse.c:360:5: note: include '' or provide a declaration of 'free' parse.c:370:6: warning: incompatible implicit declaration of built-in function 'free' free(ret); ^~~~ parse.c:370:6: note: include '' or provide a declaration of 'free' parse.c:397:5: warning: incompatible implicit declaration of built-in function 'free' free(ret); ^~~~ parse.c:397:5: note: include '' or provide a declaration of 'free' parse.c:402:5: warning: incompatible implicit declaration of built-in function 'free' free(ret); ^~~~ parse.c:402:5: note: include '' or provide a declaration of 'free' parse.c:413:4: warning: incompatible implicit declaration of built-in function 'free' free(next_token); ^~~~ parse.c:413:4: note: include '' or provide a declaration of 'free' parse.c: In function 'parse': parse.c:451:2: warning: incompatible implicit declaration of built-in function 'free' free(top); ^~~~ parse.c:451:2: note: include '' or provide a declaration of 'free' gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o checksg.o checksg.c gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o preprocess.o preprocess.c preprocess.c: In function 'preprocess': preprocess.c:69:15: warning: implicit declaration of function 'asplit_pattern' [-Wimplicit-function-declaration] if (((ret1 = asplit_pattern(Pattern, m, aterminals, &anum_terminals, &AParse)) <= 0) || /* can change the pattern if simple boolean with {} */ ^~~~~~~~~~~~~~ preprocess.c:70:15: warning: implicit declaration of function 'asplit_terminal' [-Wimplicit-function-declaration] ((ret2 = asplit_terminal(0, anum_terminals, multibuf, &multilen)) <= 0) || ^~~~~~~~~~~~~~~ preprocess.c:72:44: warning: implicit declaration of function 'destroy_tree' [-Wimplicit-function-declaration] if (AComplexBoolean && (AParse != NULL)) destroy_tree(AParse); /* so that direct exec invocations don't use AParse by mistake! */ ^~~~~~~~~~~~ preprocess.c:99:23: warning: implicit declaration of function 'quick_tcompress' [-Wimplicit-function-declaration] if ((tc_D_length = quick_tcompress(FREQ_FILE, HASH_FILE, D_pattern, D_length, tc_D_pattern, MaxDelimit*2, TC_EASYSEARCH)) <= 0) { ^~~~~~~~~~~~~~~ preprocess.c:324:13: warning: implicit declaration of function 'init'; did you mean 'rint'? [-Wimplicit-function-declaration] num_pos = init(r_pat, table); ^~~~ rint gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o delim.o delim.c gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o asplit.o asplit.c In file included from asplit.c:5:0: putils.c: In function 'print_tree': putils.c:69:1: warning: type of 'level' defaults to 'int' [-Wimplicit-int] print_tree(t, level) ^~~~~~~~~~ gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o recursive.o recursive.c recursive.c: In function 'recursive': recursive.c:67:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(name_buf, argv[i]); ^~~~~~ recursive.c:67:3: warning: incompatible implicit declaration of built-in function 'strcpy' recursive.c:67:3: note: include '' or provide a declaration of 'strcpy' recursive.c:71:15: warning: implicit declaration of function 'exec' [-Wimplicit-function-declaration] if ((ret = exec(3, file_list)) == -1) return -1; ^~~~ recursive.c:74:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(file_list[j]); ^~~~ recursive.c:74:5: warning: incompatible implicit declaration of built-in function 'free' recursive.c:74:5: note: include '' or provide a declaration of 'free' recursive.c: In function 'treewalk': recursive.c:114:5: warning: implicit declaration of function 'my_lstat'; did you mean 'lstat'? [-Wimplicit-function-declaration] if(my_lstat(name, &stbuf) == -1) { ^~~~~~~~ lstat recursive.c:125:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(file_list[fdx++], name); ^~~~~~ recursive.c:125:3: note: include '' or provide a declaration of 'strcpy' recursive.c:130:30: warning: incompatible implicit declaration of built-in function 'free' for(i=0; i' or provide a declaration of 'free' recursive.c: In function 'directory': recursive.c:147:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] nbp = name + strlen(name); ^~~~~~ recursive.c:147:15: warning: incompatible implicit declaration of built-in function 'strlen' recursive.c:147:15: note: include '' or provide a declaration of 'strlen' recursive.c:160:32: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (dp->d_name[0] == '\0' || strcmp(dp->d_name, ".") == 0 || strcmp(dp->d_name, "..")==0) ^~~~~~ recursive.c:165:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(nbp, dp->d_name); ^~~~~~ recursive.c:165:3: note: include '' or provide a declaration of 'strcpy' gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o sgrep.o sgrep.c sgrep.c:52:8: warning: type defaults to 'int' in declaration of 'WORDBOUND' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~~~ sgrep.c:52:19: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~~~ sgrep.c:52:30: warning: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~ sgrep.c: In function 'sgrep': sgrep.c:174:1: warning: type of 'samepattern' defaults to 'int' [-Wimplicit-int] sgrep(in_pat, in_m, fd, D, samepattern) ^~~~~ sgrep.c:243:22: warning: implicit declaration of function 'fill_buf'; did you mean 'free_buf'? [-Wimplicit-function-declaration] while( (num_read = fill_buf(fd, text+offset, 2*BlockSize)) > 0) ^~~~~~~~ free_buf sgrep.c:296:16: warning: implicit declaration of function 'monkey'; did you mean 'setkey'? [-Wimplicit-function-declaration] if (-1 == monkey(pat, m, text+start, text+end, oldpat, oldm)) { ^~~~~~ setkey sgrep.c:302:16: warning: implicit declaration of function 'bm'; did you mean 'bcmp'? [-Wimplicit-function-declaration] if (-1 == bm(pat, m, text+start, text+end, oldpat, oldm)) { ^~ bcmp sgrep.c:310:16: warning: implicit declaration of function 'monkey4' [-Wimplicit-function-declaration] if (-1 == monkey4( pat, m, text+start, text+end, D , oldpat, oldm )) { ^~~~~~~ sgrep.c:317:17: warning: implicit declaration of function 'a_monkey' [-Wimplicit-function-declaration] if (-1 == a_monkey(pat, m, text+start, text+end, D, oldpat, oldm)) { ^~~~~~~~ sgrep.c:323:17: warning: implicit declaration of function 'agrep'; did you mean 'sgrep'? [-Wimplicit-function-declaration] if (-1 == agrep(pat, m, text+start, text+end, D, oldpat, oldm)) { ^~~~~ sgrep sgrep.c: In function 'agrep': sgrep.c:1157:16: warning: implicit declaration of function 's_output' [-Wimplicit-function-declaration] if (-1 == s_output(text, ¤tpos, textbegin, textend, &lastout, pat, M, oldpat, oldM)) return -1; ^~~~~~~~ sgrep.c: In function 'prep_bm': sgrep.c:1478:10: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int] register m; ^ sgrep.c: In function 'a_monkey': sgrep.c:1871:14: warning: implicit declaration of function 'verify'; did you mean 'erfl'? [-Wimplicit-function-declaration] if((pos = verify(m, 2*m+D, D, pat, oldtext)) > 0) { ^~~~~~ erfl sgrep.c: In function 'prep4': sgrep.c:2552:10: warning: implicit declaration of function 'blog'; did you mean 'log'? [-Wimplicit-function-declaration] BSize = blog(4, m); ^~~~ log gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o newmgrep.o newmgrep.c newmgrep.c:52:8: warning: type defaults to 'int' in declaration of 'COUNT' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ^~~~~ newmgrep.c:52:15: warning: type defaults to 'int' in declaration of 'FNAME' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ^~~~~ newmgrep.c:52:22: warning: type defaults to 'int' in declaration of 'SILENT' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ^~~~~~ newmgrep.c:52:30: warning: type defaults to 'int' in declaration of 'FILENAMEONLY' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ^~~~~~~~~~~~ newmgrep.c:52:44: warning: type defaults to 'int' in declaration of 'prev_num_of_matched' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ^~~~~~~~~~~~~~~~~~~ newmgrep.c:52:65: warning: type defaults to 'int' in declaration of 'num_of_matched' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ^~~~~~~~~~~~~~ newmgrep.c:52:81: warning: type defaults to 'int' in declaration of 'PRINTFILETIME' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ^~~~~~~~~~~~~ newmgrep.c:53:8: warning: type defaults to 'int' in declaration of 'INVERSE' [-Wimplicit-int] extern INVERSE, OUTTAIL; ^~~~~~~ newmgrep.c:53:17: warning: type defaults to 'int' in declaration of 'OUTTAIL' [-Wimplicit-int] extern INVERSE, OUTTAIL; ^~~~~~~ newmgrep.c:54:8: warning: type defaults to 'int' in declaration of 'WORDBOUND' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~~~ newmgrep.c:54:19: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~~~ newmgrep.c:54:30: warning: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~ newmgrep.c:59:8: warning: type defaults to 'int' in declaration of 'total_line' [-Wimplicit-int] extern total_line; ^~~~~~~~~~ newmgrep.c:60:8: warning: type defaults to 'int' in declaration of 'agrep_initialfd' [-Wimplicit-int] extern agrep_initialfd; ^~~~~~~~~~~~~~~ newmgrep.c: In function 'prepf': newmgrep.c:197:21: warning: implicit declaration of function 'fill_buf'; did you mean 'free_buf'? [-Wimplicit-function-declaration] while((num_read = fill_buf(mfp, buf+length, 2*BlockSize)) > 0) { ^~~~~~~~ free_buf newmgrep.c: In function 'mgrep': newmgrep.c:487:27: warning: implicit declaration of function 'm_short'; did you mean 'qsort'? [-Wimplicit-function-declaration] if(SHORT) { if (-1 == m_short(text, start, end)) {free_buf(fd, text); return -1;}} ^~~~~~~ qsort newmgrep.c:488:27: warning: implicit declaration of function 'monkey1' [-Wimplicit-function-declaration] else { if (-1 == monkey1(text, start, end)) {free_buf(fd, text); return -1;}} ^~~~~~~ newmgrep.c: In function 'monkey1': newmgrep.c:1055:61: warning: implicit declaration of function 'eval_tree' [-Wimplicit-function-declaration] if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) { ^~~~~~~~~ gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o utilities.o utilities.c In file included from utilities.c:7:0: utilities.c: In function 'Push': re.h:75:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(2);\ ^ utilities.c:21:2: note: in expansion of macro 'new_node' new_node(Stack, node, node); ^~~~~~~~ re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ utilities.c:21:2: note: in expansion of macro 'new_node' new_node(Stack, node, node); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ utilities.c:21:2: note: in expansion of macro 'new_node' new_node(Stack, node, node); ^~~~~~~~ re.h:77:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:21:2: note: in expansion of macro 'new_node' new_node(Stack, node, node); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:21:2: note: in expansion of macro 'new_node' new_node(Stack, node, node); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:21:2: note: in expansion of macro 'new_node' new_node(Stack, node, node); ^~~~~~~~ utilities.c: In function 'Pop': utilities.c:42:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(temp); ^~~~ utilities.c:42:3: warning: incompatible implicit declaration of built-in function 'free' utilities.c:42:3: note: include '' or provide a declaration of 'free' In file included from utilities.c:7:0: utilities.c: In function 'pset_union': re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ utilities.c:89:3: note: in expansion of macro 'new_node' new_node(Pset, new, new); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ utilities.c:89:3: note: in expansion of macro 'new_node' new_node(Pset, new, new); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:89:3: note: in expansion of macro 'new_node' new_node(Pset, new, new); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:89:3: note: in expansion of macro 'new_node' new_node(Pset, new, new); ^~~~~~~~ re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ utilities.c:102:4: note: in expansion of macro 'new_node' new_node(Pset, new, new); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ utilities.c:102:4: note: in expansion of macro 'new_node' new_node(Pset, new, new); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:102:4: note: in expansion of macro 'new_node' new_node(Pset, new, new); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:102:4: note: in expansion of macro 'new_node' new_node(Pset, new, new); ^~~~~~~~ utilities.c: In function 'create_pos': re.h:75:3: warning: incompatible implicit declaration of built-in function 'exit' exit(2);\ ^ utilities.c:124:2: note: in expansion of macro 'new_node' new_node(Pset, x, x); ^~~~~~~~ re.h:75:3: note: include '' or provide a declaration of 'exit' exit(2);\ ^ utilities.c:124:2: note: in expansion of macro 'new_node' new_node(Pset, x, x); ^~~~~~~~ re.h:77:2: warning: incompatible implicit declaration of built-in function 'memset' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:124:2: note: in expansion of macro 'new_node' new_node(Pset, x, x); ^~~~~~~~ re.h:77:2: note: include '' or provide a declaration of 'memset' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:124:2: note: in expansion of macro 'new_node' new_node(Pset, x, x); ^~~~~~~~ utilities.c: In function 'word_exists': utilities.c:168:9: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (!strncmp(line, word, wordlen)) { ^~~~~~~ gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o dummyfilters.o dummyfilters.c /usr/bin/ar rcv ../lib/libagrep.a follow.o asearch.o asearch1.o agrep.o bitap.o checkfile.o compat.o maskgen.o parse.o checksg.o preprocess.o delim.o asplit.o recursive.o sgrep.o newmgrep.o utilities.o dummyfilters.o a - follow.o a - asearch.o a - asearch1.o a - agrep.o a - bitap.o a - checkfile.o a - compat.o a - maskgen.o a - parse.o a - checksg.o a - preprocess.o a - delim.o a - asplit.o a - recursive.o a - sgrep.o a - newmgrep.o a - utilities.o a - dummyfilters.o ranlib ../lib/libagrep.a gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -c -o main.o main.c In file included from main.c:15:0: dummysyscalls.c: In function 'my_lstat': dummysyscalls.c:25:9: warning: implicit declaration of function 'lstat'; did you mean 'my_lstat'? [-Wimplicit-function-declaration] return lstat(name, buf); ^~~~~ my_lstat dummysyscalls.c: In function 'my_stat': dummysyscalls.c:33:9: warning: implicit declaration of function 'stat'; did you mean 'strcat'? [-Wimplicit-function-declaration] return stat(name, buf); ^~~~ strcat main.c: In function 'main': main.c:29:8: warning: implicit declaration of function 'fileagrep' [-Wimplicit-function-declaration] ret = fileagrep(argc, argv, 0, stdout); ^~~~~~~~~ gcc -o agrep follow.o asearch.o asearch1.o agrep.o bitap.o checkfile.o compat.o maskgen.o parse.o checksg.o preprocess.o delim.o asplit.o recursive.o sgrep.o newmgrep.o utilities.o dummyfilters.o main.o ld: main.o: in function `my_stat': main.c:(.text+0xa0): warning: warning: reference to compatibility stat(); include to generate correct reference ld: main.o: in function `my_lstat': main.c:(.text+0x76): warning: warning: reference to compatibility lstat(); include to generate correct reference gmake[1]: Leaving directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/agrep' gmake[1]: Entering directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/libtemplate' Making all in util gmake[2]: Entering directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/libtemplate/util' gcc -D__STRICT_ANSI__ -I../include -c -o buffer.o buffer.c gcc -D__STRICT_ANSI__ -I../include -c -o host.o host.c gcc -D__STRICT_ANSI__ -I../include -c -o log.o log.c log.c: In function 'fatal': log.c:171:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ log.c:171:3: warning: incompatible implicit declaration of built-in function 'exit' log.c:171:3: note: include '' or provide a declaration of 'exit' log.c:176:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ log.c:176:3: note: include '' or provide a declaration of 'exit' log.c:185:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ log.c:185:2: note: include '' or provide a declaration of 'exit' gcc -D__STRICT_ANSI__ -I../include -c -o strdup.o strdup.c gcc -D__STRICT_ANSI__ -I../include -c -o system.o system.c system.c: In function 'run_cmd': system.c:105:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] memset(argv, '\0', sizeof(char *) * 64); ^~~~~~ system.c:105:3: warning: incompatible implicit declaration of built-in function 'memset' system.c:105:3: note: include '' or provide a declaration of 'memset' system.c:120:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (void) waitpid(pid, &status, (int) NULL); ^ system.c: In function 'do_system_lifetime': system.c:175:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (void) waitpid(dsl_pid, (int *) NULL, (int) NULL); ^ system.c:183:3: warning: incompatible implicit declaration of built-in function 'memset' memset(argv, '\0', sizeof(char *) * 64); ^~~~~~ system.c:183:3: note: include '' or provide a declaration of 'memset' gcc -D__STRICT_ANSI__ -I../include -c -o strerror.o strerror.c gcc -D__STRICT_ANSI__ -I../include -c -o string.o string.c gcc -D__STRICT_ANSI__ -I../include -c -o xmalloc.o xmalloc.c ar r libutil.a buffer.o host.o log.o strdup.o system.o strerror.o string.o xmalloc.o ar: creating libutil.a ranlib libutil.a /usr/bin/install -c -o pbulk -g wheel -m 644 libutil.a ../lib/libutil.a ranlib ../lib/libutil.a gmake[2]: Leaving directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/libtemplate/util' Making all in template gmake[2]: Entering directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/libtemplate/template' gcc -I../include -c -o template.o template.c ar r libtemplate.a template.o ar: creating libtemplate.a ranlib libtemplate.a /usr/bin/install -c -o pbulk -g wheel libtemplate.a ../lib/libtemplate.a ranlib ../lib/libtemplate.a gmake[2]: Leaving directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/libtemplate/template' Making all in lib gmake[2]: Entering directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/libtemplate/lib' gmake[2]: Nothing to be done for 'all'. gmake[2]: Leaving directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/libtemplate/lib' gmake[1]: Leaving directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/libtemplate' gmake[1]: Entering directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/index' rm -f buildcast.c cp glimpse.c buildcast.c gcc -c -I../index -I../agrep -I../libtemplate/include -DBUILDCAST=1 -o buildcast.o buildcast.c buildcast.c:91:8: warning: type defaults to 'int' in declaration of 'set_usemalloc' [-Wimplicit-int] extern set_usemalloc(); /* compress/misc.c */ ^~~~~~~~~~~~~ buildcast.c:100:1: warning: return type defaults to 'int' [-Wimplicit-int] cross_boundary(oldnum, newnum) ^~~~~~~~~~~~~~ buildcast.c:113:1: warning: return type defaults to 'int' [-Wimplicit-int] determine_sync() ^~~~~~~~~~~~~~ buildcast.c:160:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ buildcast.c: In function 'main': buildcast.c:195:5: warning: implicit declaration of function 'build_filename_hashtable' [-Wimplicit-function-declaration] build_filename_hashtable((char *)NULL, 0); ^~~~~~~~~~~~~~~~~~~~~~~~ buildcast.c:203:13: warning: implicit declaration of function 'usage'; did you mean 'usleep'? [-Wimplicit-function-declaration] return usage(1); ^~~~~ usleep buildcast.c:538:2: warning: implicit declaration of function 'partition' [-Wimplicit-function-declaration] partition(argc, argv); ^~~~~~~~~ buildcast.c:575:5: warning: implicit declaration of function 'read_filters' [-Wimplicit-function-declaration] read_filters(INDEX_DIR, UseFilters); ^~~~~~~~~~~~ buildcast.c:587:5: warning: implicit declaration of function 'initialize_tuncompress' [-Wimplicit-function-declaration] initialize_tuncompress(string_file, freq_file, 0); ^~~~~~~~~~~~~~~~~~~~~~ buildcast.c:628:5: warning: implicit declaration of function 'set_indexable_char' [-Wimplicit-function-declaration] set_indexable_char(indexable_char); ^~~~~~~~~~~~~~~~~~ buildcast.c:747:5: warning: implicit declaration of function 'initialize_data_structures' [-Wimplicit-function-declaration] initialize_data_structures(file_num); ^~~~~~~~~~~~~~~~~~~~~~~~~~ buildcast.c:749:5: warning: implicit declaration of function 'build_index'; did you mean '__builtin_index'? [-Wimplicit-function-declaration] build_index(); ^~~~~~~~~~~ __builtin_index buildcast.c:751:5: warning: implicit declaration of function 'cleanup'; did you mean 'cgetnum'? [-Wimplicit-function-declaration] cleanup(); ^~~~~~~ cgetnum buildcast.c:752:5: warning: implicit declaration of function 'save_data_structures' [-Wimplicit-function-declaration] save_data_structures(); ^~~~~~~~~~~~~~~~~~~~ buildcast.c:753:5: warning: implicit declaration of function 'destroy_filename_hashtable' [-Wimplicit-function-declaration] destroy_filename_hashtable(); ^~~~~~~~~~~~~~~~~~~~~~~~~~ buildcast.c:754:5: warning: implicit declaration of function 'uninitialize_common' [-Wimplicit-function-declaration] uninitialize_common(); ^~~~~~~~~~~~~~~~~~~ buildcast.c:755:5: warning: implicit declaration of function 'uninitialize_tcompress' [-Wimplicit-function-declaration] uninitialize_tcompress(); ^~~~~~~~~~~~~~~~~~~~~~ buildcast.c:756:5: warning: implicit declaration of function 'uninitialize_tuncompress' [-Wimplicit-function-declaration] uninitialize_tuncompress(); ^~~~~~~~~~~~~~~~~~~~~~~~ buildcast.c:757:5: warning: implicit declaration of function 'compute_dictionary' [-Wimplicit-function-declaration] compute_dictionary(threshold, DISKBLOCKSIZE, specialwords, INDEX_DIR); ^~~~~~~~~~~~~~~~~~ buildcast.c:761:7: warning: implicit declaration of function 'initialize_tcompress' [-Wimplicit-function-declaration] if (!initialize_tcompress(hash_file, freq_file, TC_ERRORMSGS)) goto docleanup; ^~~~~~~~~~~~~~~~~~~~ buildcast.c:767:6: warning: implicit declaration of function 'tcompress_file'; did you mean 'tmpfile'? [-Wimplicit-function-declaration] tcompress_file(name, outname, TC_REMOVE | TC_EASYSEARCH | TC_OVERWRITE | TC_NOPROMPT); ^~~~~~~~~~~~~~ tmpfile buildcast.c: At top level: buildcast.c:1065:1: warning: return type defaults to 'int' [-Wimplicit-int] cleanup() ^~~~~~~ buildcast.c:1127:1: warning: return type defaults to 'int' [-Wimplicit-int] usage(flag) ^~~~~ gcc -c -I../index -I../agrep -I../libtemplate/include region.c gcc -c -I../index -I../agrep -I../libtemplate/include dir.c dir.c:117:1: warning: return type defaults to 'int' [-Wimplicit-int] fsize(name, pat, pat_len, num_pat, inc, inc_len, num_inc, toplevel) ^~~~~ dir.c: In function 'fsize': dir.c:153:71: warning: implicit declaration of function 'get_filename_index' [-Wimplicit-function-declaration] if (!IndexableFile && !DeleteFromIndex && FastIndex && ((fileindex = get_filename_index(name, name_list, file_num)) != -1) && (disable_list[block2index(fileindex)] & mask_int[fileindex % (8*sizeof(int))])) { ^~~~~~~~~~~~~~~~~~ dir.c:170:4: warning: implicit declaration of function 'remove_filename' [-Wimplicit-function-declaration] remove_filename(fileindex, new_partition);\ ^ dir.c:268:3: note: in expansion of macro 'PROCESS_EXIT' PROCESS_EXIT; ^~~~~~~~~~~~ dir.c:222:9: warning: implicit declaration of function 'memagrep_search' [-Wimplicit-function-declaration] (memagrep_search(-inc_len[i], inc[i], len_current_dir_buf, current_dir_buf, 0, dummyout) > 0))\ ^ dir.c:280:3: note: in expansion of macro 'PROCESS_INCLUDE' PROCESS_INCLUDE; ^~~~~~~~~~~~~~~ dir.c:332:13: warning: implicit declaration of function 'fsize_directory' [-Wimplicit-function-declaration] if (-1 == fsize_directory(name, pat, pat_len, num_pat, inc, inc_len, num_inc)) return -1; ^~~~~~~~~~~~~~~ dir.c:336:8: warning: implicit declaration of function 'filetype'; did you mean 'lit_type'? [-Wimplicit-function-declaration] if (!filetype(name, IndexEverything?2:1, NULL, NULL)) printf("%s\n", name); ^~~~~~~~ lit_type dir.c:353:14: warning: implicit declaration of function 'tuncompress_file'; did you mean '__noprofile'? [-Wimplicit-function-declaration] if (tuncompress_file(name, outname, TC_EASYSEARCH | TC_OVERWRITE | TC_NOPROMPT) <= 0) return 0; ^~~~~~~~~~~~~~~~ __noprofile dir.c:393:8: warning: implicit declaration of function 'change_filename' [-Wimplicit-function-declaration] change_filename(name, name_len, fileindex, t1); ^~~~~~~~~~~~~~~ dir.c:427:7: warning: implicit declaration of function 'insert_filename'; did you mean 'aprint_file_time'? [-Wimplicit-function-declaration] insert_filename(LIST_GET(name_list, file_num), file_num); ^~~~~~~~~~~~~~~ aprint_file_time dir.c: At top level: dir.c:492:1: warning: return type defaults to 'int' [-Wimplicit-int] fsize_directory(name, pat, pat_len, num_pat, inc, inc_len, num_inc) ^~~~~~~~~~~~~~~ gcc -c -I../index -I../agrep -I../libtemplate/include io.c In file included from io.c:12:0: utils.c:449:1: warning: return type defaults to 'int' [-Wimplicit-int] hashNk(name, len) ^~~~~~ io.c:48:1: warning: return type defaults to 'int' [-Wimplicit-int] get_array_of_lines(inputfile, table, max_entry, overflow_ok) ^~~~~~~~~~~~~~~~~~ io.c:169:1: warning: return type defaults to 'int' [-Wimplicit-int] get_index_type(s, dashn, num, attr, delim) ^~~~~~~~~~~~~~ io.c:188:1: warning: return type defaults to 'int' [-Wimplicit-int] get_block_numbers(srcbuf, destbuf, partfp) ^~~~~~~~~~~~~~~~~ io.c:449:1: warning: return type defaults to 'int' [-Wimplicit-int] apply_filter(inname, outname) ^~~~~~~~~~~~ io.c: In function 'apply_filter': io.c:526:9: warning: implicit declaration of function 'memagrep_search' [-Wimplicit-function-declaration] (memagrep_search(-filter_len[i], filter[i], name_len + 2, name, 0, dummyout) > 0)) { ^~~~~~~~~~~~~~~ io.c: At top level: io.c:566:1: warning: return type defaults to 'int' [-Wimplicit-int] static_stop_list(word) ^~~~~~~~~~~~~~~~ io.c:662:1: warning: return type defaults to 'int' [-Wimplicit-int] my_free(ptr, size) ^~~~~~~ io.c:709:1: warning: return type defaults to 'int' [-Wimplicit-int] tokenallfree() ^~~~~~~~~~~~ io.c:714:1: warning: return type defaults to 'int' [-Wimplicit-int] tokenfree(e, len) ^~~~~~~~~ io.c:736:1: warning: return type defaults to 'int' [-Wimplicit-int] indicesallfree() ^~~~~~~~~~~~~~ io.c:741:1: warning: return type defaults to 'int' [-Wimplicit-int] indicesfree(e, len) ^~~~~~~~~~~ io.c:764:1: warning: return type defaults to 'int' [-Wimplicit-int] wordallfree() ^~~~~~~~~~~ io.c:769:1: warning: return type defaults to 'int' [-Wimplicit-int] wordfree(s, len) ^~~~~~~~ io.c:1049:1: warning: return type defaults to 'int' [-Wimplicit-int] dump_mini(indexfile) ^~~~~~~~~ io.c:1236:1: warning: return type defaults to 'int' [-Wimplicit-int] initialize_data_structures(files) ^~~~~~~~~~~~~~~~~~~~~~~~~~ io.c:1261:1: warning: return type defaults to 'int' [-Wimplicit-int] destroy_data_structures() ^~~~~~~~~~~~~~~~~~~~~~~ gcc -c -I../index -I../agrep -I../libtemplate/include build_in.c build_in.c:163:1: warning: return type defaults to 'int' [-Wimplicit-int] traverse() ^~~~~~~~ build_in.c: In function 'traverse': build_in.c:221:19: warning: implicit declaration of function 'encode16b' [-Wimplicit-function-declaration] attribute = encode16b(tp->attribute); ^~~~~~~~~ build_in.c:356:16: warning: implicit declaration of function 'encode8b' [-Wimplicit-function-declaration] temp = encode8b(0); ^~~~~~~~ build_in.c:385:13: warning: implicit declaration of function 'encode24b' [-Wimplicit-function-declaration] x = encode24b(ip->index[j]); ^~~~~~~~~ build_in.c:488:12: warning: implicit declaration of function 'encode12b' [-Wimplicit-function-declaration] x = encode12b(ip->index[j]); ^~~~~~~~~ build_in.c:594:5: warning: implicit declaration of function 'tokenallfree'; did you mean 'tokenfree'? [-Wimplicit-function-declaration] tokenallfree(); ^~~~~~~~~~~~ tokenfree build_in.c:595:5: warning: implicit declaration of function 'indicesallfree'; did you mean 'indicesfree'? [-Wimplicit-function-declaration] indicesallfree(); ^~~~~~~~~~~~~~ indicesfree build_in.c:596:5: warning: implicit declaration of function 'wordallfree'; did you mean 'wordfree'? [-Wimplicit-function-declaration] wordallfree(); ^~~~~~~~~~~ wordfree build_in.c: In function 'build_hash': build_in.c:817:26: warning: implicit declaration of function 'region_initialize' [-Wimplicit-function-declaration] if (StructuredIndex) region_initialize(); ^~~~~~~~~~~~~~~~~ build_in.c:841:17: warning: implicit declaration of function 'tuncompress_file'; did you mean '__noprofile'? [-Wimplicit-function-declaration] if ((ret = tuncompress_file(LIST_GET(name_list, i), outname, TC_EASYSEARCH | TC_OVERWRITE | TC_NOPROMPT)) > 0) { /* do not remove old .TZ file */ ^~~~~~~~~~~~~~~~ __noprofile build_in.c:842:33: warning: implicit declaration of function 'region_create'; did you mean 'timer_create'? [-Wimplicit-function-declaration] if (StructuredIndex && (-1 == region_create(outname))) { ^~~~~~~~~~~~~ timer_create build_in.c:850:28: warning: implicit declaration of function 'region_destroy' [-Wimplicit-function-declaration] if (StructuredIndex) region_destroy(); /* cannot happen! */ ^~~~~~~~~~~~~~ build_in.c:860:17: warning: implicit declaration of function 'apply_filter' [-Wimplicit-function-declaration] if ((ret = apply_filter(LIST_GET(name_list, i), outname)) == 1) { ^~~~~~~~~~~~ build_in.c:879:7: warning: implicit declaration of function 'filetype'; did you mean 'lit_type'? [-Wimplicit-function-declaration] if (filetype(LIST_GET(name_list, i), 0, NULL, NULL)) { /* try to index input file if it satisfies filetype */ ^~~~~~~~ lit_type In file included from build_in.c:26:0: build_in.c: In function 'insert_h': glimpse.h:233:96: warning: implicit declaration of function 'hash64k' [-Wimplicit-function-declaration] #define hashword(word, wordlen) (((total_size < LIMIT_64K_HASH*1024*1024) || !BigHashTable) ? (hash64k(word, wordlen)) : (hash256k(word, wordlen))); ^ build_in.c:1278:18: note: in expansion of macro 'hashword' hash_value = hashword(word, wordlen); ^~~~~~~~ glimpse.h:233:123: warning: implicit declaration of function 'hash256k'; did you mean 'hashword'? [-Wimplicit-function-declaration] #define hashword(word, wordlen) (((total_size < LIMIT_64K_HASH*1024*1024) || !BigHashTable) ? (hash64k(word, wordlen)) : (hash256k(word, wordlen))); ^ build_in.c:1278:18: note: in expansion of macro 'hashword' hash_value = hashword(word, wordlen); ^~~~~~~~ build_in.c: At top level: build_in.c:1470:1: warning: return type defaults to 'int' [-Wimplicit-int] scanword(word, buffer, buffer_end, attr) ^~~~~~~~ build_in.c: In function 'merge_in': build_in.c:1582:12: warning: implicit declaration of function 'decode8b' [-Wimplicit-function-declaration] x = decode8b(src_index_buf[bdx1]); ^~~~~~~~ build_in.c:1588:9: warning: implicit declaration of function 'decode12b' [-Wimplicit-function-declaration] x = decode12b(x); ^~~~~~~~~ build_in.c:1601:12: warning: implicit declaration of function 'decode16b' [-Wimplicit-function-declaration] x = decode16b(x); ^~~~~~~~~ build_in.c:1606:12: warning: implicit declaration of function 'decode24b' [-Wimplicit-function-declaration] x = decode24b(x); ^~~~~~~~~ build_in.c: At top level: build_in.c:1957:1: warning: return type defaults to 'int' [-Wimplicit-int] get_new_index(deletedlist, oldfileindex) ^~~~~~~~~~~~~ build_in.c:1976:1: warning: return type defaults to 'int' [-Wimplicit-int] delete_removed_indices(deletedlist) ^~~~~~~~~~~~~~~~~~~~~~ build_in.c:2250:1: warning: return type defaults to 'int' [-Wimplicit-int] initialize_disable_list(files) ^~~~~~~~~~~~~~~~~~~~~~~ gcc -c -I../index -I../agrep -I../libtemplate/include filetype.c filetype.c: In function 'filetype': filetype.c:71:6: warning: implicit declaration of function 'test_special_suffix' [-Wimplicit-function-declaration] if (test_special_suffix(tempname)) { ^~~~~~~~~~~~~~~~~~~ filetype.c:100:6: warning: implicit declaration of function 'test_postscript' [-Wimplicit-function-declaration] if (test_postscript(buffer, num_read)) { ^~~~~~~~~~~~~~~ filetype.c:109:18: warning: implicit declaration of function 'test_binary' [-Wimplicit-function-declaration] BINARY = test_binary(buffer, num_read); ^~~~~~~~~~~ filetype.c:120:21: warning: implicit declaration of function 'test_uuencode' [-Wimplicit-function-declaration] UUENCODED = test_uuencode(buffer, num_read); ^~~~~~~~~~~~~ filetype.c:129:5: warning: implicit declaration of function 'heavy_index' [-Wimplicit-function-declaration] if(heavy_index(tempname, buffer, num_read)) { ^~~~~~~~~~~ filetype.c:137:5: warning: implicit declaration of function 'hqx' [-Wimplicit-function-declaration] if(hqx(tempname, buffer, num_read)) { ^~~ filetype.c:154:17: warning: implicit declaration of function 'extract_info' [-Wimplicit-function-declaration] *xinfo_len = extract_info(tempname, buffer, num_read, i, xinfo, MAX_LINE_LEN); ^~~~~~~~~~~~ filetype.c: At top level: filetype.c:276:1: warning: return type defaults to 'int' [-Wimplicit-int] heavy_index(name, buffer, num_read) ^~~~~~~~~~~ filetype.c: In function 'heavy_index': filetype.c:291:16: warning: implicit declaration of function 'hash4k' [-Wimplicit-function-declaration] hash_value = hash4k(word, strlen(word)); ^~~~~~ filetype.c: At top level: filetype.c:312:1: warning: return type defaults to 'int' [-Wimplicit-int] hqx(name, buffer, num_read) ^~~ gcc -c -I../index -I../agrep -I../libtemplate/include simpletest.c simpletest.c:10:8: warning: type defaults to 'int' in declaration of 'UseFilters' [-Wimplicit-int] extern UseFilters; ^~~~~~~~~~ simpletest.c:33:1: warning: return type defaults to 'int' [-Wimplicit-int] test_binary(buffer, length) ^~~~~~~~~~~ simpletest.c:54:1: warning: return type defaults to 'int' [-Wimplicit-int] test_uuencode(buffer, length) ^~~~~~~~~~~~~ simpletest.c: In function 'test_uuencode': simpletest.c:67:13: warning: implicit declaration of function 'memlook'; did you mean 'memmove'? [-Wimplicit-function-declaration] i = memlook("\nbegin", buffer, length); ^~~~~~~ memmove gcc -c -I../index -I../agrep -I../libtemplate/include getword.c getword.c: In function 'getword': getword.c:245:11: warning: implicit declaration of function 'region_identify' [-Wimplicit-function-declaration] *pattr = region_identify(ICurrentFileOffset, 0); ^~~~~~~~~~~~~~~ getword.c: At top level: getword.c:259:1: warning: return type defaults to 'int' [-Wimplicit-int] set_indexable_char(indexable_char) ^~~~~~~~~~~~~~~~~~ getword.c:273:1: warning: return type defaults to 'int' [-Wimplicit-int] set_special_char(special_char) ^~~~~~~~~~~~~~~~ gcc -c -I../index -I../agrep -I../libtemplate/include memlook.c gcc -c -I../index -I../agrep -I../libtemplate/include lib.c lib.c:5:16: warning: conflicting types for built-in function 'strdup' [-Wbuiltin-declaration-mismatch] unsigned char *strdup(str) ^~~~~~ lib.c: In function 'strdup': lib.c:12:8: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] len = strlen(str); ^~~~~~ lib.c:12:8: warning: incompatible implicit declaration of built-in function 'strlen' lib.c:12:8: note: include '' or provide a declaration of 'strlen' lib.c:16:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(2); ^~~~ lib.c:16:3: warning: incompatible implicit declaration of built-in function 'exit' lib.c:16:3: note: include '' or provide a declaration of 'exit' gcc -c -I../index -I../agrep -I../libtemplate/include partition.c partition.c:72:1: warning: return type defaults to 'int' [-Wimplicit-int] partition(dir_num, dir_name) ^~~~~~~~~ partition.c: In function 'partition': partition.c:118:21: warning: implicit declaration of function 'memagrep_init' [-Wimplicit-function-declaration] if ((dummylen = memagrep_init(exin_argc, exin_argv, MAX_PAT, dummypat)) <= 0) return -1; /* exclude/include pattern search */ ^~~~~~~~~~~~~ partition.c:130:27: warning: implicit declaration of function 'convert2agrepregexp' [-Wimplicit-function-declaration] if ((pat_len[num_pat] = convert2agrepregexp(patbuf, len-1)) == 0) continue; ^~~~~~~~~~~~~~~~~~~ partition.c:184:6: warning: implicit declaration of function 'fsize' [-Wimplicit-function-declaration] fsize(current_dir, pat, pat_len, num_pat, inc, inc_len, num_inc, 0); /* the file names will be in name_list[]: NOT TOP LEVEL!!! Mar/11/96 */ ^~~~~ partition.c: At top level: partition.c:422:1: warning: return type defaults to 'int' [-Wimplicit-int] oldpartition(dir_num, dir_name) ^~~~~~~~~~~~ partition.c:604:1: warning: return type defaults to 'int' [-Wimplicit-int] save_data_structures() ^~~~~~~~~~~~~~~~~~~~ partition.c: In function 'save_data_structures': partition.c:702:9: warning: implicit declaration of function 'decode16b' [-Wimplicit-function-declaration] index=decode16b((src_index_buf[j+1] << 8) | (src_index_buf[j+2])); ^~~~~~~~~ In file included from glimpse.h:8:0, from partition.c:3: partition.c:704:12: warning: implicit declaration of function 'encode8b' [-Wimplicit-function-declaration] putc(encode8b(index), i_out); ^ partition.c:786:15: warning: implicit declaration of function 'encode32b' [-Wimplicit-function-declaration] offset = encode32b(part_size); ^~~~~~~~~ partition.c:820:18: warning: implicit declaration of function 'dump_mini' [-Wimplicit-function-declaration] if (BuildTurbo) dump_mini(s); ^~~~~~~~~ partition.c:844:56: warning: comparison between pointer and zero character constant [-Wpointer-compare] if ((LIST_GET(name_list, i) != NULL) && (name_list[0] != '\0')) { ^~ partition.c:844:43: note: did you mean to dereference the pointer? if ((LIST_GET(name_list, i) != NULL) && (name_list[0] != '\0')) { ^ partition.c:892:36: warning: implicit declaration of function 'build_filename_hashtable' [-Wimplicit-function-declaration] if (!built_filename_hashtable) build_filename_hashtable(name_list, file_num); ^~~~~~~~~~~~~~~~~~~~~~~~ partition.c:901:16: warning: implicit declaration of function 'get_new_index' [-Wimplicit-function-declaration] if ((index = get_new_index(deletedlist, e->index)) < 0) { ^~~~~~~~~~~~~ partition.c: At top level: partition.c:936:1: warning: return type defaults to 'int' [-Wimplicit-int] merge_splits() ^~~~~~~~~~~~ partition.c: In function 'merge_splits': partition.c:1036:15: warning: implicit declaration of function 'encode16b' [-Wimplicit-function-declaration] index = encode16b(decode8b(src_index_buf[j+1])); ^~~~~~~~~ partition.c:1036:25: warning: implicit declaration of function 'decode8b' [-Wimplicit-function-declaration] index = encode16b(decode8b(src_index_buf[j+1])); ^~~~~~~~ partition.c:1054:6: warning: implicit declaration of function 'get_block_numbers' [-Wimplicit-function-declaration] get_block_numbers(&src_index_buf[j+1], &dest_index_buf[0], p_in); ^~~~~~~~~~~~~~~~~ gcc -Wl,-zrelro -Wl,-R/usr/pkg/lib -L../lib -o ../bin/buildcast buildcast.o region.o dir.o io.o build_in.o filetype.o simpletest.o getword.o memlook.o lib.o partition.o -lagrep -lc -lm gcc -c -I../index -I../agrep -I../libtemplate/include -DBUILDCAST=0 glimpse.c glimpse.c:91:8: warning: type defaults to 'int' in declaration of 'set_usemalloc' [-Wimplicit-int] extern set_usemalloc(); /* compress/misc.c */ ^~~~~~~~~~~~~ glimpse.c:100:1: warning: return type defaults to 'int' [-Wimplicit-int] cross_boundary(oldnum, newnum) ^~~~~~~~~~~~~~ glimpse.c:113:1: warning: return type defaults to 'int' [-Wimplicit-int] determine_sync() ^~~~~~~~~~~~~~ glimpse.c:160:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ glimpse.c: In function 'main': glimpse.c:195:5: warning: implicit declaration of function 'build_filename_hashtable' [-Wimplicit-function-declaration] build_filename_hashtable((char *)NULL, 0); ^~~~~~~~~~~~~~~~~~~~~~~~ glimpse.c:203:13: warning: implicit declaration of function 'usage'; did you mean 'usleep'? [-Wimplicit-function-declaration] return usage(1); ^~~~~ usleep glimpse.c:538:2: warning: implicit declaration of function 'partition' [-Wimplicit-function-declaration] partition(argc, argv); ^~~~~~~~~ glimpse.c:575:5: warning: implicit declaration of function 'read_filters' [-Wimplicit-function-declaration] read_filters(INDEX_DIR, UseFilters); ^~~~~~~~~~~~ glimpse.c:587:5: warning: implicit declaration of function 'initialize_tuncompress' [-Wimplicit-function-declaration] initialize_tuncompress(string_file, freq_file, 0); ^~~~~~~~~~~~~~~~~~~~~~ glimpse.c:628:5: warning: implicit declaration of function 'set_indexable_char' [-Wimplicit-function-declaration] set_indexable_char(indexable_char); ^~~~~~~~~~~~~~~~~~ glimpse.c:849:19: warning: implicit declaration of function 'get_index_type' [-Wimplicit-function-declaration] if ((indextype = get_index_type(s, &indexnumber, &indextype, &structuredindex, temp_rdelim)) < 0) { ^~~~~~~~~~~~~~ glimpse.c:867:13: warning: implicit declaration of function 'get_array_of_lines' [-Wimplicit-function-declaration] file_num = get_array_of_lines(s, name_list, MaxNum24bPartition, 1); ^~~~~~~~~~~~~~~~~~ glimpse.c:868:2: warning: implicit declaration of function 'initialize_disable_list' [-Wimplicit-function-declaration] initialize_disable_list(file_num); ^~~~~~~~~~~~~~~~~~~~~~~ glimpse.c:869:2: warning: implicit declaration of function 'initialize_data_structures' [-Wimplicit-function-declaration] initialize_data_structures(file_num); ^~~~~~~~~~~~~~~~~~~~~~~~~~ glimpse.c:873:14: warning: implicit declaration of function 'get_table'; did you mean 'getdate'? [-Wimplicit-function-declaration] part_num = get_table(s, p_table, MAX_PARTITION, 1) - 1; /* part_num INCLUDES last partition */ ^~~~~~~~~ getdate glimpse.c:875:7: warning: implicit declaration of function 'merge_splits'; did you mean 'mergesort'? [-Wimplicit-function-declaration] else merge_splits(); ^~~~~~~~~~~~ mergesort glimpse.c:941:4: warning: implicit declaration of function 'remove_filename' [-Wimplicit-function-declaration] remove_filename(i, -1); ^~~~~~~~~~~~~~~ glimpse.c:971:2: warning: implicit declaration of function 'destroy_data_structures' [-Wimplicit-function-declaration] destroy_data_structures(); ^~~~~~~~~~~~~~~~~~~~~~~ glimpse.c:974:12: warning: implicit declaration of function 'oldpartition'; did you mean 'MaxNumPartition'? [-Wimplicit-function-declaration] if (-1 == oldpartition(argc, argv)) { ^~~~~~~~~~~~ MaxNumPartition glimpse.c:1002:37: warning: implicit declaration of function 'build_index'; did you mean '__builtin_index'? [-Wimplicit-function-declaration] if (!DeleteFromIndex || FastIndex) build_index(); ^~~~~~~~~~~ __builtin_index glimpse.c:1004:38: warning: implicit declaration of function 'purge_index'; did you mean 'rindex'? [-Wimplicit-function-declaration] else if (PurgeIndex) new_file_num = purge_index(); ^~~~~~~~~~~ rindex glimpse.c:1023:5: warning: implicit declaration of function 'destroy_filename_hashtable' [-Wimplicit-function-declaration] destroy_filename_hashtable(); ^~~~~~~~~~~~~~~~~~~~~~~~~~ glimpse.c:1032:5: warning: implicit declaration of function 'cleanup'; did you mean 'cgetnum'? [-Wimplicit-function-declaration] cleanup(); ^~~~~~~ cgetnum glimpse.c:1033:5: warning: implicit declaration of function 'save_data_structures' [-Wimplicit-function-declaration] save_data_structures(); ^~~~~~~~~~~~~~~~~~~~ glimpse.c: At top level: glimpse.c:1065:1: warning: return type defaults to 'int' [-Wimplicit-int] cleanup() ^~~~~~~ glimpse.c:1087:1: warning: return type defaults to 'int' [-Wimplicit-int] usage(flag) ^~~~~ gcc -Wl,-zrelro -Wl,-R/usr/pkg/lib -L../lib -o ../bin/glimpseindex glimpse.o region.o dir.o io.o build_in.o filetype.o simpletest.o getword.o memlook.o lib.o partition.o -lagrep -lc -lm gcc -I../index -I../agrep -I../libtemplate/include -c -o convert.o convert.c convert.c:321:1: warning: return type defaults to 'int' [-Wimplicit-int] mem_name2element(pelement, file, len, filehash_buffer, filehash_index_buffer, files_used) ^~~~~~~~~~~~~~~~ convert.c: In function 'change_format': convert.c:583:10: warning: implicit declaration of function 'usage'; did you mean 'usleep'? [-Wimplicit-function-declaration] return usage(); ^~~~~ usleep gcc -Wl,-zrelro -Wl,-R/usr/pkg/lib -L../lib -o ../bin/wgconvert convert.o io.o simpletest.o filetype.o region.o memlook.o getword.o -lagrep -lc -lm gmake[1]: Leaving directory '/tmp/textproc/glimpse/work/glimpse-4.18.6/index' gcc -c -Iindex -Iagrep -Ilibtemplate/include -DISSERVER=0 -o main.o main.c main.c:206:8: warning: type defaults to 'int' in declaration of 'free_list' [-Wimplicit-int] extern free_list(); ^~~~~~~~~ main.c: In function 'glimpse_search': main.c:402:15: warning: implicit declaration of function 'memagrep_search'; did you mean 'glimpse_search'? [-Wimplicit-function-declaration] if ((ret = memagrep_search(AM, APattern, curtextend-curtextbegin, curtextbegin, 0, outfp)) > 0) ^~~~~~~~~~~~~~~ glimpse_search main.c:419:15: warning: implicit declaration of function 'exec'; did you mean 'exect'? [-Wimplicit-function-declaration] if ((ret = exec(-1, NULL)) > 0) ^~~~ exect main.c:440:4: warning: implicit declaration of function 'file_out'; did you mean 'fileno'? [-Wimplicit-function-declaration] file_out(realfilename); ^~~~~~~~ fileno main.c: At top level: main.c:468:1: warning: return type defaults to 'int' [-Wimplicit-int] read_index(indexdir) ^~~~~~~~~~ main.c: In function 'read_index': main.c:538:20: warning: implicit declaration of function 'get_table'; did you mean 'getdate'? [-Wimplicit-function-declaration] GNumpartitions = get_table(P_TABLE, p_table, MAX_PARTITION, 0); ^~~~~~~~~ getdate main.c:564:63: warning: implicit declaration of function 'read_mini'; did you mean 'readline'? [-Wimplicit-function-declaration] if (OneFilePerBlock && glimpse_isserver && (minifp != NULL)) read_mini(indexfp, minifp); ^~~~~~~~~ readline main.c:565:2: warning: implicit declaration of function 'read_filenames'; did you mean 'read_index'? [-Wimplicit-function-declaration] read_filenames(); ^~~~~~~~~~~~~~ read_index main.c:568:2: warning: implicit declaration of function 'set_indexable_char' [-Wimplicit-function-declaration] set_indexable_char(indexable_char); ^~~~~~~~~~~~~~~~~~ main.c:570:2: warning: implicit declaration of function 'set_special_char' [-Wimplicit-function-declaration] set_special_char(indexable_char); ^~~~~~~~~~~~~~~~ main.c: At top level: main.c:602:1: warning: return type defaults to 'int' [-Wimplicit-int] reinitialize_server(argc, argv) ^~~~~~~~~~~~~~~~~~~ main.c: In function 'reinitialize_server': main.c:595:3: warning: implicit declaration of function 'attr_free_table'; did you mean 'attr_name_to_id'? [-Wimplicit-function-declaration] attr_free_table();\ ^ main.c:607:2: note: in expansion of macro 'CLEANUP' CLEANUP; ^~~~~~~ main.c:597:2: warning: implicit declaration of function 'destroy_filename_hashtable' [-Wimplicit-function-declaration] destroy_filename_hashtable();\ ^ main.c:607:2: note: in expansion of macro 'CLEANUP' CLEANUP; ^~~~~~~ main.c: At top level: main.c:695:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main.c: In function 'main': main.c:729:3: warning: implicit declaration of function 'usage'; did you mean 'usleep'? [-Wimplicit-function-declaration] usage(); /* Client nees at least 1 argument */ ^~~~~ usleep main.c:745:2: warning: implicit declaration of function 'init_filename_hashtable' [-Wimplicit-function-declaration] init_filename_hashtable(); ^~~~~~~~~~~~~~~~~~~~~~~ main.c:755:2: warning: implicit declaration of function 'region_initialize'; did you mean 'reinitialize'? [-Wimplicit-function-declaration] region_initialize(); ^~~~~~~~~~~~~~~~~ reinitialize main.c:802:18: warning: implicit declaration of function 'usageS'; did you mean 'usleep'? [-Wimplicit-function-declaration] RETURNMAIN(usageS()); ^ main.c:737:13: note: in definition of macro 'RETURNMAIN' if (val < 0) exit (2);\ ^~~ main.c:1286:8: warning: implicit declaration of function 'process_query'; did you mean 'process_Y_option'? [-Wimplicit-function-declaration] ret = process_query(oldargc, oldargv, fileno(stdin)); ^~~~~~~~~~~~~ process_Y_option main.c: At top level: main.c:1291:1: warning: return type defaults to 'int' [-Wimplicit-int] process_query(argc, argv, newsockfd) ^~~~~~~~~~~~~ main.c: In function 'process_query': main.c:1464:7: warning: implicit declaration of function 'fileagrep' [-Wimplicit-function-declaration] i = fileagrep(oldargc, oldargv, 0, stdout); ^~~~~~~~~ main.c:1377:22: warning: implicit declaration of function 'destroy_tree' [-Wimplicit-function-declaration] if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1465:3: note: in expansion of macro 'RETURN' RETURN(i); ^~~~~~ main.c:2093:3: warning: implicit declaration of function 'read_filters'; did you mean 'read_index'? [-Wimplicit-function-declaration] read_filters(INDEX_DIR, UseFilters); ^~~~~~~~~~~~ read_index main.c:2097:13: warning: implicit declaration of function 'fileagrep_init'; did you mean 'inet6_rth_init'? [-Wimplicit-function-declaration] if ((GM = fileagrep_init(agrep_argc, agrep_argv, MAXPAT, GPattern)) <= 0) { ^~~~~~~~~~~~~~ inet6_rth_init main.c:2132:12: warning: implicit declaration of function 'split_pattern' [-Wimplicit-function-declaration] else if (split_pattern(GPattern, GM, APattern, terminals, &num_terminals, &GParse, StructuredIndex) <= 0) RETURN(-1); ^~~~~~~~~~~~~ main.c:2275:9: warning: implicit declaration of function 'search_index'; did you mean 'read_index'? [-Wimplicit-function-declaration] ret = search_index(GParse); ^~~~~~~~~~~~ read_index main.c:2431:24: warning: implicit declaration of function 'mask_filenames' [-Wimplicit-function-declaration] if (FILENAMESINFILE) mask_filenames(src_index_set, filenames_file, file_num, num_blocks); /* keep only those files that are in filenames_file */ ^~~~~~~~~~~~~~ main.c:2459:4: warning: implicit declaration of function 'get_filenames'; did you mean 'get_file_time'? [-Wimplicit-function-declaration] get_filenames(src_index_set, 0, NULL, dummylen, dummypat, file_num); ^~~~~~~~~~~~~ get_file_time main.c:2700:18: warning: implicit declaration of function 'fileagrep_search'; did you mean 'glimpse_search'? [-Wimplicit-function-declaration] if ((ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, stdout)) > 0) { ^~~~~~~~~~~~~~~~ glimpse_search main.c:2766:10: warning: implicit declaration of function 'apply_filter' [-Wimplicit-function-declaration] if (apply_filter(GTextfiles[i], outname[0]) == 1) { ^~~~~~~~~~~~ main.c:2930:54: warning: implicit declaration of function 'filter_output' [-Wimplicit-function-declaration] ret = filter_output(GTextfiles[i], tempfile, GParse, GD_pattern, GD_length, GOUTTAIL, nullfp, StructuredIndex); ^~~~~~~~~~~~~ main.c: In function 'filter_output': main.c:3184:32: warning: implicit declaration of function 'region_create'; did you mean 'timer_create'? [-Wimplicit-function-declaration] if (StructuredIndex && (-1 == region_create(infile))) { ^~~~~~~~~~~~~ timer_create main.c:3191:25: warning: implicit declaration of function 'region_destroy' [-Wimplicit-function-declaration] if (StructuredIndex) region_destroy(); ^~~~~~~~~~~~~~ main.c:3264:48: warning: implicit declaration of function 'region_identify' [-Wimplicit-function-declaration] else if ( (num_attr <= 0) || (((attribute = region_identify(byteoff, 0)) < num_attr) && (attribute >= 0)) ) { ^~~~~~~~~~~~~~~ main.c:3343:17: warning: implicit declaration of function 'eval_tree' [-Wimplicit-function-declaration] success = eval_tree(GParse, matched_terminals); ^~~~~~~~~ main.c: At top level: main.c:3483:1: warning: return type defaults to 'int' [-Wimplicit-int] usage() ^~~~~ main.c:3563:1: warning: return type defaults to 'int' [-Wimplicit-int] usageS() ^~~~~~ gcc -c -Iindex -Iagrep -Ilibtemplate/include -o get_filename.o get_filename.c get_filename.c:43:1: warning: return type defaults to 'int' [-Wimplicit-int] read_filenames() ^~~~~~~~~~~~~~ get_filename.c: In function 'read_filenames': get_filename.c:77:3: warning: implicit declaration of function 'initialize_data_structures' [-Wimplicit-function-declaration] initialize_data_structures(file_num); ^~~~~~~~~~~~~~~~~~~~~~~~~~ get_filename.c: In function 'mask_filenames': get_filename.c:126:103: warning: implicit declaration of function 'slow_mask_filenames'; did you mean 'mask_filenames'? [-Wimplicit-function-declaration] if ((num_blocks*100/num_files > DEF_MAX_INDEX_PERCENT/2) && (num_blocks > MaxNum8bPartition)) return slow_mask_filenames(index_vect, infile); ^~~~~~~~~~~~~~~~~~~ mask_filenames get_filename.c:173:15: warning: implicit declaration of function 'memagrep'; did you mean 'setpgrp'? [-Wimplicit-function-declaration] if ((((ret = memagrep(5, argv, name_list_size, name_list_buffer, outputbuffer_len, outputbuffer)) <= 0) || (agrep_outpointer <= 0)) && (errno != ERANGE)) { ^~~~~~~~ setpgrp get_filename.c: In function 'get_filenames': get_filename.c:599:22: warning: implicit declaration of function 'memagrep_init' [-Wimplicit-function-declaration] if ((dummylen = memagrep_init(argc, argv, MAX_PAT, dummypat)) <= 0) goto end_files; ^~~~~~~~~~~~~ get_filename.c:601:12: warning: implicit declaration of function 'memagrep_search' [-Wimplicit-function-declaration] ret = memagrep_search(dummylen, dummypat, dummylen*2, beginptr, outputbuffer_len, outputbuffer); ^~~~~~~~~~~~~~~ gcc -c -Iindex -Iagrep -Ilibtemplate/include -o get_index.o get_index.c get_index.c:45:1: warning: return type defaults to 'int' [-Wimplicit-int] free_list(p1) ^~~~~~~~~ get_index.c: In function 'sorted_intersection': get_index.c:122:1: warning: type of 'filenum' defaults to 'int' [-Wimplicit-int] sorted_intersection(filenum, list1, list2, f) ^~~~~~~~~~~~~~~~~~~ get_index.c: At top level: get_index.c:229:1: warning: return type defaults to 'int' [-Wimplicit-int] purge_offsets(p1) ^~~~~~~~~~~~~ get_index.c:245:1: warning: return type defaults to 'int' [-Wimplicit-int] get_set(buffer, set, offset_table, patlen, pattern, patattr, outfile, partfp, frequency, prevfreq) ^~~~~~~ get_index.c: In function 'get_set': get_index.c:261:14: warning: implicit declaration of function 'encode8b' [-Wimplicit-function-declaration] int delim = encode8b(0); ^~~~~~~~ get_index.c:273:16: warning: implicit declaration of function 'decode8b' [-Wimplicit-function-declaration] indexattr = decode8b(buffer[bdx2+1]); ^~~~~~~~ get_index.c:276:16: warning: implicit declaration of function 'decode16b' [-Wimplicit-function-declaration] indexattr = decode16b((buffer[bdx2+1] << 8) | (buffer[bdx2 + 2])); ^~~~~~~~~ get_index.c:322:14: warning: implicit declaration of function 'memagrep_search' [-Wimplicit-function-declaration] if ((ret = memagrep_search(patlen, pattern, bdx2+1, buffer, 0, outfile)) <= 0) return 0; ^~~~~~~~~~~~~~~ get_index.c:332:6: warning: implicit declaration of function 'get_block_numbers' [-Wimplicit-function-declaration] get_block_numbers(&buffer[bdx2], &buffer[bdx2], partfp); ^~~~~~~~~~~~~~~~~ get_index.c:348:8: warning: implicit declaration of function 'decode24b' [-Wimplicit-function-declaration] x = decode24b(x); ^~~~~~~~~ get_index.c:359:8: warning: implicit declaration of function 'decode12b' [-Wimplicit-function-declaration] x = decode12b(x); ^~~~~~~~~ get_index.c: At top level: get_index.c:493:1: warning: return type defaults to 'int' [-Wimplicit-int] get_index(infile, index_tab, offset_tab, pattern, patlen, patattr, index_argv, index_argc, outfile, partfp, parse, first_time) ^~~~~~~~~ get_index.c:701:1: warning: return type defaults to 'int' [-Wimplicit-int] mgrep_get_index(infile, index_tab, offset_tab, pat_list, pat_lens, pat_attr, mgrep_pat_index, num_mgrep_pat, patbufpos, index_argv, index_argc, outfile, partfp, parse, first_time) ^~~~~~~~~~~~~~~ get_index.c: In function 'mgrep_get_index': get_index.c:738:13: warning: implicit declaration of function 'fileagrep' [-Wimplicit-function-declaration] if ((ret = fileagrep(index_argc, index_argv, 0, f_in)) < 0) { ^~~~~~~~~ get_index.c:750:18: warning: implicit declaration of function 'memagrep_init' [-Wimplicit-function-declaration] if ((dummylen = memagrep_init(index_argc, index_argv, MAX_PAT, dummypat)) <= 0) { ^~~~~~~~~~~~~ get_index.c: In function 'mini_agrep': get_index.c:1088:7: warning: implicit declaration of function 'get_mini'; did you mean 'getline'? [-Wimplicit-function-declaration] if (!get_mini(word, len, &beginoffset, &endoffset, 0, mini_array_len, minifp)) return 0; ^~~~~~~~ getline get_index.c: At top level: get_index.c:1124:1: warning: return type defaults to 'int' [-Wimplicit-int] fillup_target(result_index_set, result_offset_table, parse) ^~~~~~~~~~~~~ get_index.c: In function 'search_index': get_index.c:1243:8: warning: implicit declaration of function 'split_terminal' [-Wimplicit-function-declaration] if (split_terminal(tree->terminalindex, tree->terminalindex+1) <= 0) return -1; ^~~~~~~~~~~~~~ gcc -c -Iindex -Iagrep -Ilibtemplate/include -o split.o split.c split.c: In function 'get_attribute_value': split.c:180:1: warning: type of 'num_attr' defaults to 'int' [-Wimplicit-int] get_attribute_value(pattr, pval, tokenbuf, tokenlen, num_attr) ^~~~~~~~~~~~~~~~~~~ split.c: At top level: split.c:225:8: warning: type defaults to 'int' in declaration of 'destroy_tree' [-Wimplicit-int] extern destroy_tree(); /* use the one in agrep/asplit.c */ ^~~~~~~~~~~~ split.c:496:1: warning: return type defaults to 'int' [-Wimplicit-int] split_terminal(first, last) ^~~~~~~~~~~~~~ gcc -Wl,-zrelro -Wl,-R/usr/pkg/lib -Llib -o bin/glimpse main.o get_filename.o get_index.o split.o index/region.o index/getword.o index/filetype.o index/simpletest.o index/memlook.o index/lib.o index/io.o -lagrep -lc -lm cp main.c main_server.c gcc -c -Iindex -Iagrep -Ilibtemplate/include -DISSERVER=1 -o main_server.o main_server.c main_server.c:206:8: warning: type defaults to 'int' in declaration of 'free_list' [-Wimplicit-int] extern free_list(); ^~~~~~~~~ main_server.c: In function 'glimpse_search': main_server.c:402:15: warning: implicit declaration of function 'memagrep_search'; did you mean 'glimpse_search'? [-Wimplicit-function-declaration] if ((ret = memagrep_search(AM, APattern, curtextend-curtextbegin, curtextbegin, 0, outfp)) > 0) ^~~~~~~~~~~~~~~ glimpse_search main_server.c:419:15: warning: implicit declaration of function 'exec'; did you mean 'exect'? [-Wimplicit-function-declaration] if ((ret = exec(-1, NULL)) > 0) ^~~~ exect main_server.c:440:4: warning: implicit declaration of function 'file_out'; did you mean 'fileno'? [-Wimplicit-function-declaration] file_out(realfilename); ^~~~~~~~ fileno main_server.c: At top level: main_server.c:468:1: warning: return type defaults to 'int' [-Wimplicit-int] read_index(indexdir) ^~~~~~~~~~ main_server.c: In function 'read_index': main_server.c:538:20: warning: implicit declaration of function 'get_table'; did you mean 'getdate'? [-Wimplicit-function-declaration] GNumpartitions = get_table(P_TABLE, p_table, MAX_PARTITION, 0); ^~~~~~~~~ getdate main_server.c:564:63: warning: implicit declaration of function 'read_mini'; did you mean 'readline'? [-Wimplicit-function-declaration] if (OneFilePerBlock && glimpse_isserver && (minifp != NULL)) read_mini(indexfp, minifp); ^~~~~~~~~ readline main_server.c:565:2: warning: implicit declaration of function 'read_filenames'; did you mean 'read_index'? [-Wimplicit-function-declaration] read_filenames(); ^~~~~~~~~~~~~~ read_index main_server.c:568:2: warning: implicit declaration of function 'set_indexable_char' [-Wimplicit-function-declaration] set_indexable_char(indexable_char); ^~~~~~~~~~~~~~~~~~ main_server.c:570:2: warning: implicit declaration of function 'set_special_char' [-Wimplicit-function-declaration] set_special_char(indexable_char); ^~~~~~~~~~~~~~~~ main_server.c: At top level: main_server.c:602:1: warning: return type defaults to 'int' [-Wimplicit-int] reinitialize_server(argc, argv) ^~~~~~~~~~~~~~~~~~~ main_server.c: In function 'reinitialize_server': main_server.c:595:3: warning: implicit declaration of function 'attr_free_table'; did you mean 'attr_name_to_id'? [-Wimplicit-function-declaration] attr_free_table();\ ^ main_server.c:607:2: note: in expansion of macro 'CLEANUP' CLEANUP; ^~~~~~~ main_server.c:597:2: warning: implicit declaration of function 'destroy_filename_hashtable' [-Wimplicit-function-declaration] destroy_filename_hashtable();\ ^ main_server.c:607:2: note: in expansion of macro 'CLEANUP' CLEANUP; ^~~~~~~ main_server.c: At top level: main_server.c:695:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main_server.c: In function 'main': main_server.c:745:2: warning: implicit declaration of function 'init_filename_hashtable' [-Wimplicit-function-declaration] init_filename_hashtable(); ^~~~~~~~~~~~~~~~~~~~~~~ main_server.c:755:2: warning: implicit declaration of function 'region_initialize'; did you mean 'reinitialize'? [-Wimplicit-function-declaration] region_initialize(); ^~~~~~~~~~~~~~~~~ reinitialize main_server.c:802:18: warning: implicit declaration of function 'usageS'; did you mean 'usleep'? [-Wimplicit-function-declaration] RETURNMAIN(usageS()); ^ main_server.c:737:13: note: in definition of macro 'RETURNMAIN' if (val < 0) exit (2);\ ^~~ main_server.c:1068:14: warning: implicit declaration of function 'do_select'; did you mean 'select'? [-Wimplicit-function-declaration] if ((ret = do_select(sockfd, 15)) == 0) { ^~~~~~~~~ select main_server.c:1137:10: warning: implicit declaration of function 'process_query'; did you mean 'process_Y_option'? [-Wimplicit-function-declaration] ret = process_query(clargc, clargv, newsockfd); ^~~~~~~~~~~~~ process_Y_option main_server.c: At top level: main_server.c:1291:1: warning: return type defaults to 'int' [-Wimplicit-int] process_query(argc, argv, newsockfd) ^~~~~~~~~~~~~ main_server.c: In function 'process_query': main_server.c:1390:24: warning: implicit declaration of function 'usage'; did you mean 'usleep'? [-Wimplicit-function-declaration] if (argc <= 1) return(usage()); ^~~~~ usleep main_server.c:1464:7: warning: implicit declaration of function 'fileagrep' [-Wimplicit-function-declaration] i = fileagrep(oldargc, oldargv, 0, stdout); ^~~~~~~~~ main_server.c:1377:22: warning: implicit declaration of function 'destroy_tree' [-Wimplicit-function-declaration] if (ComplexBoolean) destroy_tree(&GParse);\ ^ main_server.c:1465:3: note: in expansion of macro 'RETURN' RETURN(i); ^~~~~~ main_server.c:2093:3: warning: implicit declaration of function 'read_filters'; did you mean 'read_index'? [-Wimplicit-function-declaration] read_filters(INDEX_DIR, UseFilters); ^~~~~~~~~~~~ read_index main_server.c:2097:13: warning: implicit declaration of function 'fileagrep_init'; did you mean 'inet6_rth_init'? [-Wimplicit-function-declaration] if ((GM = fileagrep_init(agrep_argc, agrep_argv, MAXPAT, GPattern)) <= 0) { ^~~~~~~~~~~~~~ inet6_rth_init main_server.c:2132:12: warning: implicit declaration of function 'split_pattern' [-Wimplicit-function-declaration] else if (split_pattern(GPattern, GM, APattern, terminals, &num_terminals, &GParse, StructuredIndex) <= 0) RETURN(-1); ^~~~~~~~~~~~~ main_server.c:2275:9: warning: implicit declaration of function 'search_index'; did you mean 'read_index'? [-Wimplicit-function-declaration] ret = search_index(GParse); ^~~~~~~~~~~~ read_index main_server.c:2431:24: warning: implicit declaration of function 'mask_filenames' [-Wimplicit-function-declaration] if (FILENAMESINFILE) mask_filenames(src_index_set, filenames_file, file_num, num_blocks); /* keep only those files that are in filenames_file */ ^~~~~~~~~~~~~~ main_server.c:2459:4: warning: implicit declaration of function 'get_filenames'; did you mean 'get_file_time'? [-Wimplicit-function-declaration] get_filenames(src_index_set, 0, NULL, dummylen, dummypat, file_num); ^~~~~~~~~~~~~ get_file_time main_server.c:2700:18: warning: implicit declaration of function 'fileagrep_search'; did you mean 'glimpse_search'? [-Wimplicit-function-declaration] if ((ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, stdout)) > 0) { ^~~~~~~~~~~~~~~~ glimpse_search main_server.c:2766:10: warning: implicit declaration of function 'apply_filter' [-Wimplicit-function-declaration] if (apply_filter(GTextfiles[i], outname[0]) == 1) { ^~~~~~~~~~~~ main_server.c:2930:54: warning: implicit declaration of function 'filter_output' [-Wimplicit-function-declaration] ret = filter_output(GTextfiles[i], tempfile, GParse, GD_pattern, GD_length, GOUTTAIL, nullfp, StructuredIndex); ^~~~~~~~~~~~~ main_server.c: In function 'filter_output': main_server.c:3184:32: warning: implicit declaration of function 'region_create'; did you mean 'timer_create'? [-Wimplicit-function-declaration] if (StructuredIndex && (-1 == region_create(infile))) { ^~~~~~~~~~~~~ timer_create main_server.c:3191:25: warning: implicit declaration of function 'region_destroy' [-Wimplicit-function-declaration] if (StructuredIndex) region_destroy(); ^~~~~~~~~~~~~~ main_server.c:3264:48: warning: implicit declaration of function 'region_identify' [-Wimplicit-function-declaration] else if ( (num_attr <= 0) || (((attribute = region_identify(byteoff, 0)) < num_attr) && (attribute >= 0)) ) { ^~~~~~~~~~~~~~~ main_server.c:3343:17: warning: implicit declaration of function 'eval_tree' [-Wimplicit-function-declaration] success = eval_tree(GParse, matched_terminals); ^~~~~~~~~ main_server.c: At top level: main_server.c:3483:1: warning: return type defaults to 'int' [-Wimplicit-int] usage() ^~~~~ main_server.c:3563:1: warning: return type defaults to 'int' [-Wimplicit-int] usageS() ^~~~~~ gcc -Wl,-zrelro -Wl,-R/usr/pkg/lib -Llib -o bin/glimpseserver main_server.o get_filename.o get_index.o split.o index/region.o index/getword.o index/filetype.o index/simpletest.o index/memlook.o index/lib.o index/io.o -lagrep -lc -lm