Build of apg with android toolchain

The build took 00h 00m 58s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
4,867 ansic
744 php
176 sh
89 makefile
9 perl
5,885 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: apg 2.2.3-4 (Tue Apr 4 19:44:04 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -Wall -DAPG_USE_CRYPT -DAPG_DONOTUSE_SHA -o apg bloom.c ./sha/sha.c ./cast/cast.c rnd.c pronpass.c randpass.c restrict.c errors.c apg.c getopt.c convert.c -lcrypt -lm
# gcc -Wall -DAPGBFM -o apgbfm apgbfm.c bloom.c sha/sha.c errors.c getopt.c convert.c -lm
# cc1: error: no include path in which to search for stdc-predef.h
# cc1: error: no include path in which to search for stdc-predef.h
# apgbfm.c:31:20: error: no include path in which to search for stdlib.h
# #include
# ^
# apgbfm.c:32:20: error: no include path in which to search for unistd.h
# #include
# ^
# In file included from bloom.c:50:0:
# bloom.h:38:19: error: no include path in which to search for stdio.h
# #include
# ^
# bloom.h:39:20: error: no include path in which to search for stdlib.h
# #include
# ^
# In file included from apgbfm.c:33:0:
# bloom.h:38:19: error: no include path in which to search for stdio.h
# #include
# ^
# bloom.h:40:20: error: no include path in which to search for string.h
# #include
# ^
# bloom.h:39:20: error: no include path in which to search for stdlib.h
# #include
# ^
# bloom.h:42:21: error: no include path in which to search for strings.h
# #include
# ^
# bloom.h:40:20: error: no include path in which to search for string.h
# #include
# ^
# bloom.h:44:18: error: no include path in which to search for math.h
# #include
# ^
# bloom.h:42:21: error: no include path in which to search for strings.h
# #include
# ^
# bloom.h:44:18: error: no include path in which to search for math.h
# #include
# ^
# In file included from apgbfm.c:33:0:
# bloom.h:80:36: error: unknown type name 'FILE'
# extern int insert_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# In file included from bloom.c:50:0:
# bloom.h:80:36: error: unknown type name 'FILE'
# extern int insert_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# bloom.h:81:35: error: unknown type name 'FILE'
# extern int check_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# bloom.h:81:35: error: unknown type name 'FILE'
# extern int check_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# bloom.h:82:1: error: unknown type name 'FILE'
# extern FILE * create_filter(char * f_name, unsigned long int n_words, f_mode mode);
# ^
# bloom.h:82:1: error: unknown type name 'FILE'
# extern FILE * create_filter(char * f_name, unsigned long int n_words, f_mode mode);
# ^
# bloom.h:83:1: error: unknown type name 'FILE'
# extern FILE * open_filter(char * f_name, const char *mode);
# ^
# bloom.h:83:1: error: unknown type name 'FILE'
# extern FILE * open_filter(char * f_name, const char *mode);
# ^
# bloom.h:84:25: error: unknown type name 'FILE'
# extern int close_filter(FILE *f_dsk);
# ^
# bloom.h:84:25: error: unknown type name 'FILE'
# extern int close_filter(FILE *f_dsk);
# ^
# bloom.h:85:29: error: unknown type name 'FILE'
# extern h_val get_filtersize(FILE *f);
# ^
# bloom.h:85:29: error: unknown type name 'FILE'
# extern h_val get_filtersize(FILE *f);
# ^
# bloom.h:86:30: error: unknown type name 'FILE'
# extern f_mode get_filtermode(FILE *f);
# ^
# bloom.h:86:30: error: unknown type name 'FILE'
# extern f_mode get_filtermode(FILE *f);
# ^
# bloom.h:87:26: error: unknown type name 'FILE'
# extern h_val count_words(FILE *dict_file);
# ^
# bloom.h:87:26: error: unknown type name 'FILE'
# extern h_val count_words(FILE *dict_file);
# ^
# bloom.h:89:27: error: unknown type name 'FILE'
# extern int print_flt_info(FILE * filter);
# ^
# In file included from apgbfm.c:34:0:
# errs.h:33:19: error: no include path in which to search for errno.h
# #include
# ^
# bloom.c:57:12: error: unknown type name 'FILE'
# int getbit(FILE * f, h_val bitnum);
# ^
# bloom.c:58:12: error: unknown type name 'FILE'
# int putbit(FILE * f, h_val bitnum);
# ^
# bloom.c:117:25: error: unknown type name 'FILE'
# insert_word(char *word, FILE *file, h_val filter_size, f_mode mode)
# ^
# apgbfm.c: In function 'main':
# apgbfm.c:59:2: error: unknown type name 'FILE'
# FILE *f_dictfile; /* dictionary file descriptor */
# ^
# apgbfm.c:62:2: error: unknown type name 'FILE'
# FILE *f_filter; /* filter file descriptor */
# ^
# bloom.c:157:24: error: unknown type name 'FILE'
# check_word(char *word, FILE *file, h_val filter_size, f_mode mode)
# ^
# bloom.c:211:1: error: unknown type name 'FILE'
# FILE *
# ^
# bloom.c: In function 'open_filter':
# apgbfm.c:89:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(-1);
# ^
# bloom.c:214:2: error: unknown type name 'FILE'
# FILE *f;
# ^
# apgbfm.c:89:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# bloom.c:219:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# if ((f = fopen (f_name, mode)) == NULL)
# ^
# bloom.c:219:9: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ((f = fopen (f_name, mode)) == NULL)
# ^
# apgbfm.c:118:10: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# wc = atoi(apg_optarg);
# ^
# bloom.c:219:36: error: 'NULL' undeclared (first use in this function)
# if ((f = fopen (f_name, mode)) == NULL)
# ^
# bloom.c:219:36: note: each undeclared identifier is reported only once for each function it appears in
# bloom.c:221:2: warning: implicit declaration of function 'fread' [-Wimplicit-function-declaration]
# if (fread ( (void *)&bf_hdr, APGBFHDRSIZE, 1, f) != 1)
# ^
# apgbfm.c:136:10: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf ("APG Bloom filter management programm");
# ^
# apgbfm.c:136:10: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# bloom.c:222:5: warning: implicit declaration of function 'ferror' [-Wimplicit-function-declaration]
# if (ferror (f) != 0)
# ^
# apgbfm.c:152:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(-1);
# ^
# bloom.c:234:4: warning: implicit declaration of function 'fseek' [-Wimplicit-function-declaration]
# if (fseek (f, 0, SEEK_SET) == -1)
# ^
# bloom.c:234:21: error: 'SEEK_SET' undeclared (first use in this function)
# if (fseek (f, 0, SEEK_SET) == -1)
# ^
# apgbfm.c:161:53: error: 'NULL' undeclared (first use in this function)
# if ( (f_filter = open_filter(filter, "r+")) == NULL)
# ^
# apgbfm.c:161:53: note: each undeclared identifier is reported only once for each function it appears in
# bloom.c: At top level:
# bloom.c:249:14: error: unknown type name 'FILE'
# close_filter(FILE *f_dsk)
# ^
# apgbfm.c:163:6: warning: implicit declaration of function 'get_filtersize' [-Wimplicit-function-declaration]
# filter_size = get_filtersize(f_filter);
# ^
# bloom.c:263:16: error: unknown type name 'FILE'
# get_filtersize(FILE * f)
# ^
# apgbfm.c:164:6: warning: implicit declaration of function 'get_filtermode' [-Wimplicit-function-declaration]
# flt_mode = get_filtermode(f_filter);
# ^
# bloom.c:285:16: error: unknown type name 'FILE'
# get_filtermode(FILE *f)
# ^
# apgbfm.c:166:6: warning: implicit declaration of function 'insert_word' [-Wimplicit-function-declaration]
# if ( insert_word (word, f_filter, filter_size, flt_mode) == -1)
# ^
# bloom.c:323:1: error: unknown type name 'FILE'
# FILE *
# ^
# apgbfm.c:169:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf ("Word %s added\n",word);
# ^
# bloom.c: In function 'create_filter':
# bloom.c:326:2: error: unknown type name 'FILE'
# FILE *f;
# ^
# apgbfm.c:174:6: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# word = (char *) calloc(1,MAX_DICT_STRLEN);
# ^
# apgbfm.c:174:22: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# word = (char *) calloc(1,MAX_DICT_STRLEN);
# ^
# apgbfm.c:175:6: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# if ( (f_dictfile = fopen(dictfile,"r")) == NULL)
# ^
# apgbfm.c:175:23: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( (f_dictfile = fopen(dictfile,"r")) == NULL)
# ^
# bloom.c:343:2: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
# bf_hdr.fs = FSIZE_BIT(n_words);
# ^
# bloom.c:53:61: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# #define FSIZE_BIT(word_count) ((unsigned long int)(5.0/(1.0-pow( 0.84151068, 1.0/((double)word_count)))))
# ^
# bloom.c:343:14: note: in expansion of macro 'FSIZE_BIT'
# bf_hdr.fs = FSIZE_BIT(n_words);
# ^
# apgbfm.c:182:6: warning: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
# while ((fgets(word, MAX_DICT_STRLEN, f_dictfile) != NULL))
# ^
# apgbfm.c:184:10: warning: implicit declaration of function 'strtok' [-Wimplicit-function-declaration]
# tmp = (char *)strtok (word," \t\n\0");
# ^
# bloom.c:347:9: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ((f = fopen (f_name, "w+")) == NULL)
# ^
# bloom.c:347:36: error: 'NULL' undeclared (first use in this function)
# if ((f = fopen (f_name, "w+")) == NULL)
# ^
# apgbfm.c:195:11: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf (stdout,".");
# ^
# apgbfm.c:195:11: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# apgbfm.c:195:20: error: 'stdout' undeclared (first use in this function)
# fprintf (stdout,".");
# ^
# bloom.c:350:2: warning: implicit declaration of function 'fwrite' [-Wimplicit-function-declaration]
# if (fwrite ( (void *)&bf_hdr, APGBFHDRSIZE, 1, f) != 1)
# ^
# apgbfm.c:196:11: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# fflush (stdout);
# ^
# bloom.c:350:6: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# if (fwrite ( (void *)&bf_hdr, APGBFHDRSIZE, 1, f) != 1)
# ^
# apgbfm.c:199:10: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# (void)memset((void *)word, 0, MAX_DICT_STRLEN);
# ^
# apgbfm.c:199:16: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# (void)memset((void *)word, 0, MAX_DICT_STRLEN);
# ^
# apgbfm.c:201:31: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# if (silent_flag != TRUE) printf ("\n");
# ^
# bloom.c:358:19: error: 'SEEK_SET' undeclared (first use in this function)
# if (fseek (f, 0, SEEK_SET) == -1)
# ^
# apgbfm.c:202:6: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free ( (void *)word);
# ^
# apgbfm.c:202:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# bloom.c: At top level:
# apgbfm.c:203:6: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose (f_dictfile);
# ^
# bloom.c:373:13: error: unknown type name 'FILE'
# count_words(FILE *dict_file)
# ^
# apgbfm.c:204:6: warning: implicit declaration of function 'close_filter' [-Wimplicit-function-declaration]
# close_filter (f_filter);
# ^
# bloom.c: In function 'hash2bit':
# apgbfm.c:215:6: warning: implicit declaration of function 'check_word' [-Wimplicit-function-declaration]
# switch(check_word (word, f_filter, filter_size, flt_mode))
# ^
# bloom.c:407:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# apg_shaUpdate (&context, (BYTE *)word, strlen(word));
# ^
# bloom.c:407:41: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# apg_shaUpdate (&context, (BYTE *)word, strlen(word));
# ^
# apgbfm.c:221:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf ("%s: %s \n",word, FOUND);
# ^
# bloom.c:409:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# return ( (h_val *)memcpy( (void *)b, (void *)&cs[0], SHA_DIGESTSIZE));
# ^
# apgbfm.c:231:22: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# word = (char *) calloc(1,MAX_DICT_STRLEN);
# ^
# bloom.c:409:20: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# return ( (h_val *)memcpy( (void *)b, (void *)&cs[0], SHA_DIGESTSIZE));
# ^
# apgbfm.c:232:23: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( (f_dictfile = fopen(dictfile,"r")) == NULL)
# ^
# bloom.c: At top level:
# bloom.c:423:8: error: unknown type name 'FILE'
# getbit(FILE * f, h_val bitnum)
# ^
# apgbfm.c:234:6: warning: implicit declaration of function 'count_words' [-Wimplicit-function-declaration]
# wc = count_words (f_dictfile);
# ^
# bloom.c:455:8: error: unknown type name 'FILE'
# putbit(FILE * f, h_val bitnum)
# ^
# apgbfm.c:254:10: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf ("%s: %s\n",word, FOUND);
# ^
# apgbfm.c:260:16: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# (void)memset((void *)word, 0, MAX_DICT_STRLEN);
# ^
# apgbfm.c:262:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free ( (void *)word);
# ^
# apgbfm.c:276:22: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# word = (char *) calloc(1,MAX_DICT_STRLEN);
# ^
# apgbfm.c:277:23: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( (f_dictfile = fopen(dictfile,"r")) == NULL)
# ^
# bloom.c: In function 'open_filter':
# apgbfm.c:281:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf (stdout,"Counting words in dictionary. Please wait...\n");
# ^
# bloom.c:238:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# apgbfm.c:308:18: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf (stdout, ".");
# ^
# apgbfm.c:312:16: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# (void)memset((void *)word, 0, MAX_DICT_STRLEN);
# ^
# apgbfm.c:314:31: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# if (silent_flag != TRUE) printf ("\n");
# ^
# apgbfm.c:315:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free ( (void *)word);
# ^
# apgbfm.c:82:7: warning: variable 'case_insensitive_flag' set but not used [-Wunused-but-set-variable]
# flag case_insensitive_flag = FALSE; /* -q */
# ^
# apgbfm.c: In function 'print_help':
# apgbfm.c:334:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf ("\napgbfm APG Bloom filter management\n");
# ^
# apgbfm.c: In function 'checkopt':
# apgbfm.c:368:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# for(i=0; i < strlen(opt);i++)
# ^
# apgbfm.c:368:15: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# for(i=0; i < strlen(opt);i++)
# ^
# apgbfm.c: In function 'print_filter_info':
# apgbfm.c:387:1: error: unknown type name 'FILE'
# FILE * f_filter;
# ^
# apgbfm.c:389:47: error: 'NULL' undeclared (first use in this function)
# if ( (f_filter = open_filter(filter, "r")) == NULL)
# ^
# apgbfm.c:391:1: warning: implicit declaration of function 'print_flt_info' [-Wimplicit-function-declaration]
# if (( print_flt_info(f_filter)) == -1)
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# In file included from bloom.c:50:0:
# bloom.h:38:19: error: no include path in which to search for stdio.h
# #include
# ^
# bloom.h:39:20: error: no include path in which to search for stdlib.h
# #include
# ^
# bloom.h:40:20: error: no include path in which to search for string.h
# #include
# ^
# bloom.h:42:21: error: no include path in which to search for strings.h
# #include
# ^
# bloom.h:44:18: error: no include path in which to search for math.h
# #include
# ^
# In file included from bloom.c:50:0:
# bloom.h:80:36: error: unknown type name 'FILE'
# extern int insert_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# bloom.h:81:35: error: unknown type name 'FILE'
# extern int check_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# bloom.h:82:1: error: unknown type name 'FILE'
# extern FILE * create_filter(char * f_name, unsigned long int n_words, f_mode mode);
# ^
# bloom.h:83:1: error: unknown type name 'FILE'
# extern FILE * open_filter(char * f_name, const char *mode);
# ^
# bloom.h:84:25: error: unknown type name 'FILE'
# extern int close_filter(FILE *f_dsk);
# ^
# bloom.h:85:29: error: unknown type name 'FILE'
# extern h_val get_filtersize(FILE *f);
# ^
# bloom.h:86:30: error: unknown type name 'FILE'
# extern f_mode get_filtermode(FILE *f);
# ^
# bloom.h:87:26: error: unknown type name 'FILE'
# extern h_val count_words(FILE *dict_file);
# ^
# bloom.h:89:27: error: unknown type name 'FILE'
# extern int print_flt_info(FILE * filter);
# ^
# bloom.c:57:12: error: unknown type name 'FILE'
# int getbit(FILE * f, h_val bitnum);
# ^
# bloom.c:58:12: error: unknown type name 'FILE'
# int putbit(FILE * f, h_val bitnum);
# ^
# bloom.c:71:16: error: unknown type name 'FILE'
# print_flt_info(FILE * filter)
# ^
# bloom.c:117:25: error: unknown type name 'FILE'
# insert_word(char *word, FILE *file, h_val filter_size, f_mode mode)
# ^
# bloom.c:157:24: error: unknown type name 'FILE'
# check_word(char *word, FILE *file, h_val filter_size, f_mode mode)
# ^
# bloom.c:211:1: error: unknown type name 'FILE'
# FILE *
# ^
# bloom.c: In function 'open_filter':
# bloom.c:214:2: error: unknown type name 'FILE'
# FILE *f;
# ^
# bloom.c:219:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# if ((f = fopen (f_name, mode)) == NULL)
# ^
# bloom.c:219:9: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ((f = fopen (f_name, mode)) == NULL)
# ^
# bloom.c:219:36: error: 'NULL' undeclared (first use in this function)
# if ((f = fopen (f_name, mode)) == NULL)
# ^
# bloom.c:219:36: note: each undeclared identifier is reported only once for each function it appears in
# bloom.c:221:2: warning: implicit declaration of function 'fread' [-Wimplicit-function-declaration]
# if (fread ( (void *)&bf_hdr, APGBFHDRSIZE, 1, f) != 1)
# ^
# bloom.c:222:5: warning: implicit declaration of function 'ferror' [-Wimplicit-function-declaration]
# if (ferror (f) != 0)
# ^
# bloom.c:234:4: warning: implicit declaration of function 'fseek' [-Wimplicit-function-declaration]
# if (fseek (f, 0, SEEK_SET) == -1)
# ^
# bloom.c:234:21: error: 'SEEK_SET' undeclared (first use in this function)
# if (fseek (f, 0, SEEK_SET) == -1)
# ^
# bloom.c: At top level:
# bloom.c:249:14: error: unknown type name 'FILE'
# close_filter(FILE *f_dsk)
# ^
# bloom.c:263:16: error: unknown type name 'FILE'
# get_filtersize(FILE * f)
# ^
# bloom.c:285:16: error: unknown type name 'FILE'
# get_filtermode(FILE *f)
# ^
# bloom.c:323:1: error: unknown type name 'FILE'
# FILE *
# ^
# bloom.c: In function 'create_filter':
# bloom.c:326:2: error: unknown type name 'FILE'
# FILE *f;
# ^
# bloom.c:343:2: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
# bf_hdr.fs = FSIZE_BIT(n_words);
# ^
# bloom.c:53:61: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# #define FSIZE_BIT(word_count) ((unsigned long int)(5.0/(1.0-pow( 0.84151068, 1.0/((double)word_count)))))
# ^
# bloom.c:343:14: note: in expansion of macro 'FSIZE_BIT'
# bf_hdr.fs = FSIZE_BIT(n_words);
# ^
# bloom.c:347:9: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ((f = fopen (f_name, "w+")) == NULL)
# ^
# bloom.c:347:36: error: 'NULL' undeclared (first use in this function)
# if ((f = fopen (f_name, "w+")) == NULL)
# ^
# bloom.c:350:2: warning: implicit declaration of function 'fwrite' [-Wimplicit-function-declaration]
# if (fwrite ( (void *)&bf_hdr, APGBFHDRSIZE, 1, f) != 1)
# ^
# bloom.c:350:6: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# if (fwrite ( (void *)&bf_hdr, APGBFHDRSIZE, 1, f) != 1)
# ^
# bloom.c:358:19: error: 'SEEK_SET' undeclared (first use in this function)
# if (fseek (f, 0, SEEK_SET) == -1)
# ^
# bloom.c: At top level:
# bloom.c:373:13: error: unknown type name 'FILE'
# count_words(FILE *dict_file)
# ^
# bloom.c: In function 'hash2bit':
# bloom.c:407:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# apg_shaUpdate (&context, (BYTE *)word, strlen(word));
# ^
# bloom.c:407:41: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# apg_shaUpdate (&context, (BYTE *)word, strlen(word));
# ^
# bloom.c:409:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# return ( (h_val *)memcpy( (void *)b, (void *)&cs[0], SHA_DIGESTSIZE));
# ^
# bloom.c:409:20: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# return ( (h_val *)memcpy( (void *)b, (void *)&cs[0], SHA_DIGESTSIZE));
# ^
# bloom.c: At top level:
# bloom.c:423:8: error: unknown type name 'FILE'
# getbit(FILE * f, h_val bitnum)
# ^
# bloom.c:455:8: error: unknown type name 'FILE'
# putbit(FILE * f, h_val bitnum)
# ^
# bloom.c: In function 'open_filter':
# bloom.c:238:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# ./sha/sha.c:15:20: error: no include path in which to search for string.h
# #include
# ^
# ./sha/sha.c: In function 'apg_shaFinal':
# ./sha/sha.c:270:7: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset( ( BYTE * ) &shaInfo->data + count, 0, 64 - count );
# ^
# ./sha/sha.c:270:7: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# ./sha/sha.c:281:5: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset( ( BYTE * ) &shaInfo->data + count, 0, 56 - count );
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# cc1: error: no include path in which to search for stdc-predef.h
# sha/sha.c:15:20: error: no include path in which to search for string.h
# #include
# ^
# sha/sha.c: In function 'apg_shaFinal':
# sha/sha.c:270:7: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset( ( BYTE * ) &shaInfo->data + count, 0, 64 - count );
# ^
# sha/sha.c:270:7: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# sha/sha.c:281:5: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset( ( BYTE * ) &shaInfo->data + count, 0, 56 - count );
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# errors.c:30:19: error: no include path in which to search for stdio.h
# #include
# ^
# errors.c:31:20: error: no include path in which to search for string.h
# #include
# ^
# errors.c:32:20: error: no include path in which to search for unistd.h
# #include
# ^
# errors.c:33:20: error: no include path in which to search for stdlib.h
# #include
# ^
# In file included from errors.c:34:0:
# errs.h:33:19: error: no include path in which to search for errno.h
# #include
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# errors.c: In function 'err_sys':
# errors.c:55:2: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
# perror(string);
# ^
# rnd.c:30:19: error: no include path in which to search for stdio.h
# #include
# ^
# rnd.c:31:20: error: no include path in which to search for stdlib.h
# #include
# ^
# rnd.c:33:21: error: no include path in which to search for strings.h
# #include
# ^
# rnd.c:35:20: error: no include path in which to search for string.h
# #include
# ^
# errors.c: In function 'err_sys_fatal':
# rnd.c:36:20: error: no include path in which to search for unistd.h
# #include
# ^
# rnd.c:37:23: error: no include path in which to search for sys/types.h
# #include
# ^
# errors.c:82:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit (-1);
# ^
# errors.c:82:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# rnd.c:38:22: error: no include path in which to search for sys/time.h
# #include
# ^
# errors.c: In function 'err_app':
# errors.c:99:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf (stderr, "%s: ", string);
# ^
# errors.c:99:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# errors.c:99:11: error: 'stderr' undeclared (first use in this function)
# fprintf (stderr, "%s: ", string);
# ^
# errors.c:99:11: note: each undeclared identifier is reported only once for each function it appears in
# errors.c:101:2: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# fflush (stderr);
# ^
# errors.c: In function 'err_app_fatal':
# errors.c:122:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf (stderr, "%s: ", string);
# ^
# errors.c:122:11: error: 'stderr' undeclared (first use in this function)
# fprintf (stderr, "%s: ", string);
# ^
# errors.c:130:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit (-1);
# ^
# rnd.c: In function 'x917cast_rnd':
# rnd.c:83:17: error: storage size of 'local_time' isn't known
# struct timeval local_time;
# ^
# rnd.c:104:2: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
# (void) gettimeofday (&local_time, 0);
# ^
# rnd.c:83:17: warning: unused variable 'local_time' [-Wunused-variable]
# struct timeval local_time;
# ^
# rnd.c: In function 'x917_setseed':
# rnd.c:179:2: error: unknown type name 'FILE'
# FILE * dr;
# ^
# rnd.c:183:2: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
# pid = (UINT32)getpid();
# ^
# rnd.c:185:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# if ( (dr = fopen(APG_DEVRANDOM, "r")) != NULL)
# ^
# rnd.c:185:11: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( (dr = fopen(APG_DEVRANDOM, "r")) != NULL)
# ^
# rnd.c:185:43: error: 'NULL' undeclared (first use in this function)
# if ( (dr = fopen(APG_DEVRANDOM, "r")) != NULL)
# ^
# rnd.c:185:43: note: each undeclared identifier is reported only once for each function it appears in
# rnd.c:187:4: warning: implicit declaration of function 'fread' [-Wimplicit-function-declaration]
# (void)fread( (void *)&drs[0], 8, 1, dr);
# ^
# rnd.c:190:4: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# (void) fclose(dr);
# ^
# rnd.c:192:16: warning: assignment makes pointer from integer without a cast [enabled by default]
# else if ( (dr = fopen(APG_DEVURANDOM, "r")) != NULL)
# ^
# rnd.c:205:6: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr,"CAN NOT USE RANDOM DEVICE TO GENERATE RANDOM SEED\n");
# ^
# rnd.c:205:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# rnd.c:205:14: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"CAN NOT USE RANDOM DEVICE TO GENERATE RANDOM SEED\n");
# ^
# rnd.c:207:6: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# fflush(stderr);
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# pronpass.c:37:19: error: no include path in which to search for stdio.h
# #include
# ^
# pronpass.c:38:20: error: no include path in which to search for stdlib.h
# #include
# ^
# pronpass.c:39:20: error: no include path in which to search for string.h
# #include
# ^
# pronpass.c:41:22: error: no include path in which to search for strings.h
# #include
# ^
# pronpass.c:43:18: error: no include path in which to search for time.h
# #include
# ^
# pronpass.c:44:23: error: no include path in which to search for sys/types.h
# #include
# ^
# In file included from pronpass.c:48:0:
# errs.h:33:19: error: no include path in which to search for errno.h
# #include
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# getopt.c:15:19: error: no include path in which to search for stdio.h
# #include
# ^
# getopt.c:26:21: error: 'NULL' undeclared here (not in a function)
# static char *scan = NULL; /* Private scan pointer. */
# ^
# getopt.c: In function 'badopt':
# getopt.c:36:3: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr,"%s%s%c\n", prog, mess, ch);
# ^
# getopt.c:36:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# getopt.c:36:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"%s%s%c\n", prog, mess, ch);
# ^
# getopt.c:36:11: note: each undeclared identifier is reported only once for each function it appears in
# getopt.c:37:3: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# fflush(stderr);
# ^
# getopt.c: In function 'apg_getopt':
# getopt.c:60:12: error: 'EOF' undeclared (first use in this function)
# return (EOF);
# ^
# pronpass.c: In function 'gen_word':
# pronpass.c:1352:5: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# if ( (word_units = (USHORT *) calloc (sizeof (USHORT), pwlen+1))==NULL ||
# ^
# pronpass.c:1352:39: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# if ( (word_units = (USHORT *) calloc (sizeof (USHORT), pwlen+1))==NULL ||
# ^
# pronpass.c:1352:75: error: 'NULL' undeclared (first use in this function)
# if ( (word_units = (USHORT *) calloc (sizeof (USHORT), pwlen+1))==NULL ||
# ^
# pronpass.c:1352:75: note: each undeclared identifier is reported only once for each function it appears in
# pronpass.c:1367:6: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# syllable_length = strlen (new_syllable);
# ^
# pronpass.c:1367:24: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# syllable_length = strlen (new_syllable);
# ^
# pronpass.c:1412:11: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# (void) strcpy (word, new_syllable);
# ^
# pronpass.c:1412:18: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# (void) strcpy (word, new_syllable);
# ^
# pronpass.c:1422:4: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# (void)memset ( (void *)new_syllable, 0, (size_t)(pwlen * sizeof(USHORT)+1));
# ^
# pronpass.c:1422:10: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# (void)memset ( (void *)new_syllable, 0, (size_t)(pwlen * sizeof(USHORT)+1));
# ^
# pronpass.c:1422:45: error: 'size_t' undeclared (first use in this function)
# (void)memset ( (void *)new_syllable, 0, (size_t)(pwlen * sizeof(USHORT)+1));
# ^
# pronpass.c:1446:11: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
# (void) strcat (word, new_syllable);
# ^
# pronpass.c:1446:18: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# (void) strcat (word, new_syllable);
# ^
# pronpass.c:1457:10: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# (void)memset ( (void *)new_syllable, 0, (size_t)(pwlen * sizeof(USHORT)+1));
# ^
# pronpass.c:1475:17: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# (void) strcpy (word, "");
# ^
# pronpass.c:1485:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free ((char *) new_syllable);
# ^
# pronpass.c:1485:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# pronpass.c: In function 'gen_syllable':
# pronpass.c:1699:13: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# (void) strcpy (syllable, "");
# ^
# pronpass.c:1737:31: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# length_left -= strlen (syllable);
# ^
# pronpass.c:1765:38: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# length_left -= (short int) strlen (rules[unit].unit_code);
# ^
# pronpass.c:2050:23: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# (void) strcat (syllable, rules[unit].unit_code);
# ^
# pronpass.c:2056:41: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# (void) strcpy (&syllable[strlen (syllable) -
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# convert.c:30:20: error: no include path in which to search for stdlib.h
# #include
# ^
# convert.c:31:20: error: no include path in which to search for string.h
# #include
# ^
# convert.c:33:21: error: no include path in which to search for strings.h
# #include
# ^
# convert.c: In function 'decapitalize':
# convert.c:80:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# int str_len = strlen(word);
# ^
# convert.c:80:16: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# int str_len = strlen(word);
# ^
# make: *** [Makefile:105: apgbfm] Error 1
# make: *** Waiting for unfinished jobs....
# cc1: error: no include path in which to search for stdc-predef.h
# randpass.c:34:19: error: no include path in which to search for stdio.h
# #include
# ^
# randpass.c:35:20: error: no include path in which to search for stdlib.h
# #include
# ^
# randpass.c:36:18: error: no include path in which to search for time.h
# #include
# ^
# randpass.c:38:17: error: no include path in which to search for pwd.h
# #include
# ^
# randpass.c:40:20: error: no include path in which to search for unistd.h
# #include
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# restrict.c:33:19: error: no include path in which to search for stdio.h
# #include
# ^
# restrict.c:34:20: error: no include path in which to search for stdlib.h
# #include
# ^
# restrict.c:35:20: error: no include path in which to search for string.h
# #include
# ^
# In file included from restrict.h:36:0,
# from restrict.c:36:
# bloom.h:38:19: error: no include path in which to search for stdio.h
# #include
# ^
# bloom.h:39:20: error: no include path in which to search for stdlib.h
# #include
# ^
# bloom.h:40:20: error: no include path in which to search for string.h
# #include
# ^
# bloom.h:42:21: error: no include path in which to search for strings.h
# #include
# ^
# bloom.h:44:18: error: no include path in which to search for math.h
# #include
# ^
# In file included from restrict.h:36:0,
# from restrict.c:36:
# bloom.h:80:36: error: unknown type name 'FILE'
# extern int insert_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# bloom.h:81:35: error: unknown type name 'FILE'
# extern int check_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# bloom.h:82:1: error: unknown type name 'FILE'
# extern FILE * create_filter(char * f_name, unsigned long int n_words, f_mode mode);
# ^
# bloom.h:83:1: error: unknown type name 'FILE'
# extern FILE * open_filter(char * f_name, const char *mode);
# ^
# bloom.h:84:25: error: unknown type name 'FILE'
# extern int close_filter(FILE *f_dsk);
# ^
# bloom.h:85:29: error: unknown type name 'FILE'
# extern h_val get_filtersize(FILE *f);
# ^
# bloom.h:86:30: error: unknown type name 'FILE'
# extern f_mode get_filtermode(FILE *f);
# ^
# bloom.h:87:26: error: unknown type name 'FILE'
# extern h_val count_words(FILE *dict_file);
# ^
# restrict.c: In function 'check_pass':
# restrict.c:54:2: error: unknown type name 'FILE'
# FILE *dct;
# ^
# restrict.c:57:2: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# if( (string = (char *) calloc(1,MAX_DICT_STRING_SIZE)) == NULL)
# ^
# restrict.c:57:25: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# if( (string = (char *) calloc(1,MAX_DICT_STRING_SIZE)) == NULL)
# ^
# restrict.c:57:60: error: 'NULL' undeclared (first use in this function)
# if( (string = (char *) calloc(1,MAX_DICT_STRING_SIZE)) == NULL)
# ^
# restrict.c:57:60: note: each undeclared identifier is reported only once for each function it appears in
# restrict.c:67:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# if ( (dct = fopen(dict,"r")) == NULL)
# ^
# restrict.c:67:12: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( (dct = fopen(dict,"r")) == NULL)
# ^
# restrict.c:70:2: warning: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
# while ((fgets(string, MAX_DICT_STRING_SIZE, dct) != NULL))
# ^
# restrict.c:72:4: warning: implicit declaration of function 'strtok' [-Wimplicit-function-declaration]
# tmp = strtok (string," \t\n\0");
# ^
# restrict.c:72:8: warning: assignment makes pointer from integer without a cast [enabled by default]
# tmp = strtok (string," \t\n\0");
# ^
# restrict.c:77:4: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# if(strlen(string) != strlen(pass)) continue;
# ^
# restrict.c:77:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if(strlen(string) != strlen(pass)) continue;
# ^
# restrict.c:78:4: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# else if (strncmp(string, pass, strlen(pass)) == 0)
# ^
# restrict.c:80:6: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free ( (void *)string);
# ^
# restrict.c:80:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# restrict.c:81:6: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose (dct);
# ^
# restrict.c:89:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free ( (void *)string);
# ^
# restrict.c: In function 'bloom_check_pass':
# restrict.c:112:2: error: unknown type name 'FILE'
# FILE *f_filter;
# ^
# restrict.c:115:47: error: 'NULL' undeclared (first use in this function)
# if ( (f_filter = open_filter(filter,"r")) == NULL)
# ^
# restrict.c:117:2: warning: implicit declaration of function 'get_filtersize' [-Wimplicit-function-declaration]
# filter_size = get_filtersize(f_filter);
# ^
# restrict.c:118:2: warning: implicit declaration of function 'get_filtermode' [-Wimplicit-function-declaration]
# flt_mode = get_filtermode(f_filter);
# ^
# restrict.c:119:2: warning: implicit declaration of function 'check_word' [-Wimplicit-function-declaration]
# ret = check_word (word, f_filter, filter_size, flt_mode);
# ^
# restrict.c:120:2: warning: implicit declaration of function 'close_filter' [-Wimplicit-function-declaration]
# close_filter(f_filter);
# ^
# restrict.c: In function 'paranoid_bloom_check_pass':
# restrict.c:143:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# int len = strlen(password); /* string length */
# ^
# restrict.c:157:27: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# if ((substring = (char *)calloc(1, (size_t)len))==NULL)
# ^
# restrict.c:157:38: error: 'size_t' undeclared (first use in this function)
# if ((substring = (char *)calloc(1, (size_t)len))==NULL)
# ^
# restrict.c:157:45: error: expected ')' before 'len'
# if ((substring = (char *)calloc(1, (size_t)len))==NULL)
# ^
# restrict.c:157:52: error: 'NULL' undeclared (first use in this function)
# if ((substring = (char *)calloc(1, (size_t)len))==NULL)
# ^
# restrict.c:182:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# (void)memset(substring,0,(size_t)len);
# ^
# restrict.c:182:11: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# (void)memset(substring,0,(size_t)len);
# ^
# restrict.c:182:38: error: expected ')' before 'len'
# (void)memset(substring,0,(size_t)len);
# ^
# restrict.c: In function 'filter_check_pass':
# restrict.c:219:11: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
# if ((strchr(word,smbl[i].ch)) != NULL)
# ^
# restrict.c:219:16: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# if ((strchr(word,smbl[i].ch)) != NULL)
# ^
# restrict.c:219:44: error: 'NULL' undeclared (first use in this function)
# if ((strchr(word,smbl[i].ch)) != NULL)
# ^
# restrict.c: In function 'set_exclude_list':
# restrict.c:267:6: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strlen(char_string) > 93)
# ^
# restrict.c:270:8: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# if ((strchr(char_string, smbl[i].ch)) != NULL)
# ^
# restrict.c:270:44: error: 'NULL' undeclared (first use in this function)
# if ((strchr(char_string, smbl[i].ch)) != NULL)
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# errors.c:30:19: error: no include path in which to search for stdio.h
# #include
# ^
# errors.c:31:20: error: no include path in which to search for string.h
# #include
# ^
# errors.c:32:20: error: no include path in which to search for unistd.h
# #include
# ^
# errors.c:33:20: error: no include path in which to search for stdlib.h
# #include
# ^
# In file included from errors.c:34:0:
# errs.h:33:19: error: no include path in which to search for errno.h
# #include
# ^
# errors.c: In function 'err_sys':
# errors.c:55:2: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
# perror(string);
# ^
# errors.c: In function 'err_sys_fatal':
# errors.c:82:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit (-1);
# ^
# errors.c:82:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# errors.c: In function 'err_app':
# errors.c:99:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf (stderr, "%s: ", string);
# ^
# errors.c:99:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# errors.c:99:11: error: 'stderr' undeclared (first use in this function)
# fprintf (stderr, "%s: ", string);
# ^
# errors.c:99:11: note: each undeclared identifier is reported only once for each function it appears in
# errors.c:101:2: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# fflush (stderr);
# ^
# errors.c: In function 'err_app_fatal':
# errors.c:122:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf (stderr, "%s: ", string);
# ^
# errors.c:122:11: error: 'stderr' undeclared (first use in this function)
# fprintf (stderr, "%s: ", string);
# ^
# errors.c:130:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit (-1);
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# apg.c:33:19: error: no include path in which to search for stdio.h
# #include
# ^
# apg.c:34:20: error: no include path in which to search for stdlib.h
# #include
# ^
# apg.c:36:21: error: no include path in which to search for strings.h
# #include
# ^
# apg.c:38:20: error: no include path in which to search for string.h
# #include
# ^
# apg.c:39:18: error: no include path in which to search for time.h
# #include
# ^
# apg.c:52:19: error: no include path in which to search for crypt.h
# #include
# ^
# apg.c:65:20: error: no include path in which to search for unistd.h
# #include
# ^
# In file included from restrict.h:36:0,
# from apg.c:83:
# bloom.h:38:19: error: no include path in which to search for stdio.h
# #include
# ^
# bloom.h:39:20: error: no include path in which to search for stdlib.h
# #include
# ^
# bloom.h:40:20: error: no include path in which to search for string.h
# #include
# ^
# bloom.h:42:21: error: no include path in which to search for strings.h
# #include
# ^
# bloom.h:44:18: error: no include path in which to search for math.h
# #include
# ^
# In file included from restrict.h:36:0,
# from apg.c:83:
# bloom.h:80:36: error: unknown type name 'FILE'
# extern int insert_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# bloom.h:81:35: error: unknown type name 'FILE'
# extern int check_word(char *word, FILE *file, h_val filter_size, f_mode mode);
# ^
# bloom.h:82:1: error: unknown type name 'FILE'
# extern FILE * create_filter(char * f_name, unsigned long int n_words, f_mode mode);
# ^
# bloom.h:83:1: error: unknown type name 'FILE'
# extern FILE * open_filter(char * f_name, const char *mode);
# ^
# bloom.h:84:25: error: unknown type name 'FILE'
# extern int close_filter(FILE *f_dsk);
# ^
# bloom.h:85:29: error: unknown type name 'FILE'
# extern h_val get_filtersize(FILE *f);
# ^
# bloom.h:86:30: error: unknown type name 'FILE'
# extern f_mode get_filtermode(FILE *f);
# ^
# bloom.h:87:26: error: unknown type name 'FILE'
# extern h_val count_words(FILE *dict_file);
# ^
# In file included from apg.c:86:0:
# errs.h:33:19: error: no include path in which to search for errno.h
# #include
# ^
# apg.c: In function 'main':
# apg.c:116:2: error: unknown type name 'time_t'
# time_t tme;
# ^
# apg.c:211:7: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# algorithm = atoi (apg_optarg);
# ^
# apg.c:276:7: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf ("APG (Automated Password Generator)");
# ^
# apg.c:276:7: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# apg.c:284:7: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit (-1);
# ^
# apg.c:284:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# apg.c:291:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
# if( (tme = time(NULL)) == ( (time_t)-1))
# ^
# apg.c:291:18: error: 'NULL' undeclared (first use in this function)
# if( (tme = time(NULL)) == ( (time_t)-1))
# ^
# apg.c:291:18: note: each undeclared identifier is reported only once for each function it appears in
# apg.c:291:31: error: 'time_t' undeclared (first use in this function)
# if( (tme = time(NULL)) == ( (time_t)-1))
# ^
# apg.c:305:2: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# if ( (pass_string = (char *)calloc (1, (size_t)(max_pass_length + 1)))==NULL ||
# ^
# apg.c:305:30: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# if ( (pass_string = (char *)calloc (1, (size_t)(max_pass_length + 1)))==NULL ||
# ^
# apg.c:305:42: error: 'size_t' undeclared (first use in this function)
# if ( (pass_string = (char *)calloc (1, (size_t)(max_pass_length + 1)))==NULL ||
# ^
# apg.c:333:10: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# (void) memcpy ((void *)crypt_string,
# ^
# apg.c:333:17: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void) memcpy ((void *)crypt_string,
# ^
# apg.c:366:13: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf (stdout, "%s", pass_string);
# ^
# apg.c:366:13: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# apg.c:366:22: error: 'stdout' undeclared (first use in this function)
# fprintf (stdout, "%s", pass_string);
# ^
# apg.c:377:8: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free((void*)spell_pass_string);
# ^
# apg.c:377:8: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# apg.c:381:6: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# fflush (stdout);
# ^
# apg.c:406:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf (stdout, "%s", pass_string);
# ^
# apg.c:417:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free((void*)spell_pass_string);
# ^
# apg.c:444:16: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void)memcpy ((void *)crypt_string,
# ^
# apg.c:479:8: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf (stdout, "%s %s", pass_string, crypt_string);
# ^
# apg.c:487:8: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free((void*)spell_pass_string);
# ^
# apg.c:514:11: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf (stdout, "%s %s", pass_string, crypt_string);
# ^
# apg.c:522:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free((void*)spell_pass_string);
# ^
# apg.c:539:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free((void*)pass_string);
# ^
# apg.c: In function 'get_user_seq':
# apg.c:574:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf ("\nPlease enter some random data (only first %d are significant)\n", sizeof(prom));
# ^
# apg.c:575:2: warning: implicit declaration of function 'getpass' [-Wimplicit-function-declaration]
# seq = (char *)getpass("(eg. your old password):>");
# ^
# apg.c:576:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# if (strlen(seq) < sizeof(prom))
# ^
# apg.c:576:6: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strlen(seq) < sizeof(prom))
# ^
# apg.c:577:9: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void)memcpy((void *)&prom[0], (void *)seq, (int)strlen(seq));
# ^
# apg.c: In function 'com_line_user_seq':
# apg.c:599:6: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strlen(seq) < sizeof (prom))
# ^
# apg.c:600:9: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void)memcpy((void *)&prom[0], (void *)seq, (int)strlen(seq));
# ^
# apg.c: In function 'print_help':
# apg.c:619:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf ("\napg Automated Password Generator\n");
# ^
# apg.c: In function 'crypt_passstring':
# apg.c:667:2: warning: implicit declaration of function 'crypt' [-Wimplicit-function-declaration]
# return (crypt(p, salt));
# ^
# apg.c:667:2: warning: return makes pointer from integer without a cast [enabled by default]
# apg.c: In function 'checkopt':
# apg.c:686:15: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# for(i=0; i < strlen(opt);i++)
# ^
# apg.c: In function 'construct_mode':
# apg.c:713:15: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# str_length = strlen(s_mode);
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# getopt.c:15:19: error: no include path in which to search for stdio.h
# #include
# ^
# getopt.c:26:21: error: 'NULL' undeclared here (not in a function)
# static char *scan = NULL; /* Private scan pointer. */
# ^
# getopt.c: In function 'badopt':
# getopt.c:36:3: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr,"%s%s%c\n", prog, mess, ch);
# ^
# getopt.c:36:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# getopt.c:36:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"%s%s%c\n", prog, mess, ch);
# ^
# getopt.c:36:11: note: each undeclared identifier is reported only once for each function it appears in
# getopt.c:37:3: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# fflush(stderr);
# ^
# getopt.c: In function 'apg_getopt':
# getopt.c:60:12: error: 'EOF' undeclared (first use in this function)
# return (EOF);
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# convert.c:30:20: error: no include path in which to search for stdlib.h
# #include
# ^
# convert.c:31:20: error: no include path in which to search for string.h
# #include
# ^
# convert.c:33:21: error: no include path in which to search for strings.h
# #include
# ^
# In file included from convert.c:36:0:
# errs.h:33:19: error: no include path in which to search for errno.h
# #include
# ^
# convert.c: In function 'decapitalize':
# convert.c:80:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# int str_len = strlen(word);
# ^
# convert.c:80:16: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# int str_len = strlen(word);
# ^
# convert.c: In function 'capitalize':
# convert.c:107:4: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# (void)memcpy((void *)&tmp, (void *)syllable, sizeof(tmp));
# ^
# convert.c:107:10: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void)memcpy((void *)&tmp, (void *)syllable, sizeof(tmp));
# ^
# convert.c: In function 'numerize':
# convert.c:132:2: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# if ( (tmp = (char *)calloc(1, 4)) == NULL)
# ^
# convert.c:132:22: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# if ( (tmp = (char *)calloc(1, 4)) == NULL)
# ^
# convert.c:132:39: error: 'NULL' undeclared (first use in this function)
# if ( (tmp = (char *)calloc(1, 4)) == NULL)
# ^
# convert.c:132:39: note: each undeclared identifier is reported only once for each function it appears in
# convert.c:134:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if ( strlen (syllable) == 1 )
# ^
# convert.c:137:14: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void)memcpy ((void *)syllable, (void *)tmp, 1);
# ^
# convert.c:139:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free ((void *)tmp);
# ^
# convert.c:139:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# convert.c: In function 'specialize':
# convert.c:158:22: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# if ( (tmp = (char *)calloc(1, 4)) == NULL)
# ^
# convert.c:158:39: error: 'NULL' undeclared (first use in this function)
# if ( (tmp = (char *)calloc(1, 4)) == NULL)
# ^
# convert.c:160:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if ( strlen (syllable) == 1 )
# ^
# convert.c:163:14: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void)memcpy ((void *)syllable, (void *)tmp, 1);
# ^
# convert.c:165:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free ((void *)tmp);
# ^
# convert.c: In function 'symb2name':
# convert.c:233:6: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strlen(syllable) == 1)
# ^
# convert.c:239:16: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void)memcpy((void*)h_syllable, (void*)ssn[i].name, strlen(ssn[i].name));
# ^
# convert.c:244:14: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void)memcpy((void*)h_syllable, (void*)syllable, strlen(syllable));
# ^
# convert.c: In function 'spell_word':
# convert.c:367:18: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# int word_len = strlen(word);
# ^
# convert.c:382:32: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# if ( (spelled_word = (char *)calloc(1, (size_t)s_length)) == NULL)
# ^
# convert.c:382:43: error: 'size_t' undeclared (first use in this function)
# if ( (spelled_word = (char *)calloc(1, (size_t)s_length)) == NULL)
# ^
# convert.c:382:50: error: expected ')' before 's_length'
# if ( (spelled_word = (char *)calloc(1, (size_t)s_length)) == NULL)
# ^
# convert.c:382:64: error: 'NULL' undeclared (first use in this function)
# if ( (spelled_word = (char *)calloc(1, (size_t)s_length)) == NULL)
# ^
# convert.c:392:14: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void) memcpy((void *)tmp_ptr, (void *)cs[j].name, strlen(cs[j].name));
# ^
# convert.c:402:10: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# (void) memcpy((void *)(tmp_ptr), (void *)&zero, 1);
# ^
# make: *** [Makefile:99: apg] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...