Build of rhash with android toolchain

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

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

SLOCLanguage
13,510 ansic
407 makefile
163 sh
16 sed
14,096 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: rhash 1.3.3-1 (Tue Apr 4 20:41:40 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -c -pipe -O2 -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections -Wall -W -Wstrict-prototypes -Wnested-externs -Winline -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations calc_sums.c -o calc_sums.o
# gcc -c -pipe -O2 -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections -Wall -W -Wstrict-prototypes -Wnested-externs -Winline -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations hash_print.c -o hash_print.o
# gcc -c -pipe -O2 -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections -Wall -W -Wstrict-prototypes -Wnested-externs -Winline -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations common_func.c -o common_func.o
# gcc -c -pipe -O2 -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections -Wall -W -Wstrict-prototypes -Wnested-externs -Winline -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations hash_update.c -o hash_update.o
# cc1: error: no include path in which to search for stdc-predef.h
# In file included from hash_print.c:3:0:
# common_func.h:23:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.h:24:19: error: no include path in which to search for stdio.h
# #include
# ^
# common_func.h:25:35: error: no include path in which to search for time.h
# #include /* for time_t */
# ^
# common_func.h:26:38: error: no include path in which to search for stddef.h
# #include /* for wchar_t */
# ^
# common_func.h:29:40: error: no include path in which to search for sys/time.h
# #include /* for timeval */
# ^
# common_func.h:42:27: error: unknown type name 'uint64_t'
# void sprintI64(char *dst, uint64_t number, int max_width);
# ^
# common_func.h:43:14: error: unknown type name 'uint64_t'
# int int_len(uint64_t num);
# ^
# common_func.h:51:1: error: unknown type name 'size_t'
# size_t strlen_utf8_c(const char *str);
# ^
# common_func.h:90:2: error: unknown type name 'wchar_t'
# wchar_t* wpath;
# ^
# common_func.h:91:2: error: unknown type name 'uint64_t'
# uint64_t size;
# ^
# common_func.h:92:2: error: unknown type name 'uint64_t'
# uint64_t mtime;
# ^
# common_func.h:138:40: error: no include path in which to search for sys/time.h
# #include /* for timeval */
# ^
# 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
# common_func.h:175:20: error: unknown type name 'size_t'
# void* rhash_malloc(size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:176:20: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:176:32: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:178:32: error: unknown type name 'size_t'
# void* rhash_realloc(void* mem, size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:193:2: error: unknown type name 'size_t'
# size_t size;
# ^
# In file included from common_func.c:3:0:
# common_func.h:23:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.h:194:2: error: unknown type name 'size_t'
# size_t allocated;
# ^
# In file included from calc_sums.c:3:0:
# common_func.h:23:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.h:24:19: error: no include path in which to search for stdio.h
# #include
# ^
# common_func.h:24:19: error: no include path in which to search for stdio.h
# #include
# ^
# common_func.h:25:35: error: no include path in which to search for time.h
# #include /* for time_t */
# ^
# common_func.h:25:35: error: no include path in which to search for time.h
# #include /* for time_t */
# ^
# common_func.h:26:38: error: no include path in which to search for stddef.h
# #include /* for wchar_t */
# ^
# common_func.h:26:38: error: no include path in which to search for stddef.h
# #include /* for wchar_t */
# ^
# common_func.h:29:40: error: no include path in which to search for sys/time.h
# #include /* for timeval */
# ^
# common_func.h:29:40: error: no include path in which to search for sys/time.h
# #include /* for timeval */
# ^
# common_func.h:203:43: error: unknown type name 'size_t'
# void rsh_vector_add_empty(vector_t* vect, size_t item_size);
# ^
# common_func.h:42:27: error: unknown type name 'uint64_t'
# void sprintI64(char *dst, uint64_t number, int max_width);
# ^
# common_func.h:42:27: error: unknown type name 'uint64_t'
# void sprintI64(char *dst, uint64_t number, int max_width);
# ^
# common_func.h:43:14: error: unknown type name 'uint64_t'
# int int_len(uint64_t num);
# ^
# common_func.h:43:14: error: unknown type name 'uint64_t'
# int int_len(uint64_t num);
# ^
# common_func.h:216:2: error: unknown type name 'size_t'
# size_t size;
# ^
# common_func.h:51:1: error: unknown type name 'size_t'
# size_t strlen_utf8_c(const char *str);
# ^
# common_func.h:51:1: error: unknown type name 'size_t'
# size_t strlen_utf8_c(const char *str);
# ^
# common_func.h:247:2: error: unknown type name 'size_t'
# size_t allocated;
# ^
# common_func.h:90:2: error: unknown type name 'wchar_t'
# wchar_t* wpath;
# ^
# common_func.h:248:2: error: unknown type name 'size_t'
# size_t len;
# ^
# common_func.h:90:2: error: unknown type name 'wchar_t'
# wchar_t* wpath;
# ^
# common_func.h:91:2: error: unknown type name 'uint64_t'
# uint64_t size;
# ^
# common_func.h:91:2: error: unknown type name 'uint64_t'
# uint64_t size;
# ^
# common_func.h:92:2: error: unknown type name 'uint64_t'
# uint64_t mtime;
# ^
# common_func.h:253:41: error: unknown type name 'size_t'
# void rsh_str_ensure_size(strbuf_t *str, size_t new_size);
# ^
# common_func.h:92:2: error: unknown type name 'uint64_t'
# uint64_t mtime;
# ^
# common_func.h:254:56: error: unknown type name 'size_t'
# void rsh_str_append_n(strbuf_t *str, const char* text, size_t len);
# ^
# hash_print.c:4:20: error: no include path in which to search for string.h
# #include
# ^
# hash_print.c:5:20: error: no include path in which to search for stdlib.h
# #include
# ^
# hash_print.c:6:19: error: no include path in which to search for stdio.h
# #include
# ^
# hash_print.c:7:19: error: no include path in which to search for ctype.h
# #include
# ^
# common_func.h:138:40: error: no include path in which to search for sys/time.h
# #include /* for timeval */
# ^
# hash_print.c:8:20: error: no include path in which to search for assert.h
# #include
# ^
# common_func.h:138:40: error: no include path in which to search for sys/time.h
# #include /* for timeval */
# ^
# In file included from hash_print.c:10:0:
# librhash/rhash.h:5:19: error: no include path in which to search for stdio.h
# #include
# ^
# common_func.h:175:20: error: unknown type name 'size_t'
# void* rhash_malloc(size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:175:20: error: unknown type name 'size_t'
# void* rhash_malloc(size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:176:20: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:176:20: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:176:32: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:176:32: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:178:32: error: unknown type name 'size_t'
# void* rhash_realloc(void* mem, size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:178:32: error: unknown type name 'size_t'
# void* rhash_realloc(void* mem, size_t size, const char* srcfile, int srcline);
# ^
# librhash/rhash.h:91:64: error: unknown type name 'size_t'
# RHASH_API int rhash_msg(unsigned hash_id, const void* message, size_t length, unsigned char* result);
# ^
# common_func.h:193:2: error: unknown type name 'size_t'
# size_t size;
# ^
# librhash/rhash.h:93:44: error: unknown type name 'FILE'
# RHASH_API int rhash_file_update(rhash ctx, FILE* fd);
# ^
# common_func.h:194:2: error: unknown type name 'size_t'
# size_t allocated;
# ^
# common_func.h:193:2: error: unknown type name 'size_t'
# size_t size;
# ^
# common_func.h:194:2: error: unknown type name 'size_t'
# size_t allocated;
# ^
# librhash/rhash.h:102:61: error: unknown type name 'size_t'
# RHASH_API int rhash_update(rhash ctx, const void* message, size_t length);
# ^
# common_func.h:203:43: error: unknown type name 'size_t'
# void rsh_vector_add_empty(vector_t* vect, size_t item_size);
# ^
# librhash/rhash.h:123:2: error: unknown type name 'size_t'
# size_t digest_size;
# ^
# common_func.h:203:43: error: unknown type name 'size_t'
# void rsh_vector_add_empty(vector_t* vect, size_t item_size);
# ^
# common_func.h:216:2: error: unknown type name 'size_t'
# size_t size;
# ^
# common_func.h:216:2: error: unknown type name 'size_t'
# size_t size;
# ^
# librhash/rhash.h:173:11: error: unknown type name 'size_t'
# RHASH_API size_t rhash_print_bytes(char* output,
# ^
# common_func.h:247:2: error: unknown type name 'size_t'
# size_t allocated;
# ^
# librhash/rhash.h:174:30: error: unknown type name 'size_t'
# const unsigned char* bytes, size_t size, int flags);
# ^
# common_func.h:248:2: error: unknown type name 'size_t'
# size_t len;
# ^
# common_func.h:247:2: error: unknown type name 'size_t'
# size_t allocated;
# ^
# librhash/rhash.h:176:11: error: unknown type name 'size_t'
# RHASH_API size_t rhash_print(char* output, rhash ctx, unsigned hash_id,
# ^
# common_func.h:253:41: error: unknown type name 'size_t'
# void rsh_str_ensure_size(strbuf_t *str, size_t new_size);
# ^
# common_func.h:248:2: error: unknown type name 'size_t'
# size_t len;
# ^
# common_func.h:254:56: error: unknown type name 'size_t'
# void rsh_str_append_n(strbuf_t *str, const char* text, size_t len);
# ^
# librhash/rhash.h:180:11: error: unknown type name 'size_t'
# RHASH_API size_t rhash_print_magnet(char* output, const char* filepath,
# ^
# calc_sums.c:4:19: error: no include path in which to search for stdio.h
# #include
# ^
# common_func.h:253:41: error: unknown type name 'size_t'
# void rsh_str_ensure_size(strbuf_t *str, size_t new_size);
# ^
# calc_sums.c:5:20: error: no include path in which to search for string.h
# #include
# ^
# calc_sums.c:6:33: error: no include path in which to search for stdlib.h
# #include /* free() */
# ^
# calc_sums.c:7:33: error: no include path in which to search for unistd.h
# #include /* read() */
# ^
# calc_sums.c:8:33: error: no include path in which to search for fcntl.h
# #include /* open() */
# ^
# calc_sums.c:9:46: error: no include path in which to search for time.h
# #include /* localtime(), time() */
# ^
# common_func.h:254:56: error: unknown type name 'size_t'
# void rsh_str_append_n(strbuf_t *str, const char* text, size_t len);
# ^
# calc_sums.c:10:35: error: no include path in which to search for sys/stat.h
# #include /* stat() */
# ^
# calc_sums.c:11:19: error: no include path in which to search for errno.h
# #include
# ^
# calc_sums.c:12:20: error: no include path in which to search for assert.h
# #include
# ^
# In file included from calc_sums.c:14:0:
# librhash/rhash.h:5:19: error: no include path in which to search for stdio.h
# #include
# ^
# common_func.c:4:20: error: no include path in which to search for stdlib.h
# #include
# ^
# In file included from hash_print.c:11:0:
# calc_sums.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.c:5:19: error: no include path in which to search for stdio.h
# #include
# ^
# In file included from calc_sums.h:7:0,
# from hash_print.c:11:
# hash_check.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.c:6:20: error: no include path in which to search for string.h
# #include
# ^
# common_func.c:7:19: error: no include path in which to search for ctype.h
# #include
# ^
# common_func.c:8:20: error: no include path in which to search for assert.h
# #include
# ^
# common_func.c:9:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.c:10:18: error: no include path in which to search for time.h
# #include
# ^
# hash_check.h:40:2: error: unknown type name 'uint64_t'
# uint64_t file_size; /* parsed file size, e.g. from magnet link */
# ^
# common_func.c:11:20: error: no include path in which to search for stdarg.h
# #include
# ^
# common_func.c:12:19: error: no include path in which to search for wchar.h
# #include
# ^
# librhash/rhash.h:91:64: error: unknown type name 'size_t'
# RHASH_API int rhash_msg(unsigned hash_id, const void* message, size_t length, unsigned char* result);
# ^
# common_func.c:13:19: error: no include path in which to search for errno.h
# #include
# ^
# common_func.c:14:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# librhash/rhash.h:93:44: error: unknown type name 'FILE'
# RHASH_API int rhash_file_update(rhash ctx, FILE* fd);
# ^
# librhash/rhash.h:102:61: error: unknown type name 'size_t'
# RHASH_API int rhash_update(rhash ctx, const void* message, size_t length);
# ^
# In file included from hash_print.c:11:0:
# calc_sums.h:13:41: error: no include path in which to search for sys/types.h
# #include /* struct stat */
# ^
# librhash/rhash.h:123:2: error: unknown type name 'size_t'
# size_t digest_size;
# ^
# calc_sums.h:14:35: error: no include path in which to search for sys/stat.h
# #include /* stat() */
# ^
# In file included from common_func.c:21:0:
# parse_cmdline.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# calc_sums.h:25:2: error: unknown type name 'uint64_t'
# uint64_t size; /* the size of the hashed file */
# ^
# calc_sums.h:26:2: error: unknown type name 'uint64_t'
# uint64_t msg_offset; /* rctx->msg_size before hashing this file */
# ^
# librhash/rhash.h:173:11: error: unknown type name 'size_t'
# RHASH_API size_t rhash_print_bytes(char* output,
# ^
# calc_sums.h:41:30: error: unknown type name 'FILE'
# int calculate_and_print_sums(FILE* out, file_t* file, const char *print_path);
# ^
# librhash/rhash.h:174:30: error: unknown type name 'size_t'
# const unsigned char* bytes, size_t size, int flags);
# ^
# librhash/rhash.h:176:11: error: unknown type name 'size_t'
# RHASH_API size_t rhash_print(char* output, rhash ctx, unsigned hash_id,
# ^
# parse_cmdline.h:87:2: error: unknown type name 'size_t'
# size_t bt_piece_length; /* BitTorrent piece length */
# ^
# In file included from hash_print.c:12:0:
# parse_cmdline.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# librhash/rhash.h:180:11: error: unknown type name 'size_t'
# RHASH_API size_t rhash_print_magnet(char* output, const char* filepath,
# ^
# parse_cmdline.h:87:2: error: unknown type name 'size_t'
# size_t bt_piece_length; /* BitTorrent piece length */
# ^
# common_func.c:36:27: error: unknown type name 'uint64_t'
# void sprintI64(char *dst, uint64_t number, int min_width)
# ^
# In file included from calc_sums.c:15:0:
# librhash/rhash_torrent.h:28:2: error: unknown type name 'size_t'
# size_t length;
# ^
# common_func.c:63:13: error: unknown type name 'uint64_t'
# int int_len(uint64_t num)
# ^
# librhash/rhash_torrent.h:45:72: error: unknown type name 'uint64_t'
# RHASH_API int rhash_torrent_add_file(rhash ctx, const char* filepath, uint64_t filesize);
# ^
# librhash/rhash_torrent.h:80:58: error: unknown type name 'size_t'
# RHASH_API void rhash_torrent_set_piece_length(rhash ctx, size_t piece_length);
# ^
# librhash/rhash_torrent.h:89:11: error: unknown type name 'size_t'
# RHASH_API size_t rhash_torrent_get_default_piece_length(uint64_t total_size);
# ^
# librhash/rhash_torrent.h:89:57: error: unknown type name 'uint64_t'
# RHASH_API size_t rhash_torrent_get_default_piece_length(uint64_t total_size);
# ^
# In file included from hash_print.c:14:0:
# hash_print.h:41:17: error: unknown type name 'FILE'
# void print_line(FILE* out, print_item* list, struct file_info *info);
# ^
# In file included from calc_sums.c:16:0:
# parse_cmdline.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# hash_print.h:45:23: error: unknown type name 'FILE'
# void print_sfv_banner(FILE* out);
# ^
# hash_print.h:46:27: error: unknown type name 'FILE'
# int print_sfv_header_line(FILE* out, file_t* file, const char* printpath);
# ^
# parse_cmdline.h:87:2: error: unknown type name 'size_t'
# size_t bt_piece_length; /* BitTorrent piece length */
# ^
# common_func.c: In function 'urlencode':
# hash_print.c: In function 'new_print_item':
# common_func.c:105:3: warning: implicit declaration of function 'isalnum' [-Wimplicit-function-declaration]
# for (len = 0; *name; name++) len += (IS_GOOD_URL_CHAR(*name) ? 1 : 3);
# ^
# hash_print.c:60:2: warning: implicit declaration of function 'rhash_malloc' [-Wimplicit-function-declaration]
# print_item* item = (print_item*)rsh_malloc(sizeof(print_item));
# ^
# In file included from calc_sums.c:17:0:
# rhash_main.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# hash_print.c:60:2: warning: nested extern declaration of 'rhash_malloc' [-Wnested-externs]
# rhash_main.h:16:2: error: unknown type name 'FILE'
# FILE *out;
# ^
# rhash_main.h:17:2: error: unknown type name 'FILE'
# FILE *log;
# ^
# common_func.c:105:3: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
# rhash_main.h:18:2: error: unknown type name 'FILE'
# FILE *upd_fd; /* descriptor of a crc file to update */
# ^
# rhash_main.h:32:2: error: unknown type name 'uint64_t'
# uint64_t total_size;
# ^
# hash_print.c:60:21: warning: cast from function call of type 'int' to non-matching type 'struct print_item *' [-Wbad-function-cast]
# print_item* item = (print_item*)rsh_malloc(sizeof(print_item));
# ^
# rhash_main.h:33:2: error: unknown type name 'uint64_t'
# uint64_t batch_size;
# ^
# common_func.c:90:59: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# #define IS_GOOD_URL_CHAR(c) (isalnum((unsigned char)c) || strchr("$-_.!'(),", c))
# ^
# common_func.c:105:40: note: in expansion of macro 'IS_GOOD_URL_CHAR'
# for (len = 0; *name; name++) len += (IS_GOOD_URL_CHAR(*name) ? 1 : 3);
# ^
# hash_print.c:64:42: error: 'NULL' undeclared (first use in this function)
# item->data = (data ? rsh_strdup(data) : NULL);
# ^
# hash_print.c:64:42: note: each undeclared identifier is reported only once for each function it appears in
# In file included from calc_sums.c:18:0:
# hash_print.h:41:17: error: unknown type name 'FILE'
# void print_line(FILE* out, print_item* list, struct file_info *info);
# ^
# hash_print.h:45:23: error: unknown type name 'FILE'
# void print_sfv_banner(FILE* out);
# ^
# common_func.c:90:59: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# #define IS_GOOD_URL_CHAR(c) (isalnum((unsigned char)c) || strchr("$-_.!'(),", c))
# ^
# common_func.c:110:8: note: in expansion of macro 'IS_GOOD_URL_CHAR'
# if ( IS_GOOD_URL_CHAR(*name) ) {
# ^
# hash_print.h:46:27: error: unknown type name 'FILE'
# int print_sfv_header_line(FILE* out, file_t* file, const char* printpath);
# ^
# In file included from calc_sums.c:19:0:
# output.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# output.h:19:41: error: unknown type name 'uint64_t'
# void (*update)(struct file_info *info, uint64_t offset);
# ^
# output.h:40:36: error: unknown type name 'uint64_t'
# void print_time_stats(double time, uint64_t size, int total);
# ^
# In file included from calc_sums.c:22:0:
# calc_sums.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.c: In function 'str_tolower':
# In file included from calc_sums.h:7:0,
# from calc_sums.c:22:
# hash_check.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.c:134:3: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
# for (p = buf; *p; p++) *p = tolower(*p);
# ^
# hash_check.h:40:2: error: unknown type name 'uint64_t'
# uint64_t file_size; /* parsed file size, e.g. from magnet link */
# ^
# common_func.c: In function 'str_trim':
# hash_print.c: In function 'parse_print_string':
# In file included from calc_sums.c:22:0:
# calc_sums.h:13:41: error: no include path in which to search for sys/types.h
# #include /* struct stat */
# ^
# common_func.c:147:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# char* last = str + strlen(str) - 1;
# ^
# hash_print.c:123:21: error: 'NULL' undeclared (first use in this function)
# print_item *list = NULL, **tail, *item = NULL;
# ^
# calc_sums.h:14:35: error: no include path in which to search for sys/stat.h
# #include /* stat() */
# ^
# calc_sums.h:25:2: error: unknown type name 'uint64_t'
# uint64_t size; /* the size of the hashed file */
# ^
# common_func.c:147:21: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# char* last = str + strlen(str) - 1;
# ^
# calc_sums.h:26:2: error: unknown type name 'uint64_t'
# uint64_t msg_offset; /* rctx->msg_size before hashing this file */
# ^
# hash_print.c:125:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# buf = p = (char*)rsh_malloc( strlen(format) + 1 );
# ^
# calc_sums.h:41:30: error: unknown type name 'FILE'
# int calculate_and_print_sums(FILE* out, file_t* file, const char *print_path);
# ^
# common_func.c:148:2: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
# while (isspace((unsigned char)*str)) str++;
# ^
# In file included from hash_print.c:3:0:
# hash_print.c:125:31: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# buf = p = (char*)rsh_malloc( strlen(format) + 1 );
# ^
# common_func.h:171:39: note: in definition of macro 'rsh_malloc'
# #define rsh_malloc(size) rhash_malloc(size, __FILE__, __LINE__)
# ^
# calc_sums.c: In function 'init_btih_data':
# calc_sums.c:32:2: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration]
# assert((info->rctx->hash_id & RHASH_BTIH) != 0);
# ^
# hash_print.c:125:12: warning: cast from function call of type 'int' to non-matching type 'char *' [-Wbad-function-cast]
# buf = p = (char*)rsh_malloc( strlen(format) + 1 );
# ^
# calc_sums.c:32:2: warning: nested extern declaration of 'assert' [-Wnested-externs]
# common_func.c: In function 'str_set':
# common_func.c:164:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset(buf, ch, length);
# ^
# common_func.c:164:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# calc_sums.c:34:2: warning: implicit declaration of function 'rhash_torrent_add_file' [-Wimplicit-function-declaration]
# rhash_torrent_add_file(info->rctx, file_info_get_utf8_print_path(info), info->size);
# ^
# calc_sums.c:34:2: warning: nested extern declaration of 'rhash_torrent_add_file' [-Wnested-externs]
# common_func.c: In function 'str_append':
# common_func.c:178:2: error: unknown type name 'size_t'
# size_t len1 = strlen(orig);
# ^
# calc_sums.c:42:3: error: unknown type name 'size_t'
# size_t i;
# ^
# common_func.c:178:16: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# size_t len1 = strlen(orig);
# ^
# hash_print.c:169:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(buf);
# ^
# hash_print.c:169:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# common_func.c:179:2: error: unknown type name 'size_t'
# size_t len2 = strlen(append);
# ^
# hash_print.c: At top level:
# calc_sums.c:49:3: warning: implicit declaration of function 'rhash_torrent_set_piece_length' [-Wimplicit-function-declaration]
# rhash_torrent_set_piece_length(info->rctx, opt.bt_piece_length);
# ^
# calc_sums.c:49:3: warning: nested extern declaration of 'rhash_torrent_set_piece_length' [-Wnested-externs]
# hash_print.c:180:53: error: unknown type name 'size_t'
# static unsigned printf_name_to_id(const char* name, size_t length, unsigned *flags)
# ^
# common_func.c:180:2: warning: implicit declaration of function 'rhash_malloc' [-Wimplicit-function-declaration]
# char* res = (char*)rsh_malloc(len1 + len2 + 1);
# ^
# common_func.c:180:2: warning: nested extern declaration of 'rhash_malloc' [-Wnested-externs]
# calc_sums.c:52:3: warning: implicit declaration of function 'rhash_torrent_get_default_piece_length' [-Wimplicit-function-declaration]
# rhash_torrent_set_batch_size(info->rctx, rhash_data.batch_size);
# ^
# calc_sums.c:52:3: warning: nested extern declaration of 'rhash_torrent_get_default_piece_length' [-Wnested-externs]
# hash_print.c: In function 'parse_percent_item':
# common_func.c:180:14: warning: cast from function call of type 'int' to non-matching type 'char *' [-Wbad-function-cast]
# char* res = (char*)rsh_malloc(len1 + len2 + 1);
# ^
# hash_print.c:214:18: error: 'NULL' undeclared (first use in this function)
# const char* p = NULL;
# ^
# common_func.c:183:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(res, orig, len1);
# ^
# common_func.c:183:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# calc_sums.c: In function 'calc_sums':
# calc_sums.c:101:2: error: unknown type name 'FILE'
# FILE* fd = stdin; /* stdin */
# ^
# calc_sums.c:101:13: error: 'stdin' undeclared (first use in this function)
# FILE* fd = stdin; /* stdin */
# ^
# calc_sums.c:101:13: note: each undeclared identifier is reported only once for each function it appears in
# calc_sums.c:116:4: error: 'errno' undeclared (first use in this function)
# errno = EISDIR;
# ^
# common_func.c: At top level:
# calc_sums.c:116:12: error: 'EISDIR' undeclared (first use in this function)
# errno = EISDIR;
# ^
# hash_print.c:252:2: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration]
# for (; isdigit((unsigned char)*format); format++) width = 10 * width + (*format - '0');
# ^
# common_func.c:211:1: error: unknown type name 'size_t'
# size_t strlen_utf8_c(const char *str)
# ^
# calc_sums.c:126:3: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# fd = rsh_fopen_bin(info->full_path, "rb");
# ^
# calc_sums.c:126:3: warning: nested extern declaration of 'fopen' [-Wnested-externs]
# common_func.c: In function 'strlen_utf8_c':
# calc_sums.c:126:6: warning: assignment makes pointer from integer without a cast [enabled by default]
# fd = rsh_fopen_bin(info->full_path, "rb");
# ^
# common_func.c:213:2: error: unknown type name 'size_t'
# size_t length = 0;
# ^
# calc_sums.c:136:21: error: 'struct percents_output_info_t' has no member named 'update'
# if (percents_output->update != 0) {
# ^
# hash_print.c:258:3: warning: implicit declaration of function 'isalnum' [-Wimplicit-function-declaration]
# for (; isalnum((unsigned char)*p) || (*p == '-'); p++);
# ^
# calc_sums.c:137:67: error: 'struct percents_output_info_t' has no member named 'update'
# rhash_set_callback(info->rctx, (rhash_callback_t)percents_output->update, info);
# ^
# calc_sums.c:141:2: warning: implicit declaration of function 'rhash_file_update' [-Wimplicit-function-declaration]
# if ((res = rhash_file_update(info->rctx, fd)) != -1) {
# ^
# calc_sums.c:141:2: warning: nested extern declaration of 'rhash_file_update' [-Wnested-externs]
# hash_print.c:260:4: warning: implicit declaration of function 'printf_name_to_id' [-Wimplicit-function-declaration]
# hash_id = printf_name_to_id(format, (int)(p - (format)), &modifier_flags);
# ^
# hash_print.c:260:4: warning: nested extern declaration of 'printf_name_to_id' [-Wnested-externs]
# calc_sums.c:150:2: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# if (fd != stdin) fclose(fd);
# ^
# common_func.c: In function 'get_basename':
# calc_sums.c:150:2: warning: nested extern declaration of 'fclose' [-Wnested-externs]
# calc_sums.c: In function 'file_info_destroy':
# common_func.c:248:25: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# const char *p = path + strlen(path) - 1;
# ^
# calc_sums.c:161:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(info->utf8_print_path);
# ^
# calc_sums.c:161:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# hash_print.c:279:3: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
# if ( (p = strchr(short_hash, upper)) ) {
# ^
# calc_sums.c: In function 'file_info_set_print_path':
# calc_sums.c:180:3: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
# if ((p = (char*)strchr(print_path, wrong_sep)) != NULL) {
# ^
# calc_sums.c:180:19: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# if ((p = (char*)strchr(print_path, wrong_sep)) != NULL) {
# ^
# common_func.c: In function 'get_dirname':
# hash_print.c:279:13: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# if ( (p = strchr(short_hash, upper)) ) {
# ^
# calc_sums.c:180:53: error: 'NULL' undeclared (first use in this function)
# if ((p = (char*)strchr(print_path, wrong_sep)) != NULL) {
# ^
# common_func.c:262:25: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# const char *p = path + strlen(path) - 1;
# ^
# hash_print.c:280:4: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration]
# assert( (p - short_hash) < (int)(sizeof(hash_ids) / sizeof(unsigned)) );
# ^
# hash_print.c:280:4: warning: nested extern declaration of 'assert' [-Wnested-externs]
# calc_sums.c: In function 'file_info_get_utf8_print_path':
# calc_sums.c:205:31: error: 'NULL' undeclared (first use in this function)
# if (info->utf8_print_path == NULL) {
# ^
# calc_sums.c: In function 'find_embedded_crc32':
# common_func.c:266:9: warning: cast from function call of type 'int' to non-matching type 'char *' [-Wbad-function-cast]
# res = (char*)rsh_malloc(p-path+1);
# ^
# calc_sums.c:223:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# const char* e = filepath + strlen(filepath) - 10;
# ^
# hash_print.c: At top level:
# calc_sums.c:223:29: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# const char* e = filepath + strlen(filepath) - 10;
# ^
# common_func.c:267:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(res, path, p-path);
# ^
# hash_print.c:312:29: error: unknown type name 'FILE'
# static void fprint_ed2k_url(FILE* out, struct file_info *info, int print_type)
# ^
# hash_print.c:350:23: error: unknown type name 'FILE'
# static void fprintI64(FILE* out, uint64_t filesize, int width, int zero_pad)
# ^
# common_func.c: In function 'make_path':
# calc_sums.c: In function 'rename_file_by_embeding_crc32':
# hash_print.c:350:34: error: unknown type name 'uint64_t'
# static void fprintI64(FILE* out, uint64_t filesize, int width, int zero_pad)
# ^
# common_func.c:285:2: error: unknown type name 'size_t'
# size_t len;
# ^
# calc_sums.c:249:2: error: unknown type name 'size_t'
# size_t len = strlen(info->full_path);
# ^
# calc_sums.c:249:15: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# size_t len = strlen(info->full_path);
# ^
# common_func.c:286:2: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration]
# assert(dir_path);
# ^
# common_func.c:286:2: warning: nested extern declaration of 'assert' [-Wnested-externs]
# hash_print.c:368:24: error: unknown type name 'FILE'
# static void print_time(FILE *out, time_t time)
# ^
# hash_print.c:368:35: error: unknown type name 'time_t'
# static void print_time(FILE *out, time_t time)
# ^
# hash_print.c:388:26: error: unknown type name 'FILE'
# static void print_time64(FILE *out, uint64_t time)
# ^
# hash_print.c:388:37: error: unknown type name 'uint64_t'
# static void print_time64(FILE *out, uint64_t time)
# ^
# common_func.c:298:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(dir_path);
# ^
# hash_print.c:400:17: error: unknown type name 'FILE'
# void print_line(FILE* out, print_item* list, struct file_info *info)
# ^
# calc_sums.c:282:2: warning: implicit declaration of function 'rhash_malloc' [-Wimplicit-function-declaration]
# new_path = (char*)rsh_malloc(len + 12);
# ^
# calc_sums.c:282:2: warning: nested extern declaration of 'rhash_malloc' [-Wnested-externs]
# common_func.c:299:8: warning: cast from function call of type 'int' to non-matching type 'char *' [-Wbad-function-cast]
# buf = (char*)rsh_malloc(len + strlen(filename) + 2);
# ^
# calc_sums.c:282:13: warning: cast from function call of type 'int' to non-matching type 'char *' [-Wbad-function-cast]
# new_path = (char*)rsh_malloc(len + 12);
# ^
# common_func.c:300:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(buf, dir_path);
# ^
# common_func.c:300:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# calc_sums.c:284:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(new_path, info->full_path, p - info->full_path);
# ^
# hash_print.c: In function 'free_print_list':
# calc_sums.c:284:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# hash_print.c:475:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free((char*)list->data);
# ^
# calc_sums.c:289:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(insertion_point + 10, p); /* append file extension */
# ^
# calc_sums.c:289:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# calc_sums.c:292:2: warning: implicit declaration of function 'rename' [-Wimplicit-function-declaration]
# if (rename(info->full_path, new_path) < 0) {
# ^
# calc_sums.c:292:2: warning: nested extern declaration of 'rename' [-Wnested-externs]
# hash_print.c: In function 'init_hash_info_table':
# calc_sums.c:294:4: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration]
# strerror(errno));
# ^
# calc_sums.c:294:4: warning: nested extern declaration of 'strerror' [-Wnested-externs]
# calc_sums.c:294:13: error: 'errno' undeclared (first use in this function)
# strerror(errno));
# ^
# common_func.c: In function 'rsh_fsec':
# hash_print.c:498:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset(hash_info_table, 0, sizeof(hash_info_table));
# ^
# hash_print.c:498:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# calc_sums.c:295:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(new_path);
# ^
# common_func.c:358:23: error: dereferencing pointer to incomplete type
# return ((double)timer->tv_usec / 1000000.0) + timer->tv_sec;
# ^
# common_func.c:358:53: error: dereferencing pointer to incomplete type
# return ((double)timer->tv_usec / 1000000.0) + timer->tv_sec;
# ^
# calc_sums.c:306:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(info->full_path);
# ^
# common_func.c: In function 'rsh_timer_start':
# calc_sums.c: In function 'save_torrent_to':
# common_func.c:371:2: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
# get_timedelta(timer);
# ^
# common_func.c:371:2: warning: nested extern declaration of 'gettimeofday' [-Wnested-externs]
# calc_sums.c:320:2: error: unknown type name 'FILE'
# FILE* fd;
# ^
# hash_print.c:508:10: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# assert(strlen(info->name) < 15);
# ^
# common_func.c:366:50: error: 'NULL' undeclared (first use in this function)
# #define get_timedelta(delta) gettimeofday(delta, NULL)
# ^
# common_func.c:371:2: note: in expansion of macro 'get_timedelta'
# get_timedelta(timer);
# ^
# calc_sums.c:325:3: error: 'errno' undeclared (first use in this function)
# errno = ENOMEM;
# ^
# calc_sums.c:325:11: error: 'ENOMEM' undeclared (first use in this function)
# errno = ENOMEM;
# ^
# common_func.c:366:50: note: each undeclared identifier is reported only once for each function it appears in
# #define get_timedelta(delta) gettimeofday(delta, NULL)
# ^
# common_func.c:371:2: note: in expansion of macro 'get_timedelta'
# get_timedelta(timer);
# ^
# common_func.c: In function 'rsh_timer_stop':
# calc_sums.c:333:3: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration]
# unlink(bak_path);
# ^
# calc_sums.c:333:3: warning: nested extern declaration of 'unlink' [-Wnested-externs]
# hash_print.c:513:3: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
# if (memcmp(info->name, "SHA", 3) == 0) {
# ^
# common_func.c:376:14: error: storage size of 'end' isn't known
# timedelta_t end;
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# calc_sums.c:335:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(bak_path);
# ^
# common_func.c:366:50: error: 'NULL' undeclared (first use in this function)
# #define get_timedelta(delta) gettimeofday(delta, NULL)
# ^
# common_func.c:377:2: note: in expansion of macro 'get_timedelta'
# get_timedelta(&end);
# ^
# calc_sums.c:339:5: warning: assignment makes pointer from integer without a cast [enabled by default]
# fd = rsh_fopen_bin(path, "wb");
# ^
# common_func.c:381:7: error: dereferencing pointer to incomplete type
# timer->tv_sec = end.tv_sec - timer->tv_sec - (end.tv_usec >= timer->tv_usec ? 0 : 1);
# ^
# hash_print.c:514:4: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(d, p);
# ^
# calc_sums.c:340:2: warning: implicit declaration of function 'fwrite' [-Wimplicit-function-declaration]
# if (fd && text->length == fwrite(text->str, 1, text->length, fd) &&
# ^
# hash_print.c:514:4: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# common_func.c:381:38: error: dereferencing pointer to incomplete type
# timer->tv_sec = end.tv_sec - timer->tv_sec - (end.tv_usec >= timer->tv_usec ? 0 : 1);
# ^
# calc_sums.c:340:28: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# if (fd && text->length == fwrite(text->str, 1, text->length, fd) &&
# ^
# calc_sums.c:340:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (fd && text->length == fwrite(text->str, 1, text->length, fd) &&
# ^
# common_func.c:381:70: error: dereferencing pointer to incomplete type
# timer->tv_sec = end.tv_sec - timer->tv_sec - (end.tv_usec >= timer->tv_usec ? 0 : 1);
# ^
# calc_sums.c:341:3: warning: implicit declaration of function 'ferror' [-Wimplicit-function-declaration]
# !ferror(fd) && !fflush(fd))
# ^
# In file included from hash_update.c:3:0:
# common_func.h:23:20: error: no include path in which to search for stdint.h
# #include
# ^
# calc_sums.c:341:3: warning: nested extern declaration of 'ferror' [-Wnested-externs]
# calc_sums.c:341:3: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# common_func.c:382:7: error: dereferencing pointer to incomplete type
# timer->tv_usec = end.tv_usec + (end.tv_usec >= timer->tv_usec ? 0 : 1000000 ) - timer->tv_usec;
# ^
# common_func.h:24:19: error: no include path in which to search for stdio.h
# #include
# ^
# calc_sums.c:341:3: warning: nested extern declaration of 'fflush' [-Wnested-externs]
# common_func.h:25:35: error: no include path in which to search for time.h
# #include /* for time_t */
# ^
# common_func.h:26:38: error: no include path in which to search for stddef.h
# #include /* for wchar_t */
# ^
# common_func.c:382:54: error: dereferencing pointer to incomplete type
# timer->tv_usec = end.tv_usec + (end.tv_usec >= timer->tv_usec ? 0 : 1000000 ) - timer->tv_usec;
# ^
# common_func.h:29:40: error: no include path in which to search for sys/time.h
# #include /* for timeval */
# ^
# calc_sums.c: In function 'save_torrent':
# common_func.h:42:27: error: unknown type name 'uint64_t'
# void sprintI64(char *dst, uint64_t number, int max_width);
# ^
# common_func.c:382:87: error: dereferencing pointer to incomplete type
# timer->tv_usec = end.tv_usec + (end.tv_usec >= timer->tv_usec ? 0 : 1000000 ) - timer->tv_usec;
# ^
# common_func.h:43:14: error: unknown type name 'uint64_t'
# int int_len(uint64_t num);
# ^
# calc_sums.c:362:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(path);
# ^
# calc_sums.c: At top level:
# common_func.c:376:14: warning: unused variable 'end' [-Wunused-variable]
# timedelta_t end;
# ^
# calc_sums.c:373:30: error: unknown type name 'FILE'
# int calculate_and_print_sums(FILE* out, file_t* file, const char *print_path)
# ^
# hash_print.c: In function 'init_printf_format':
# common_func.h:51:1: error: unknown type name 'size_t'
# size_t strlen_utf8_c(const char *str);
# ^
# common_func.c: In function 'rhash_get_ticks':
# hash_print.c:554:2: warning: implicit declaration of function 'rsh_str_ensure_size' [-Wimplicit-function-declaration]
# rsh_str_ensure_size(out, 1024); /* allocate big enough buffer */
# ^
# common_func.h:90:2: error: unknown type name 'wchar_t'
# wchar_t* wpath;
# ^
# hash_print.c:554:2: warning: nested extern declaration of 'rsh_str_ensure_size' [-Wnested-externs]
# common_func.c:392:17: error: storage size of 'tv' isn't known
# struct timeval tv;
# ^
# calc_sums.c: In function 'verify_sums':
# common_func.h:91:2: error: unknown type name 'uint64_t'
# uint64_t size;
# ^
# common_func.h:92:2: error: unknown type name 'uint64_t'
# uint64_t mtime;
# ^
# calc_sums.c:462:14: error: storage size of 'timer' isn't known
# timedelta_t timer;
# ^
# common_func.c:393:20: error: 'NULL' undeclared (first use in this function)
# gettimeofday(&tv, NULL);
# ^
# calc_sums.c:464:2: error: 'errno' undeclared (first use in this function)
# errno = 0;
# ^
# hash_print.c:557:3: warning: implicit declaration of function 'rsh_str_append_n' [-Wimplicit-function-declaration]
# rsh_str_append_n(out, "%l", 2);
# ^
# hash_print.c:557:3: warning: nested extern declaration of 'rsh_str_append_n' [-Wnested-externs]
# common_func.c:392:17: warning: unused variable 'tv' [-Wunused-variable]
# struct timeval tv;
# ^
# common_func.h:138:40: error: no include path in which to search for sys/time.h
# #include /* for timeval */
# ^
# common_func.c: In function 'rsh_file_init':
# common_func.c:404:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(file, 0, sizeof(*file));
# ^
# common_func.h:175:20: error: unknown type name 'size_t'
# void* rhash_malloc(size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:176:20: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline);
# ^
# common_func.h:176:32: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline);
# ^
# calc_sums.c:462:14: warning: unused variable 'timer' [-Wunused-variable]
# timedelta_t timer;
# ^
# common_func.c: In function 'rsh_file_cleanup':
# common_func.h:178:32: error: unknown type name 'size_t'
# void* rhash_realloc(void* mem, size_t size, const char* srcfile, int srcline);
# ^
# calc_sums.c: In function 'check_hash_file':
# common_func.c:418:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(file->path);
# ^
# common_func.c:418:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# common_func.h:193:2: error: unknown type name 'size_t'
# size_t size;
# ^
# common_func.h:194:2: error: unknown type name 'size_t'
# size_t allocated;
# ^
# calc_sums.c:509:2: error: unknown type name 'FILE'
# FILE *fd;
# ^
# common_func.c:420:15: error: 'NULL' undeclared (first use in this function)
# file->path = NULL;
# ^
# common_func.h:203:43: error: unknown type name 'size_t'
# void rsh_vector_add_empty(vector_t* vect, size_t item_size);
# ^
# calc_sums.c:511:2: error: unknown type name 'size_t'
# size_t pos;
# ^
# common_func.c: In function 'rsh_file_stat2':
# common_func.h:216:2: error: unknown type name 'size_t'
# size_t size;
# ^
# common_func.c:493:14: error: storage size of 'st' isn't known
# struct stat st;
# ^
# calc_sums.c:513:14: error: storage size of 'timer' isn't known
# timedelta_t timer;
# ^
# hash_print.c:616:15: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# i = (int)strlen(info->name);
# ^
# common_func.h:247:2: error: unknown type name 'size_t'
# size_t allocated;
# ^
# common_func.h:248:2: error: unknown type name 'size_t'
# size_t len;
# ^
# common_func.c:500:4: warning: implicit declaration of function 'lstat' [-Wimplicit-function-declaration]
# if (lstat(file->path, &st) < 0) return -1;
# ^
# common_func.c:500:4: warning: nested extern declaration of 'lstat' [-Wnested-externs]
# calc_sums.c:524:4: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset(&info, 0, sizeof(info));
# ^
# calc_sums.c:524:4: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# common_func.h:253:41: error: unknown type name 'size_t'
# void rsh_str_ensure_size(strbuf_t *str, size_t new_size);
# ^
# common_func.c:501:4: warning: implicit declaration of function 'S_ISLNK' [-Wimplicit-function-declaration]
# if (!S_ISLNK(st.st_mode)) break;
# ^
# hash_print.c: At top level:
# common_func.c:501:4: warning: nested extern declaration of 'S_ISLNK' [-Wnested-externs]
# common_func.h:254:56: error: unknown type name 'size_t'
# void rsh_str_append_n(strbuf_t *str, const char* text, size_t len);
# ^
# hash_print.c:639:27: error: unknown type name 'FILE'
# int print_sfv_header_line(FILE* out, file_t* file, const char* printpath)
# ^
# common_func.c:507:3: warning: implicit declaration of function 'stat' [-Wimplicit-function-declaration]
# res = stat(file->path, &st);
# ^
# common_func.c:507:3: warning: nested extern declaration of 'stat' [-Wnested-externs]
# hash_update.c:4:19: error: no include path in which to search for stdio.h
# #include
# ^
# hash_update.c:5:36: error: no include path in which to search for stdlib.h
# #include /* for qsort */
# ^
# hash_update.c:6:20: error: no include path in which to search for string.h
# #include
# ^
# calc_sums.c:536:27: error: 'errno' undeclared (first use in this function)
# else if (res == -1 && errno == ENOENT) rhash_data.miss++;
# ^
# hash_update.c:7:20: error: no include path in which to search for dirent.h
# #include
# ^
# common_func.c:513:2: warning: implicit declaration of function 'S_ISDIR' [-Wimplicit-function-declaration]
# if (S_ISDIR(st.st_mode)) {
# ^
# common_func.c:513:2: warning: nested extern declaration of 'S_ISDIR' [-Wnested-externs]
# hash_update.c:8:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# hash_update.c:9:19: error: no include path in which to search for errno.h
# #include
# ^
# calc_sums.c:536:36: error: 'ENOENT' undeclared (first use in this function)
# else if (res == -1 && errno == ENOENT) rhash_data.miss++;
# ^
# common_func.c:515:2: warning: implicit declaration of function 'S_ISREG' [-Wimplicit-function-declaration]
# } else if (S_ISREG(st.st_mode)) {
# ^
# common_func.c:515:2: warning: nested extern declaration of 'S_ISREG' [-Wnested-externs]
# hash_print.c:669:23: error: unknown type name 'FILE'
# void print_sfv_banner(FILE* out)
# ^
# In file included from hash_update.c:12:0:
# parse_cmdline.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.c:493:14: warning: unused variable 'st' [-Wunused-variable]
# struct stat st;
# ^
# calc_sums.c:540:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(info.full_path);
# ^
# parse_cmdline.h:87:2: error: unknown type name 'size_t'
# size_t bt_piece_length; /* BitTorrent piece length */
# ^
# calc_sums.c:554:8: error: 'stdin' undeclared (first use in this function)
# fd = stdin;
# ^
# common_func.c: In function 'rhash_exit':
# common_func.c:571:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(code);
# ^
# common_func.c:571:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# calc_sums.c:556:19: warning: assignment makes pointer from integer without a cast [enabled by default]
# } else if ( !(fd = rsh_fopen_bin(hash_file_path, "rb") )) {
# ^
# In file included from hash_update.c:13:0:
# output.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.c: At top level:
# output.h:19:41: error: unknown type name 'uint64_t'
# void (*update)(struct file_info *info, uint64_t offset);
# ^
# common_func.c:581:30: error: 'exit' undeclared here (not in a function)
# void (*rsh_exit)(int code) = exit;
# ^
# calc_sums.c:561:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# pos = strlen(hash_file_path)+16;
# ^
# common_func.c: In function 'report_error_default':
# output.h:40:36: error: unknown type name 'uint64_t'
# void print_time_stats(double time, uint64_t size, int total);
# ^
# common_func.c:594:2: error: unknown type name 'va_list'
# va_list ap;
# ^
# In file included from hash_update.c:14:0:
# rhash_main.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# rhash_main.h:16:2: error: unknown type name 'FILE'
# FILE *out;
# ^
# rhash_main.h:17:2: error: unknown type name 'FILE'
# FILE *log;
# ^
# calc_sums.c:563:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(rhash_data.out, _("\n--( Verifying %s )%s\n"), hash_file_path, ralign);
# ^
# common_func.c:595:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "RHash: error at %s:%u: ", srcfile, srcline);
# ^
# rhash_main.h:18:2: error: unknown type name 'FILE'
# FILE *upd_fd; /* descriptor of a crc file to update */
# ^
# calc_sums.c:563:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# common_func.c:595:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# rhash_main.h:32:2: error: unknown type name 'uint64_t'
# uint64_t total_size;
# ^
# rhash_main.h:33:2: error: unknown type name 'uint64_t'
# uint64_t batch_size;
# ^
# common_func.c:595:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "RHash: error at %s:%u: ", srcfile, srcline);
# ^
# common_func.c:596:2: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
# va_start(ap, format);
# ^
# common_func.c:596:2: warning: nested extern declaration of 'va_start' [-Wnested-externs]
# In file included from file_set.h:5:0,
# from hash_update.c:15:
# calc_sums.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# In file included from calc_sums.h:7:0,
# from file_set.h:5,
# from hash_update.c:15:
# hash_check.h:5:20: error: no include path in which to search for stdint.h
# #include
# ^
# common_func.c:597:2: warning: implicit declaration of function 'vfprintf' [-Wimplicit-function-declaration]
# vfprintf(stderr, format, ap); /* report the error to stderr */
# ^
# calc_sums.c:575:2: warning: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
# for (line_num = 0; fgets(buf, 2048, fd); line_num++)
# ^
# calc_sums.c:575:2: warning: nested extern declaration of 'fgets' [-Wnested-externs]
# hash_check.h:40:2: error: unknown type name 'uint64_t'
# uint64_t file_size; /* parsed file size, e.g. from magnet link */
# ^
# common_func.c:598:2: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
# va_end(ap);
# ^
# common_func.c:598:2: warning: nested extern declaration of 'va_end' [-Wnested-externs]
# common_func.c: At top level:
# common_func.c:613:20: error: unknown type name 'size_t'
# void* rhash_malloc(size_t size, const char* srcfile, int srcline)
# ^
# calc_sums.c:578:28: error: 'NULL' undeclared (first use in this function)
# char* path_without_ext = NULL;
# ^
# In file included from file_set.h:5:0,
# from hash_update.c:15:
# calc_sums.h:13:41: error: no include path in which to search for sys/types.h
# #include /* struct stat */
# ^
# calc_sums.h:14:35: error: no include path in which to search for sys/stat.h
# #include /* stat() */
# ^
# common_func.c:632:20: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline)
# ^
# calc_sums.h:25:2: error: unknown type name 'uint64_t'
# uint64_t size; /* the size of the hashed file */
# ^
# calc_sums.h:26:2: error: unknown type name 'uint64_t'
# uint64_t msg_offset; /* rctx->msg_size before hashing this file */
# ^
# common_func.c:632:32: error: unknown type name 'size_t'
# void* rhash_calloc(size_t num, size_t size, const char* srcfile, int srcline)
# ^
# common_func.c: In function 'rhash_strdup':
# calc_sums.h:41:30: error: unknown type name 'FILE'
# int calculate_and_print_sums(FILE* out, file_t* file, const char *print_path);
# ^
# common_func.c:654:2: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
# char* res = strdup(str);
# ^
# calc_sums.c:594:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(&info, 0, sizeof(info));
# ^
# common_func.c:654:14: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
# char* res = strdup(str);
# ^
# calc_sums.c:596:3: warning: implicit declaration of function 'feof' [-Wimplicit-function-declaration]
# if (!hash_check_parse_line(line, &info.hc, !feof(fd))) continue;
# ^
# calc_sums.c:596:3: warning: nested extern declaration of 'feof' [-Wnested-externs]
# common_func.c: At top level:
# common_func.c:702:32: error: unknown type name 'size_t'
# void* rhash_realloc(void* mem, size_t size, const char* srcfile, int srcline)
# ^
# In file included from hash_update.c:18:0:
# hash_print.h:41:17: error: unknown type name 'FILE'
# void print_line(FILE* out, print_item* list, struct file_info *info);
# ^
# hash_print.h:45:23: error: unknown type name 'FILE'
# void print_sfv_banner(FILE* out);
# ^
# hash_print.h:46:27: error: unknown type name 'FILE'
# int print_sfv_header_line(FILE* out, file_t* file, const char* printpath);
# ^
# calc_sums.c:606:4: warning: implicit declaration of function 'strrchr' [-Wimplicit-function-declaration]
# point = strrchr(path_without_ext, '.');
# ^
# common_func.c: In function 'rsh_vector_new':
# calc_sums.c:606:12: warning: incompatible implicit declaration of built-in function 'strrchr' [enabled by default]
# point = strrchr(path_without_ext, '.');
# ^
# common_func.c:726:18: warning: cast from function call of type 'int' to non-matching type 'struct vector_t *' [-Wbad-function-cast]
# vector_t* ptr = (vector_t*)rsh_malloc(sizeof(vector_t));
# ^
# hash_update.c: In function 'update_hash_file':
# hash_update.c:36:14: error: storage size of 'timer' isn't known
# timedelta_t timer;
# ^
# common_func.c:727:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(ptr, 0, sizeof(vector_t));
# ^
# common_func.c: In function 'rsh_vector_new_simple':
# calc_sums.c:621:5: error: unknown type name 'size_t'
# size_t len = strlen(info.print_path);
# ^
# common_func.c:740:24: error: 'free' undeclared (first use in this function)
# return rsh_vector_new(free);
# ^
# common_func.c: In function 'rsh_vector_destroy':
# calc_sums.c:622:22: warning: cast from function call of type 'int' to non-matching type 'char *' [-Wbad-function-cast]
# info.full_path = (char*)rsh_malloc(pos + len + 1);
# ^
# hash_update.c:62:3: warning: implicit declaration of function 'print_time_stats' [-Wimplicit-function-declaration]
# print_time_stats(time, rhash_data.total_size, 1);
# ^
# common_func.c:753:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# for (i=0; isize; i++) vect->destructor(vect->array[i]);
# ^
# hash_update.c:62:3: warning: nested extern declaration of 'print_time_stats' [-Wnested-externs]
# calc_sums.c:623:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(info.full_path, hash_file_path, pos);
# ^
# hash_update.c:36:14: warning: unused variable 'timer' [-Wunused-variable]
# timedelta_t timer;
# ^
# common_func.c:755:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(vect->array);
# ^
# hash_update.c: In function 'file_set_load_from_crc_file':
# hash_update.c:77:2: error: unknown type name 'FILE'
# FILE *fd;
# ^
# calc_sums.c:624:5: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(info.full_path + pos, info.print_path);
# ^
# common_func.c: In function 'rsh_vector_free':
# hash_update.c:82:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# if ( !(fd = rsh_fopen_bin(file->path, "rb") )) {
# ^
# hash_update.c:82:2: warning: nested extern declaration of 'fopen' [-Wnested-externs]
# common_func.c:768:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(vect);
# ^
# hash_update.c:82:12: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( !(fd = rsh_fopen_bin(file->path, "rb") )) {
# ^
# common_func.c: In function 'rsh_vector_add_ptr':
# hash_update.c:84:11: error: 'errno' undeclared (first use in this function)
# return (errno == ENOENT ? 0 : -1);
# ^
# calc_sums.c:641:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(path_without_ext);
# ^
# hash_update.c:84:11: note: each undeclared identifier is reported only once for each function it appears in
# hash_update.c:84:20: error: 'ENOENT' undeclared (first use in this function)
# return (errno == ENOENT ? 0 : -1);
# ^
# common_func.c:781:3: error: unknown type name 'size_t'
# size_t size = (vect->allocated==0 ? 128 : vect->allocated * 2);
# ^
# hash_update.c:86:2: warning: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
# for (line_num = 0; fgets(buf, 2048, fd); line_num++) {
# ^
# hash_update.c:86:2: warning: nested extern declaration of 'fgets' [-Wnested-externs]
# calc_sums.c:650:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(path_without_ext);
# ^
# common_func.c:782:3: warning: implicit declaration of function 'rhash_realloc' [-Wimplicit-function-declaration]
# vect->array = (void**)rsh_realloc(vect->array, size * sizeof(void*));
# ^
# common_func.c:782:3: warning: nested extern declaration of 'rhash_realloc' [-Wnested-externs]
# common_func.c:782:17: warning: cast from function call of type 'int' to non-matching type 'void **' [-Wbad-function-cast]
# vect->array = (void**)rsh_realloc(vect->array, size * sizeof(void*));
# ^
# hash_update.c:96:4: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(fd);
# ^
# hash_update.c:96:4: warning: nested extern declaration of 'fclose' [-Wnested-externs]
# calc_sums.c:660:3: warning: implicit declaration of function 'print_time_stats' [-Wimplicit-function-declaration]
# print_time_stats(time, rhash_data.total_size, 1);
# ^
# common_func.c: At top level:
# calc_sums.c:660:3: warning: nested extern declaration of 'print_time_stats' [-Wnested-externs]
# hash_update.c:103:3: warning: implicit declaration of function 'feof' [-Wimplicit-function-declaration]
# if (hash_check_parse_line(line, &hc, !feof(fd))) {
# ^
# hash_update.c:103:3: warning: nested extern declaration of 'feof' [-Wnested-externs]
# common_func.c:796:50: error: unknown type name 'size_t'
# void rsh_vector_add_empty(struct vector_t* vect, size_t item_size)
# ^
# calc_sums.c:513:14: warning: unused variable 'timer' [-Wunused-variable]
# timedelta_t timer;
# ^
# common_func.c: In function 'rsh_blocks_vector_init':
# calc_sums.c: At top level:
# hash_update.c: In function 'add_sums_to_file':
# hash_update.c:124:2: error: unknown type name 'FILE'
# FILE* fd;
# ^
# common_func.c:814:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(bvector, 0, sizeof(*bvector));
# ^
# calc_sums.c:683:75: error: unknown type name 'size_t'
# static int benchmark_loop(unsigned hash_id, const unsigned char* message, size_t msg_size, int count, unsigned char* out)
# ^
# common_func.c:815:31: error: 'free' undeclared (first use in this function)
# bvector->blocks.destructor = free;
# ^
# hash_update.c:137:12: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( !(fd = fopen(file->path, "r+") )) {
# ^
# calc_sums.c: In function 'run_benchmark':
# common_func.c: In function 'rsh_str_new':
# calc_sums.c:728:14: error: storage size of 'timer' isn't known
# timedelta_t timer;
# ^
# calc_sums.c:730:2: error: unknown type name 'size_t'
# size_t sz_mb, msg_size;
# ^
# calc_sums.c:758:3: warning: implicit declaration of function 'benchmark_loop' [-Wimplicit-function-declaration]
# benchmark_loop(hash_id, message, sizeof(message), (int)(msg_size / sizeof(message)), out);
# ^
# calc_sums.c:758:3: warning: nested extern declaration of 'benchmark_loop' [-Wnested-externs]
# calc_sums.c:764:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(rhash_data.out, "%s %u MiB calculated in %.3f sec, %.3f MBps\n", hash_name, (unsigned)sz_mb, time, (double)sz_mb / time);
# ^
# common_func.c:840:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# strbuf_t *res = (strbuf_t*)malloc(sizeof(strbuf_t));
# ^
# hash_update.c:145:3: warning: implicit declaration of function 'fseek' [-Wimplicit-function-declaration]
# if (fseek(fd, -1, SEEK_END) != 0) {
# ^
# hash_update.c:145:3: warning: nested extern declaration of 'fseek' [-Wnested-externs]
# hash_update.c:145:21: error: 'SEEK_END' undeclared (first use in this function)
# if (fseek(fd, -1, SEEK_END) != 0) {
# ^
# common_func.c:840:29: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# strbuf_t *res = (strbuf_t*)malloc(sizeof(strbuf_t));
# ^
# hash_update.c:149:3: warning: implicit declaration of function 'fgetc' [-Wimplicit-function-declaration]
# ch = fgetc(fd);
# ^
# hash_update.c:149:3: warning: nested extern declaration of 'fgetc' [-Wnested-externs]
# calc_sums.c:801:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(rhash_data.out, "%s\t%u\t%.3f\t%.3f", hash_name, ((unsigned)sz_mb * rounds), total_time, (double)(sz_mb * rounds) / total_time);
# ^
# common_func.c:841:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(res, 0, sizeof(strbuf_t));
# ^
# hash_update.c:160:4: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(fd, "\n");
# ^
# hash_update.c:160:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# common_func.c: In function 'rsh_str_free':
# hash_update.c:165:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# for (i = 0; i < files_to_add->size; i++, rhash_data.processed++)
# ^
# calc_sums.c:809:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(rhash_data.out, "%s %u MiB total in %.3f sec, %.3f MBps", hash_name, ((unsigned)sz_mb * rounds), total_time, (double)(sz_mb * rounds) / total_time);
# ^
# common_func.c:853:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(ptr->str);
# ^
# common_func.c: At top level:
# common_func.c:865:41: error: unknown type name 'size_t'
# void rsh_str_ensure_size(strbuf_t *str, size_t new_size)
# ^
# hash_update.c:181:5: warning: implicit declaration of function 'print_sfv_banner' [-Wimplicit-function-declaration]
# print_sfv_banner(fd);
# ^
# calc_sums.c:728:14: warning: unused variable 'timer' [-Wunused-variable]
# timedelta_t timer;
# ^
# hash_update.c:181:5: warning: nested extern declaration of 'print_sfv_banner' [-Wnested-externs]
# hash_update.c:188:3: warning: implicit declaration of function 'calculate_and_print_sums' [-Wimplicit-function-declaration]
# calculate_and_print_sums(fd, &file, print_path);
# ^
# hash_update.c:188:3: warning: nested extern declaration of 'calculate_and_print_sums' [-Wnested-externs]
# common_func.c:884:56: error: unknown type name 'size_t'
# void rsh_str_append_n(strbuf_t *str, const char* text, size_t length)
# ^
# hash_update.c: In function 'load_filtered_dir':
# common_func.c: In function 'rsh_str_append':
# hash_update.c:213:2: error: unknown type name 'DIR'
# DIR *dp;
# ^
# calc_sums.c: At top level:
# hash_update.c:217:2: warning: implicit declaration of function 'opendir' [-Wimplicit-function-declaration]
# dp = opendir(dir_path);
# ^
# hash_update.c:217:2: warning: nested extern declaration of 'opendir' [-Wnested-externs]
# common_func.c:900:2: warning: implicit declaration of function 'rsh_str_append_n' [-Wimplicit-function-declaration]
# rsh_str_append_n(str, text, strlen(text));
# ^
# calc_sums.c:357:13: warning: 'save_torrent' defined but not used [-Wunused-function]
# static void save_torrent(struct file_info* info)
# ^
# hash_update.c:217:5: warning: assignment makes pointer from integer without a cast [enabled by default]
# dp = opendir(dir_path);
# ^
# common_func.c:900:2: warning: nested extern declaration of 'rsh_str_append_n' [-Wnested-externs]
# hash_update.c:220:2: warning: implicit declaration of function 'readdir' [-Wimplicit-function-declaration]
# while ((de = readdir(dp)) != NULL) {
# ^
# hash_update.c:220:2: warning: nested extern declaration of 'readdir' [-Wnested-externs]
# hash_update.c:220:13: warning: assignment makes pointer from integer without a cast [enabled by default]
# while ((de = readdir(dp)) != NULL) {
# ^
# common_func.c:900:30: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# rsh_str_append_n(str, text, strlen(text));
# ^
# hash_update.c:220:31: error: 'NULL' undeclared (first use in this function)
# while ((de = readdir(dp)) != NULL) {
# ^
# hash_update.c:225:9: error: dereferencing pointer to incomplete type
# if (de->d_name[0] == '.' && (de->d_name[1] == 0 ||
# ^
# hash_update.c:225:34: error: dereferencing pointer to incomplete type
# if (de->d_name[0] == '.' && (de->d_name[1] == 0 ||
# ^
# hash_update.c:226:8: error: dereferencing pointer to incomplete type
# (de->d_name[1] == '.' && de->d_name[2] == 0))) {
# ^
# hash_update.c:226:32: error: dereferencing pointer to incomplete type
# (de->d_name[1] == '.' && de->d_name[2] == 0))) {
# ^
# hash_update.c:231:32: error: dereferencing pointer to incomplete type
# path = make_path(dir_path, de->d_name);
# ^
# hash_update.c:233:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(path);
# ^
# hash_update.c:233:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# hash_update.c:238:59: error: dereferencing pointer to incomplete type
# if (!is_regular || !file_mask_match(opt.files_accept, de->d_name) ||
# ^
# hash_update.c:239:63: error: dereferencing pointer to incomplete type
# (opt.files_exclude && file_mask_match(opt.files_exclude, de->d_name)) ||
# ^
# hash_update.c:240:34: error: dereferencing pointer to incomplete type
# file_set_exist(crc_entries, de->d_name))
# ^
# hash_update.c:245:37: error: dereferencing pointer to incomplete type
# file_set_add_name(files_to_add, de->d_name);
# ^
# make: *** [Makefile:201: hash_print.o] Error 1
# make: *** Waiting for unfinished jobs....
# hash_update.c: In function 'add_new_crc_entries':
# hash_update.c:290:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(dir_path);
# ^
# hash_update.c: In function 'fix_sfv_header':
# hash_update.c:302:2: error: unknown type name 'FILE'
# FILE* in;
# ^
# hash_update.c:303:2: error: unknown type name 'FILE'
# FILE* out;
# ^
# hash_update.c:305:2: error: unknown type name 'size_t'
# size_t len;
# ^
# hash_update.c:309:12: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( !(in = fopen(file->path, "r") )) {
# ^
# hash_update.c:315:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# len = strlen(file->path);
# ^
# hash_update.c:315:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(file->path);
# ^
# hash_update.c:316:2: warning: implicit declaration of function 'rhash_malloc' [-Wimplicit-function-declaration]
# tmp_file = (char*)rsh_malloc(len+8);
# ^
# hash_update.c:316:2: warning: nested extern declaration of 'rhash_malloc' [-Wnested-externs]
# hash_update.c:316:13: warning: cast from function call of type 'int' to non-matching type 'char *' [-Wbad-function-cast]
# tmp_file = (char*)rsh_malloc(len+8);
# ^
# hash_update.c:317:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(tmp_file, file->path, len);
# ^
# hash_update.c:317:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# hash_update.c:318:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(tmp_file+len, ".new");
# ^
# hash_update.c:318:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# hash_update.c:321:13: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( !(out = fopen(tmp_file, "w") )) {
# ^
# hash_update.c:323:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(tmp_file);
# ^
# hash_update.c:331:4: warning: implicit declaration of function 'fputs' [-Wimplicit-function-declaration]
# if (fputs(line, out) < 0) break;
# ^
# hash_update.c:334:2: warning: implicit declaration of function 'ferror' [-Wimplicit-function-declaration]
# if (!ferror(out) && !ferror(in)) {
# ^
# hash_update.c:334:2: warning: nested extern declaration of 'ferror' [-Wnested-externs]
# hash_update.c:335:16: error: 'SEEK_SET' undeclared (first use in this function)
# fseek(in, 0, SEEK_SET);
# ^
# common_func.c: In function 'rsh_fsec':
# hash_update.c:361:3: warning: implicit declaration of function 'rename' [-Wimplicit-function-declaration]
# if (rename(tmp_file, file->path) < 0) {
# ^
# hash_update.c:361:3: warning: nested extern declaration of 'rename' [-Wnested-externs]
# common_func.c:360:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# common_func.c: In function 'rhash_get_ticks':
# hash_update.c:363:5: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration]
# tmp_file, file->path, strerror(errno));
# ^
# common_func.c:396:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# hash_update.c:363:5: warning: nested extern declaration of 'strerror' [-Wnested-externs]
# hash_update.c:363:36: error: 'errno' undeclared (first use in this function)
# tmp_file, file->path, strerror(errno));
# ^
# hash_update.c:367:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(tmp_file);
# ^
# common_func.c: In function 'rsh_vector_new_simple':
# common_func.c:741:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# make: *** [Makefile:182: common_func.o] Error 1
# make: *** [Makefile:178: calc_sums.o] Error 1
# make: *** [Makefile:206: hash_update.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...