<86>Dec 8 07:13:41 userdel[1340635]: delete user 'rooter' <86>Dec 8 07:13:41 userdel[1340635]: removed group 'rooter' owned by 'rooter' <86>Dec 8 07:13:41 userdel[1340635]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 8 07:13:41 groupadd[1340646]: group added to /etc/group: name=rooter, GID=621 <86>Dec 8 07:13:41 groupadd[1340646]: group added to /etc/gshadow: name=rooter <86>Dec 8 07:13:41 groupadd[1340646]: new group: name=rooter, GID=621 <86>Dec 8 07:13:41 useradd[1340654]: new user: name=rooter, UID=621, GID=621, home=/root, shell=/bin/bash <86>Dec 8 07:13:41 userdel[1340675]: delete user 'builder' <86>Dec 8 07:13:41 userdel[1340675]: removed group 'builder' owned by 'builder' <86>Dec 8 07:13:41 userdel[1340675]: removed shadow group 'builder' owned by 'builder' <86>Dec 8 07:13:41 groupadd[1340693]: group added to /etc/group: name=builder, GID=622 <86>Dec 8 07:13:41 groupadd[1340693]: group added to /etc/gshadow: name=builder <86>Dec 8 07:13:41 groupadd[1340693]: new group: name=builder, GID=622 <86>Dec 8 07:13:41 useradd[1340703]: new user: name=builder, UID=622, GID=622, home=/usr/src, shell=/bin/bash /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: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/agrep-2.04-alt1.qa2.nosrc.rpm Installing agrep-2.04-alt1.qa2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.97206 + 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): + /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.97206 + 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 -march=i586 -mtune=generic' make: Entering directory '/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 -march=i586 -mtune=generic -c -o compat.o compat.c compat.c:5:8: warning: type defaults to 'int' in declaration of 'FILEOUT' [-Wimplicit-int] 5 | extern FILEOUT; | ^~~~~~~ compat.c:6:8: warning: type defaults to 'int' in declaration of 'REGEX' [-Wimplicit-int] 6 | extern REGEX; | ^~~~~ compat.c:7:8: warning: type defaults to 'int' in declaration of 'DELIMITER' [-Wimplicit-int] 7 | extern DELIMITER; | ^~~~~~~~~ compat.c:8:8: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] 8 | extern WHOLELINE; | ^~~~~~~~~ compat.c:9:8: warning: type defaults to 'int' in declaration of 'LINENUM' [-Wimplicit-int] 9 | extern LINENUM; | ^~~~~~~ compat.c:10:8: warning: type defaults to 'int' in declaration of 'I' [-Wimplicit-int] 10 | extern I, S, DD; | ^ compat.c:10:11: warning: type defaults to 'int' in declaration of 'S' [-Wimplicit-int] 10 | extern I, S, DD; | ^ compat.c:10:14: warning: type defaults to 'int' in declaration of 'DD' [-Wimplicit-int] 10 | extern I, S, DD; | ^~ compat.c:11:8: warning: type defaults to 'int' in declaration of 'JUMP' [-Wimplicit-int] 11 | extern JUMP; | ^~~~ compat.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int] 14 | compat() | ^~~~~~ compat.c: In function 'compat': compat.c:19:19: 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:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 33 | exit(2); | ^~~~ compat.c:33:4: warning: incompatible implicit declaration of built-in function 'exit' compat.c:3:1: note: include '' or provide a declaration of 'exit' 2 | #include +++ |+#include 3 | compat.c:37:4: warning: incompatible implicit declaration of built-in function 'exit' 37 | exit(2); | ^~~~ compat.c:37:4: note: include '' or provide a declaration of 'exit' compat.c:47:4: warning: incompatible implicit declaration of built-in function 'exit' 47 | exit(2); | ^~~~ compat.c:47:4: note: include '' or provide a declaration of 'exit' compat.c:53:4: warning: incompatible implicit declaration of built-in function 'exit' 53 | exit(2); | ^~~~ compat.c:53:4: 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: 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 -march=i586 -mtune=generic -c -o follow.o follow.c follow.c:9:13: warning: conflicting types for built-in function 'strlen'; expected '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 *(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 -march=i586 -mtune=generic -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 *, 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 '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: warning: 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: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 41 | exit(2); | ^~~~ bitap.c:41:11: warning: incompatible implicit declaration of built-in function 'exit' bitap.c:15:1: note: include '' or provide a declaration of 'exit' 14 | #include "agrep.h" +++ |+#include 15 | bitap.c:43:28: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 44 | return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:45:14: warning: implicit declaration of function 're1' [-Wimplicit-function-declaration] 45 | else { re1(fd, M, D); | ^~~ bitap.c:46:14: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 46 | return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:49:8: warning: implicit declaration of function 'asearch1' [-Wimplicit-function-declaration] 49 | { asearch1(old_D_pat, fd, D); return; } | ^~~~~~~~ bitap.c:49:36: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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: warning: implicit declaration of function 'asearch' [-Wimplicit-function-declaration] 51 | { asearch(old_D_pat, fd, D); return; } | ^~~~~~~ bitap.c:51:35: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 98 | return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:101:21: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 120 | return; } | ^~~~~~ bitap.c:25:1: note: declared here 25 | bitap(old_D_pat, Pattern, fd, M, D) | ^~~~~ bitap.c:143:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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: warning: return type defaults to 'int' [-Wimplicit-int] 146 | fill_buf(fd, buf, record_size) | ^~~~~~~~ bitap.c: In function 'fill_buf': bitap.c:152:14: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 152 | num_read = read(fd, buf+total_read, 4096); | ^~~~ | fread 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 -march=i586 -mtune=generic -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 *, 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 '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: warning: type defaults to 'int' in declaration of 'Mask' [-Wimplicit-int] 5 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~~ maskgen.c:5:16: warning: type defaults to 'int' in declaration of 'Bit' [-Wimplicit-int] 5 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~ maskgen.c:5:23: warning: type defaults to 'int' in declaration of 'Init' [-Wimplicit-int] 5 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~~ maskgen.c:5:31: warning: type defaults to 'int' in declaration of 'NO_ERR_MASK' [-Wimplicit-int] 5 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~~~~~~~~~ maskgen.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int] 9 | maskgen(Pattern, D) | ^~~~~~~ maskgen.c: In function 'maskgen': maskgen.c:52:22: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 52 | exit(2); | ^~~~ maskgen.c:52:22: warning: incompatible implicit declaration of built-in function 'exit' maskgen.c:3:1: note: include '' or provide a declaration of 'exit' 2 | #include "agrep.h" +++ |+#include 3 | maskgen.c:70:22: warning: incompatible implicit declaration of built-in function 'exit' 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' 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' 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' 130 | exit(2); | ^~~~ maskgen.c:130:6: note: include '' or provide a declaration of 'exit' 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 -march=i586 -mtune=generic -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 *, 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 '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: warning: return type defaults to 'int' [-Wimplicit-int] 11 | asearch1(old_D_pat, Text, D) | ^~~~~~~~ asearch1.c: In function 'asearch1': asearch1.c:38:22: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 72 | return; } | ^~~~~~ asearch1.c:11:1: note: declared here 11 | asearch1(old_D_pat, Text, D) | ^~~~~~~~ asearch1.c:74:25: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 102 | return; } | ^~~~~~ asearch1.c:11:1: note: declared here 11 | asearch1(old_D_pat, Text, D) | ^~~~~~~~ asearch1.c:129:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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: 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 -march=i586 -mtune=generic -c -o parse.o parse.c In file included from parse.c:6: parse.c: In function 'mk_leaf': re.h:67:21: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:42:18: note: in expansion of macro 'new_node' 42 | l = (Re_Lit) new_node(l); | ^~~~~~~~ re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:42:18: note: in expansion of macro 'new_node' 42 | l = (Re_Lit) new_node(l); | ^~~~~~~~ parse.c:7:1: note: include '' or provide a declaration of 'malloc' 6 | #include "re.h" +++ |+#include 7 | In file included from parse.c:6: parse.c: In function 'parse_cset': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:69:25: note: in expansion of macro 'new_node' 69 | curr_ptr = (Ch_Set) new_node(curr_ptr); cs_ptr = curr_ptr; | ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:69:25: note: in expansion of macro 'new_node' 69 | curr_ptr = (Ch_Set) new_node(curr_ptr); cs_ptr = curr_ptr; | ^~~~~~~~ parse.c: In function 'parse_wildcard': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:103:20: note: in expansion of macro 'new_node' 103 | r = (Ch_Range) new_node(r); | ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:103:20: note: in expansion of macro 'new_node' 103 | r = (Ch_Range) new_node(r); | ^~~~~~~~ parse.c: In function 'get_token': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:137:21: note: in expansion of macro 'new_node' 137 | rn = (Tok_node) new_node(rn); | ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:137:21: note: in expansion of macro 'new_node' 137 | rn = (Tok_node) new_node(rn); | ^~~~~~~~ parse.c: In function 'cat2': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:192:19: note: in expansion of macro 'new_node' 192 | r = (Re_node) new_node(r); | ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:192:19: note: in expansion of macro 'new_node' 192 | r = (Re_node) new_node(r); | ^~~~~~~~ parse.c: In function 'wrap': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:219:19: note: in expansion of macro 'new_node' 219 | r = (Re_node) new_node(r); | ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:219:19: note: in expansion of macro 'new_node' 219 | r = (Re_node) new_node(r); | ^~~~~~~~ parse.c: In function 'mk_alt': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:241:22: note: in expansion of macro 'new_node' 241 | node = (Re_node) new_node(node); | ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ parse.c:241:22: note: in expansion of macro 'new_node' 241 | node = (Re_node) new_node(node); | ^~~~~~~~ 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 -march=i586 -mtune=generic -c -o preprocess.o preprocess.c In file included from preprocess.c:16: 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 *, 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 'unsigned int(const char *)' [-Wbuiltin-declaration-mismatch] 7 | extern int strlen(); | ^~~~~~ agrep.h:7:12: note: 'strlen' is declared in header '' preprocess.c:24:1: warning: return type defaults to 'int' [-Wimplicit-int] 24 | preprocess(D_pattern, Pattern) /* need two parameters */ | ^~~~~~~~~~ preprocess.c: In function 'preprocess': preprocess.c:38:20: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 38 | r_pat = (CHAR *) malloc(strlen(Pattern)+2*strlen(D_pattern)); | ^~~~~~ preprocess.c:38:20: warning: incompatible implicit declaration of built-in function 'malloc' preprocess.c:17:1: note: include '' or provide a declaration of 'malloc' 16 | #include "agrep.h" +++ |+#include 17 | preprocess.c:90:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 90 | exit(2); | ^~~~ preprocess.c:90:6: warning: incompatible implicit declaration of built-in function 'exit' preprocess.c:90:6: note: include '' or provide a declaration of 'exit' preprocess.c:193:11: warning: incompatible implicit declaration of built-in function 'exit' 193 | exit(2); | ^~~~ preprocess.c:193:11: note: include '' or provide a declaration of 'exit' preprocess.c:197:9: warning: incompatible implicit declaration of built-in function 'exit' 197 | exit(2); | ^~~~ preprocess.c:197:9: note: include '' or provide a declaration of 'exit' preprocess.c:200:16: warning: implicit declaration of function 'init' [-Wimplicit-function-declaration] 200 | num_pos = init(r_pat, table); | ^~~~ preprocess.c:203:10: warning: incompatible implicit declaration of built-in function 'exit' 203 | exit(2); | ^~~~ preprocess.c:203:10: note: include '' or provide a declaration of 'exit' preprocess.c:207:9: warning: incompatible implicit declaration of built-in function 'exit' 207 | exit(2); | ^~~~ preprocess.c:207:9: note: include '' or provide a declaration of 'exit' preprocess.c:210:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 210 | return; | ^~~~~~ preprocess.c:24:1: note: declared here 24 | preprocess(D_pattern, Pattern) /* need two parameters */ | ^~~~~~~~~~ preprocess.c:213:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 213 | return; | ^~~~~~ preprocess.c:24:1: note: declared here 24 | preprocess(D_pattern, Pattern) /* need two parameters */ | ^~~~~~~~~~ preprocess.c:31:27: warning: unused variable 'OR_AND' [-Wunused-variable] 31 | int IN_RANGE=0, EVEN=0, OR_AND=0; | ^~~~~~ preprocess.c:31:19: warning: unused variable 'EVEN' [-Wunused-variable] 31 | int IN_RANGE=0, EVEN=0, OR_AND=0; | ^~~~ preprocess.c:29:29: warning: unused variable 'partitions' [-Wunused-variable] 29 | int i, j=0, rp=0, m, t=0, partitions, num_pos, ANDON = 0; | ^~~~~~~~~~ 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 -march=i586 -mtune=generic -c -o utilities.o utilities.c In file included from utilities.c:5: utilities.c: In function 'Push': re.h:67:21: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ utilities.c:19:20: note: in expansion of macro 'new_node' 19 | node = (Stack) new_node(node); | ^~~~~~~~ re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ utilities.c:19:20: note: in expansion of macro 'new_node' 19 | node = (Stack) new_node(node); | ^~~~~~~~ utilities.c:6:1: note: include '' or provide a declaration of 'malloc' 5 | #include "re.h" +++ |+#include 6 | utilities.c: In function 'Pop': utilities.c:40:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 40 | free(temp); | ^~~~ utilities.c:40:2: warning: incompatible implicit declaration of built-in function 'free' utilities.c:40:2: note: include '' or provide a declaration of 'free' In file included from utilities.c:5: utilities.c: In function 'pset_union': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ utilities.c:86:19: note: in expansion of macro 'new_node' 86 | new = (Pset) new_node(new); | ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ utilities.c:86:19: note: in expansion of macro 'new_node' 86 | new = (Pset) new_node(new); | ^~~~~~~~ utilities.c:81:9: warning: unused variable 'occ' [-Wunused-variable] 81 | int occ; | ^~~ In file included from utilities.c:5: utilities.c: In function 'create_pos': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ utilities.c:108:16: note: in expansion of macro 'new_node' 108 | x = (Pset) new_node(x); | ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ utilities.c:108:16: note: in expansion of macro 'new_node' 108 | x = (Pset) new_node(x); | ^~~~~~~~ utilities.c: At top level: utilities.c:118:1: warning: return type defaults to 'int' [-Wimplicit-int] 118 | subset_pset(s1, s2) | ^~~~~~~~~~~ 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 -march=i586 -mtune=generic -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 *, 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 '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: warning: return type defaults to 'int' [-Wimplicit-int] 9 | asearch(old_D_pat, text, D) | ^~~~~~~ asearch.c: In function 'asearch': asearch.c:24:10: warning: implicit declaration of function 'asearch0'; did you mean 'asearch'? [-Wimplicit-function-declaration] 24 | asearch0(old_D_pat, text, D); | ^~~~~~~~ | asearch asearch.c:25:10: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 25 | return; } | ^~~~~~ asearch.c:9:1: note: declared here 9 | asearch(old_D_pat, text, D) | ^~~~~~~ asearch.c:40:15: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 89 | return; } | ^~~~~~ asearch.c:9:1: note: declared here 9 | asearch(old_D_pat, text, D) | ^~~~~~~ asearch.c:92:26: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] 92 | output(buffer, lasti, printout_end, j); | ^~~~~~ asearch.c:144:24: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 144 | return; } | ^~~~~~ asearch.c:9:1: note: declared here 9 | asearch(old_D_pat, text, D) | ^~~~~~~ asearch.c:178:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 232 | return; } | ^~~~~~ asearch.c:181:1: note: declared here 181 | asearch0(old_D_pat, text, D) | ^~~~~~~~ asearch.c:266:24: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 266 | return; } | ^~~~~~ asearch.c:181:1: note: declared here 181 | asearch0(old_D_pat, text, D) | ^~~~~~~~ asearch.c:297:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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: 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 -march=i586 -mtune=generic -c -o mgrep.o mgrep.c mgrep.c:17:8: warning: type defaults to 'int' in declaration of 'COUNT' [-Wimplicit-int] 17 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~ mgrep.c:17:15: warning: type defaults to 'int' in declaration of 'FNAME' [-Wimplicit-int] 17 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~ mgrep.c:17:22: warning: type defaults to 'int' in declaration of 'SILENT' [-Wimplicit-int] 17 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~ mgrep.c:17:30: warning: type defaults to 'int' in declaration of 'FILENAMEONLY' [-Wimplicit-int] 17 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~~~~~~~ mgrep.c:17:44: warning: type defaults to 'int' in declaration of 'num_of_matched' [-Wimplicit-int] 17 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~~~~~~~~~ mgrep.c:18:8: warning: type defaults to 'int' in declaration of 'INVERSE' [-Wimplicit-int] 18 | extern INVERSE; | ^~~~~~~ mgrep.c:19:8: warning: type defaults to 'int' in declaration of 'WORDBOUND' [-Wimplicit-int] 19 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ mgrep.c:19:19: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] 19 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ mgrep.c:19:30: warning: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] 19 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~ mgrep.c:21:8: warning: type defaults to 'int' in declaration of 'total_line' [-Wimplicit-int] 21 | extern total_line; | ^~~~~~~~~~ mgrep.c:40:1: warning: return type defaults to 'int' [-Wimplicit-int] 40 | prepf(fp) | ^~~~~ mgrep.c: In function 'prepf': mgrep.c:48:23: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 48 | while((num_read = read(fp, buf+length, BLOCKSIZE)) > 0) { | ^~~~ | fread mgrep.c:52:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 52 | exit(2); | ^~~~ mgrep.c:52:3: warning: incompatible implicit declaration of built-in function 'exit' mgrep.c:5:1: note: include '' or provide a declaration of 'exit' 4 | #include +++ |+#include 5 | #define MAXPAT 256 mgrep.c:69:2: warning: incompatible implicit declaration of built-in function 'exit' 69 | exit(2); | ^~~~ mgrep.c:69:2: note: include '' or provide a declaration of 'exit' mgrep.c:83:6: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 83 | p = strlen(patt[i]); | ^~~~~~ mgrep.c:83:6: warning: incompatible implicit declaration of built-in function 'strlen' mgrep.c:5:1: note: include '' or provide a declaration of 'strlen' 4 | #include +++ |+#include 5 | #define MAXPAT 256 mgrep.c:83:17: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 83 | p = strlen(patt[i]); | ~~~~^~~ | | | unsigned char * mgrep.c:83:17: note: expected 'const char *' but argument is of type 'unsigned char *' mgrep.c:88:20: warning: format '%s' expects a matching 'char *' argument [-Wformat=] 88 | fprintf(stderr, "%s: the pattern file is empty\n"); | ~^ | | | char * mgrep.c:89:2: warning: incompatible implicit declaration of built-in function 'exit' 89 | exit(2); | ^~~~ mgrep.c:89:2: note: include '' or provide a declaration of 'exit' mgrep.c:97:32: warning: implicit declaration of function 'f_prep' [-Wimplicit-function-declaration] 97 | for(i=1; i<= num_pat; i++) f_prep(i, patt[i]); | ^~~~~~ mgrep.c:44:39: warning: unused variable 'temp' [-Wunused-variable] 44 | unsigned char *pat_ptr=pat_spool, temp[10]; | ^~~~ mgrep.c:43:27: warning: unused variable 'pdx' [-Wunused-variable] 43 | int length=0, i, p=1, pdx=0, num_pat; | ^~~ mgrep.c: At top level: mgrep.c:101:1: warning: return type defaults to 'int' [-Wimplicit-int] 101 | mgrep(fd) | ^~~~~ mgrep.c: In function 'mgrep': mgrep.c:113:29: warning: implicit declaration of function 'countline' [-Wimplicit-function-declaration] 113 | if(INVERSE && COUNT) countline(text+MAXLINE, num_read); | ^~~~~~~~~ mgrep.c:118:18: warning: implicit declaration of function 'm_short' [-Wimplicit-function-declaration] 118 | if(SHORT) m_short(text, start, end); | ^~~~~~~ mgrep.c:119:18: warning: implicit declaration of function 'monkey1' [-Wimplicit-function-declaration] 119 | else monkey1(text, start, end); | ^~~~~~~ mgrep.c:122:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 122 | return; | ^~~~~~ mgrep.c:101:1: note: declared here 101 | mgrep(fd) | ^~~~~ mgrep.c:128:8: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 128 | strncpy(text+start, text+end, residue); | ^~~~~~~ mgrep.c:128:8: warning: incompatible implicit declaration of built-in function 'strncpy' mgrep.c:128:8: note: include '' or provide a declaration of 'strncpy' mgrep.c:128:20: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 128 | strncpy(text+start, text+end, residue); | ~~~~^~~~~~ | | | unsigned char * mgrep.c:128:20: note: expected 'char *' but argument is of type 'unsigned char *' mgrep.c:128:32: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] 128 | strncpy(text+start, text+end, residue); | ~~~~^~~~ | | | unsigned char * mgrep.c:128:32: note: expected 'const char *' but argument is of type 'unsigned char *' mgrep.c:136:5: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 136 | return; | ^~~~~~ mgrep.c:101:1: note: declared here 101 | mgrep(fd) | ^~~~~ mgrep.c:106:42: warning: unused variable 'j' [-Wunused-variable] 106 | register int buf_end, num_read, i=0, j, start, end, residue = 0; | ^ mgrep.c:106:37: warning: unused variable 'i' [-Wunused-variable] 106 | register int buf_end, num_read, i=0, j, start, end, residue = 0; | ^ mgrep.c: At top level: mgrep.c:139:1: warning: return type defaults to 'int' [-Wimplicit-int] 139 | countline(text, len) | ^~~~~~~~~ mgrep.c:147:1: warning: return type defaults to 'int' [-Wimplicit-int] 147 | monkey1( text, start, end ) | ^~~~~~~ mgrep.c: In function 'monkey1': mgrep.c:185:24: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 185 | if(text > textend) return; | ^~~~~~ mgrep.c:147:1: note: declared here 147 | monkey1( text, start, end ) | ^~~~~~~ mgrep.c:187:47: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 187 | if(FILENAMEONLY || SILENT) return; | ^~~~~~ mgrep.c:147:1: note: declared here 147 | monkey1( text, start, end ) | ^~~~~~~ mgrep.c: At top level: mgrep.c:235:1: warning: return type defaults to 'int' [-Wimplicit-int] 235 | m_short( text, start, end ) | ^~~~~~~ mgrep.c: In function 'm_short': mgrep.c:260:25: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 260 | if(text >= textend) return; | ^~~~~~ mgrep.c:235:1: note: declared here 235 | m_short( text, start, end ) | ^~~~~~~ mgrep.c:262:47: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 262 | if(FILENAMEONLY || SILENT) return; | ^~~~~~ mgrep.c:235:1: note: declared here 235 | m_short( text, start, end ) | ^~~~~~~ mgrep.c:241:31: warning: unused variable 'q' [-Wunused-variable] 241 | register struct pat_list *p, *q; | ^ mgrep.c:239:19: warning: unused variable 'i' [-Wunused-variable] 239 | register unsigned i; | ^ mgrep.c: At top level: mgrep.c:295:1: warning: return type defaults to 'int' [-Wimplicit-int] 295 | f_prep(pat_index, Pattern) | ^~~~~~ mgrep.c: In function 'f_prep': mgrep.c:316:27: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 316 | qt = (struct pat_list *) malloc(sizeof(struct pat_list)); | ^~~~~~ mgrep.c:316:27: warning: incompatible implicit declaration of built-in function 'malloc' mgrep.c:316:27: note: include '' or provide a declaration of 'malloc' mgrep.c:298:8: warning: unused variable 'j' [-Wunused-variable] 298 | int i, j, m; | ^ mgrep.c: In function 'prepf': mgrep.c:98:1: warning: control reaches end of non-void function [-Wreturn-type] 98 | } | ^ mgrep.c: In function 'countline': mgrep.c:144:1: warning: control reaches end of non-void function [-Wreturn-type] 144 | } | ^ mgrep.c: In function 'f_prep': mgrep.c:321:1: warning: control reaches end of non-void function [-Wreturn-type] 321 | } | ^ mgrep.c: In function 'mgrep': mgrep.c:128:8: warning: 'strncpy' accessing between 1 and 2147482624 bytes at offsets [0, 1023] and [1024, 17408] may overlap up to 2147481600 bytes at offset [2147482623, 1024] [-Wrestrict] 128 | strncpy(text+start, text+end, residue); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -march=i586 -mtune=generic -c -o sgrep.o sgrep.c sgrep.c:21:8: warning: type defaults to 'int' in declaration of 'COUNT' [-Wimplicit-int] 21 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~ sgrep.c:21:15: warning: type defaults to 'int' in declaration of 'FNAME' [-Wimplicit-int] 21 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~ sgrep.c:21:22: warning: type defaults to 'int' in declaration of 'SILENT' [-Wimplicit-int] 21 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~ sgrep.c:21:30: warning: type defaults to 'int' in declaration of 'FILENAMEONLY' [-Wimplicit-int] 21 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~~~~~~~ sgrep.c:21:44: warning: type defaults to 'int' in declaration of 'num_of_matched' [-Wimplicit-int] 21 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~~~~~~~~~ sgrep.c:22:8: warning: type defaults to 'int' in declaration of 'DNA' [-Wimplicit-int] 22 | extern DNA ; /* DNA flag is set in checksg when pattern is DNA pattern and | ^~~ sgrep.c:24:8: warning: type defaults to 'int' in declaration of 'WORDBOUND' [-Wimplicit-int] 24 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ sgrep.c:24:19: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] 24 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ sgrep.c:24:30: warning: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] 24 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~ sgrep.c:42:1: warning: return type defaults to 'int' [-Wimplicit-int] 42 | char_tr(pat, m) | ^~~~~~~ sgrep.c: In function 'char_tr': sgrep.c:58:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 58 | memcpy(temp, pat, *m); | ^~~~~~ sgrep.c:58:3: warning: incompatible implicit declaration of built-in function 'memcpy' sgrep.c:4:1: note: include '' or provide a declaration of 'memcpy' 3 | #include +++ |+#include 4 | #define MAXSYM 256 sgrep.c: At top level: sgrep.c:67:1: warning: return type defaults to 'int' [-Wimplicit-int] 67 | sgrep(pat, m, fd, D) | ^~~~~ sgrep.c: In function 'sgrep': sgrep.c:82:10: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 82 | exit(2); | ^~~~ sgrep.c:82:10: warning: incompatible implicit declaration of built-in function 'exit' sgrep.c:4:1: note: include '' or provide a declaration of 'exit' 3 | #include +++ |+#include 4 | #define MAXSYM 256 sgrep.c:85:20: warning: implicit declaration of function 'm_preprocess' [-Wimplicit-function-declaration] 85 | if(m > LONG_EXAC) m_preprocess(pat); | ^~~~~~~~~~~~ sgrep.c:86:7: warning: implicit declaration of function 'prep_bm' [-Wimplicit-function-declaration] 86 | else prep_bm(pat, m); | ^~~~~~~ sgrep.c:88:19: warning: implicit declaration of function 'prep4' [-Wimplicit-function-declaration] 88 | else if (DNA) prep4(pat, m); | ^~~~~ sgrep.c:89:28: warning: implicit declaration of function 'am_preprocess' [-Wimplicit-function-declaration] 89 | else if(m >= LONG_APPX) am_preprocess(pat); | ^~~~~~~~~~~~~ sgrep.c:91:4: warning: implicit declaration of function 'prep' [-Wimplicit-function-declaration] 91 | prep(pat, m, D); | ^~~~ sgrep.c:92:4: warning: implicit declaration of function 'initmask' [-Wimplicit-function-declaration] 92 | initmask(pat, Mask, m, 0, &endposition); | ^~~~~~~~ sgrep.c:96:24: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 96 | while( (num_read = read(fd, text+offset, BLOCKSIZE)) > 0) | ^~~~ | fread sgrep.c:103:21: warning: implicit declaration of function 'monkey' [-Wimplicit-function-declaration] 103 | if(m > LONG_EXAC) monkey(pat, m, text+start, text+end); | ^~~~~~ sgrep.c:104:8: warning: implicit declaration of function 'bm' [-Wimplicit-function-declaration] 104 | else bm(pat, m, text+start, text+end); | ^~ sgrep.c:107:11: warning: implicit declaration of function 'monkey4' [-Wimplicit-function-declaration] 107 | if(DNA) monkey4( pat, m, text+start, text+end, D ); | ^~~~~~~ sgrep.c:109:24: warning: implicit declaration of function 'a_monkey' [-Wimplicit-function-declaration] 109 | if(m >= LONG_APPX) a_monkey(pat, m, text+start, text+end, D); | ^~~~~~~~ sgrep.c:110:16: warning: implicit declaration of function 'agrep'; did you mean 'sgrep'? [-Wimplicit-function-declaration] 110 | else agrep(pat, m, text+start, text+end, D); | ^~~~~ | sgrep sgrep.c:115:13: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 115 | return; } | ^~~~~~ sgrep.c:67:1: note: declared here 67 | sgrep(pat, m, fd, D) | ^~~~~ sgrep.c:120:8: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 120 | strncpy(text+start, text+end, residue); | ^~~~~~~ sgrep.c:120:8: warning: incompatible implicit declaration of built-in function 'strncpy' sgrep.c:120:8: note: include '' or provide a declaration of 'strncpy' sgrep.c:120:20: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 120 | strncpy(text+start, text+end, residue); | ~~~~^~~~~~ | | | unsigned char * sgrep.c:120:20: note: expected 'char *' but argument is of type 'unsigned char *' sgrep.c:120:32: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] 120 | strncpy(text+start, text+end, residue); | ~~~~^~~~ | | | unsigned char * sgrep.c:120:32: note: expected 'const char *' but argument is of type 'unsigned char *' sgrep.c:123:5: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 123 | return; | ^~~~~~ sgrep.c:67:1: note: declared here 67 | sgrep(pat, m, fd, D) | ^~~~~ sgrep.c: At top level: sgrep.c:129:1: warning: return type defaults to 'int' [-Wimplicit-int] 129 | bm(pat, m, text, textend) | ^~ sgrep.c: In function 'bm': sgrep.c:156:23: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 156 | if(text > textend) return; | ^~~~~~ sgrep.c:129:1: note: declared here 129 | bm(pat, m, text, textend) | ^~ sgrep.c:162:21: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 162 | if(FILENAMEONLY) return; | ^~~~~~ sgrep.c:129:1: note: declared here 129 | bm(pat, m, text, textend) | ^~ sgrep.c:175:1: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 175 | return; | ^~~~~~ sgrep.c:129:1: note: declared here 129 | bm(pat, m, text, textend) | ^~ sgrep.c: At top level: sgrep.c:182:1: warning: return type defaults to 'int' [-Wimplicit-int] 182 | initmask(pattern, Mask, m, D, endposition) | ^~~~~~~~ sgrep.c:205:1: warning: return type defaults to 'int' [-Wimplicit-int] 205 | prep(Pattern, M, D) /* preprocessing for partitioning_bm */ | ^~~~ sgrep.c:253:1: warning: return type defaults to 'int' [-Wimplicit-int] 253 | agrep( pat, M, text, textend, D ) | ^~~~~ sgrep.c: In function 'agrep': sgrep.c:326:56: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 326 | if(FILENAMEONLY) { return; } | ^~~~~~ sgrep.c:253:1: note: declared here 253 | agrep( pat, M, text, textend, D ) | ^~~~~ sgrep.c:330:40: warning: implicit declaration of function 's_output' [-Wimplicit-function-declaration] 330 | s_output(text, ¤tpos); | ^~~~~~~~ sgrep.c:346:56: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 346 | if(FILENAMEONLY) { return; } | ^~~~~~ sgrep.c:253:1: note: declared here 253 | agrep( pat, M, text, textend, D ) | ^~~~~ sgrep.c:357:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 357 | return; | ^~~~~~ sgrep.c:253:1: note: declared here 253 | agrep( pat, M, text, textend, D ) | ^~~~~ sgrep.c:260:16: warning: unused variable 'm1' [-Wunused-variable] 260 | int j=0, k, m1, d1; | ^~ sgrep.c: At top level: sgrep.c:360:1: warning: return type defaults to 'int' [-Wimplicit-int] 360 | s_output (text, i) | ^~~~~~~~ sgrep.c: In function 's_output': sgrep.c:364:20: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 364 | if(SILENT) return; | ^~~~~~ sgrep.c:360:1: note: declared here 360 | s_output (text, i) | ^~~~~~~~ sgrep.c:367:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 367 | return; | ^~~~~~ sgrep.c:360:1: note: declared here 360 | s_output (text, i) | ^~~~~~~~ sgrep.c:363:5: warning: unused variable 'kk' [-Wunused-variable] 363 | int kk, bp; | ^~ sgrep.c: At top level: sgrep.c:378:1: warning: return type defaults to 'int' [-Wimplicit-int] 378 | prep_bm(Pattern, m) | ^~~~~~~ sgrep.c: In function 'prep_bm': sgrep.c:380:11: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int] 380 | register m; | ^ sgrep.c:382:8: warning: unused variable 'j' [-Wunused-variable] 382 | int i, j; | ^ sgrep.c: At top level: sgrep.c:407:1: warning: return type defaults to 'int' [-Wimplicit-int] 407 | a_monkey( pat, m, text, textend, D ) | ^~~~~~~~ sgrep.c: In function 'a_monkey': sgrep.c:427:24: warning: implicit declaration of function 'verify' [-Wimplicit-function-declaration] 427 | if((pos = verify(m, 2*m+D, D, pat, oldtext)) > 0) { | ^~~~~~ sgrep.c:429:24: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 429 | if(text > textend) return; | ^~~~~~ sgrep.c:407:1: note: declared here 407 | a_monkey( pat, m, text, textend, D ) | ^~~~~~~~ sgrep.c:431:22: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 431 | if(FILENAMEONLY) return; | ^~~~~~ sgrep.c:407:1: note: declared here 407 | a_monkey( pat, m, text, textend, D ) | ^~~~~~~~ sgrep.c:412:27: warning: unused variable 'j' [-Wunused-variable] 412 | register int m1 = m-1-D, j, pos; | ^ sgrep.c:411:25: warning: unused variable 'i' [-Wunused-variable] 411 | register unsigned hash, i, hashmask, suffix_error; | ^ sgrep.c: At top level: sgrep.c:454:1: warning: return type defaults to 'int' [-Wimplicit-int] 454 | monkey( pat, m, text, textend ) | ^~~~~~ sgrep.c: In function 'monkey': sgrep.c:478:23: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 478 | if(text >= textend) return; | ^~~~~~ sgrep.c:454:1: note: declared here 454 | monkey( pat, m, text, textend ) | ^~~~~~ sgrep.c:480:35: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 480 | if(FILENAMEONLY) return; | ^~~~~~ sgrep.c:454:1: note: declared here 454 | monkey( pat, m, text, textend ) | ^~~~~~ sgrep.c:457:25: warning: unused variable 'i' [-Wunused-variable] 457 | register unsigned hash, i; | ^ sgrep.c: At top level: sgrep.c:497:1: warning: return type defaults to 'int' [-Wimplicit-int] 497 | am_preprocess(Pattern) | ^~~~~~~~~~~~~ sgrep.c: In function 'am_preprocess': sgrep.c:502:6: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 502 | m = strlen(Pattern); | ^~~~~~ sgrep.c:502:6: warning: incompatible implicit declaration of built-in function 'strlen' sgrep.c:502:6: note: include '' or provide a declaration of 'strlen' sgrep.c:502:13: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 502 | m = strlen(Pattern); | ^~~~~~~ | | | unsigned char * sgrep.c:502:13: note: expected 'const char *' but argument is of type 'unsigned char *' sgrep.c:501:10: warning: unused variable 'hash' [-Wunused-variable] 501 | unsigned hash; | ^~~~ sgrep.c:500:8: warning: unused variable 'j' [-Wunused-variable] 500 | int i, j, m; | ^ sgrep.c: At top level: sgrep.c:514:1: warning: return type defaults to 'int' [-Wimplicit-int] 514 | verify(m, n, D, pat, text) | ^~~~~~ sgrep.c: In function 'verify': sgrep.c:539:42: warning: operation on 'last' may be undefined [-Wsequence-point] 539 | if(A[last] < D) A[last+1] = A[last++]+1; | ~~~~^~ sgrep.c:556:42: warning: operation on 'last' may be undefined [-Wsequence-point] 556 | if(B[last] < D) B[last+1] = B[last++]+1; | ~~~~^~ sgrep.c: At top level: sgrep.c:569:1: warning: return type defaults to 'int' [-Wimplicit-int] 569 | m_preprocess(Pattern) | ^~~~~~~~~~~~ sgrep.c: In function 'm_preprocess': sgrep.c:574:6: warning: incompatible implicit declaration of built-in function 'strlen' 574 | m = strlen(Pattern); | ^~~~~~ sgrep.c:574:6: note: include '' or provide a declaration of 'strlen' sgrep.c:574:13: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 574 | m = strlen(Pattern); | ^~~~~~~ | | | unsigned char * sgrep.c:574:13: note: expected 'const char *' but argument is of type 'unsigned char *' sgrep.c: At top level: sgrep.c:598:1: warning: return type defaults to 'int' [-Wimplicit-int] 598 | monkey4( pat, m, text, textend, D ) | ^~~~~~~ sgrep.c: In function 'monkey4': sgrep.c:621:24: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 621 | if(text > textend) return; | ^~~~~~ sgrep.c:598:1: note: declared here 598 | monkey4( pat, m, text, textend, D ) | ^~~~~~~ sgrep.c:623:22: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 623 | if(FILENAMEONLY) return; | ^~~~~~ sgrep.c:598:1: note: declared here 598 | monkey4( pat, m, text, textend, D ) | ^~~~~~~ sgrep.c:603:24: warning: unused variable 'j' [-Wunused-variable] 603 | register int m1=m-1-D, j, pos; | ^ sgrep.c:602:25: warning: unused variable 'i' [-Wunused-variable] 602 | register unsigned hash, i, hashmask, suffix_error; | ^ sgrep.c: At top level: sgrep.c:642:1: warning: return type defaults to 'int' [-Wimplicit-int] 642 | prep4(Pattern, m) | ^~~~~ sgrep.c: In function 'prep4': sgrep.c:650:15: warning: operation on 'char_map[103]' may be undefined [-Wsequence-point] 650 | char_map['g'] = char_map['g'] = 1; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ sgrep.c:651:15: warning: operation on 'char_map[116]' may be undefined [-Wsequence-point] 651 | char_map['t'] = char_map['t'] = 2; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ sgrep.c:652:15: warning: operation on 'char_map[99]' may be undefined [-Wsequence-point] 652 | char_map['c'] = char_map['c'] = 3; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ sgrep.c:653:15: warning: operation on 'char_map[110]' may be undefined [-Wsequence-point] 653 | char_map['n'] = char_map['n'] = 5; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ sgrep.c:655:10: warning: implicit declaration of function 'blog' [-Wimplicit-function-declaration] 655 | BSize = blog(4, m); | ^~~~ sgrep.c:657:22: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 657 | MEMBER_D = (char *) malloc((Hashmask+1) * sizeof(char)); | ^~~~~~ sgrep.c:657:22: warning: incompatible implicit declaration of built-in function 'malloc' sgrep.c:657:22: note: include '' or provide a declaration of 'malloc' sgrep.c:666:47: warning: array subscript has type 'char' [-Wchar-subscripts] 666 | hash = (hash << LOG_DNA) +char_map[Pattern[i-k]]; | ~~~~~~~^~~~~ sgrep.c: At top level: sgrep.c:675:1: warning: return type defaults to 'int' [-Wimplicit-int] 675 | blog(base, m ) | ^~~~ sgrep.c: In function 'char_tr': sgrep.c:65:1: warning: control reaches end of non-void function [-Wreturn-type] 65 | } | ^ sgrep.c: In function 'initmask': sgrep.c:203:1: warning: control reaches end of non-void function [-Wreturn-type] 203 | } | ^ sgrep.c: In function 'prep': sgrep.c:250:1: warning: control reaches end of non-void function [-Wreturn-type] 250 | } | ^ sgrep.c: In function 'prep_bm': sgrep.c:402:1: warning: control reaches end of non-void function [-Wreturn-type] 402 | } | ^ sgrep.c: In function 'am_preprocess': sgrep.c:511:1: warning: control reaches end of non-void function [-Wreturn-type] 511 | } | ^ sgrep.c: In function 'm_preprocess': sgrep.c:592:1: warning: control reaches end of non-void function [-Wreturn-type] 592 | } | ^ sgrep.c: In function 'prep4': sgrep.c:673:1: warning: control reaches end of non-void function [-Wreturn-type] 673 | } | ^ sgrep.c: In function 'sgrep': sgrep.c:120:8: warning: 'strncpy' accessing between 1 and 2147481600 bytes at offsets [1024, 2047] and [2048, 10496] may overlap up to 2147479552 bytes at offset [2147481599, 2048] [-Wrestrict] 120 | strncpy(text+start, text+end, residue); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -march=i586 -mtune=generic -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 *, 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 '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: warning: return type defaults to 'int' [-Wimplicit-int] 36 | initial_value() | ^~~~~~~~~~~~~ main.c:54:1: warning: return type defaults to 'int' [-Wimplicit-int] 54 | compute_next(M, Next, Next1) | ^~~~~~~~~~~~ main.c: In function 'compute_next': main.c:75:9: warning: implicit declaration of function 'exponen'; did you mean 'popen'? [-Wimplicit-function-declaration] 75 | k = exponen(M); | ^~~~~~~ | popen main.c:86:5: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 86 | return; | ^~~~~~ main.c:54:1: note: declared here 54 | compute_next(M, Next, Next1) | ^~~~~~~~~~~~ main.c:110:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 110 | return; | ^~~~~~ main.c:54:1: note: declared here 54 | compute_next(M, Next, Next1) | ^~~~~~~~~~~~ main.c: At top level: main.c:113:1: warning: return type defaults to 'int' [-Wimplicit-int] 113 | exponen(m) | ^~~~~~~ main.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int] 121 | re1(Text, M, D) | ^~~ main.c: In function 're1': main.c:136:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 136 | exit(2); | ^~~~ main.c:136:6: warning: incompatible implicit declaration of built-in function 'exit' main.c:4:1: note: include '' or provide a declaration of 'exit' 3 | #include "checkfile.h" +++ |+#include 4 | main.c:154:24: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 184 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:186:20: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 210 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:221:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 221 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:297:27: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 297 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:375:27: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 375 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c:393:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 393 | return; | ^~~~~~ main.c:121:1: note: declared here 121 | re1(Text, M, D) | ^~~ main.c: At top level: main.c:396:1: warning: 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 473 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:488:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 488 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:536:27: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 536 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:577:27: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 577 | return; | ^~~~~~ main.c:396:1: note: declared here 396 | re(Text, M, D) | ^~ main.c:594:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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: warning: return type defaults to 'int' [-Wimplicit-int] 598 | r_output (buffer, i, end, j) | ^~~~~~~~ main.c: In function 'r_output': main.c:603:20: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 603 | if(i >= end) return; | ^~~~~~ main.c:598:1: note: declared here 598 | r_output (buffer, i, end, j) | ^~~~~~~~ main.c:605:18: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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: warning: return type defaults to 'int' [-Wimplicit-int] 615 | main(argc, argv) | ^~~~ main.c: In function 'main': main.c:625:17: warning: implicit declaration of function 'usage' [-Wimplicit-function-declaration] 625 | if (argc < 2) usage(); | ^~~~~ main.c:639:4: warning: incompatible implicit declaration of built-in function 'exit' 639 | exit(2); | ^~~~ main.c:639:4: note: include '' or provide a declaration of 'exit' main.c:649:23: warning: incompatible implicit declaration of built-in function 'exit' 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' 657 | exit(2); | ^~~~ main.c:657:23: note: include '' or provide a declaration of 'exit' main.c:679:14: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] 679 | if((fp = open(argv[0], 0)) < 0) { | ^~~~ | popen main.c:681:4: warning: incompatible implicit declaration of built-in function 'exit' 681 | exit(2); | ^~~~ main.c:681:4: note: include '' or provide a declaration of 'exit' main.c:698:4: warning: incompatible implicit declaration of built-in function 'exit' 698 | exit(2); | ^~~~ main.c:698:4: note: include '' or provide a declaration of 'exit' main.c:714:4: warning: incompatible implicit declaration of built-in function 'exit' 714 | exit(2); | ^~~~ main.c:714:4: note: include '' or provide a declaration of 'exit' main.c:719:23: warning: 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' 736 | exit(2); | ^~~~ main.c:736:23: note: include '' or provide a declaration of 'exit' main.c:763:32: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 763 | if (!(Textfiles = (CHAR **)malloc(argc * sizeof(CHAR *) ))) { | ^~~~~~ main.c:763:32: warning: incompatible implicit declaration of built-in function 'malloc' 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' 765 | exit(2); | ^~~~ main.c:765:7: note: include '' or provide a declaration of 'exit' main.c:775:23: warning: 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' 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' 781 | exit(2); | ^~~~ main.c:781:11: note: include '' or provide a declaration of 'exit' main.c:787:3: warning: implicit declaration of function 'checksg' [-Wimplicit-function-declaration] 787 | checksg(Pattern, D); /* check if the pattern is simple */ | ^~~~~~~ main.c:790:7: warning: implicit declaration of function 'preprocess' [-Wimplicit-function-declaration] 790 | preprocess(D_pattern, Pattern); | ^~~~~~~~~~ main.c:792:11: warning: implicit declaration of function 'maskgen' [-Wimplicit-function-declaration] 792 | M = maskgen(Pattern, D); | ^~~~~~~ main.c:795:18: warning: implicit declaration of function 'prepf' [-Wimplicit-function-declaration] 795 | if (PAT_FILE) prepf(fp); | ^~~~~ main.c:799:3: warning: 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' 803 | exit(2); | ^~~~ main.c:803:8: note: include '' or provide a declaration of 'exit' main.c:805:18: warning: implicit declaration of function 'mgrep' [-Wimplicit-function-declaration] 805 | if(PAT_FILE) mgrep(fd); | ^~~~~ main.c:807:16: warning: implicit declaration of function 'sgrep' [-Wimplicit-function-declaration] 807 | if(SGREP) sgrep(OldPattern, strlen(OldPattern), fd, D); | ^~~~~ main.c:808:15: warning: implicit declaration of function 'bitap' [-Wimplicit-function-declaration] 808 | else bitap(old_D_pat, Pattern, fd, M, D); | ^~~~~ main.c:816:36: warning: 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:4: warning: 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' 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' 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: warning: return type defaults to 'int' [-Wimplicit-int] 900 | file_out(fname) | ^~~~~~~~ main.c: In function 'file_out': main.c:920:3: warning: 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: warning: return type defaults to 'int' [-Wimplicit-int] 924 | usage() | ^~~~~ main.c: In function 'usage': main.c:942:6: warning: incompatible implicit declaration of built-in function 'exit' 942 | exit(2); | ^~~~ main.c:942:6: note: include '' or provide a declaration of 'exit' main.c: At top level: main.c:945:1: warning: 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' 953 | exit(2); | ^~~~ main.c:953:7: note: include '' or provide a declaration of 'exit' main.c:982:29: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 982 | if (SIMPLEPATTERN == OFF) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:983:21: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 983 | if (NOUPPER && D) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:984:19: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 984 | if (JUMP == ON) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:985:15: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 985 | if (I == 0) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:986:16: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 986 | if (LINENUM) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:987:18: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 987 | if (DELIMITER) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:988:16: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 988 | if (INVERSE) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:989:27: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 989 | if (WORDBOUND && D > 0) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:990:27: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 990 | if (WHOLELINE && D > 0) return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:991:15: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 991 | if (SILENT) return; /* REMINDER: to be removed */ | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c:999:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 999 | return; | ^~~~~~ main.c:945:1: note: declared here 945 | checksg(Pattern, D) | ^~~~~~~ main.c: At top level: main.c:1002:1: warning: return type defaults to 'int' [-Wimplicit-int] 1002 | output (buffer, i1, i2, j) | ^~~~~~ main.c: In function 'output': main.c:1006:14: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 1006 | if(i1 > i2) return; | ^~~~~~ main.c:1002:1: note: declared here 1002 | output (buffer, i1, i2, j) | ^~~~~~ main.c:1008:20: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 1008 | if(COUNT) return; | ^~~~~~ main.c:1002:1: note: declared here 1002 | output (buffer, i1, i2, j) | ^~~~~~ main.c:1009:20: warning: 'return' with no value, in function returning non-void [-Wreturn-type] 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:3: 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 | } | ^ main.c: In function 'main': main.c:795:18: warning: 'fp' may be used uninitialized in this function [-Wmaybe-uninitialized] 795 | if (PAT_FILE) prepf(fp); | ^~~~~~~~~ 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 -march=i586 -mtune=generic -o agrep asearch.o asearch1.o bitap.o checkfile.o compat.o follow.o main.o maskgen.o parse.o preprocess.o sgrep.o mgrep.o utilities.o make: Leaving directory '/usr/src/RPM/BUILD/agrep-2.04' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.97088 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/agrep-buildroot + : + /bin/rm -rf -- /usr/src/tmp/agrep-buildroot + cd agrep-2.04 + install -pD -m755 agrep /usr/src/tmp/agrep-buildroot/usr/bin/agrep + install -pD -m644 agrep.1 /usr/src/tmp/agrep-buildroot/usr/share/man/man1/agrep.1 + install -pD -m644 /usr/src/RPM/SOURCES/agrep-README.ALT /usr/src/RPM/BUILD/agrep-2.04/README.ALT + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/agrep-buildroot (auto) Verifying and fixing files in /usr/src/tmp/agrep-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/agrep-buildroot/ (default) Compressing files in /usr/src/tmp/agrep-buildroot (auto) Verifying ELF objects in /usr/src/tmp/agrep-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) verify-elf: WARNING: ./usr/bin/agrep: uses non-LFS functions: __xstat open Hardlinking identical .pyc and .pyo files Processing files: agrep-2.04-alt1.qa2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.52740 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd agrep-2.04 + DOCDIR=/usr/src/tmp/agrep-buildroot/usr/share/doc/agrep-2.04 + export DOCDIR + rm -rf /usr/src/tmp/agrep-buildroot/usr/share/doc/agrep-2.04 + /bin/mkdir -p /usr/src/tmp/agrep-buildroot/usr/share/doc/agrep-2.04 + cp -prL COPYRIGHT README agrep.algorithms agrep.chronicle contribution.list /usr/src/tmp/agrep-buildroot/usr/share/doc/agrep-2.04 + chmod -R go-w /usr/src/tmp/agrep-buildroot/usr/share/doc/agrep-2.04 + chmod -R a+rX /usr/src/tmp/agrep-buildroot/usr/share/doc/agrep-2.04 + cp -prL README.ALT /usr/src/tmp/agrep-buildroot/usr/share/doc/agrep-2.04 + chmod -R go-w /usr/src/tmp/agrep-buildroot/usr/share/doc/agrep-2.04 + chmod -R a+rX /usr/src/tmp/agrep-buildroot/usr/share/doc/agrep-2.04 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.1nhscb find-provides: running scripts (debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.bQsuFc find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks,systemd-services) Requires: /lib/ld-linux.so.2, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libc.so.6(GLIBC_2.7), rtld(GNU_HASH) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Hw1Oi8 Creating agrep-debuginfo package Processing files: agrep-debuginfo-2.04-alt1.qa2 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.1eCwr9 find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.3VRKGb find-requires: running scripts (debuginfo) Requires: agrep = 2.04-alt1.qa2, /usr/lib/debug/lib/ld-linux.so.2.debug, debug(libc.so.6) Wrote: /usr/src/RPM/RPMS/i586/agrep-2.04-alt1.qa2.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/agrep-debuginfo-2.04-alt1.qa2.i586.rpm 7.85user 1.34system 0:09.99elapsed 92%CPU (0avgtext+0avgdata 30816maxresident)k 0inputs+0outputs (0major+200856minor)pagefaults 0swaps /.out/agrep-2.04-alt1.qa2.i586.rpm: bad symbols in the license tag: , /.out/agrep-debuginfo-2.04-alt1.qa2.i586.rpm: bad symbols in the license tag: , 10.39user 6.20system 0:16.27elapsed 101%CPU (0avgtext+0avgdata 30816maxresident)k 0inputs+0outputs (0major+383595minor)pagefaults 0swaps