<86>Dec 25 00:03:36 userdel[155287]: delete user 'rooter' <86>Dec 25 00:03:36 userdel[155287]: removed group 'rooter' owned by 'rooter' <86>Dec 25 00:03:36 userdel[155287]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 25 00:03:36 groupadd[155294]: group added to /etc/group: name=rooter, GID=1223 <86>Dec 25 00:03:36 groupadd[155294]: group added to /etc/gshadow: name=rooter <86>Dec 25 00:03:36 groupadd[155294]: new group: name=rooter, GID=1223 <86>Dec 25 00:03:36 useradd[155300]: new user: name=rooter, UID=1223, GID=1223, home=/root, shell=/bin/bash, from=none <86>Dec 25 00:03:36 userdel[155310]: delete user 'builder' <86>Dec 25 00:03:36 userdel[155310]: removed group 'builder' owned by 'builder' <86>Dec 25 00:03:36 userdel[155310]: removed shadow group 'builder' owned by 'builder' <86>Dec 25 00:03:36 groupadd[155317]: group added to /etc/group: name=builder, GID=1224 <86>Dec 25 00:03:36 groupadd[155317]: group added to /etc/gshadow: name=builder <86>Dec 25 00:03:36 groupadd[155317]: new group: name=builder, GID=1224 <86>Dec 25 00:03:36 useradd[155323]: new user: name=builder, UID=1224, GID=1224, home=/usr/src, shell=/bin/bash, from=none /usr/src/in/srpm/agrep-2.04-alt1.qa2.src.rpm: bad symbols in the license tag: , warning: user igor does not exist - using root warning: group igor does not exist - using root warning: user igor does not exist - using root warning: group igor does not exist - using root warning: user igor does not exist - using root warning: group igor does not exist - using root Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/agrep-2.04-alt1.qa2.nosrc.rpm (w1.gzdio) Installing agrep-2.04-alt1.qa2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.50650 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf agrep-2.04 + echo 'Source #0 (agrep-2.04.tar.Z):' Source #0 (agrep-2.04.tar.Z): + /usr/bin/gzip -dc /usr/src/RPM/SOURCES/agrep-2.04.tar.Z + /bin/tar -xf - + cd agrep-2.04 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.50650 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd agrep-2.04 + make -j8 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' make: Entering directory '/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o compat.o compat.c compat.c:5:8: error: type defaults to 'int' in declaration of 'FILEOUT' [-Wimplicit-int] 5 | extern FILEOUT; | ^~~~~~~ compat.c:6:8: error: type defaults to 'int' in declaration of 'REGEX' [-Wimplicit-int] 6 | extern REGEX; | ^~~~~ compat.c:7:8: error: type defaults to 'int' in declaration of 'DELIMITER' [-Wimplicit-int] 7 | extern DELIMITER; | ^~~~~~~~~ compat.c:8:8: error: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] 8 | extern WHOLELINE; | ^~~~~~~~~ compat.c:9:8: error: type defaults to 'int' in declaration of 'LINENUM' [-Wimplicit-int] 9 | extern LINENUM; | ^~~~~~~ compat.c:10:8: error: type defaults to 'int' in declaration of 'I' [-Wimplicit-int] 10 | extern I, S, DD; | ^ compat.c:10:11: error: type defaults to 'int' in declaration of 'S' [-Wimplicit-int] 10 | extern I, S, DD; | ^ compat.c:10:14: error: type defaults to 'int' in declaration of 'DD' [-Wimplicit-int] 10 | extern I, S, DD; | ^~ compat.c:11:8: error: type defaults to 'int' in declaration of 'JUMP' [-Wimplicit-int] 11 | extern JUMP; | ^~~~ compat.c:14:1: error: return type defaults to 'int' [-Wimplicit-int] 14 | compat() | ^~~~~~ compat.c: In function 'compat': compat.c:19:33: warning: too many arguments for format [-Wformat-extra-args] 19 | fprintf(stderr, "WARNING!!! -B option ignored when -c, -l, -f, or -# is on\n", Progname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compat.c:33:25: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 33 | exit(2); | ^~~~ compat.c:3:1: note: include '' or provide a declaration of 'exit' 2 | #include +++ |+#include 3 | compat.c:33:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 33 | exit(2); | ^~~~ compat.c:33:25: note: include '' or provide a declaration of 'exit' compat.c:37:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 37 | exit(2); | ^~~~ compat.c:37:25: note: include '' or provide a declaration of 'exit' compat.c:47:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 47 | exit(2); | ^~~~ compat.c:47:25: note: include '' or provide a declaration of 'exit' compat.c:53:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 53 | exit(2); | ^~~~ compat.c:53:25: note: include '' or provide a declaration of 'exit' compat.c:16:11: warning: unused variable 'k' [-Wunused-variable] 16 | int i, j, k; | ^ compat.c:16:8: warning: unused variable 'j' [-Wunused-variable] 16 | int i, j, k; | ^ compat.c:16:5: warning: unused variable 'i' [-Wunused-variable] 16 | int i, j, k; | ^ compat.c:57:1: warning: control reaches end of non-void function [-Wreturn-type] 57 | } | ^ make: *** [: compat.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/agrep-2.04' make: *** Waiting for unfinished jobs.... make: Entering directory '/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o checkfile.o checkfile.c checkfile.c: In function 'check_file': checkfile.c:39:5: warning: unused variable 'ftype' [-Wunused-variable] 39 | int ftype; | ^~~~~ checkfile.c:69:1: warning: control reaches end of non-void function [-Wreturn-type] 69 | } | ^ make: Leaving directory '/usr/src/RPM/BUILD/agrep-2.04' make: Entering directory '/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o follow.o follow.c follow.c:9:13: warning: conflicting types for built-in function 'strlen'; expected 'long unsigned int(const char *)' [-Wbuiltin-declaration-mismatch] 9 | extern int strlen(); | ^~~~~~ follow.c:7:1: note: 'strlen' is declared in header '' 6 | #include "re.h" +++ |+#include 7 | follow.c:13:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 13 | extern char *malloc(); | ^~~~~~ follow.c:7:1: note: 'malloc' is declared in header '' 6 | #include "re.h" +++ |+#include 7 | make: Leaving directory '/usr/src/RPM/BUILD/agrep-2.04' make: Entering directory '/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o asearch1.o asearch1.c In file included from asearch1.c:2: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:5:1: note: 'strcpy' is declared in header '' 4 | #include "re.h" +++ |+#include 5 | agrep.h:6:34: warning: conflicting types for built-in function 'strncpy'; expected 'char *(char *, const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~~ agrep.h:6:34: note: 'strncpy' is declared in header '' agrep.h:6:46: warning: conflicting types for built-in function 'strcat'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:6:46: note: 'strcat' is declared in header '' agrep.h:7:12: warning: conflicting types for built-in function 'strlen'; expected 'long unsigned int(const char *)' [-Wbuiltin-declaration-mismatch] 7 | extern int strlen(); | ^~~~~~ agrep.h:7:12: note: 'strlen' is declared in header '' asearch1.c:11:1: error: return type defaults to 'int' [-Wimplicit-int] 11 | asearch1(old_D_pat, Text, D) | ^~~~~~~~ asearch1.c: In function 'asearch1': asearch1.c:38:22: error: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] 38 | while ((num_read = fill_buf(Text, buffer + Max_record, Max_record)) > 0) | ^~~~~~~~ asearch1.c:56:28: warning: array subscript has type 'char' [-Wchar-subscripts] 56 | CMask = Mask[buffer[i++]]; | ~~~~~~^~~~~ asearch1.c:72:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 72 | return; } | ^~~~~~ asearch1.c:11:1: note: declared here 11 | asearch1(old_D_pat, Text, D) | ^~~~~~~~ asearch1.c:74:25: error: implicit declaration of function 'output' [-Wimplicit-function-declaration] 74 | output(buffer, lasti, i-D_length-1, j); | ^~~~~~ asearch1.c:88:28: warning: array subscript has type 'char' [-Wchar-subscripts] 88 | CMask = Mask[buffer[i++]]; | ~~~~~~^~~~~ asearch1.c:102:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 102 | return; } | ^~~~~~ asearch1.c:11:1: note: declared here 11 | asearch1(old_D_pat, Text, D) | ^~~~~~~~ asearch1.c:129:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 129 | return; | ^~~~~~ asearch1.c:11:1: note: declared here 11 | asearch1(old_D_pat, Text, D) | ^~~~~~~~ asearch1.c:14:64: warning: unused variable 'Init0' [-Wunused-variable] 14 | register unsigned end, i, r1, r2, r3, r4, r5, CMask, D_Mask, Init0, k, endpos; | ^~~~~ asearch1.c:14:33: warning: unused variable 'r2' [-Wunused-variable] 14 | register unsigned end, i, r1, r2, r3, r4, r5, CMask, D_Mask, Init0, k, endpos; | ^~ make: *** [: asearch1.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/agrep-2.04' make: Entering directory '/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o asearch.o asearch.c In file included from asearch.c:2: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:5:1: note: 'strcpy' is declared in header '' 4 | #include "re.h" +++ |+#include 5 | agrep.h:6:34: warning: conflicting types for built-in function 'strncpy'; expected 'char *(char *, const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~~ agrep.h:6:34: note: 'strncpy' is declared in header '' agrep.h:6:46: warning: conflicting types for built-in function 'strcat'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:6:46: note: 'strcat' is declared in header '' agrep.h:7:12: warning: conflicting types for built-in function 'strlen'; expected 'long unsigned int(const char *)' [-Wbuiltin-declaration-mismatch] 7 | extern int strlen(); | ^~~~~~ agrep.h:7:12: note: 'strlen' is declared in header '' asearch.c:9:1: error: return type defaults to 'int' [-Wimplicit-int] 9 | asearch(old_D_pat, text, D) | ^~~~~~~ asearch.c: In function 'asearch': asearch.c:24:10: error: implicit declaration of function 'asearch0'; did you mean 'asearch'? [-Wimplicit-function-declaration] 24 | asearch0(old_D_pat, text, D); | ^~~~~~~~ | asearch asearch.c:25:10: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 25 | return; } | ^~~~~~ asearch.c:9:1: note: declared here 9 | asearch(old_D_pat, text, D) | ^~~~~~~ asearch.c:40:15: error: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] 40 | while ((l = fill_buf(text, buffer + Max_record, Max_record)) > 0) | ^~~~~~~~ asearch.c:89:26: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 89 | return; } | ^~~~~~ asearch.c:9:1: note: declared here 9 | asearch(old_D_pat, text, D) | ^~~~~~~ asearch.c:92:26: error: implicit declaration of function 'output' [-Wimplicit-function-declaration] 92 | output(buffer, lasti, printout_end, j); | ^~~~~~ asearch.c:144:24: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 144 | return; } | ^~~~~~ asearch.c:9:1: note: declared here 9 | asearch(old_D_pat, text, D) | ^~~~~~~ asearch.c:178:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 178 | return; | ^~~~~~ asearch.c:9:1: note: declared here 9 | asearch(old_D_pat, text, D) | ^~~~~~~ asearch.c:18:55: warning: unused variable 'buffer_end' [-Wunused-variable] 18 | int D_length, FIRSTROUND, ResidueSize, lasti, l, k, buffer_end, j=0; | ^~~~~~~~~~ asearch.c: At top level: asearch.c:181:1: error: return type defaults to 'int' [-Wimplicit-int] 181 | asearch0(old_D_pat, text, D) | ^~~~~~~~ asearch.c: In function 'asearch0': asearch.c:218:37: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 218 | A[0] = (((B[0] >> 1)) & CMask | r1 ) ; | ~~~~~~~~~~~~~~^~~~~~~ asearch.c:232:26: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 232 | return; } | ^~~~~~ asearch.c:181:1: note: declared here 181 | asearch0(old_D_pat, text, D) | ^~~~~~~~ asearch.c:266:24: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 266 | return; } | ^~~~~~ asearch.c:181:1: note: declared here 181 | asearch0(old_D_pat, text, D) | ^~~~~~~~ asearch.c:297:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 297 | return; | ^~~~~~ asearch.c:181:1: note: declared here 181 | asearch0(old_D_pat, text, D) | ^~~~~~~~ asearch.c:187:55: warning: unused variable 'buffer_end' [-Wunused-variable] 187 | int D_length, FIRSTROUND, ResidueSize, lasti, l, k, buffer_end, j=0; | ^~~~~~~~~~ asearch.c:184:35: warning: unused variable 'r3' [-Wunused-variable] 184 | register unsigned i, c, r1, r2, r3, CMask, r_NO_ERR, r_Init1, end, endpos; | ^~ make: *** [: asearch.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/agrep-2.04' make: Entering directory '/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o bitap.o bitap.c In file included from bitap.c:14: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:5:1: note: 'strcpy' is declared in header '' 4 | #include "re.h" +++ |+#include 5 | agrep.h:6:34: warning: conflicting types for built-in function 'strncpy'; expected 'char *(char *, const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~~ agrep.h:6:34: note: 'strncpy' is declared in header '' agrep.h:6:46: warning: conflicting types for built-in function 'strcat'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:6:46: note: 'strcat' is declared in header '' agrep.h:7:12: warning: conflicting types for built-in function 'strlen'; expected 'long unsigned int(const char *)' [-Wbuiltin-declaration-mismatch] 7 | extern int strlen(); | ^~~~~~ agrep.h:7:12: note: 'strlen' is declared in header '' bitap.c:25:1: error: return type defaults to 'int' [-Wimplicit-int] 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c: In function 'bitap': bitap.c:41:11: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 41 | exit(2); | ^~~~ bitap.c:15:1: note: include '' or provide a declaration of 'exit' 14 | #include "agrep.h" +++ |+#include 15 | bitap.c:41:11: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 41 | exit(2); | ^~~~ bitap.c:41:11: note: include '' or provide a declaration of 'exit' bitap.c:43:28: error: implicit declaration of function 're' [-Wimplicit-function-declaration] 43 | if (M <= SHORTREG) { re(fd, M, D); /* SUN: need to find a even point */ | ^~ bitap.c:44:22: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 44 | return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:45:14: error: implicit declaration of function 're1' [-Wimplicit-function-declaration] 45 | else { re1(fd, M, D); | ^~~ bitap.c:46:14: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 46 | return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:49:8: error: implicit declaration of function 'asearch1' [-Wimplicit-function-declaration] 49 | { asearch1(old_D_pat, fd, D); return; } | ^~~~~~~~ bitap.c:49:36: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 49 | { asearch1(old_D_pat, fd, D); return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:51:8: error: implicit declaration of function 'asearch' [-Wimplicit-function-declaration] 51 | { asearch(old_D_pat, fd, D); return; } | ^~~~~~~ bitap.c:51:35: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 51 | { asearch(old_D_pat, fd, D); return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:67:22: error: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] 67 | while ((num_read = fill_buf(fd, buffer + Max_record, Max_record)) > 0) | ^~~~~~~~ bitap.c:88:21: warning: array subscript has type 'char' [-Wchar-subscripts] 88 | CMask = Mask[c]; | ^ bitap.c:98:21: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 98 | return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:101:21: error: implicit declaration of function 'output' [-Wimplicit-function-declaration] 101 | output(buffer, lasti, print_end, j); | ^~~~~~ bitap.c:110:21: warning: array subscript has type 'char' [-Wchar-subscripts] 110 | CMask = Mask[c]; | ^ bitap.c:120:21: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 120 | return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:143:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 143 | return; | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c: At top level: bitap.c:146:1: error: return type defaults to 'int' [-Wimplicit-int] 146 | fill_buf(fd, buf, record_size) | ^~~~~~~~ bitap.c: In function 'fill_buf': bitap.c:152:28: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 152 | num_read = read(fd, buf+total_read, 4096); | ^~~~ | fread make: *** [: bitap.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/agrep-2.04' make: Entering directory '/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o maskgen.o maskgen.c In file included from maskgen.c:2: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:5:1: note: 'strcpy' is declared in header '' 4 | #include "re.h" +++ |+#include 5 | agrep.h:6:34: warning: conflicting types for built-in function 'strncpy'; expected 'char *(char *, const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~~ agrep.h:6:34: note: 'strncpy' is declared in header '' agrep.h:6:46: warning: conflicting types for built-in function 'strcat'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:6:46: note: 'strcat' is declared in header '' agrep.h:7:12: warning: conflicting types for built-in function 'strlen'; expected 'long unsigned int(const char *)' [-Wbuiltin-declaration-mismatch] 7 | extern int strlen(); | ^~~~~~ agrep.h:7:12: note: 'strlen' is declared in header '' maskgen.c:5:8: error: type defaults to 'int' in declaration of 'Mask' [-Wimplicit-int] 5 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~~ maskgen.c:5:16: error: type defaults to 'int' in declaration of 'Bit' [-Wimplicit-int] 5 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~ maskgen.c:5:23: error: type defaults to 'int' in declaration of 'Init' [-Wimplicit-int] 5 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~~ maskgen.c:5:31: error: type defaults to 'int' in declaration of 'NO_ERR_MASK' [-Wimplicit-int] 5 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~~~~~~~~~ maskgen.c:9:1: error: return type defaults to 'int' [-Wimplicit-int] 9 | maskgen(Pattern, D) | ^~~~~~~ maskgen.c: In function 'maskgen': maskgen.c:52:22: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 52 | exit(2); | ^~~~ maskgen.c:3:1: note: include '' or provide a declaration of 'exit' 2 | #include "agrep.h" +++ |+#include 3 | maskgen.c:52:22: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 52 | exit(2); | ^~~~ maskgen.c:52:22: note: include '' or provide a declaration of 'exit' maskgen.c:70:22: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 70 | exit(2); | ^~~~ maskgen.c:70:22: note: include '' or provide a declaration of 'exit' maskgen.c:75:19: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 75 | exit(2); | ^~~~ maskgen.c:75:19: note: include '' or provide a declaration of 'exit' maskgen.c:125:6: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 125 | exit(2); | ^~~~ maskgen.c:125:6: note: include '' or provide a declaration of 'exit' maskgen.c:130:6: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 130 | exit(2); | ^~~~ maskgen.c:130:6: note: include '' or provide a declaration of 'exit' make: *** [: maskgen.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/agrep-2.04' make: Entering directory '/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o main.o main.c In file included from main.c:2: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:5:1: note: 'strcpy' is declared in header '' 4 | #include "re.h" +++ |+#include 5 | agrep.h:6:34: warning: conflicting types for built-in function 'strncpy'; expected 'char *(char *, const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~~ agrep.h:6:34: note: 'strncpy' is declared in header '' agrep.h:6:46: warning: conflicting types for built-in function 'strcat'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 6 | extern unsigned char *strcpy(), *strncpy(), *strcat(); | ^~~~~~ agrep.h:6:46: note: 'strcat' is declared in header '' agrep.h:7:12: warning: conflicting types for built-in function 'strlen'; expected 'long unsigned int(const char *)' [-Wbuiltin-declaration-mismatch] 7 | extern int strlen(); | ^~~~~~ agrep.h:7:12: note: 'strlen' is declared in header '' main.c:36:1: error: return type defaults to 'int' [-Wimplicit-int] 36 | initial_value() | ^~~~~~~~~~~~~ main.c:54:1: error: return type defaults to 'int' [-Wimplicit-int] 54 | compute_next(M, Next, Next1) | ^~~~~~~~~~~~ main.c: In function 'compute_next': main.c:75:9: error: implicit declaration of function 'exponen'; did you mean 'popen'? [-Wimplicit-function-declaration] 75 | k = exponen(M); | ^~~~~~~ | popen main.c:86:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 86 | return; | ^~~~~~ main.c:54:1: note: declared here 54 | compute_next(M, Next, Next1) | ^~~~~~~~~~~~ main.c:110:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 110 | return; | ^~~~~~ main.c:54:1: note: declared here 54 | compute_next(M, Next, Next1) | ^~~~~~~~~~~~ main.c: At top level: main.c:113:1: error: return type defaults to 'int' [-Wimplicit-int] 113 | exponen(m) | ^~~~~~~ main.c:121:1: error: return type defaults to 'int' [-Wimplicit-int] 121 | re1(Text, M, D) | ^~~ main.c: In function 're1': main.c:136:6: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 136 | exit(2); | ^~~~ main.c:4:1: note: include '' or provide a declaration of 'exit' 3 | #include "checkfile.h" +++ |+#include 4 | main.c:136:6: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 136 | exit(2); | ^~~~ main.c:136:6: note: include '' or provide a declaration of 'exit' main.c:154:24: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 154 | while ((num_read = read(Text, buffer + Maxline, BlockSize)) > 0) | ^~~~ | fread main.c:184:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 184 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:186:20: error: implicit declaration of function 'r_output' [-Wimplicit-function-declaration] 186 | r_output(buffer, i-1, end, j); | ^~~~~~~~ main.c:189:50: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 189 | r2 = (Next[r3>>hh] | Next1[r3&LL]) & CMask | Init0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ main.c:210:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 210 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:221:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 221 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:297:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 297 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:375:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 375 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:393:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 393 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c: At top level: main.c:396:1: error: return type defaults to 'int' [-Wimplicit-int] 396 | re(Text, M, D) | ^~ main.c: In function 're': main.c:443:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 443 | r2 = Next[r3] & CMask | r1; | ~~~~~~~~~^~~~~~~ main.c:450:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 450 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:467:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 467 | r3 = Next[r2] & CMask | r1; | ~~~~~~~~~^~~~~~~ main.c:473:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 473 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:488:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 488 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:536:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 536 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:577:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 577 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:594:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 594 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:403:22: warning: unused variable 'bp' [-Wunused-variable] 403 | int num_read, j=0, bp, lasti, base, ResidueSize; | ^~ main.c: At top level: main.c:598:1: error: return type defaults to 'int' [-Wimplicit-int] 598 | r_output (buffer, i, end, j) | ^~~~~~~~ main.c: In function 'r_output': main.c:603:20: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 603 | if(i >= end) return; | ^~~~~~ main.c:598:1: note: declared here 598 | r_output (buffer, i, end, j) | ^~~~~~~~ main.c:605:18: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 605 | if(COUNT) return; | ^~~~~~ main.c:598:1: note: declared here 598 | r_output (buffer, i, end, j) | ^~~~~~~~ main.c: At top level: main.c:615:1: error: return type defaults to 'int' [-Wimplicit-int] 615 | main(argc, argv) | ^~~~ main.c: In function 'main': main.c:625:17: error: implicit declaration of function 'usage' [-Wimplicit-function-declaration] 625 | if (argc < 2) usage(); | ^~~~~ main.c:639:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 639 | exit(2); | ^~~~ main.c:639:25: note: include '' or provide a declaration of 'exit' main.c:649:23: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 649 | exit(2); | ^~~~ main.c:649:23: note: include '' or provide a declaration of 'exit' main.c:657:23: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 657 | exit(2); | ^~~~ main.c:657:23: note: include '' or provide a declaration of 'exit' main.c:679:28: error: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] 679 | if((fp = open(argv[0], 0)) < 0) { | ^~~~ | popen main.c:681:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 681 | exit(2); | ^~~~ main.c:681:25: note: include '' or provide a declaration of 'exit' main.c:698:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 698 | exit(2); | ^~~~ main.c:698:25: note: include '' or provide a declaration of 'exit' main.c:714:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 714 | exit(2); | ^~~~ main.c:714:25: note: include '' or provide a declaration of 'exit' main.c:719:23: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 719 | case 'I' : I = atoi(argv[0]+2); /* Insertion Cost */ | ^~~~ main.c:736:23: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 736 | exit(2); | ^~~~ main.c:736:23: note: include '' or provide a declaration of 'exit' main.c:763:32: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 763 | if (!(Textfiles = (CHAR **)malloc(argc * sizeof(CHAR *) ))) { | ^~~~~~ main.c:763:32: note: include '' or provide a declaration of 'malloc' main.c:763:32: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] main.c:763:32: note: include '' or provide a declaration of 'malloc' main.c:765:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 765 | exit(2); | ^~~~ main.c:765:7: note: include '' or provide a declaration of 'exit' main.c:775:23: error: implicit declaration of function 'check_file' [-Wimplicit-function-declaration] 775 | if ((filetype = check_file(*argv)) == NOSUCHFILE) { | ^~~~~~~~~~ main.c:779:45: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 779 | if (!(Textfiles[Numfiles] = (CHAR *)malloc((strlen(*argv)+1)))) { | ^~~~~~ main.c:779:45: note: include '' or provide a declaration of 'malloc' main.c:781:11: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 781 | exit(2); | ^~~~ main.c:781:11: note: include '' or provide a declaration of 'exit' main.c:787:3: error: implicit declaration of function 'checksg' [-Wimplicit-function-declaration] 787 | checksg(Pattern, D); /* check if the pattern is simple */ | ^~~~~~~ main.c:790:7: error: implicit declaration of function 'preprocess' [-Wimplicit-function-declaration] 790 | preprocess(D_pattern, Pattern); | ^~~~~~~~~~ main.c:792:11: error: implicit declaration of function 'maskgen' [-Wimplicit-function-declaration] 792 | M = maskgen(Pattern, D); | ^~~~~~~ main.c:795:18: error: implicit declaration of function 'prepf' [-Wimplicit-function-declaration] 795 | if (PAT_FILE) prepf(fp); | ^~~~~ main.c:799:3: error: implicit declaration of function 'compat' [-Wimplicit-function-declaration] 799 | compat(); /* check compatibility between options */ | ^~~~~~ main.c:803:8: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 803 | exit(2); | ^~~~ main.c:803:8: note: include '' or provide a declaration of 'exit' main.c:805:18: error: implicit declaration of function 'mgrep' [-Wimplicit-function-declaration] 805 | if(PAT_FILE) mgrep(fd); | ^~~~~ main.c:807:19: error: implicit declaration of function 'sgrep' [-Wimplicit-function-declaration] 807 | if(SGREP) sgrep(OldPattern, strlen(OldPattern), fd, D); | ^~~~~ main.c:808:19: error: implicit declaration of function 'bitap' [-Wimplicit-function-declaration] 808 | else bitap(old_D_pat, Pattern, fd, M, D); | ^~~~~ main.c:816:36: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 816 | for (i = 0; i < Numfiles; i++, close(fd), num_of_matched = 0) { | ^~~~~ | pclose main.c:839:25: error: implicit declaration of function 'file_out'; did you mean 'fileno'? [-Wimplicit-function-declaration] 839 | file_out(CurrentFileName); | ^~~~~~~~ | fileno main.c:895:14: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 895 | if(NOMATCH) exit(1); | ^~~~ main.c:895:14: note: include '' or provide a declaration of 'exit' main.c:896:2: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 896 | exit(0); | ^~~~ main.c:896:2: note: include '' or provide a declaration of 'exit' main.c:621:54: warning: unused variable 'temp' [-Wunused-variable] 621 | unsigned char Pattern[MAXPAT], OldPattern[MAXPAT], temp[MAXPAT]; | ^~~~ main.c:618:29: warning: unused variable 'j' [-Wunused-variable] 618 | int N, M, D=0, fp, fd, i, j; | ^ main.c:618:7: warning: unused variable 'N' [-Wunused-variable] 618 | int N, M, D=0, fp, fd, i, j; | ^ main.c: At top level: main.c:900:1: error: return type defaults to 'int' [-Wimplicit-int] 900 | file_out(fname) | ^~~~~~~~ main.c: In function 'file_out': main.c:920:17: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 920 | write(1, buf, num_read); | ^~~~~ | fwrite main.c: At top level: main.c:924:1: error: return type defaults to 'int' [-Wimplicit-int] 924 | usage() | ^~~~~ main.c: In function 'usage': main.c:942:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 942 | exit(2); | ^~~~ main.c:942:9: note: include '' or provide a declaration of 'exit' main.c: At top level: main.c:945:1: error: return type defaults to 'int' [-Wimplicit-int] 945 | checksg(Pattern, D) | ^~~~~~~ main.c: In function 'checksg': main.c:953:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 953 | exit(2); | ^~~~ main.c:953:7: note: include '' or provide a declaration of 'exit' main.c:982:29: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 982 | if (SIMPLEPATTERN == OFF) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:983:21: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 983 | if (NOUPPER && D) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:984:19: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 984 | if (JUMP == ON) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:985:15: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 985 | if (I == 0) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:986:16: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 986 | if (LINENUM) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:987:18: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 987 | if (DELIMITER) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:988:16: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 988 | if (INVERSE) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:989:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 989 | if (WORDBOUND && D > 0) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:990:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 990 | if (WHOLELINE && D > 0) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:991:15: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 991 | if (SILENT) return; /* REMINDER: to be removed */ | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:999:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 999 | return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c: At top level: main.c:1002:1: error: return type defaults to 'int' [-Wimplicit-int] 1002 | output (buffer, i1, i2, j) | ^~~~~~ main.c: In function 'output': main.c:1006:21: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1006 | if(i1 > i2) return; | ^~~~~~ main.c:1002:1: note: declared here 1002 | output (buffer, i1, i2, j) | ^~~~~~ main.c:1008:20: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1008 | if(COUNT) return; | ^~~~~~ main.c:1002:1: note: declared here 1002 | output (buffer, i1, i2, j) | ^~~~~~ main.c:1009:20: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1009 | if(SILENT) return; | ^~~~~~ main.c:1002:1: note: declared here 1002 | output (buffer, i1, i2, j) | ^~~~~~ main.c: In function 'initial_value': main.c:52:1: warning: control reaches end of non-void function [-Wreturn-type] 52 | } | ^ main.c: In function 'main': main.c:872:17: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 872 | scanf("%c",&c); | ^~~~~~~~~~~~~~ main.c: In function 'file_out': main.c:921:1: warning: control reaches end of non-void function [-Wreturn-type] 921 | } | ^ make: *** [: main.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/agrep-2.04' error: Bad exit status from /usr/src/tmp/rpm-tmp.50650 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.50650 (%build) Command exited with non-zero status 1 0.21user 0.08system 0:00.12elapsed 234%CPU (0avgtext+0avgdata 21352maxresident)k 0inputs+0outputs (0major+16454minor)pagefaults 0swaps hsh-rebuild: rebuild of `agrep-2.04-alt1.qa2.src.rpm' failed. Command exited with non-zero status 1 0.72user 1.19system 0:04.05elapsed 47%CPU (0avgtext+0avgdata 12108maxresident)k 0inputs+0outputs (0major+92570minor)pagefaults 0swaps