+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/glimpse-4.18.6/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/glimpse-4.18.6/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for glimpse-4.18.6 for d in compress agrep libtemplate index dynfilters ; do \ ( cd $d; /usr/pkg/bin/gmake ); \ done gmake[1]: Entering directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/compress' cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -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) ^~~~~~~~~~~~~ hash.c: In function 'pad_hash_file': hash.c:636:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system((const char *)buf); ^~~~~~~~~~~~~~~~~~~~~~~~~ cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -c -o string.o string.c string.c:213:1: warning: return type defaults to 'int' [-Wimplicit-int] pad_string_file(filename, FILEBLOCKSIZE) ^~~~~~~~~~~~~~~ string.c: In function 'pad_string_file': string.c:278:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(buf); ^~~~~~~~~~~ cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -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) ^~~~~~~~~~~~~~~~~~~~~~~ misc.c: In function 'build_freq': misc.c:231:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fp, "%d\n", &freq_words); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -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 quick.c: In function 'quick_tcompress': quick.c:87:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(hashindexfp, "%d\n", &blocksize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quick.c: In function 'quick_tuncompress': quick.c:189:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(stringindexfp, "%d\n", &blocksize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -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) ^~~~~~~~~~~~~~ cast.c: In function 'tcompress_file': cast.c:799:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", s); ^~~~~~~~~~~~~~ cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -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 'stpcpy'? [-Wimplicit-function-declaration] if (outfp != NULL) outlen += myfpcopy(outfp, compress_string_table[dindex]); ^~~~~~~~ stpcpy 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); ^~~~~~~~ uncast.c: In function 'tuncompress_file': uncast.c:593:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", s); ^~~~~~~~~~~~~~ cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -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 cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -c -o tmemlook.o tmemlook.c cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -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); ^~~~~~~~~~~~~~~ tbuild.c:153:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(s); ^~~~~~~~~ tbuild.c:155:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(s); ^~~~~~~~~ tbuild.c:157:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(s); ^~~~~~~~~ tbuild.c:255:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(s); ^~~~~~~~~ tbuild.c:257:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(s); ^~~~~~~~~ tbuild.c:270:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(s); ^~~~~~~~~ tbuild.c:291:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(s); ^~~~~~~~~ /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 cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -c -o main_tbuild.o main_tbuild.c main_tbuild.c:17:1: warning: return type defaults to 'int' [-Wimplicit-int] usage(progname) ^~~~~ main_tbuild.c: In function 'main': main_tbuild.c:56:25: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(comp_dir, MAX_LINE_LEN-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -o tbuild hash.o string.o misc.o tbuild.o main_tbuild.o cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -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); ^~~~~~~~~ main_cast.c:114:4: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(comp_dir, MAXNAME-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -o cast main_cast.o hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o cc -I../index -I../agrep -I../libtemplate/include -O2 -I/usr/pkg/include -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' [-Wimplicit-function-declaration] tuncompress_file(name, outname, FLAGS); ^~~~~~~~~~~~~~~~ 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); ^~~~~~~~~~~ main_uncast.c:118:4: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(comp_dir, MAXNAME-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/compress' gmake[1]: Entering directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/agrep' cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o follow.o follow.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from follow.c:6: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o asearch.o asearch.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from agrep.h:6, from asearch.c:2: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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;} ^~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o asearch1.o asearch1.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from agrep.h:6, from asearch1.c:2: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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;} ^~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o agrep.o agrep.c In file included from /usr/include/sys/stat.h:25, from agrep.c:6: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 'execl'? [-Wimplicit-function-declaration] if (agrep_initialfd == -1) ret = exec(execfd, NULL); ^~~~ execl 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 cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o bitap.o bitap.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from agrep.h:6, from bitap.c:15: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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) ^~~~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o checkfile.o checkfile.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from checkfile.c:8: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o compat.o compat.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from compat.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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; ^~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o maskgen.o maskgen.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from agrep.h:6, from maskgen.c:2: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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; ^~~~~~~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o parse.o parse.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from parse.c:6: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ In file included from parse.c:7: 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' or provide a declaration of 'free' In file included from parse.c:7: 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' or provide a declaration of 'free' In file included from parse.c:7: 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' or provide a declaration of 'free' In file included from parse.c:7: 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' or provide a declaration of 'free' In file included from parse.c:7: 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' or provide a declaration of 'free' In file included from parse.c:7: 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' or provide a declaration of 'free' In file included from parse.c:7: 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' 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 '<stdlib.h>' or provide a declaration of 'free' cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o checksg.o checksg.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from agrep.h:6, from checksg.c:2: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o preprocess.o preprocess.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from agrep.h:6, from preprocess.c:16: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o delim.o delim.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from agrep.h:6, from delim.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o asplit.o asplit.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from agrep.h:6, from asplit.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ In file included from asplit.c:5: putils.c: In function 'print_tree': putils.c:69:1: warning: type of 'level' defaults to 'int' [-Wimplicit-int] print_tree(t, level) ^~~~~~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o recursive.o recursive.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from recursive.c:12: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 '<string.h>' or provide a declaration of 'strcpy' recursive.c:37:1: +#include <string.h> #define BUFSIZE 256 recursive.c:67:3: strcpy(name_buf, argv[i]); ^~~~~~ 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 '<stdlib.h>' or provide a declaration of 'free' recursive.c:37:1: +#include <stdlib.h> #define BUFSIZE 256 recursive.c:74:5: free(file_list[j]); ^~~~ 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 '<string.h>' or provide a declaration of 'strcpy' recursive.c:130:30: warning: incompatible implicit declaration of built-in function 'free' for(i=0; i<max_list; i++) free(file_list[i]); ^~~~ recursive.c:130:30: note: include '<stdlib.h>' 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 '<string.h>' 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 '<string.h>' or provide a declaration of 'strcpy' cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o sgrep.o sgrep.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from sgrep.c:2: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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' [-Wimplicit-function-declaration] if (-1 == monkey(pat, m, text+start, text+end, oldpat, oldm)) { ^~~~~~ 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 cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o newmgrep.o newmgrep.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from newmgrep.c:5: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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)) { ^~~~~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o utilities.o utilities.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from utilities.c:5: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ In file included from utilities.c:7: 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' or provide a declaration of 'free' In file included from utilities.c:7: 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<string.h>' 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 '<stdlib.h>' 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 '<string.h>' 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)) { ^~~~~~~ cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o dummyfilters.o dummyfilters.c /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 cc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o main.o main.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from main.c:2: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ In file included from main.c:15: 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); ^~~~~~~~~ cc -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 gmake[1]: Leaving directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/agrep' gmake[1]: Entering directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/libtemplate' Making all in util gmake[2]: Entering directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/libtemplate/util' cc -D__STRICT_ANSI__ -I../include -I/usr/pkg/include -c -o buffer.o buffer.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from buffer.c:52: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ cc -D__STRICT_ANSI__ -I../include -I/usr/pkg/include -c -o host.o host.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from host.c:52: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ host.c: In function 'getrealhost': host.c:139:32: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] return ((char *)(hp != NULL ? strdup(hp->h_name) : NULL)); ^~~~~~ host.c:139:32: warning: incompatible implicit declaration of built-in function 'strdup' cc -D__STRICT_ANSI__ -I../include -I/usr/pkg/include -c -o log.o log.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from log.c:52: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ log.c: In function 'init_log3': log.c:112:10: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] pname = strdup(pn); ^~~~~~ log.c:112:10: warning: incompatible implicit declaration of built-in function 'strdup' 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 '<stdlib.h>' or provide a declaration of 'exit' log.c:60:1: +#include <stdlib.h> log.c:171:3: exit(1); ^~~~ log.c:176:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ log.c:176:3: note: include '<stdlib.h>' 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 '<stdlib.h>' or provide a declaration of 'exit' cc -D__STRICT_ANSI__ -I../include -I/usr/pkg/include -c -o strdup.o strdup.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from strdup.c:52: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ cc -D__STRICT_ANSI__ -I../include -I/usr/pkg/include -c -o system.o system.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:25, from system.c:52: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 '<string.h>' or provide a declaration of 'memset' system.c:58:1: +#include <string.h> #ifdef HAVE_SETRLIMIT system.c:105:3: memset(argv, '\0', sizeof(char *) * 64); ^~~~~~ 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 'alarm_handler': system.c:145:9: warning: implicit declaration of function 'kill' [-Wimplicit-function-declaration] (void) kill(dsl_pid, SIGTERM); ^~~~ 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 '<string.h>' or provide a declaration of 'memset' cc -D__STRICT_ANSI__ -I../include -I/usr/pkg/include -c -o strerror.o strerror.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from strerror.c:52: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ cc -D__STRICT_ANSI__ -I../include -I/usr/pkg/include -c -o string.o string.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from string.c:52: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ string.c: In function 'parse_argv': string.c:73:16: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] p = q = tmp = strdup(cmd); ^~~~~~ string.c:73:16: warning: incompatible implicit declaration of built-in function 'strdup' cc -D__STRICT_ANSI__ -I../include -I/usr/pkg/include -c -o xmalloc.o xmalloc.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from xmalloc.c:52: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 /bin/install -c -o pbulk -g pbulk -m 644 libutil.a ../lib/libutil.a ranlib ../lib/libutil.a gmake[2]: Leaving directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/libtemplate/util' Making all in template gmake[2]: Entering directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/libtemplate/template' cc -I../include -I/usr/pkg/include -c -o template.o template.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from template.c:52: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ ar r libtemplate.a template.o ar: creating libtemplate.a ranlib libtemplate.a /bin/install -c -o pbulk -g pbulk libtemplate.a ../lib/libtemplate.a ranlib ../lib/libtemplate.a gmake[2]: Leaving directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/libtemplate/template' Making all in lib gmake[2]: Entering directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/libtemplate/lib' gmake[2]: Nothing to be done for 'all'. gmake[2]: Leaving directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/libtemplate/lib' gmake[1]: Leaving directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/libtemplate' gmake[1]: Entering directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/index' rm -f buildcast.c cp glimpse.c buildcast.c cc -c -I../index -I../agrep -I../libtemplate/include -DBUILDCAST=1 -o buildcast.o buildcast.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from glimpse.h:8, from buildcast.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 'block2index'? [-Wimplicit-function-declaration] build_index(); ^~~~~~~~~~~ block2index buildcast.c:751:5: warning: implicit declaration of function 'cleanup' [-Wimplicit-function-declaration] cleanup(); ^~~~~~~ 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) ^~~~~ cc -c -I../index -I../agrep -I../libtemplate/include region.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from region.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ cc -c -I../index -I../agrep -I../libtemplate/include dir.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from dir.c:12: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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' [-Wimplicit-function-declaration] if (tuncompress_file(name, outname, TC_EASYSEARCH | TC_OVERWRITE | TC_NOPROMPT) <= 0) return 0; ^~~~~~~~~~~~~~~~ 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) ^~~~~~~~~~~~~~~ cc -c -I../index -I../agrep -I../libtemplate/include io.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from glimpse.h:8, from io.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ In file included from io.c:12: 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() ^~~~~~~~~~~~~~~~~~~~~~~ cc -c -I../index -I../agrep -I../libtemplate/include build_in.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from glimpse.h:8, from build_in.c:26: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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' [-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 */ ^~~~~~~~~~~~~~~~ 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: 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) ^~~~~~~~~~~~~~~~~~~~~~~ cc -c -I../index -I../agrep -I../libtemplate/include filetype.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from glimpse.h:8, from filetype.c:17: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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) ^~~ cc -c -I../index -I../agrep -I../libtemplate/include simpletest.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from simpletest.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 cc -c -I../index -I../agrep -I../libtemplate/include getword.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from glimpse.h:8, from getword.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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) ^~~~~~~~~~~~~~~~ cc -c -I../index -I../agrep -I../libtemplate/include memlook.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from memlook.c:21: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ cc -c -I../index -I../agrep -I../libtemplate/include lib.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from lib.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 '<string.h>' or provide a declaration of 'strlen' lib.c:4:1: +#include <string.h> lib.c:12:8: len = strlen(str); ^~~~~~ 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 '<stdlib.h>' or provide a declaration of 'exit' lib.c:4:1: +#include <stdlib.h> lib.c:16:3: exit(2); ^~~~ cc -c -I../index -I../agrep -I../libtemplate/include partition.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from glimpse.h:8, from partition.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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'; did you mean 'dysize'? [-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 */ ^~~~~ dysize 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])); ^~~~~~~~~ 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); ^~~~~~~~~~~~~~~~~ cc -Wl,-zrelro -L/usr/pkg/lib -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 -lm -ldl cc -c -I../index -I../agrep -I../libtemplate/include -DBUILDCAST=0 glimpse.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from glimpse.h:8, from glimpse.c:3: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 'setstate'? [-Wimplicit-function-declaration] part_num = get_table(s, p_table, MAX_PARTITION, 1) - 1; /* part_num INCLUDES last partition */ ^~~~~~~~~ setstate glimpse.c:875:7: warning: implicit declaration of function 'merge_splits' [-Wimplicit-function-declaration] else merge_splits(); ^~~~~~~~~~~~ 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 'block2index'? [-Wimplicit-function-declaration] if (!DeleteFromIndex || FastIndex) build_index(); ^~~~~~~~~~~ block2index 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' [-Wimplicit-function-declaration] cleanup(); ^~~~~~~ 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) ^~~~~ cc -Wl,-zrelro -L/usr/pkg/lib -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 -lm -ldl cc -I../index -I../agrep -I../libtemplate/include -I/usr/pkg/include -c -o convert.o convert.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from glimpse.h:8, from convert.c:10: /usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~ 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 cc -Wl,-zrelro -L/usr/pkg/lib -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 -lm -ldl gmake[1]: Leaving directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/index' gmake[1]: Entering directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/dynfilters' flex -F -8 htuml2txt.lex gcc -O3 -fomit-frame-pointer -c lex.yy.c gcc -o htuml2txt lex.yy.o -lfl /bin/ld: cannot find -lfl collect2: error: ld returned 1 exit status gmake[1]: *** [Makefile:66: htuml2txt] Error 1 gmake[1]: Leaving directory '/home/pbulk/build/textproc/glimpse/work/glimpse-4.18.6/dynfilters' gmake: *** [Makefile:87: build-sub] Error 2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/textproc/glimpse *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/textproc/glimpse