* Package: app-text/agrep-2.04-r2:0 * Repository: gentoo * Maintainer: shell-tools@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking agrep-2.04.tar.Z to /var/tmp/portage/app-text/agrep-2.04-r2/work >>> Source unpacked in /var/tmp/portage/app-text/agrep-2.04-r2/work >>> Preparing source in /var/tmp/portage/app-text/agrep-2.04-r2/work/agrep-2.04 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-text/agrep-2.04-r2/work/agrep-2.04 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/app-text/agrep-2.04-r2/work/agrep-2.04 ... make -j4 clang -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o asearch.o asearch.c clang -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o asearch1.o asearch1.c clang -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o bitap.o bitap.c clang -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o checkfile.o checkfile.c checkfile.c:34:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int check_file(fname) ^ checkfile.c:69:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ In file included from asearch.c:2: ./agrep.h:6:23: warning: incompatible redeclaration of library function 'strcpy' [-Wincompatible-library-redeclaration] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ ./agrep.h:6:23: note: 'strcpy' is a builtin with type 'char *(char *, const char *)' ./agrep.h:6:34: warning: incompatible redeclaration of library function 'strncpy' [-Wincompatible-library-redeclaration] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ ./agrep.h:6:34: note: 'strncpy' is a builtin with type 'char *(char *, const char *, unsigned long)' ./agrep.h:6:46: warning: incompatible redeclaration of library function 'strcat' [-Wincompatible-library-redeclaration] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ ./agrep.h:6:46: note: 'strcat' is a builtin with type 'char *(char *, const char *)' ./agrep.h:7:12: warning: incompatible redeclaration of library function 'strlen' [-Wincompatible-library-redeclaration] extern int strlen(); ^ ./agrep.h:7:12: note: 'strlen' is a builtin with type 'unsigned long (const char *)' asearch.c:9:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] asearch(old_D_pat, text, D) ^ int asearch.c:24:10: error: call to undeclared function 'asearch0'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] asearch0(old_D_pat, text, D); ^ asearch.c:24:10: note: did you mean 'asearch'? asearch.c:9:1: note: 'asearch' declared here asearch(old_D_pat, text, D) ^ asearch.c:25:10: error: non-void function 'asearch' should return a value [-Wreturn-type] return; } ^ asearch.c:26:20: warning: passing arguments to 'strlen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] D_length = strlen(old_D_pat); ^ asearch.c:40:15: error: call to undeclared function 'fill_buf'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] while ((l = fill_buf(text, buffer + Max_record, Max_record)) > 0) ^ asearch.c:52:16: warning: passing arguments to 'strncpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strncpy(buffer+end, old_D_pat, D_length); ^ 2 warnings generated. asearch.c:89:26: error: non-void function 'asearch' should return a value [-Wreturn-type] return; } ^ asearch.c:92:26: error: call to undeclared function 'output'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] output(buffer, lasti, printout_end, j); ^ asearch.c:144:24: error: non-void function 'asearch' should return a value [-Wreturn-type] return; } ^ asearch.c:147:24: error: call to undeclared function 'output'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] output(buffer, lasti, printout_end, j); ^ asearch.c:173:15: warning: passing arguments to 'strncpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strncpy(buffer+Max_record-ResidueSize, buffer+lasti, ResidueSize); ^ asearch.c:178:3: error: non-void function 'asearch' should return a value [-Wreturn-type] return; ^ asearch.c:9:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asearch(old_D_pat, text, D) ^ asearch.c:181:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] asearch0(old_D_pat, text, D) ^ int asearch.c:191:20: warning: passing arguments to 'strlen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] D_length = strlen(old_D_pat); ^ asearch.c:204:15: error: call to undeclared function 'fill_buf'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] while ((l = fill_buf(text, buffer + Max_record, Max_record)) > 0) ^ asearch.c:210:16: warning: passing arguments to 'strncpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strncpy(buffer+end, old_D_pat, D_length); ^ asearch.c:232:26: error: non-void function 'asearch0' should return a value [-Wreturn-type] return; } ^ asearch.c:235:26: error: call to undeclared function 'output'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] output(buffer, lasti, printout_end, j); ^ asearch.c:266:24: error: non-void function 'asearch0' should return a value [-Wreturn-type] return; } ^ asearch.c:269:24: error: call to undeclared function 'output'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] output(buffer, lasti, printout_end, j); ^ asearch.c:292:15: warning: passing arguments to 'strncpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strncpy(buffer+Max_record-ResidueSize, buffer+lasti, ResidueSize); ^ asearch.c:297:3: error: non-void function 'asearch0' should return a value [-Wreturn-type] return; ^ asearch.c:181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asearch0(old_D_pat, text, D) ^ 12 warnings and 16 errors generated. In file included from asearch1.c:2: ./agrep.h:6:23: warning: incompatible redeclaration of library function 'strcpy' [-Wincompatible-library-redeclaration] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ ./agrep.h:6:23: note: 'strcpy' is a builtin with type 'char *(char *, const char *)' ./agrep.h:6:34: warning: incompatible redeclaration of library function 'strncpy' [-Wincompatible-library-redeclaration] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ ./agrep.h:6:34: note: 'strncpy' is a builtin with type 'char *(char *, const char *, unsigned long)' ./agrep.h:6:46: warning: incompatible redeclaration of library function 'strcat' [-Wincompatible-library-redeclaration] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ ./agrep.h:6:46: note: 'strcat' is a builtin with type 'char *(char *, const char *)' ./agrep.h:7:12: warning: incompatible redeclaration of library function 'strlen' [-Wincompatible-library-redeclaration] extern int strlen(); ^ ./agrep.h:7:12: note: 'strlen' is a builtin with type 'unsigned long (const char *)' asearch1.c:11:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] asearch1(old_D_pat, Text, D) ^ int asearch1.c:24:20: warning: passing arguments to 'strlen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] D_length = strlen(old_D_pat); ^ clang -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o compat.o compat.c asearch1.c:38:22: error: call to undeclared function 'fill_buf'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Max_record, Max_record)) > 0) ^ asearch1.c:50:30: warning: passing arguments to 'strncpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strncpy(buffer+Max_record+num_read, old_D_pat, D_length); ^ asearch1.c:72:25: error: non-void function 'asearch1' should return a value [-Wreturn-type] return; } ^ asearch1.c:74:25: error: call to undeclared function 'output'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] output(buffer, lasti, i-D_length-1, j); ^ make: *** [: asearch.o] Error 1 make: *** Waiting for unfinished jobs.... asearch1.c:102:25: error: non-void function 'asearch1' should return a value [-Wreturn-type] return; } ^ asearch1.c:104:25: error: call to undeclared function 'output'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] output(buffer, lasti, i-D_length-1, j); ^ asearch1.c:124:12: warning: passing arguments to 'strncpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strncpy(buffer+Max_record-ResidueSize, buffer+lasti, ResidueSize); ^ asearch1.c:129:3: error: non-void function 'asearch1' should return a value [-Wreturn-type] return; ^ asearch1.c:11:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asearch1(old_D_pat, Text, D) ^ 8 warnings and 7 errors generated. make: *** [: asearch1.o] Error 1 In file included from bitap.c:14: ./agrep.h:6:23: warning: incompatible redeclaration of library function 'strcpy' [-Wincompatible-library-redeclaration] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ ./agrep.h:6:23: note: 'strcpy' is a builtin with type 'char *(char *, const char *)' ./agrep.h:6:34: warning: incompatible redeclaration of library function 'strncpy' [-Wincompatible-library-redeclaration] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ ./agrep.h:6:34: note: 'strncpy' is a builtin with type 'char *(char *, const char *, unsigned long)' ./agrep.h:6:46: warning: incompatible redeclaration of library function 'strcat' [-Wincompatible-library-redeclaration] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ ./agrep.h:6:46: note: 'strcat' is a builtin with type 'char *(char *, const char *)' ./agrep.h:7:12: warning: incompatible redeclaration of library function 'strlen' [-Wincompatible-library-redeclaration] extern int strlen(); ^ ./agrep.h:7:12: note: 'strlen' is a builtin with type 'unsigned long (const char *)' bitap.c:25:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] bitap(old_D_pat, Pattern, fd, M, D) ^ int bitap.c:35:20: warning: passing arguments to 'strlen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] D_length = strlen(old_D_pat); ^ bitap.c:41:11: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] exit(2); ^ bitap.c:41:11: note: include the header or explicitly provide a declaration for 'exit' bitap.c:43:28: error: call to undeclared function 're'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (M <= SHORTREG) { re(fd, M, D); /* SUN: need to find a even point */ ^ bitap.c:44:22: error: non-void function 'bitap' should return a value [-Wreturn-type] return; } ^ bitap.c:45:14: error: call to undeclared function 're1'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] else { re1(fd, M, D); ^ bitap.c:46:14: error: non-void function 'bitap' should return a value [-Wreturn-type] return; } ^ bitap.c:49:8: error: call to undeclared function 'asearch1'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] { asearch1(old_D_pat, fd, D); return; } ^ bitap.c:49:36: error: non-void function 'bitap' should return a value [-Wreturn-type] { asearch1(old_D_pat, fd, D); return; } ^ bitap.c:51:8: error: call to undeclared function 'asearch'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] { asearch(old_D_pat, fd, D); return; } ^ bitap.c:51:35: error: non-void function 'bitap' should return a value [-Wreturn-type] { asearch(old_D_pat, fd, D); return; } ^ bitap.c:67:22: error: call to undeclared function 'fill_buf'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] while ((num_read = fill_buf(fd, buffer + Max_record, Max_record)) > 0) ^ bitap.c:81:30: warning: passing arguments to 'strncpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strncpy(buffer+Max_record+num_read, old_D_pat, D_length); ^ bitap.c:98:21: error: non-void function 'bitap' should return a value [-Wreturn-type] return; } ^ bitap.c:101:21: error: call to undeclared function 'output'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] output(buffer, lasti, print_end, j); ^ bitap.c:120:21: error: non-void function 'bitap' should return a value [-Wreturn-type] return; } ^ bitap.c:123:21: error: call to undeclared function 'output'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] output(buffer, lasti, print_end, j); ^ bitap.c:137:12: warning: passing arguments to 'strncpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strncpy(buffer+Max_record-ResidueSize, buffer+lasti, ResidueSize); ^ bitap.c:143:3: error: non-void function 'bitap' should return a value [-Wreturn-type] return; ^ bitap.c:25:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bitap(old_D_pat, Pattern, fd, M, D) ^ bitap.c:146:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] fill_buf(fd, buf, record_size) ^ int bitap.c:152:14: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] num_read = read(fd, buf+total_read, 4096); ^ bitap.c:152:14: note: did you mean 'fread'? /usr/include/stdio.h:675:15: note: 'fread' declared here extern size_t fread (void *__restrict __ptr, size_t __size, ^ bitap.c:146:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fill_buf(fd, buf, record_size) ^ 9 warnings and 18 errors generated. make: *** [: bitap.o] Error 1 compat.c:5:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] extern FILEOUT; ~~~~~~ ^ int compat.c:6:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] extern REGEX; ~~~~~~ ^ int compat.c:7:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] extern DELIMITER; ~~~~~~ ^ int compat.c:8:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] extern WHOLELINE; ~~~~~~ ^ int compat.c:9:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] extern LINENUM; ~~~~~~ ^ int compat.c:10:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] extern I, S, DD; ~~~~~~ ^ int compat.c:10:11: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] extern I, S, DD; ~~~~~~ ^ int compat.c:10:14: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] extern I, S, DD; ~~~~~~ ^ int compat.c:11:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] extern JUMP; ~~~~~~ ^ int compat.c:14:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] compat() ^ int compat.c:19:82: warning: data argument not used by format string [-Wformat-extra-args] ..."WARNING!!! -B option ignored when -c, -l, -f, or -# is on\n", Progname); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ compat.c:33:4: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] exit(2); ^ compat.c:33:4: note: include the header or explicitly provide a declaration for 'exit' compat.c:57:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 2 warnings and 11 errors generated. make: *** [: compat.o] Error 1 * ERROR: app-text/agrep-2.04-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-text/agrep-2.04-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-text/agrep-2.04-r2::gentoo'`. * The complete build log is located at '/var/log/portage/app-text:agrep-2.04-r2:20220917-121712.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-text/agrep-2.04-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/agrep-2.04-r2/temp/environment'. * Working directory: '/var/tmp/portage/app-text/agrep-2.04-r2/work/agrep-2.04' * S: '/var/tmp/portage/app-text/agrep-2.04-r2/work/agrep-2.04'