<86>Apr 14 00:41:35 userdel[111819]: delete user 'rooter' <86>Apr 14 00:41:35 userdel[111819]: removed group 'rooter' owned by 'rooter' <86>Apr 14 00:41:35 userdel[111819]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 14 00:41:35 groupadd[111832]: group added to /etc/group: name=rooter, GID=639 <86>Apr 14 00:41:35 groupadd[111832]: group added to /etc/gshadow: name=rooter <86>Apr 14 00:41:35 groupadd[111832]: new group: name=rooter, GID=639 <86>Apr 14 00:41:35 useradd[111843]: new user: name=rooter, UID=639, GID=639, home=/root, shell=/bin/bash <86>Apr 14 00:41:35 userdel[111859]: delete user 'builder' <86>Apr 14 00:41:35 userdel[111859]: removed group 'builder' owned by 'builder' <86>Apr 14 00:41:35 groupadd[111871]: group added to /etc/group: name=builder, GID=640 <86>Apr 14 00:41:35 groupadd[111871]: group added to /etc/gshadow: name=builder <86>Apr 14 00:41:35 groupadd[111871]: new group: name=builder, GID=640 <86>Apr 14 00:41:35 useradd[111891]: new user: name=builder, UID=640, GID=640, home=/usr/src, shell=/bin/bash Installing agrep-2.04-alt1.qa1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.56573 + 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.53210 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd agrep-2.04 + '[' -n '' ']' + NPROCS=8 + make -j8 'CFLAGS=-pipe -Wall -g -O2' make: Entering directory `/usr/src/RPM/BUILD/agrep-2.04' cc -pipe -Wall -g -O2 -c -o asearch.o asearch.c cc -pipe -Wall -g -O2 -c -o asearch1.o asearch1.c cc -pipe -Wall -g -O2 -c -o bitap.o bitap.c cc -pipe -Wall -g -O2 -c -o checkfile.o checkfile.c cc -pipe -Wall -g -O2 -c -o compat.o compat.c cc -pipe -Wall -g -O2 -c -o follow.o follow.c cc -pipe -Wall -g -O2 -c -o main.o main.c cc -pipe -Wall -g -O2 -c -o maskgen.o maskgen.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: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] } ^ In file included from bitap.c:14:0: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' 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: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: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: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: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:67:22: warning: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] while ((num_read = fill_buf(fd, buffer + Max_record, Max_record)) > 0) ^ 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: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:143:3: warning: 'return' with no value, in function returning non-void return; ^ bitap.c: At top level: checkfile.c: In function 'check_file': bitap.c:146:1: warning: return type defaults to 'int' [-Wimplicit-int] fill_buf(fd, buf, record_size) ^ checkfile.c:39:5: warning: unused variable 'ftype' [-Wunused-variable] int ftype; ^ bitap.c: In function 'fill_buf': bitap.c:152:14: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] num_read = read(fd, buf+total_read, 4096); ^ checkfile.c:69:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from asearch1.c:2:0: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' 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' [-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Max_record, Max_record)) > 0) ^ 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: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:129:3: warning: 'return' with no value, in function returning non-void return; ^ 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; ^ cc -pipe -Wall -g -O2 -c -o parse.o parse.c follow.c:9:13: warning: conflicting types for built-in function 'strlen' extern int strlen(); ^ follow.c:13:14: warning: conflicting types for built-in function 'malloc' extern char *malloc(); ^ cc -pipe -Wall -g -O2 -c -o preprocess.o preprocess.c In file included from asearch.c:2:0: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' 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' [-Wimplicit-function-declaration] asearch0(old_D_pat, text, D); ^ asearch.c:25:10: warning: 'return' with no value, in function returning non-void return; } ^ asearch.c:40:15: warning: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] while ((l = fill_buf(text, buffer + Max_record, Max_record)) > 0) ^ asearch.c:89:26: warning: 'return' with no value, in function returning non-void return; } ^ 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:178:3: warning: 'return' with no value, in function returning non-void return; ^ 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:266:24: warning: 'return' with no value, in function returning non-void return; } ^ asearch.c:297:3: warning: 'return' with no value, in function returning non-void return; ^ 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; ^ In file included from maskgen.c:2:0: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' 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: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' In file included from parse.c:6:0: 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); ^ In file included from main.c:2:0: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' 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' [-Wimplicit-function-declaration] k = exponen(M); ^ main.c:86:5: warning: 'return' with no value, in function returning non-void return; ^ main.c:110:3: warning: 'return' with no value, in function returning non-void return; ^ 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:154:24: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] while ((num_read = read(Text, buffer + Maxline, BlockSize)) > 0) ^ main.c:184:27: warning: 'return' with no value, in function returning non-void return; ^ 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:221:3: warning: 'return' with no value, in function returning non-void return; ^ main.c:297:27: warning: 'return' with no value, in function returning non-void return; ^ main.c:375:27: warning: 'return' with no value, in function returning non-void return; ^ main.c:393:3: warning: 'return' with no value, in function returning non-void return; ^ 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: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:488:3: warning: 'return' with no value, in function returning non-void return; ^ main.c:536:27: warning: 'return' with no value, in function returning non-void return; ^ main.c:577:27: warning: 'return' with no value, in function returning non-void return; ^ main.c:594:3: warning: 'return' with no value, in function returning non-void return; ^ 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:605:18: warning: 'return' with no value, in function returning non-void if(COUNT) return; ^ 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' [-Wimplicit-function-declaration] if((fp = open(argv[0], 0)) < 0) { ^ 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' [-Wimplicit-function-declaration] case 'I' : I = atoi(argv[0]+2); /* Insertion Cost */ ^ 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' [-Wimplicit-function-declaration] if ((filetype = check_file(*argv)) == NOSUCHFILE) { ^ 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' [-Wimplicit-function-declaration] if (PAT_FILE) prepf(fp); ^ main.c:799:3: warning: implicit declaration of function 'compat' [-Wimplicit-function-declaration] compat(); /* check compatibility between options */ ^ 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' [-Wimplicit-function-declaration] for (i = 0; i < Numfiles; i++, close(fd), num_of_matched = 0) { ^ main.c:839:4: warning: implicit declaration of function 'file_out' [-Wimplicit-function-declaration] file_out(CurrentFileName); ^ 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' [-Wimplicit-function-declaration] write(1, buf, num_read); ^ 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:983:21: warning: 'return' with no value, in function returning non-void if (NOUPPER && D) return; ^ main.c:984:19: warning: 'return' with no value, in function returning non-void if (JUMP == ON) return; ^ main.c:985:15: warning: 'return' with no value, in function returning non-void if (I == 0) return; ^ main.c:986:16: warning: 'return' with no value, in function returning non-void if (LINENUM) return; ^ main.c:987:18: warning: 'return' with no value, in function returning non-void if (DELIMITER) return; ^ main.c:988:16: warning: 'return' with no value, in function returning non-void if (INVERSE) return; ^ main.c:989:27: warning: 'return' with no value, in function returning non-void if (WORDBOUND && D > 0) return; ^ main.c:990:27: warning: 'return' with no value, in function returning non-void if (WHOLELINE && D > 0) return; ^ main.c:991:15: warning: 'return' with no value, in function returning non-void if (SILENT) return; /* REMINDER: to be removed */ ^ main.c:999:3: warning: 'return' with no value, in function returning non-void return; ^ 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:1008:20: warning: 'return' with no value, in function returning non-void if(COUNT) return; ^ main.c:1009:20: warning: 'return' with no value, in function returning non-void if(SILENT) return; ^ main.c: In function 'initial_value': main.c:52:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from preprocess.c:16:0: agrep.h:6:23: warning: conflicting types for built-in function 'strcpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:34: warning: conflicting types for built-in function 'strncpy' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:6:46: warning: conflicting types for built-in function 'strcat' extern unsigned char *strcpy(), *strncpy(), *strcat(); ^ agrep.h:7:12: warning: conflicting types for built-in function 'strlen' 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:90:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(2); ^ main.c: In function 'main': 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' main.c:872:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&c); ^ 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' [-Wimplicit-function-declaration] num_pos = init(r_pat, table); ^ 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:213:3: warning: 'return' with no value, in function returning non-void return; ^ 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; ^ main.c: In function 'file_out': main.c:921:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cc -pipe -Wall -g -O2 -c -o sgrep.o sgrep.c cc -pipe -Wall -g -O2 -c -o mgrep.o mgrep.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: 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: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' [-Wimplicit-function-declaration] prep(pat, m, D); ^ 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' [-Wimplicit-function-declaration] while( (num_read = read(fd, text+offset, BLOCKSIZE)) > 0) ^ 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' [-Wimplicit-function-declaration] else agrep(pat, m, text+start, text+end, D); ^ sgrep.c:115:13: warning: 'return' with no value, in function returning non-void return; } ^ 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:16: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(text+start, text+end, residue); ^ sgrep.c:120:16: note: expected 'char *' but argument is of type 'unsigned char *' sgrep.c:120:28: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(text+start, text+end, residue); ^ sgrep.c:120:28: 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: 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:162:21: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY) return; ^ sgrep.c:175:1: warning: 'return' with no value, in function returning non-void return; ^ 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: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:357:3: warning: 'return' with no value, in function returning non-void return; ^ 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:367:3: warning: 'return' with no value, in function returning non-void return; ^ 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:431:22: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY) return; ^ 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:480:35: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY) return; ^ 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:623:22: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY) return; ^ 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] } ^ 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' [-Wimplicit-function-declaration] while((num_read = read(fp, buf+length, BLOCKSIZE)) > 0) { ^ 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: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:83:13: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] p = strlen(patt[i]); ^ mgrep.c:83:13: note: expected 'const char *' but argument is of type 'unsigned char *' mgrep.c:88:18: 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' [-Wimplicit-function-declaration] for(i=1; i<= num_pat; i++) f_prep(i, patt[i]); ^ 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' [-Wimplicit-function-declaration] if(INVERSE && COUNT) countline(text+MAXLINE, num_read); ^ 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: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:16: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(text+start, text+end, residue); ^ mgrep.c:128:16: note: expected 'char *' but argument is of type 'unsigned char *' mgrep.c:128:28: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(text+start, text+end, residue); ^ mgrep.c:128:28: 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: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:187:47: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY || SILENT) return; ^ mgrep.c: At top level: mgrep.c:235:1: warning: return type defaults to 'int' [-Wimplicit-int] m_short( text, start, end ) ^ cc -pipe -Wall -g -O2 -c -o utilities.o utilities.c 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:262:47: warning: 'return' with no value, in function returning non-void if(FILENAMEONLY || SILENT) return; ^ 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] } ^ In file included from utilities.c:5:0: 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:0: 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:0: 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) ^ 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); ^ cc -pipe -Wall -g -O2 -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.53210 + 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) 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) Hardlinking identical .pyc and .pyo files Processing files: agrep-2.04-alt1.qa1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.51612 + 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.qSW6hT find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.NMvIt3 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks) Requires: /lib64/ld-linux-x86-64.so.2, libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.7)(64bit), rtld(GNU_HASH) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.SNWxzg Creating agrep-debuginfo package Processing files: agrep-debuginfo-2.04-alt1.qa1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Po26Dw find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.APxKxP find-requires: running scripts (debuginfo) Requires: agrep = 2.04-alt1.qa1, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libc.so.6) Wrote: /usr/src/RPM/RPMS/x86_64/agrep-2.04-alt1.qa1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/agrep-debuginfo-2.04-alt1.qa1.x86_64.rpm 3.24user 1.07system 0:07.27elapsed 59%CPU (0avgtext+0avgdata 34840maxresident)k 0inputs+0outputs (0major+188257minor)pagefaults 0swaps 4.98user 4.08system 0:11.76elapsed 77%CPU (0avgtext+0avgdata 34840maxresident)k 0inputs+0outputs (0major+334513minor)pagefaults 0swaps --- agrep-2.04-alt1.qa1.x86_64.rpm.repo 2013-04-15 02:06:30.000000000 +0000 +++ agrep-2.04-alt1.qa1.x86_64.rpm.hasher 2019-04-14 00:41:45.016955587 +0000 @@ -8,3 +8,3 @@ /usr/share/doc/agrep-2.04/contribution.list 100644 -/usr/share/man/man1/agrep.1.gz 100644 +/usr/share/man/man1/agrep.1.xz 100644 Requires: /lib64/ld-linux-x86-64.so.2