<86>Oct 18 13:44:53 userdel[4092849]: delete user 'rooter' <86>Oct 18 13:44:53 userdel[4092849]: removed group 'rooter' owned by 'rooter' <86>Oct 18 13:44:53 userdel[4092849]: removed shadow group 'rooter' owned by 'rooter' <86>Oct 18 13:44:53 groupadd[4092880]: group added to /etc/group: name=rooter, GID=1805 <86>Oct 18 13:44:53 groupadd[4092880]: group added to /etc/gshadow: name=rooter <86>Oct 18 13:44:53 groupadd[4092880]: new group: name=rooter, GID=1805 <86>Oct 18 13:44:53 useradd[4092911]: new user: name=rooter, UID=1805, GID=1805, home=/root, shell=/bin/bash, from=none <86>Oct 18 13:44:53 userdel[4092945]: delete user 'builder' <86>Oct 18 13:44:53 userdel[4092945]: removed group 'builder' owned by 'builder' <86>Oct 18 13:44:53 userdel[4092945]: removed shadow group 'builder' owned by 'builder' <86>Oct 18 13:44:53 groupadd[4092978]: group added to /etc/group: name=builder, GID=1806 <86>Oct 18 13:44:53 groupadd[4092978]: group added to /etc/gshadow: name=builder <86>Oct 18 13:44:53 groupadd[4092978]: new group: name=builder, GID=1806 <86>Oct 18 13:44:53 useradd[4093004]: new user: name=builder, UID=1806, GID=1806, 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.357 + 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.357 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd agrep-2.04 + make -j16 '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 mgrep.o mgrep.c mgrep.c:17:8: error: type defaults to 'int' in declaration of 'COUNT' [-Wimplicit-int] 17 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~ mgrep.c:17:15: error: type defaults to 'int' in declaration of 'FNAME' [-Wimplicit-int] 17 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~ mgrep.c:17:22: error: type defaults to 'int' in declaration of 'SILENT' [-Wimplicit-int] 17 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~ mgrep.c:17:30: error: type defaults to 'int' in declaration of 'FILENAMEONLY' [-Wimplicit-int] 17 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~~~~~~~ mgrep.c:17:44: error: 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: error: type defaults to 'int' in declaration of 'INVERSE' [-Wimplicit-int] 18 | extern INVERSE; | ^~~~~~~ mgrep.c:19:8: error: type defaults to 'int' in declaration of 'WORDBOUND' [-Wimplicit-int] 19 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ mgrep.c:19:19: error: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] 19 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ mgrep.c:19:30: error: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] 19 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~ mgrep.c:21:8: error: type defaults to 'int' in declaration of 'total_line' [-Wimplicit-int] 21 | extern total_line; | ^~~~~~~~~~ mgrep.c:40:1: error: return type defaults to 'int' [-Wimplicit-int] 40 | prepf(fp) | ^~~~~ mgrep.c: In function 'prepf': mgrep.c:48:23: error: 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:17: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 52 | exit(2); | ^~~~ mgrep.c:5:1: note: include '' or provide a declaration of 'exit' 4 | #include +++ |+#include 5 | #define MAXPAT 256 mgrep.c:52:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 52 | exit(2); | ^~~~ mgrep.c:52:17: note: include '' or provide a declaration of 'exit' mgrep.c:69:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 69 | exit(2); | ^~~~ mgrep.c:69:9: note: include '' or provide a declaration of 'exit' mgrep.c:83:13: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 83 | p = strlen(patt[i]); | ^~~~~~ mgrep.c:5:1: note: include '' or provide a declaration of 'strlen' 4 | #include +++ |+#include 5 | #define MAXPAT 256 mgrep.c:83:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 83 | p = strlen(patt[i]); | ^~~~~~ mgrep.c:83:13: note: include '' or provide a declaration of 'strlen' mgrep.c:83:24: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 83 | p = strlen(patt[i]); | ~~~~^~~ | | | unsigned char * mgrep.c:83:24: note: expected 'const char *' but argument is of type 'unsigned char *' mgrep.c:88:27: warning: format '%s' expects a matching 'char *' argument [-Wformat=] 88 | fprintf(stderr, "%s: the pattern file is empty\n"); | ~^ | | | char * mgrep.c:89:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 89 | exit(2); | ^~~~ mgrep.c:89:9: note: include '' or provide a declaration of 'exit' mgrep.c:97:32: error: 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: error: return type defaults to 'int' [-Wimplicit-int] 101 | mgrep(fd) | ^~~~~ mgrep.c: In function 'mgrep': mgrep.c:113:29: error: implicit declaration of function 'countline' [-Wimplicit-function-declaration] 113 | if(INVERSE && COUNT) countline(text+MAXLINE, num_read); | ^~~~~~~~~ mgrep.c:118:18: error: implicit declaration of function 'm_short' [-Wimplicit-function-declaration] 118 | if(SHORT) m_short(text, start, end); | ^~~~~~~ mgrep.c:119:18: error: implicit declaration of function 'monkey1' [-Wimplicit-function-declaration] 119 | else monkey1(text, start, end); | ^~~~~~~ mgrep.c:122:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 122 | return; | ^~~~~~ mgrep.c:101:1: note: declared here 101 | mgrep(fd) | ^~~~~ mgrep.c:128:8: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 128 | strncpy(text+start, text+end, residue); | ^~~~~~~ mgrep.c:128:8: note: include '' or provide a declaration of 'strncpy' mgrep.c:128:8: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 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: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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: error: return type defaults to 'int' [-Wimplicit-int] 139 | countline(text, len) | ^~~~~~~~~ mgrep.c:147:1: error: return type defaults to 'int' [-Wimplicit-int] 147 | monkey1( text, start, end ) | ^~~~~~~ mgrep.c: In function 'monkey1': mgrep.c:185:52: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 185 | if(text > textend) return; | ^~~~~~ mgrep.c:147:1: note: declared here 147 | monkey1( text, start, end ) | ^~~~~~~ mgrep.c:187:61: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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: error: return type defaults to 'int' [-Wimplicit-int] 235 | m_short( text, start, end ) | ^~~~~~~ mgrep.c: In function 'm_short': mgrep.c:260:53: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 260 | if(text >= textend) return; | ^~~~~~ mgrep.c:235:1: note: declared here 235 | m_short( text, start, end ) | ^~~~~~~ mgrep.c:262:61: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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: error: return type defaults to 'int' [-Wimplicit-int] 295 | f_prep(pat_index, Pattern) | ^~~~~~ mgrep.c: In function 'f_prep': mgrep.c:316:34: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 316 | qt = (struct pat_list *) malloc(sizeof(struct pat_list)); | ^~~~~~ mgrep.c:316:34: note: include '' or provide a declaration of 'malloc' mgrep.c:316:34: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] mgrep.c:316:34: 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 | } | ^ make: *** [: mgrep.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 utilities.o utilities.c In file included from utilities.c:5: utilities.c: In function 'Push': re.h:67:25: error: 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); | ^~~~~~~~ utilities.c:6:1: note: include '' or provide a declaration of 'malloc' 5 | #include "re.h" +++ |+#include 6 | re.h:67:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 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:25: note: include '' or provide a declaration of '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: In function 'Pop': utilities.c:40:9: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 40 | free(temp); | ^~~~ utilities.c:40:9: note: include '' or provide a declaration of 'free' utilities.c:40:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] utilities.c:40:9: note: include '' or provide a declaration of 'free' utilities.c: In function 'pset_union': re.h:67:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ utilities.c:86:26: note: in expansion of macro 'new_node' 86 | new = (Pset) new_node(new); | ^~~~~~~~ re.h:67:25: note: include '' or provide a declaration of 'malloc' 67 | #define new_node(x) malloc(sizeof(*x)) | ^~~~~~ utilities.c:86:26: 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; | ^~~ utilities.c: In function 'create_pos': re.h:67:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 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:25: 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: error: return type defaults to 'int' [-Wimplicit-int] 118 | subset_pset(s1, s2) | ^~~~~~~~~~~ make: *** [: utilities.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 parse.o parse.c In file included from parse.c:6: parse.c: In function 'mk_leaf': re.h:67:25: error: 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); | ^~~~~~~~ parse.c:7:1: note: include '' or provide a declaration of 'malloc' 6 | #include "re.h" +++ |+#include 7 | re.h:67:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 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:25: note: include '' or provide a declaration of '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: In function 'parse_cset': re.h:67:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 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:25: 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:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 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:25: 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:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 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:25: 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:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 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:25: 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:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 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:25: 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:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 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:25: 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: *** [: parse.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 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 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 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 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 *, 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 '' preprocess.c:24:1: error: return type defaults to 'int' [-Wimplicit-int] 24 | preprocess(D_pattern, Pattern) /* need two parameters */ | ^~~~~~~~~~ preprocess.c: In function 'preprocess': preprocess.c:38:20: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 38 | r_pat = (CHAR *) malloc(strlen(Pattern)+2*strlen(D_pattern)); | ^~~~~~ preprocess.c:17:1: note: include '' or provide a declaration of 'malloc' 16 | #include "agrep.h" +++ |+#include 17 | preprocess.c:38:20: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 38 | r_pat = (CHAR *) malloc(strlen(Pattern)+2*strlen(D_pattern)); | ^~~~~~ preprocess.c:38:20: note: include '' or provide a declaration of 'malloc' preprocess.c:90:6: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 90 | exit(2); | ^~~~ preprocess.c:90:6: note: include '' or provide a declaration of 'exit' preprocess.c:90:6: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 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' [-Wbuiltin-declaration-mismatch] 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' [-Wbuiltin-declaration-mismatch] 197 | exit(2); | ^~~~ preprocess.c:197:9: note: include '' or provide a declaration of 'exit' preprocess.c:200:16: error: 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' [-Wbuiltin-declaration-mismatch] 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' [-Wbuiltin-declaration-mismatch] 207 | exit(2); | ^~~~ preprocess.c:207:9: note: include '' or provide a declaration of 'exit' preprocess.c:210:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 210 | return; | ^~~~~~ preprocess.c:24:1: note: declared here 24 | preprocess(D_pattern, Pattern) /* need two parameters */ | ^~~~~~~~~~ preprocess.c:213:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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: *** [: preprocess.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 sgrep.o sgrep.c sgrep.c:21:8: error: type defaults to 'int' in declaration of 'COUNT' [-Wimplicit-int] 21 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~ sgrep.c:21:15: error: type defaults to 'int' in declaration of 'FNAME' [-Wimplicit-int] 21 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~ sgrep.c:21:22: error: type defaults to 'int' in declaration of 'SILENT' [-Wimplicit-int] 21 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~ sgrep.c:21:30: error: type defaults to 'int' in declaration of 'FILENAMEONLY' [-Wimplicit-int] 21 | extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; | ^~~~~~~~~~~~ sgrep.c:21:44: error: 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: error: 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: error: type defaults to 'int' in declaration of 'WORDBOUND' [-Wimplicit-int] 24 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ sgrep.c:24:19: error: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] 24 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ sgrep.c:24:30: error: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] 24 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~ sgrep.c:42:1: error: return type defaults to 'int' [-Wimplicit-int] 42 | char_tr(pat, m) | ^~~~~~~ sgrep.c: In function 'char_tr': sgrep.c:58:17: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 58 | memcpy(temp, pat, *m); | ^~~~~~ sgrep.c:4:1: note: include '' or provide a declaration of 'memcpy' 3 | #include +++ |+#include 4 | #define MAXSYM 256 sgrep.c:58:17: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 58 | memcpy(temp, pat, *m); | ^~~~~~ sgrep.c:58:17: note: include '' or provide a declaration of 'memcpy' sgrep.c: At top level: sgrep.c:67:1: error: return type defaults to 'int' [-Wimplicit-int] 67 | sgrep(pat, m, fd, D) | ^~~~~ sgrep.c: In function 'sgrep': sgrep.c:82:10: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 82 | exit(2); | ^~~~ sgrep.c:4:1: note: include '' or provide a declaration of 'exit' 3 | #include +++ |+#include 4 | #define MAXSYM 256 sgrep.c:82:10: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 82 | exit(2); | ^~~~ sgrep.c:82:10: note: include '' or provide a declaration of 'exit' sgrep.c:85:27: error: implicit declaration of function 'm_preprocess' [-Wimplicit-function-declaration] 85 | if(m > LONG_EXAC) m_preprocess(pat); | ^~~~~~~~~~~~ sgrep.c:86:14: error: implicit declaration of function 'prep_bm' [-Wimplicit-function-declaration] 86 | else prep_bm(pat, m); | ^~~~~~~ sgrep.c:88:19: error: implicit declaration of function 'prep4' [-Wimplicit-function-declaration] 88 | else if (DNA) prep4(pat, m); | ^~~~~ sgrep.c:89:36: error: implicit declaration of function 'am_preprocess' [-Wimplicit-function-declaration] 89 | else if(m >= LONG_APPX) am_preprocess(pat); | ^~~~~~~~~~~~~ sgrep.c:91:25: error: implicit declaration of function 'prep' [-Wimplicit-function-declaration] 91 | prep(pat, m, D); | ^~~~ sgrep.c:92:25: error: implicit declaration of function 'initmask' [-Wimplicit-function-declaration] 92 | initmask(pat, Mask, m, 0, &endposition); | ^~~~~~~~ sgrep.c:96:24: error: 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:35: error: implicit declaration of function 'monkey' [-Wimplicit-function-declaration] 103 | if(m > LONG_EXAC) monkey(pat, m, text+start, text+end); | ^~~~~~ sgrep.c:104:22: error: implicit declaration of function 'bm' [-Wimplicit-function-declaration] 104 | else bm(pat, m, text+start, text+end); | ^~ sgrep.c:107:25: error: implicit declaration of function 'monkey4' [-Wimplicit-function-declaration] 107 | if(DNA) monkey4( pat, m, text+start, text+end, D ); | ^~~~~~~ sgrep.c:109:38: error: 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:30: error: 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: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 115 | return; } | ^~~~~~ sgrep.c:67:1: note: declared here 67 | sgrep(pat, m, fd, D) | ^~~~~ sgrep.c:120:8: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 120 | strncpy(text+start, text+end, residue); | ^~~~~~~ sgrep.c:120:8: note: include '' or provide a declaration of 'strncpy' sgrep.c:120:8: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 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: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 123 | return; | ^~~~~~ sgrep.c:67:1: note: declared here 67 | sgrep(pat, m, fd, D) | ^~~~~ sgrep.c: At top level: sgrep.c:129:1: error: return type defaults to 'int' [-Wimplicit-int] 129 | bm(pat, m, text, textend) | ^~ sgrep.c: In function 'bm': sgrep.c:156:44: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 156 | if(text > textend) return; | ^~~~~~ sgrep.c:129:1: note: declared here 129 | bm(pat, m, text, textend) | ^~ sgrep.c:162:42: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 162 | if(FILENAMEONLY) return; | ^~~~~~ sgrep.c:129:1: note: declared here 129 | bm(pat, m, text, textend) | ^~ sgrep.c:175:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 175 | return; | ^~~~~~ sgrep.c:129:1: note: declared here 129 | bm(pat, m, text, textend) | ^~ sgrep.c: At top level: sgrep.c:182:1: error: return type defaults to 'int' [-Wimplicit-int] 182 | initmask(pattern, Mask, m, D, endposition) | ^~~~~~~~ sgrep.c:205:1: error: return type defaults to 'int' [-Wimplicit-int] 205 | prep(Pattern, M, D) /* preprocessing for partitioning_bm */ | ^~~~ sgrep.c:253:1: error: return type defaults to 'int' [-Wimplicit-int] 253 | agrep( pat, M, text, textend, D ) | ^~~~~ sgrep.c: In function 'agrep': sgrep.c:326:56: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 326 | if(FILENAMEONLY) { return; } | ^~~~~~ sgrep.c:253:1: note: declared here 253 | agrep( pat, M, text, textend, D ) | ^~~~~ sgrep.c:330:40: error: implicit declaration of function 's_output' [-Wimplicit-function-declaration] 330 | s_output(text, ¤tpos); | ^~~~~~~~ sgrep.c:346:56: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 346 | if(FILENAMEONLY) { return; } | ^~~~~~ sgrep.c:253:1: note: declared here 253 | agrep( pat, M, text, textend, D ) | ^~~~~ sgrep.c:357:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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: error: return type defaults to 'int' [-Wimplicit-int] 360 | s_output (text, i) | ^~~~~~~~ sgrep.c: In function 's_output': sgrep.c:364:20: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 364 | if(SILENT) return; | ^~~~~~ sgrep.c:360:1: note: declared here 360 | s_output (text, i) | ^~~~~~~~ sgrep.c:367:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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: error: return type defaults to 'int' [-Wimplicit-int] 378 | prep_bm(Pattern, m) | ^~~~~~~ sgrep.c: In function 'prep_bm': sgrep.c:380:18: error: 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: error: return type defaults to 'int' [-Wimplicit-int] 407 | a_monkey( pat, m, text, textend, D ) | ^~~~~~~~ sgrep.c: In function 'a_monkey': sgrep.c:427:38: error: implicit declaration of function 'verify' [-Wimplicit-function-declaration] 427 | if((pos = verify(m, 2*m+D, D, pat, oldtext)) > 0) { | ^~~~~~ sgrep.c:429:52: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 429 | if(text > textend) return; | ^~~~~~ sgrep.c:407:1: note: declared here 407 | a_monkey( pat, m, text, textend, D ) | ^~~~~~~~ sgrep.c:431:50: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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: error: return type defaults to 'int' [-Wimplicit-int] 454 | monkey( pat, m, text, textend ) | ^~~~~~ sgrep.c: In function 'monkey': sgrep.c:478:37: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 478 | if(text >= textend) return; | ^~~~~~ sgrep.c:454:1: note: declared here 454 | monkey( pat, m, text, textend ) | ^~~~~~ sgrep.c:480:35: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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: error: return type defaults to 'int' [-Wimplicit-int] 497 | am_preprocess(Pattern) | ^~~~~~~~~~~~~ sgrep.c: In function 'am_preprocess': sgrep.c:502:13: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 502 | m = strlen(Pattern); | ^~~~~~ sgrep.c:502:13: note: include '' or provide a declaration of 'strlen' sgrep.c:502:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] sgrep.c:502:13: note: include '' or provide a declaration of 'strlen' sgrep.c:502:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 502 | m = strlen(Pattern); | ^~~~~~~ | | | unsigned char * sgrep.c:502:20: 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: error: 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: error: return type defaults to 'int' [-Wimplicit-int] 569 | m_preprocess(Pattern) | ^~~~~~~~~~~~ sgrep.c: In function 'm_preprocess': sgrep.c:574:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 574 | m = strlen(Pattern); | ^~~~~~ sgrep.c:574:13: note: include '' or provide a declaration of 'strlen' sgrep.c:574:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 574 | m = strlen(Pattern); | ^~~~~~~ | | | unsigned char * sgrep.c:574:20: note: expected 'const char *' but argument is of type 'unsigned char *' sgrep.c: At top level: sgrep.c:598:1: error: return type defaults to 'int' [-Wimplicit-int] 598 | monkey4( pat, m, text, textend, D ) | ^~~~~~~ sgrep.c: In function 'monkey4': sgrep.c:621:52: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 621 | if(text > textend) return; | ^~~~~~ sgrep.c:598:1: note: declared here 598 | monkey4( pat, m, text, textend, D ) | ^~~~~~~ sgrep.c:623:50: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 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: error: 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:17: error: implicit declaration of function 'blog' [-Wimplicit-function-declaration] 655 | BSize = blog(4, m); | ^~~~ sgrep.c:657:29: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 657 | MEMBER_D = (char *) malloc((Hashmask+1) * sizeof(char)); | ^~~~~~ sgrep.c:657:29: note: include '' or provide a declaration of 'malloc' sgrep.c:657:29: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] sgrep.c:657:29: note: include '' or provide a declaration of 'malloc' sgrep.c:666:61: 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: error: 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 | } | ^ make: *** [: sgrep.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.357 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.357 (%build) Command exited with non-zero status 1 0.27user 0.31system 0:00.12elapsed 463%CPU (0avgtext+0avgdata 20324maxresident)k 0inputs+0outputs (0major+32851minor)pagefaults 0swaps hsh-rebuild: rebuild of `agrep-2.04-alt1.qa2.src.rpm' failed. Command exited with non-zero status 1 0.51user 1.82system 0:04.47elapsed 52%CPU (0avgtext+0avgdata 12380maxresident)k 0inputs+0outputs (0major+88385minor)pagefaults 0swaps