=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for detox-1.2.0 > detox_path.h echo "char default_etc_dir[]=\"/usr/pkg/etc\";" >> detox_path.h echo "char default_data_dir[]=\"/usr/pkg/share/detox\";" >> detox_path.h cc -c -O2 -march=i586 detox.c detox.c:351:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] file_work = parse_file(*file_walk, main_options); ^~~~~~~~~~ ./file.h:40:49: note: passing argument to parameter 'filename' here extern unsigned char *parse_file(unsigned char *filename, struct detox_options *options); ^ detox.c:351:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] file_work = parse_file(*file_walk, main_options); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ detox.c:352:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] parse_dir(file_work, main_options); ^~~~~~~~~ ./file.h:42:38: note: passing argument to parameter 'indir' here extern void parse_dir(unsigned char *indir, struct detox_options *options); ^ detox.c:356:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] parse_file(*file_walk, main_options); ^~~~~~~~~~ ./file.h:40:49: note: passing argument to parameter 'filename' here extern unsigned char *parse_file(unsigned char *filename, struct detox_options *options); ^ detox.c:359:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] parse_special(*file_walk, main_options); ^~~~~~~~~~ ./file.h:44:42: note: passing argument to parameter 'in' here extern void parse_special(unsigned char *in, struct detox_options *options); ^ 5 warnings generated. cc -c -O2 -march=i586 file.c file.c:75:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = strlen(filename) + 1; ^~~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ file.c:83:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] old_filename_ptr = strrchr(old_filename, '/'); ^~~~~~~~~~~~ /usr/include/string.h:66:27: note: passing argument to parameter here char *strrchr(const char *, int); ^ file.c:83:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] old_filename_ptr = strrchr(old_filename, '/'); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:105:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] work = strdup(old_filename_ptr); ^~~~~~~~~~~~~~~~ /usr/include/string.h:79:26: note: passing argument to parameter here char *strdup(const char *); ^ file.c:105:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] work = strdup(old_filename_ptr); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ file.c:122:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp(old_filename_ptr, work) == 0) { ^~~~~~~~~~~~~~~~ /usr/include/string.h:56:25: note: passing argument to parameter here int strcmp(const char *, const char *); ^ file.c:122:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp(old_filename_ptr, work) == 0) { ^~~~ /usr/include/string.h:56:39: note: passing argument to parameter here int strcmp(const char *, const char *); ^ file.c:127:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] new_filename = malloc(len + strlen(work) + 1); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ file.c:135:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(new_filename, old_filename, len); ^~~~~~~~~~~~ /usr/include/string.h:64:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ file.c:135:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(new_filename, old_filename, len); ^~~~~~~~~~~~ /usr/include/string.h:64:57: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ file.c:136:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(new_filename + len, work); ^~~~~~~~~~~~~~~~~~ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:136:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(new_filename + len, work); ^~~~ /usr/include/string.h:58:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:140:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] err = lstat(old_filename, &stat_info_old); ^~~~~~~~~~~~ /usr/include/sys/stat.h:254:23: note: passing argument to parameter here int lstat(const char *, struct stat *) __RENAME(__lstat50); ^ file.c:146:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] err = lstat(new_filename, &stat_info_new); ^~~~~~~~~~~~ /usr/include/sys/stat.h:254:23: note: passing argument to parameter here int lstat(const char *, struct stat *) __RENAME(__lstat50); ^ file.c:168:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] err = rename(old_filename, new_filename); ^~~~~~~~~~~~ /usr/include/stdio.h:282:26: note: passing argument to parameter here int rename (const char *, const char *); ^ file.c:168:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] err = rename(old_filename, new_filename); ^~~~~~~~~~~~ /usr/include/stdio.h:282:40: note: passing argument to parameter here int rename (const char *, const char *); ^ file.c:193:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] err = lstat(indir, &stat_info); ^~~~~ /usr/include/sys/stat.h:254:23: note: passing argument to parameter here int lstat(const char *, struct stat *) __RENAME(__lstat50); ^ file.c:202:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] new_file_length = strlen(indir) + 1024; ^~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ file.c:203:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] new_file = (char *)malloc(new_file_length); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:213:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(new_file, indir); ^~~~~~~~ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:213:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(new_file, indir); ^~~~~ /usr/include/string.h:58:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ file.c:215:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] work = strrchr(new_file, '/'); ^~~~~~~~ /usr/include/string.h:66:27: note: passing argument to parameter here char *strrchr(const char *, int); ^ file.c:215:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] work = strrchr(new_file, '/'); ^ ~~~~~~~~~~~~~~~~~~~~~~ file.c:226:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] work = strrchr(new_file, '/'); ^~~~~~~~ /usr/include/string.h:66:27: note: passing argument to parameter here char *strrchr(const char *, int); ^ file.c:226:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] work = strrchr(new_file, '/'); ^ ~~~~~~~~~~~~~~~~~~~~~~ file.c:250:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] dir_handle = opendir(indir); ^~~~~ /usr/include/dirent.h:98:26: note: passing argument to parameter here DIR *opendir(const char *) __RENAME(__opendir30); ^ file.c:264:29: warning: passing 'char [512]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] check_file = !ignore_file(dir_entry->d_name, options); ^~~~~~~~~~~~~~~~~ file.c:58:39: note: passing argument to parameter 'filename' here static int ignore_file(unsigned char *filename, struct detox_options *options); ^ file.c:267:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(new_file, new_file_length, "%s/%s", indir, dir_entry->d_name); ^~~~~~~~ /usr/include/stdio.h:346:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ file.c:269:10: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] lstat(new_file, &stat_info); ^~~~~~~~ /usr/include/sys/stat.h:254:23: note: passing argument to parameter here int lstat(const char *, struct stat *) __RENAME(__lstat50); ^ file.c:300:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] new_file = parse_file(in, options); ^ ~~~~~~~~~~~~~~~~~~~~~~~ file.c:337:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] parse_dir(work, options); ^~~~ file.c:183:31: note: passing argument to parameter 'indir' here void parse_dir(unsigned char *indir, struct detox_options *options) ^ file.c:355:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp(filename, badfiles[x]) == 0) { ^~~~~~~~ /usr/include/string.h:56:25: note: passing argument to parameter here int strcmp(const char *, const char *); ^ file.c:362:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp(filename, ignore_walk->filename) == 0) { ^~~~~~~~ /usr/include/string.h:56:25: note: passing argument to parameter here int strcmp(const char *, const char *); ^ file.c:362:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp(filename, ignore_walk->filename) == 0) { ^~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:56:39: note: passing argument to parameter here int strcmp(const char *, const char *); ^ 34 warnings generated. cc -c -O2 -march=i586 clean_string.c clean_string.c:67:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] output = malloc((strlen(s) * ISO8859_1_MAXLEN) + 1); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:118:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] output = malloc((strlen(s) * table->max_data_length) + 1); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:129:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] replace_walk = table_get(table, *input_walk); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ clean_string.c:138:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] replace_walk = table->default_translation; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ clean_string.c:186:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] output = malloc((strlen(s) * 5) + 1); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:283:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] output = malloc((strlen(s) * table->max_data_length) + 1); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:293:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] replace_walk = table_get(table, *input_walk); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ clean_string.c:303:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] replace_walk = table->default_translation; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ clean_string.c:336:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] output = malloc(strlen(s) + 1); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:350:43: warning: passing 'unsigned char [3]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] *output_walk++ = (unsigned char)strtol(conv, NULL, 16); ^~~~ /usr/include/stdlib.h:123:37: note: passing argument to parameter here long strtol(const char * __restrict, char ** __restrict, int); ^ clean_string.c:395:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] output = malloc(strlen(s) + 1); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:472:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] output = malloc((strlen(s) * UNICODE_MAXLEN) + 1); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:594:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] output = malloc((strlen(s) * table->max_data_length) + 1); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:677:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] replace_walk = table_get(table, new_value); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ clean_string.c:680:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] replace_walk = table->default_translation; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ clean_string.c:729:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] s_length = strlen(s); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:737:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(output, max_length + 1, "%s", s); ^~~~~~ /usr/include/stdio.h:346:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ clean_string.c:743:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] input_walk = strrchr(s, '.'); ^ /usr/include/string.h:66:27: note: passing argument to parameter here char *strrchr(const char *, int); ^ clean_string.c:743:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] input_walk = strrchr(s, '.'); ^ ~~~~~~~~~~~~~~~ clean_string.c:749:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] ext_length = strlen(input_walk); ^~~~~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ clean_string.c:758:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(output_walk, ext_length + 1, "%s", input_walk); ^~~~~~~~~~~ /usr/include/stdio.h:346:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ clean_string.c:775:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] output = malloc(strlen(s) + 1); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 22 warnings generated. cc -c -O2 -march=i586 table.c cc -c -O2 -march=i586 parse_table.c cc -c -O2 -march=i586 config_file_l.c lex.yy.c:1908:18: warning: implicit declaration of function 'rpl_realloc' is invalid in C99 [-Wimplicit-function-declaration] return (void *) realloc( (char *) ptr, size ); ^ ./config.h:181:17: note: expanded from macro 'realloc' #define realloc rpl_realloc ^ 1 warning generated. cc -c -O2 -march=i586 config_file_y.c y.tab.c:1392:16: warning: implicit declaration of function 'yylex' is invalid in C99 [-Wimplicit-function-declaration] yychar = YYLEX; ^ y.tab.c:748:16: note: expanded from macro 'YYLEX' # define YYLEX yylex () ^ 1 warning generated. cc -c -O2 -march=i586 config_file_spoof.c cc -c -O2 -march=i586 config_file_dump.c cc -c -O2 -march=i586 parse_options_getopt.c parse_options_getopt.c:101:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(usage_message); ^~~~~~~~~~~~~ parse_options_getopt.c:103:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(help_message); ^~~~~~~~~~~~ parse_options_getopt.c:141:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(usage_message); ^~~~~~~~~~~~~ parse_options_getopt.c:198:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(usage_message); ^~~~~~~~~~~~~ 4 warnings generated. cc -c -O2 -march=i586 parse_options_generic.c cc -o detox detox.o file.o clean_string.o table.o parse_table.o config_file_l.o config_file_y.o config_file_spoof.o config_file_dump.o parse_options_getopt.o parse_options_generic.o -lfl config_file_l.o: In function `yylex': config_file_l.c:(.text+0x9d): undefined reference to `rpl_realloc' config_file_l.c:(.text+0x490): undefined reference to `rpl_realloc' config_file_l.o: In function `yyrestart': config_file_l.c:(.text+0xb5c): undefined reference to `rpl_realloc' config_file_l.o: In function `yy_switch_to_buffer': config_file_l.c:(.text+0xdfd): undefined reference to `rpl_realloc' config_file_l.o: In function `yypush_buffer_state': config_file_l.c:(.text+0x1065): undefined reference to `rpl_realloc' config_file_l.o:config_file_l.c:(.text+0x1525): more undefined references to `rpl_realloc' follow clang: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:73: recipe for target 'detox' failed gmake: *** [detox] Error 1 *** Error code 2 Stop. bmake: stopped in /usr/pkgsrc/sysutils/detox *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/sysutils/detox