<86>Oct 12 08:53:27 userdel[7953]: delete user 'rooter' <86>Oct 12 08:53:27 userdel[7953]: removed group 'rooter' owned by 'rooter' <86>Oct 12 08:53:27 userdel[7953]: removed shadow group 'rooter' owned by 'rooter' <86>Oct 12 08:53:27 groupadd[7965]: group added to /etc/group: name=rooter, GID=639 <86>Oct 12 08:53:27 groupadd[7965]: group added to /etc/gshadow: name=rooter <86>Oct 12 08:53:27 groupadd[7965]: new group: name=rooter, GID=639 <86>Oct 12 08:53:27 useradd[7977]: new user: name=rooter, UID=639, GID=639, home=/root, shell=/bin/bash <86>Oct 12 08:53:27 userdel[7997]: delete user 'builder' <86>Oct 12 08:53:27 userdel[7997]: removed group 'builder' owned by 'builder' <86>Oct 12 08:53:27 userdel[7997]: removed shadow group 'builder' owned by 'builder' <86>Oct 12 08:53:27 groupadd[8012]: group added to /etc/group: name=builder, GID=640 <86>Oct 12 08:53:27 groupadd[8012]: group added to /etc/gshadow: name=builder <86>Oct 12 08:53:27 groupadd[8012]: new group: name=builder, GID=640 <86>Oct 12 08:53:27 useradd[8027]: new user: name=builder, UID=640, GID=640, home=/usr/src, shell=/bin/bash 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.46867 + 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.46867 + 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 follow.o follow.c follow.c:9:13: warning: conflicting types for built-in function 'strlen' [-Wbuiltin-declaration-mismatch] extern int strlen(); ^~~~~~ follow.c:13:14: warning: conflicting types for built-in function 'malloc' [-Wbuiltin-declaration-mismatch] extern char *malloc(); ^~~~~~ 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' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~~ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' [-Wbuiltin-declaration-mismatch] extern int strlen(); ^~~~~~ asearch1.c:11:1: warning: return type defaults to 'int' [-Wimplicit-int] asearch1(old_D_pat, Text, D) ^~~~~~~~ asearch1.c: In function 'asearch1': asearch1.c:38:22: warning: implicit declaration of function 'fill_buf'; did you mean 'ilogbf'? [-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Max_record, Max_record)) > 0) ^~~~~~~~ ilogbf asearch1.c:56:21: warning: array subscript has type 'char' [-Wchar-subscripts] CMask = Mask[buffer[i++]]; ^ asearch1.c:72:25: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ asearch1.c:11:1: note: declared here asearch1(old_D_pat, Text, D) ^~~~~~~~ asearch1.c:74:25: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] output(buffer, lasti, i-D_length-1, j); ^~~~~~ asearch1.c:88:21: warning: array subscript has type 'char' [-Wchar-subscripts] CMask = Mask[buffer[i++]]; ^ asearch1.c:102:25: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ asearch1.c:11:1: note: declared here asearch1(old_D_pat, Text, D) ^~~~~~~~ asearch1.c:129:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ asearch1.c:11:1: note: declared here asearch1(old_D_pat, Text, D) ^~~~~~~~ asearch1.c:14:64: warning: unused variable 'Init0' [-Wunused-variable] 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] 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 checkfile.o checkfile.c checkfile.c: In function 'check_file': checkfile.c:39:5: warning: unused variable 'ftype' [-Wunused-variable] int ftype; ^~~~~ checkfile.c:69:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 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] extern FILEOUT; ^~~~~~~ compat.c:6:8: warning: type defaults to 'int' in declaration of 'REGEX' [-Wimplicit-int] extern REGEX; ^~~~~ compat.c:7:8: warning: type defaults to 'int' in declaration of 'DELIMITER' [-Wimplicit-int] extern DELIMITER; ^~~~~~~~~ compat.c:8:8: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] extern WHOLELINE; ^~~~~~~~~ compat.c:9:8: warning: type defaults to 'int' in declaration of 'LINENUM' [-Wimplicit-int] extern LINENUM; ^~~~~~~ compat.c:10:8: warning: type defaults to 'int' in declaration of 'I' [-Wimplicit-int] extern I, S, DD; ^ compat.c:10:11: warning: type defaults to 'int' in declaration of 'S' [-Wimplicit-int] extern I, S, DD; ^ compat.c:10:14: warning: type defaults to 'int' in declaration of 'DD' [-Wimplicit-int] extern I, S, DD; ^~ compat.c:11:8: warning: type defaults to 'int' in declaration of 'JUMP' [-Wimplicit-int] extern JUMP; ^~~~ compat.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int] compat() ^~~~~~ compat.c: In function 'compat': compat.c:19:19: warning: too many arguments for format [-Wformat-extra-args] 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] exit(2); ^~~~ compat.c:33:4: warning: incompatible implicit declaration of built-in function 'exit' compat.c:33:4: note: include '' or provide a declaration of 'exit' compat.c:3:1: +#include compat.c:33:4: exit(2); ^~~~ compat.c:37:4: warning: incompatible implicit declaration of built-in function 'exit' 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' 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' exit(2); ^~~~ compat.c:53:4: note: include '' or provide a declaration of 'exit' compat.c:16:11: warning: unused variable 'k' [-Wunused-variable] int i, j, k; ^ compat.c:16:8: warning: unused variable 'j' [-Wunused-variable] int i, j, k; ^ compat.c:16:5: warning: unused variable 'i' [-Wunused-variable] int i, j, k; ^ compat.c:57:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 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' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~~ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' [-Wbuiltin-declaration-mismatch] extern int strlen(); ^~~~~~ maskgen.c:5:8: warning: type defaults to 'int' in declaration of 'Mask' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ^~~~ maskgen.c:5:16: warning: type defaults to 'int' in declaration of 'Bit' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ^~~ maskgen.c:5:23: warning: type defaults to 'int' in declaration of 'Init' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ^~~~ maskgen.c:5:31: warning: type defaults to 'int' in declaration of 'NO_ERR_MASK' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ^~~~~~~~~~~ maskgen.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int] maskgen(Pattern, D) ^~~~~~~ maskgen.c: In function 'maskgen': maskgen.c:52:22: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(2); ^~~~ maskgen.c:52:22: warning: incompatible implicit declaration of built-in function 'exit' maskgen.c:52:22: note: include '' or provide a declaration of 'exit' maskgen.c:3:1: +#include maskgen.c:52:22: exit(2); ^~~~ maskgen.c:70:22: warning: incompatible implicit declaration of built-in function 'exit' 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' 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' 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' 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 bitap.o bitap.c In file included from bitap.c:14: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~~ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' [-Wbuiltin-declaration-mismatch] extern int strlen(); ^~~~~~ bitap.c:25:1: warning: return type defaults to 'int' [-Wimplicit-int] 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] exit(2); ^~~~ bitap.c:41:11: warning: incompatible implicit declaration of built-in function 'exit' bitap.c:41:11: note: include '' or provide a declaration of 'exit' bitap.c:15:1: +#include bitap.c:41:11: exit(2); ^~~~ bitap.c:43:28: warning: implicit declaration of function 're' [-Wimplicit-function-declaration] 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 return; } ^~~~~~ bitap.c:25:1: note: declared here bitap(old_D_pat, Pattern, fd, M, D) ^~~~~ bitap.c:45:14: warning: implicit declaration of function 're1' [-Wimplicit-function-declaration] else { re1(fd, M, D); ^~~ bitap.c:46:14: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ bitap.c:25:1: note: declared here bitap(old_D_pat, Pattern, fd, M, D) ^~~~~ bitap.c:49:8: warning: implicit declaration of function 'asearch1' [-Wimplicit-function-declaration] { asearch1(old_D_pat, fd, D); return; } ^~~~~~~~ bitap.c:49:36: warning: 'return' with no value, in function returning non-void { asearch1(old_D_pat, fd, D); return; } ^~~~~~ bitap.c:25:1: note: declared here bitap(old_D_pat, Pattern, fd, M, D) ^~~~~ bitap.c:51:8: warning: implicit declaration of function 'asearch' [-Wimplicit-function-declaration] { asearch(old_D_pat, fd, D); return; } ^~~~~~~ bitap.c:51:35: warning: 'return' with no value, in function returning non-void { asearch(old_D_pat, fd, D); return; } ^~~~~~ bitap.c:25:1: note: declared here bitap(old_D_pat, Pattern, fd, M, D) ^~~~~ bitap.c:67:22: warning: implicit declaration of function 'fill_buf'; did you mean 'ilogbf'? [-Wimplicit-function-declaration] while ((num_read = fill_buf(fd, buffer + Max_record, Max_record)) > 0) ^~~~~~~~ ilogbf bitap.c:88:21: warning: array subscript has type 'char' [-Wchar-subscripts] CMask = Mask[c]; ^ bitap.c:98:21: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ bitap.c:25:1: note: declared here bitap(old_D_pat, Pattern, fd, M, D) ^~~~~ bitap.c:101:21: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] output(buffer, lasti, print_end, j); ^~~~~~ bitap.c:110:21: warning: array subscript has type 'char' [-Wchar-subscripts] CMask = Mask[c]; ^ bitap.c:120:21: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ bitap.c:25:1: note: declared here bitap(old_D_pat, Pattern, fd, M, D) ^~~~~ bitap.c:143:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ bitap.c:25:1: note: declared here 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] 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] 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 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] #define new_node(x) malloc(sizeof(*x)) ^~~~~~ utilities.c:19:20: note: in expansion of macro 'new_node' node = (Stack) new_node(node); ^~~~~~~~ re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ utilities.c:19:20: note: in expansion of macro 'new_node' node = (Stack) new_node(node); ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ utilities.c:19:20: note: in expansion of macro 'new_node' node = (Stack) new_node(node); ^~~~~~~~ utilities.c: In function 'Pop': utilities.c:40:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 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' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ utilities.c:86:19: note: in expansion of macro 'new_node' new = (Pset) new_node(new); ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ utilities.c:86:19: note: in expansion of macro 'new_node' new = (Pset) new_node(new); ^~~~~~~~ utilities.c:81:9: warning: unused variable 'occ' [-Wunused-variable] 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' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ utilities.c:108:16: note: in expansion of macro 'new_node' x = (Pset) new_node(x); ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ utilities.c:108:16: note: in expansion of macro 'new_node' x = (Pset) new_node(x); ^~~~~~~~ utilities.c: At top level: utilities.c:118:1: warning: return type defaults to 'int' [-Wimplicit-int] 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 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] #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:42:18: note: in expansion of macro 'new_node' l = (Re_Lit) new_node(l); ^~~~~~~~ re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:42:18: note: in expansion of macro 'new_node' l = (Re_Lit) new_node(l); ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:42:18: note: in expansion of macro 'new_node' l = (Re_Lit) new_node(l); ^~~~~~~~ parse.c: In function 'parse_cset': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:69:25: note: in expansion of macro 'new_node' curr_ptr = (Ch_Set) new_node(curr_ptr); cs_ptr = curr_ptr; ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:69:25: note: in expansion of macro 'new_node' 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' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:103:20: note: in expansion of macro 'new_node' r = (Ch_Range) new_node(r); ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:103:20: note: in expansion of macro 'new_node' 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' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:137:21: note: in expansion of macro 'new_node' rn = (Tok_node) new_node(rn); ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:137:21: note: in expansion of macro 'new_node' rn = (Tok_node) new_node(rn); ^~~~~~~~ parse.c: In function 'cat2': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:192:19: note: in expansion of macro 'new_node' r = (Re_node) new_node(r); ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:192:19: note: in expansion of macro 'new_node' r = (Re_node) new_node(r); ^~~~~~~~ parse.c: In function 'wrap': re.h:67:21: warning: incompatible implicit declaration of built-in function 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:219:19: note: in expansion of macro 'new_node' r = (Re_node) new_node(r); ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:219:19: note: in expansion of macro 'new_node' 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' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:241:22: note: in expansion of macro 'new_node' node = (Re_node) new_node(node); ^~~~~~~~ re.h:67:21: note: include '' or provide a declaration of 'malloc' #define new_node(x) malloc(sizeof(*x)) ^~~~~~ parse.c:241:22: note: in expansion of macro 'new_node' 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' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~~ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' [-Wbuiltin-declaration-mismatch] extern int strlen(); ^~~~~~ preprocess.c:24:1: warning: return type defaults to 'int' [-Wimplicit-int] 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] 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:38:20: note: include '' or provide a declaration of 'malloc' preprocess.c:17:1: +#include preprocess.c:38:20: r_pat = (CHAR *) malloc(strlen(Pattern)+2*strlen(D_pattern)); ^~~~~~ preprocess.c:90:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 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' 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' exit(2); ^~~~ preprocess.c:197:9: note: include '' or provide a declaration of 'exit' preprocess.c:200:16: warning: implicit declaration of function 'init'; did you mean 'rint'? [-Wimplicit-function-declaration] num_pos = init(r_pat, table); ^~~~ rint preprocess.c:203:10: warning: incompatible implicit declaration of built-in function 'exit' 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' 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 return; ^~~~~~ preprocess.c:24:1: note: declared here preprocess(D_pattern, Pattern) /* need two parameters */ ^~~~~~~~~~ preprocess.c:213:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ preprocess.c:24:1: note: declared here preprocess(D_pattern, Pattern) /* need two parameters */ ^~~~~~~~~~ preprocess.c:31:27: warning: unused variable 'OR_AND' [-Wunused-variable] int IN_RANGE=0, EVEN=0, OR_AND=0; ^~~~~~ preprocess.c:31:19: warning: unused variable 'EVEN' [-Wunused-variable] int IN_RANGE=0, EVEN=0, OR_AND=0; ^~~~ preprocess.c:29:29: warning: unused variable 'partitions' [-Wunused-variable] 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 mgrep.o mgrep.c mgrep.c:17:8: warning: type defaults to 'int' in declaration of 'COUNT' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; ^~~~~ mgrep.c:17:15: warning: type defaults to 'int' in declaration of 'FNAME' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; ^~~~~ mgrep.c:17:22: warning: type defaults to 'int' in declaration of 'SILENT' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; ^~~~~~ mgrep.c:17:30: warning: type defaults to 'int' in declaration of 'FILENAMEONLY' [-Wimplicit-int] 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] extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; ^~~~~~~~~~~~~~ mgrep.c:18:8: warning: type defaults to 'int' in declaration of 'INVERSE' [-Wimplicit-int] extern INVERSE; ^~~~~~~ mgrep.c:19:8: warning: type defaults to 'int' in declaration of 'WORDBOUND' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~~~ mgrep.c:19:19: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~~~ mgrep.c:19:30: warning: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~ mgrep.c:21:8: warning: type defaults to 'int' in declaration of 'total_line' [-Wimplicit-int] extern total_line; ^~~~~~~~~~ mgrep.c:40:1: warning: return type defaults to 'int' [-Wimplicit-int] prepf(fp) ^~~~~ mgrep.c: In function 'prepf': mgrep.c:48:23: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while((num_read = read(fp, buf+length, BLOCKSIZE)) > 0) { ^~~~ fread mgrep.c:52:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(2); ^~~~ mgrep.c:52:3: warning: incompatible implicit declaration of built-in function 'exit' mgrep.c:52:3: note: include '' or provide a declaration of 'exit' mgrep.c:5:1: +#include #define MAXPAT 256 mgrep.c:52:3: exit(2); ^~~~ mgrep.c:69:2: warning: incompatible implicit declaration of built-in function 'exit' 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] p = strlen(patt[i]); ^~~~~~ mgrep.c:83:6: warning: incompatible implicit declaration of built-in function 'strlen' mgrep.c:83:6: note: include '' or provide a declaration of 'strlen' mgrep.c:5:1: +#include #define MAXPAT 256 mgrep.c:83:6: p = strlen(patt[i]); ^~~~~~ mgrep.c:83:17: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] p = strlen(patt[i]); ~~~~^~~ 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=] fprintf(stderr, "%s: the pattern file is empty\n"); ~^ mgrep.c:89:2: warning: incompatible implicit declaration of built-in function 'exit' 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'; did you mean 'prepf'? [-Wimplicit-function-declaration] for(i=1; i<= num_pat; i++) f_prep(i, patt[i]); ^~~~~~ prepf mgrep.c:44:39: warning: unused variable 'temp' [-Wunused-variable] unsigned char *pat_ptr=pat_spool, temp[10]; ^~~~ mgrep.c:43:27: warning: unused variable 'pdx' [-Wunused-variable] 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] mgrep(fd) ^~~~~ mgrep.c: In function 'mgrep': mgrep.c:113:29: warning: implicit declaration of function 'countline'; did you mean 'getline'? [-Wimplicit-function-declaration] if(INVERSE && COUNT) countline(text+MAXLINE, num_read); ^~~~~~~~~ getline mgrep.c:118:18: warning: implicit declaration of function 'm_short' [-Wimplicit-function-declaration] if(SHORT) m_short(text, start, end); ^~~~~~~ mgrep.c:119:18: warning: implicit declaration of function 'monkey1' [-Wimplicit-function-declaration] else monkey1(text, start, end); ^~~~~~~ mgrep.c:122:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ mgrep.c:101:1: note: declared here mgrep(fd) ^~~~~ mgrep.c:128:8: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 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] strncpy(text+start, text+end, residue); ~~~~^~~~~~ 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] strncpy(text+start, text+end, residue); ~~~~^~~~ 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 return; ^~~~~~ mgrep.c:101:1: note: declared here mgrep(fd) ^~~~~ mgrep.c:106:42: warning: unused variable 'j' [-Wunused-variable] register int buf_end, num_read, i=0, j, start, end, residue = 0; ^ mgrep.c:106:37: warning: unused variable 'i' [-Wunused-variable] 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] countline(text, len) ^~~~~~~~~ mgrep.c:147:1: warning: return type defaults to 'int' [-Wimplicit-int] monkey1( text, start, end ) ^~~~~~~ mgrep.c: In function 'monkey1': mgrep.c:185:24: warning: 'return' with no value, in function returning non-void if(text > textend) return; ^~~~~~ mgrep.c:147:1: note: declared here monkey1( text, start, end ) ^~~~~~~ mgrep.c:187:47: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY || SILENT) return; ^~~~~~ mgrep.c:147:1: note: declared here monkey1( text, start, end ) ^~~~~~~ mgrep.c: At top level: mgrep.c:235:1: warning: return type defaults to 'int' [-Wimplicit-int] 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 if(text >= textend) return; ^~~~~~ mgrep.c:235:1: note: declared here m_short( text, start, end ) ^~~~~~~ mgrep.c:262:47: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY || SILENT) return; ^~~~~~ mgrep.c:235:1: note: declared here m_short( text, start, end ) ^~~~~~~ mgrep.c:241:31: warning: unused variable 'q' [-Wunused-variable] register struct pat_list *p, *q; ^ mgrep.c:239:19: warning: unused variable 'i' [-Wunused-variable] register unsigned i; ^ mgrep.c: At top level: mgrep.c:295:1: warning: return type defaults to 'int' [-Wimplicit-int] f_prep(pat_index, Pattern) ^~~~~~ mgrep.c: In function 'f_prep': mgrep.c:316:27: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 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] int i, j, m; ^ mgrep.c: In function 'prepf': mgrep.c:98:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ mgrep.c: In function 'countline': mgrep.c:144:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ mgrep.c: In function 'f_prep': mgrep.c:321:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 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] 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 asearch.o asearch.c In file included from asearch.c:2: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~~ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' [-Wbuiltin-declaration-mismatch] extern int strlen(); ^~~~~~ asearch.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int] 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] asearch0(old_D_pat, text, D); ^~~~~~~~ asearch asearch.c:25:10: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ asearch.c:9:1: note: declared here asearch(old_D_pat, text, D) ^~~~~~~ asearch.c:40:15: warning: implicit declaration of function 'fill_buf'; did you mean 'ilogbf'? [-Wimplicit-function-declaration] while ((l = fill_buf(text, buffer + Max_record, Max_record)) > 0) ^~~~~~~~ ilogbf asearch.c:89:26: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ asearch.c:9:1: note: declared here asearch(old_D_pat, text, D) ^~~~~~~ asearch.c:92:26: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] output(buffer, lasti, printout_end, j); ^~~~~~ asearch.c:144:24: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ asearch.c:9:1: note: declared here asearch(old_D_pat, text, D) ^~~~~~~ asearch.c:178:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ asearch.c:9:1: note: declared here asearch(old_D_pat, text, D) ^~~~~~~ asearch.c:18:55: warning: unused variable 'buffer_end' [-Wunused-variable] 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] asearch0(old_D_pat, text, D) ^~~~~~~~ asearch.c: In function 'asearch0': asearch.c:218:37: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] A[0] = (((B[0] >> 1)) & CMask | r1 ) ; ~~~~~~~~~~~~~~^~~~~~~ asearch.c:232:26: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ asearch.c:181:1: note: declared here asearch0(old_D_pat, text, D) ^~~~~~~~ asearch.c:266:24: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ asearch.c:181:1: note: declared here asearch0(old_D_pat, text, D) ^~~~~~~~ asearch.c:297:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ asearch.c:181:1: note: declared here asearch0(old_D_pat, text, D) ^~~~~~~~ asearch.c:187:55: warning: unused variable 'buffer_end' [-Wunused-variable] int D_length, FIRSTROUND, ResidueSize, lasti, l, k, buffer_end, j=0; ^~~~~~~~~~ asearch.c:184:35: warning: unused variable 'r3' [-Wunused-variable] 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 sgrep.o sgrep.c sgrep.c:21:8: warning: type defaults to 'int' in declaration of 'COUNT' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; ^~~~~ sgrep.c:21:15: warning: type defaults to 'int' in declaration of 'FNAME' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; ^~~~~ sgrep.c:21:22: warning: type defaults to 'int' in declaration of 'SILENT' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; ^~~~~~ sgrep.c:21:30: warning: type defaults to 'int' in declaration of 'FILENAMEONLY' [-Wimplicit-int] 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] extern COUNT, FNAME, SILENT, FILENAMEONLY, num_of_matched; ^~~~~~~~~~~~~~ sgrep.c:22:8: warning: type defaults to 'int' in declaration of 'DNA' [-Wimplicit-int] 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] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~~~ sgrep.c:24:19: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~~~ sgrep.c:24:30: warning: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ^~~~~~~ sgrep.c:42:1: warning: return type defaults to 'int' [-Wimplicit-int] char_tr(pat, m) ^~~~~~~ sgrep.c: In function 'char_tr': sgrep.c:58:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(temp, pat, *m); ^~~~~~ sgrep.c:58:3: warning: incompatible implicit declaration of built-in function 'memcpy' sgrep.c:58:3: note: include '' or provide a declaration of 'memcpy' sgrep.c:4:1: +#include #define MAXSYM 256 sgrep.c:58:3: memcpy(temp, pat, *m); ^~~~~~ sgrep.c: At top level: sgrep.c:67:1: warning: return type defaults to 'int' [-Wimplicit-int] sgrep(pat, m, fd, D) ^~~~~ sgrep.c: In function 'sgrep': sgrep.c:82:10: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(2); ^~~~ sgrep.c:82:10: warning: incompatible implicit declaration of built-in function 'exit' sgrep.c:82:10: note: include '' or provide a declaration of 'exit' sgrep.c:4:1: +#include #define MAXSYM 256 sgrep.c:82:10: exit(2); ^~~~ sgrep.c:85:20: warning: implicit declaration of function 'm_preprocess' [-Wimplicit-function-declaration] if(m > LONG_EXAC) m_preprocess(pat); ^~~~~~~~~~~~ sgrep.c:86:7: warning: implicit declaration of function 'prep_bm' [-Wimplicit-function-declaration] else prep_bm(pat, m); ^~~~~~~ sgrep.c:88:19: warning: implicit declaration of function 'prep4' [-Wimplicit-function-declaration] else if (DNA) prep4(pat, m); ^~~~~ sgrep.c:89:28: warning: implicit declaration of function 'am_preprocess' [-Wimplicit-function-declaration] else if(m >= LONG_APPX) am_preprocess(pat); ^~~~~~~~~~~~~ sgrep.c:91:4: warning: implicit declaration of function 'prep'; did you mean 'sgrep'? [-Wimplicit-function-declaration] prep(pat, m, D); ^~~~ sgrep sgrep.c:92:4: warning: implicit declaration of function 'initmask' [-Wimplicit-function-declaration] initmask(pat, Mask, m, 0, &endposition); ^~~~~~~~ sgrep.c:96:24: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while( (num_read = read(fd, text+offset, BLOCKSIZE)) > 0) ^~~~ fread sgrep.c:103:21: warning: implicit declaration of function 'monkey' [-Wimplicit-function-declaration] if(m > LONG_EXAC) monkey(pat, m, text+start, text+end); ^~~~~~ sgrep.c:104:8: warning: implicit declaration of function 'bm' [-Wimplicit-function-declaration] else bm(pat, m, text+start, text+end); ^~ sgrep.c:107:11: warning: implicit declaration of function 'monkey4' [-Wimplicit-function-declaration] if(DNA) monkey4( pat, m, text+start, text+end, D ); ^~~~~~~ sgrep.c:109:24: warning: implicit declaration of function 'a_monkey' [-Wimplicit-function-declaration] 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] else agrep(pat, m, text+start, text+end, D); ^~~~~ sgrep sgrep.c:115:13: warning: 'return' with no value, in function returning non-void return; } ^~~~~~ sgrep.c:67:1: note: declared here sgrep(pat, m, fd, D) ^~~~~ sgrep.c:120:8: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 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] strncpy(text+start, text+end, residue); ~~~~^~~~~~ 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] strncpy(text+start, text+end, residue); ~~~~^~~~ 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 return; ^~~~~~ sgrep.c:67:1: note: declared here sgrep(pat, m, fd, D) ^~~~~ sgrep.c: At top level: sgrep.c:129:1: warning: return type defaults to 'int' [-Wimplicit-int] bm(pat, m, text, textend) ^~ sgrep.c: In function 'bm': sgrep.c:156:23: warning: 'return' with no value, in function returning non-void if(text > textend) return; ^~~~~~ sgrep.c:129:1: note: declared here bm(pat, m, text, textend) ^~ sgrep.c:162:21: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY) return; ^~~~~~ sgrep.c:129:1: note: declared here bm(pat, m, text, textend) ^~ sgrep.c:175:1: warning: 'return' with no value, in function returning non-void return; ^~~~~~ sgrep.c:129:1: note: declared here bm(pat, m, text, textend) ^~ sgrep.c: At top level: sgrep.c:182:1: warning: return type defaults to 'int' [-Wimplicit-int] initmask(pattern, Mask, m, D, endposition) ^~~~~~~~ sgrep.c:205:1: warning: return type defaults to 'int' [-Wimplicit-int] prep(Pattern, M, D) /* preprocessing for partitioning_bm */ ^~~~ sgrep.c:253:1: warning: return type defaults to 'int' [-Wimplicit-int] 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 if(FILENAMEONLY) { return; } ^~~~~~ sgrep.c:253:1: note: declared here agrep( pat, M, text, textend, D ) ^~~~~ sgrep.c:330:40: warning: implicit declaration of function 's_output' [-Wimplicit-function-declaration] s_output(text, ¤tpos); ^~~~~~~~ sgrep.c:346:56: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY) { return; } ^~~~~~ sgrep.c:253:1: note: declared here agrep( pat, M, text, textend, D ) ^~~~~ sgrep.c:357:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ sgrep.c:253:1: note: declared here agrep( pat, M, text, textend, D ) ^~~~~ sgrep.c:260:16: warning: unused variable 'm1' [-Wunused-variable] int j=0, k, m1, d1; ^~ sgrep.c: At top level: sgrep.c:360:1: warning: return type defaults to 'int' [-Wimplicit-int] s_output (text, i) ^~~~~~~~ sgrep.c: In function 's_output': sgrep.c:364:20: warning: 'return' with no value, in function returning non-void if(SILENT) return; ^~~~~~ sgrep.c:360:1: note: declared here s_output (text, i) ^~~~~~~~ sgrep.c:367:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ sgrep.c:360:1: note: declared here s_output (text, i) ^~~~~~~~ sgrep.c:363:5: warning: unused variable 'kk' [-Wunused-variable] int kk, bp; ^~ sgrep.c: At top level: sgrep.c:378:1: warning: return type defaults to 'int' [-Wimplicit-int] 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] register m; ^ sgrep.c:382:8: warning: unused variable 'j' [-Wunused-variable] int i, j; ^ sgrep.c: At top level: sgrep.c:407:1: warning: return type defaults to 'int' [-Wimplicit-int] 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] 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 if(text > textend) return; ^~~~~~ sgrep.c:407:1: note: declared here a_monkey( pat, m, text, textend, D ) ^~~~~~~~ sgrep.c:431:22: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY) return; ^~~~~~ sgrep.c:407:1: note: declared here a_monkey( pat, m, text, textend, D ) ^~~~~~~~ sgrep.c:412:27: warning: unused variable 'j' [-Wunused-variable] register int m1 = m-1-D, j, pos; ^ sgrep.c:411:25: warning: unused variable 'i' [-Wunused-variable] register unsigned hash, i, hashmask, suffix_error; ^ sgrep.c: At top level: sgrep.c:454:1: warning: return type defaults to 'int' [-Wimplicit-int] monkey( pat, m, text, textend ) ^~~~~~ sgrep.c: In function 'monkey': sgrep.c:478:23: warning: 'return' with no value, in function returning non-void if(text >= textend) return; ^~~~~~ sgrep.c:454:1: note: declared here monkey( pat, m, text, textend ) ^~~~~~ sgrep.c:480:35: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY) return; ^~~~~~ sgrep.c:454:1: note: declared here monkey( pat, m, text, textend ) ^~~~~~ sgrep.c:457:25: warning: unused variable 'i' [-Wunused-variable] register unsigned hash, i; ^ sgrep.c: At top level: sgrep.c:497:1: warning: return type defaults to 'int' [-Wimplicit-int] am_preprocess(Pattern) ^~~~~~~~~~~~~ sgrep.c: In function 'am_preprocess': sgrep.c:502:6: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 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] m = strlen(Pattern); ^~~~~~~ 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] unsigned hash; ^~~~ sgrep.c:500:8: warning: unused variable 'j' [-Wunused-variable] int i, j, m; ^ sgrep.c: At top level: sgrep.c:514:1: warning: return type defaults to 'int' [-Wimplicit-int] verify(m, n, D, pat, text) ^~~~~~ sgrep.c: In function 'verify': sgrep.c:539:42: warning: operation on 'last' may be undefined [-Wsequence-point] if(A[last] < D) A[last+1] = A[last++]+1; ~~~~^~ sgrep.c:556:42: warning: operation on 'last' may be undefined [-Wsequence-point] 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] m_preprocess(Pattern) ^~~~~~~~~~~~ sgrep.c: In function 'm_preprocess': sgrep.c:574:6: warning: incompatible implicit declaration of built-in function 'strlen' 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] m = strlen(Pattern); ^~~~~~~ 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] 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 if(text > textend) return; ^~~~~~ sgrep.c:598:1: note: declared here monkey4( pat, m, text, textend, D ) ^~~~~~~ sgrep.c:623:22: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY) return; ^~~~~~ sgrep.c:598:1: note: declared here monkey4( pat, m, text, textend, D ) ^~~~~~~ sgrep.c:603:24: warning: unused variable 'j' [-Wunused-variable] register int m1=m-1-D, j, pos; ^ sgrep.c:602:25: warning: unused variable 'i' [-Wunused-variable] register unsigned hash, i, hashmask, suffix_error; ^ sgrep.c: At top level: sgrep.c:642:1: warning: return type defaults to 'int' [-Wimplicit-int] prep4(Pattern, m) ^~~~~ sgrep.c: In function 'prep4': sgrep.c:650:15: warning: operation on 'char_map[103]' may be undefined [-Wsequence-point] char_map['g'] = char_map['g'] = 1; ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ sgrep.c:651:15: warning: operation on 'char_map[116]' may be undefined [-Wsequence-point] char_map['t'] = char_map['t'] = 2; ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ sgrep.c:652:15: warning: operation on 'char_map[99]' may be undefined [-Wsequence-point] char_map['c'] = char_map['c'] = 3; ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ sgrep.c:653:15: warning: operation on 'char_map[110]' may be undefined [-Wsequence-point] char_map['n'] = char_map['n'] = 5; ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ sgrep.c:655:10: warning: implicit declaration of function 'blog' [-Wimplicit-function-declaration] BSize = blog(4, m); ^~~~ sgrep.c:657:22: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 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:39: warning: array subscript has type 'char' [-Wchar-subscripts] 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] blog(base, m ) ^~~~ sgrep.c: In function 'char_tr': sgrep.c:65:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ sgrep.c: In function 'initmask': sgrep.c:203:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ sgrep.c: In function 'prep': sgrep.c:250:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ sgrep.c: In function 'prep_bm': sgrep.c:402:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ sgrep.c: In function 'am_preprocess': sgrep.c:511:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ sgrep.c: In function 'm_preprocess': sgrep.c:592:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ sgrep.c: In function 'prep4': sgrep.c:673:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 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] 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' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~~ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' [-Wbuiltin-declaration-mismatch] extern unsigned char *strcpy(), *strncpy(), *strcat(); ^~~~~~ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' [-Wbuiltin-declaration-mismatch] extern int strlen(); ^~~~~~ main.c:36:1: warning: return type defaults to 'int' [-Wimplicit-int] initial_value() ^~~~~~~~~~~~~ main.c:54:1: warning: return type defaults to 'int' [-Wimplicit-int] 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] k = exponen(M); ^~~~~~~ popen main.c:86:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:54:1: note: declared here compute_next(M, Next, Next1) ^~~~~~~~~~~~ main.c:110:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:54:1: note: declared here compute_next(M, Next, Next1) ^~~~~~~~~~~~ main.c: At top level: main.c:113:1: warning: return type defaults to 'int' [-Wimplicit-int] exponen(m) ^~~~~~~ main.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int] re1(Text, M, D) ^~~ main.c: In function 're1': main.c:136:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(2); ^~~~ main.c:136:6: warning: incompatible implicit declaration of built-in function 'exit' main.c:136:6: note: include '' or provide a declaration of 'exit' main.c:4:1: +#include main.c:136:6: exit(2); ^~~~ main.c:154:24: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while ((num_read = read(Text, buffer + Maxline, BlockSize)) > 0) ^~~~ fread main.c:184:27: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:121:1: note: declared here re1(Text, M, D) ^~~ main.c:186:20: warning: implicit declaration of function 'r_output' [-Wimplicit-function-declaration] r_output(buffer, i-1, end, j); ^~~~~~~~ main.c:189:50: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] r2 = (Next[r3>>hh] | Next1[r3&LL]) & CMask | Init0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ main.c:210:27: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:121:1: note: declared here re1(Text, M, D) ^~~ main.c:221:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:121:1: note: declared here re1(Text, M, D) ^~~ main.c:297:27: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:121:1: note: declared here re1(Text, M, D) ^~~ main.c:375:27: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:121:1: note: declared here re1(Text, M, D) ^~~ main.c:393:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:121:1: note: declared here re1(Text, M, D) ^~~ main.c: At top level: main.c:396:1: warning: return type defaults to 'int' [-Wimplicit-int] re(Text, M, D) ^~ main.c: In function 're': main.c:443:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] r2 = Next[r3] & CMask | r1; ~~~~~~~~~^~~~~~~ main.c:450:27: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:396:1: note: declared here re(Text, M, D) ^~ main.c:467:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] r3 = Next[r2] & CMask | r1; ~~~~~~~~~^~~~~~~ main.c:473:27: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:396:1: note: declared here re(Text, M, D) ^~ main.c:488:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:396:1: note: declared here re(Text, M, D) ^~ main.c:536:27: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:396:1: note: declared here re(Text, M, D) ^~ main.c:577:27: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:396:1: note: declared here re(Text, M, D) ^~ main.c:594:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:396:1: note: declared here re(Text, M, D) ^~ main.c:403:22: warning: unused variable 'bp' [-Wunused-variable] 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] 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 if(i >= end) return; ^~~~~~ main.c:598:1: note: declared here r_output (buffer, i, end, j) ^~~~~~~~ main.c:605:18: warning: 'return' with no value, in function returning non-void if(COUNT) return; ^~~~~~ main.c:598:1: note: declared here r_output (buffer, i, end, j) ^~~~~~~~ main.c: At top level: main.c:615:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main.c: In function 'main': main.c:625:17: warning: implicit declaration of function 'usage' [-Wimplicit-function-declaration] if (argc < 2) usage(); ^~~~~ main.c:639:4: warning: incompatible implicit declaration of built-in function 'exit' 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' 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' 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] if((fp = open(argv[0], 0)) < 0) { ^~~~ popen main.c:681:4: warning: incompatible implicit declaration of built-in function 'exit' 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' 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' exit(2); ^~~~ main.c:714:4: note: include '' or provide a declaration of 'exit' main.c:719:23: warning: implicit declaration of function 'atoi'; did you mean 'atan'? [-Wimplicit-function-declaration] case 'I' : I = atoi(argv[0]+2); /* Insertion Cost */ ^~~~ atan main.c:736:23: warning: incompatible implicit declaration of built-in function 'exit' 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] 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' 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'; did you mean 'flockfile'? [-Wimplicit-function-declaration] if ((filetype = check_file(*argv)) == NOSUCHFILE) { ^~~~~~~~~~ flockfile main.c:779:45: warning: incompatible implicit declaration of built-in function 'malloc' 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' 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] checksg(Pattern, D); /* check if the pattern is simple */ ^~~~~~~ main.c:790:7: warning: implicit declaration of function 'preprocess' [-Wimplicit-function-declaration] preprocess(D_pattern, Pattern); ^~~~~~~~~~ main.c:792:11: warning: implicit declaration of function 'maskgen' [-Wimplicit-function-declaration] M = maskgen(Pattern, D); ^~~~~~~ main.c:795:18: warning: implicit declaration of function 'prepf'; did you mean 'dremf'? [-Wimplicit-function-declaration] if (PAT_FILE) prepf(fp); ^~~~~ dremf main.c:799:3: warning: implicit declaration of function 'compat'; did you mean 'Compl'? [-Wimplicit-function-declaration] compat(); /* check compatibility between options */ ^~~~~~ Compl main.c:803:8: warning: incompatible implicit declaration of built-in function 'exit' 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] if(PAT_FILE) mgrep(fd); ^~~~~ main.c:807:16: warning: implicit declaration of function 'sgrep' [-Wimplicit-function-declaration] if(SGREP) sgrep(OldPattern, strlen(OldPattern), fd, D); ^~~~~ main.c:808:15: warning: implicit declaration of function 'bitap' [-Wimplicit-function-declaration] 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] 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] file_out(CurrentFileName); ^~~~~~~~ fileno main.c:895:14: warning: incompatible implicit declaration of built-in function 'exit' 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' exit(0); ^~~~ main.c:896:2: note: include '' or provide a declaration of 'exit' main.c:621:54: warning: unused variable 'temp' [-Wunused-variable] unsigned char Pattern[MAXPAT], OldPattern[MAXPAT], temp[MAXPAT]; ^~~~ main.c:618:29: warning: unused variable 'j' [-Wunused-variable] int N, M, D=0, fp, fd, i, j; ^ main.c:618:7: warning: unused variable 'N' [-Wunused-variable] 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] 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] write(1, buf, num_read); ^~~~~ fwrite main.c: At top level: main.c:924:1: warning: return type defaults to 'int' [-Wimplicit-int] usage() ^~~~~ main.c: In function 'usage': main.c:942:6: warning: incompatible implicit declaration of built-in function 'exit' 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] checksg(Pattern, D) ^~~~~~~ main.c: In function 'checksg': main.c:953:7: warning: incompatible implicit declaration of built-in function 'exit' 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 if (SIMPLEPATTERN == OFF) return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:983:21: warning: 'return' with no value, in function returning non-void if (NOUPPER && D) return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:984:19: warning: 'return' with no value, in function returning non-void if (JUMP == ON) return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:985:15: warning: 'return' with no value, in function returning non-void if (I == 0) return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:986:16: warning: 'return' with no value, in function returning non-void if (LINENUM) return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:987:18: warning: 'return' with no value, in function returning non-void if (DELIMITER) return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:988:16: warning: 'return' with no value, in function returning non-void if (INVERSE) return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:989:27: warning: 'return' with no value, in function returning non-void if (WORDBOUND && D > 0) return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:990:27: warning: 'return' with no value, in function returning non-void if (WHOLELINE && D > 0) return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:991:15: warning: 'return' with no value, in function returning non-void if (SILENT) return; /* REMINDER: to be removed */ ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c:999:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:945:1: note: declared here checksg(Pattern, D) ^~~~~~~ main.c: At top level: main.c:1002:1: warning: return type defaults to 'int' [-Wimplicit-int] output (buffer, i1, i2, j) ^~~~~~ main.c: In function 'output': main.c:1006:14: warning: 'return' with no value, in function returning non-void if(i1 > i2) return; ^~~~~~ main.c:1002:1: note: declared here output (buffer, i1, i2, j) ^~~~~~ main.c:1008:20: warning: 'return' with no value, in function returning non-void if(COUNT) return; ^~~~~~ main.c:1002:1: note: declared here output (buffer, i1, i2, j) ^~~~~~ main.c:1009:20: warning: 'return' with no value, in function returning non-void if(SILENT) return; ^~~~~~ main.c:1002:1: note: declared here 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] } ^ main.c: In function 'main': main.c:872:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&c); ^~~~~~~~~~~~~~ main.c: In function 'file_out': main.c:921:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ main.c: In function 'main': main.c:795:18: warning: 'fp' may be used uninitialized in this function [-Wmaybe-uninitialized] 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.12930 + 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.12930 + 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.PmTKEn 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.VaMyYR find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks) 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.q1FZkO 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.bXdMTQ find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.JFH6Je 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 4.21user 0.53system 0:09.27elapsed 51%CPU (0avgtext+0avgdata 31788maxresident)k 0inputs+0outputs (0major+200821minor)pagefaults 0swaps 5.39user 2.37system 0:13.08elapsed 59%CPU (0avgtext+0avgdata 31788maxresident)k 0inputs+0outputs (0major+378162minor)pagefaults 0swaps