=> Building agrep:standard (version 3.41.5) Started : Sunday,13 AUG 2023 at 08:57:13 UTC Platform: 6.4-RAVEN DragonFly 6.4-RAVEN #0 Sat Jul 29 09:00:00 CDT 2017 root@octavia.unreal.systems:/usr/obj/usr/src/sys/GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- PATH=/bin:/usr/bin:/raven/toolchain/ravensys-gcc/bin:/raven/toolchain/bin:/raven/sbin:/raven/bin RAVENSW_CACHEDIR=/var/cache/pkg8 RAVENSW_DBDIR=/var/db/pkg8 SSL_VARIANT=libressl RAVENADM=building XML_CATALOG_FILES=/raven/share/xml/catalog SGML_CATALOG_FILES=/raven/share/sgml/docbook/catalog HOME=/root USER=root SHELL=/bin/sh TERM=dumb LANG=C -------------------------------------------------- -- Options -------------------------------------------------- This port has no build options. -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- MAKE=gmake ADA_PROJECT_PATH="/raven/share/gpr" F77="gfortran" FC="gfortran" CCACHE_DIR="/ccache" PATH=/usr/libexec:/bin:/usr/bin:/raven/toolchain/ravensys-gcc/bin:/raven/toolchain/bin:/raven/sbin:/raven/bin -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" PREFIX=/raven LOCALBASE=/raven OPSYS="DragonFly" CC="cc" CFLAGS="-pipe -O2 -I/raven/include" CPP="cpp" CPPFLAGS="-I/raven/include" LDFLAGS="" LIBS="" CXX="c++" CXXFLAGS="-pipe -O2 -I/raven/include" STD_DOCDIR="/raven/share/doc/agrep" STD_EXAMPLESDIR="/raven/share/examples/agrep" MANPREFIX="/raven/share" ADA_PROJECT_PATH="/raven/share/gpr" F77="gfortran" FC="gfortran" CCACHE_DIR="/ccache" PATH=/usr/libexec:/bin:/usr/bin:/raven/toolchain/ravensys-gcc/bin:/raven/toolchain/bin:/raven/sbin:/raven/bin -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- DESTDIR=/construction/agrep/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- OPSYS=DragonFly ONLY-DRAGONFLY="" ASLIB="lib" EXCLUDE-DARWIN="" LIBEXT="so" SHARED_OBJECT="so" ONLY-FREEBSD="@comment " ONLY-NETBSD="@comment " ONLY-LINUX="@comment " ONLY-SUNOS="@comment " ONLY-DARWIN="@comment " ONLY-MIDNIGHTBSD="@comment " -------------------------------------------------- -- SUB_LIST -------------------------------------------------- LOCALBASE=/raven PREFIX=/raven ETCDIR=/raven/etc/agrep -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- RAVENPROFILE=release64 RAVENBASE=/raven WRKDIRPREFIX=/construction DISTDIR=/distfiles NUMBER_CPUS=24 MAKE_JOBS_NUMBER_LIMIT=10 BUILD_WITH_CCACHE=yes CCACHE_DIR=/ccache -------------------------------------------------------------------------------- -- Phase: dependencies -------------------------------------------------------------------------------- ===> Installing gmake-primary-standard package Installing gmake-primary-standard-4.4... `-- Installing indexinfo-single-standard-0.3.1... | `-- Installing zlib-primary-standard-1.2.13_2... | `-- Extracting zlib-primary-standard-1.2.13_2: .... done `-- Extracting indexinfo-single-standard-0.3.1: ... done Extracting gmake-primary-standard-4.4: ........ done -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> Fetching for agrep-standard -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> Fetching for agrep-standard ===> Extracting for agrep-standard => SHA256 Checksum OK for Wikinaut-agrep-7b7f350.tar.gz. ===> Creating package metadata (single) -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for agrep-standard ===> Applying common patches for agrep-standard -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for agrep-standard -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for agrep-standard ==> Set environment: BSD_INSTALL_PROGRAM=install -s -m 555 BSD_INSTALL_LIB=install -s -m 444 BSD_INSTALL_SCRIPT=install -m 555 BSD_INSTALL_DATA=install -m 0644 BSD_INSTALL_MAN=install -m 444 PREFIX=/raven LOCALBASE=/raven OPSYS=DragonFly CC=cc CFLAGS=-pipe -O2 -I/raven/include CPP=cpp CPPFLAGS=-I/raven/include LDFLAGS= LIBS= CXX=c++ CXXFLAGS=-pipe -O2 -I/raven/include STD_DOCDIR=/raven/share/doc/agrep STD_EXAMPLESDIR=/raven/share/examples/agrep MANPREFIX=/raven/share ==> cd /construction/agrep/agrep-7b7f350; gmake -f Makefile -j10 agrep gmake[1]: Entering directory '/construction/agrep/agrep-7b7f350' gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o follow.o follow.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o asearch.o asearch.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o asearch1.o asearch1.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o agrep.o agrep.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o bitap.o bitap.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o checkfil.o checkfil.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o compat.o compat.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o dummyfil.o dummyfil.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o main.o main.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o maskgen.o maskgen.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o parse.o parse.c main.c: In function 'main': main.c:79:15: warning: implicit declaration of function 'fileagrep' [-Wimplicit-function-declaration] 79 | ret = fileagrep(argc, argv, 0, stdout); | ^~~~~~~~~ gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o checksg.o checksg.c compat.c:11:8: warning: type defaults to 'int' in declaration of 'FILEOUT' [-Wimplicit-int] 11 | extern FILEOUT; | ^~~~~~~ compat.c:12:8: warning: type defaults to 'int' in declaration of 'REGEX' [-Wimplicit-int] 12 | extern REGEX; | ^~~~~ compat.c:13:8: warning: type defaults to 'int' in declaration of 'DELIMITER' [-Wimplicit-int] 13 | extern DELIMITER; | ^~~~~~~~~ compat.c:14:8: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] 14 | extern WHOLELINE; | ^~~~~~~~~ compat.c:15:8: warning: type defaults to 'int' in declaration of 'LINENUM' [-Wimplicit-int] 15 | extern LINENUM; | ^~~~~~~ compat.c:16:8: warning: type defaults to 'int' in declaration of 'I' [-Wimplicit-int] 16 | extern I, S, DD; | ^ compat.c:16:11: warning: type defaults to 'int' in declaration of 'S' [-Wimplicit-int] 16 | extern I, S, DD; | ^ compat.c:16:14: warning: type defaults to 'int' in declaration of 'DD' [-Wimplicit-int] 16 | extern I, S, DD; | ^~ compat.c:17:8: warning: type defaults to 'int' in declaration of 'JUMP' [-Wimplicit-int] 17 | extern JUMP; | ^~~~ gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o preproce.o preproce.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o delim.o delim.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o asplit.o asplit.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o recursiv.o recursiv.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o sgrep.o sgrep.c In file included from parse.c:13: parse.c: In function 'mk_leaf': re.h:80:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 80 | exit(2);\ | ^~~~ parse.c:51:9: note: in expansion of macro 'new_node' 51 | new_node(Re_Lit, l, l); | ^~~~~~~~ parse.c:14:1: note: include '' or provide a declaration of 'exit' 13 | #include "re.h" +++ |+#include 14 | re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:51:9: note: in expansion of macro 'new_node' 51 | new_node(Re_Lit, l, l); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:51:9: note: in expansion of macro 'new_node' 51 | new_node(Re_Lit, l, l); | ^~~~~~~~ re.h:82:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:51:9: note: in expansion of macro 'new_node' 51 | new_node(Re_Lit, l, l); | ^~~~~~~~ parse.c:14:1: note: include '' or provide a declaration of 'memset' 13 | #include "re.h" +++ |+#include 14 | re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:51:9: note: in expansion of macro 'new_node' 51 | new_node(Re_Lit, l, l); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:51:9: note: in expansion of macro 'new_node' 51 | new_node(Re_Lit, l, l); | ^~~~~~~~ re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:52:9: note: in expansion of macro 'new_node' 52 | new_node(Re_node, node, node); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:52:9: note: in expansion of macro 'new_node' 52 | new_node(Re_node, node, node); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:52:9: note: in expansion of macro 'new_node' 52 | new_node(Re_node, node, node); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:52:9: note: in expansion of macro 'new_node' 52 | new_node(Re_node, node, node); | ^~~~~~~~ parse.c:54:32: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 54 | if (l != NULL) free(l); | ^~~~ parse.c:54:32: note: include '' or provide a declaration of 'free' parse.c:54:32: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] parse.c:54:32: note: include '' or provide a declaration of 'free' parse.c:55:35: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 55 | if (node != NULL) free(node); | ^~~~ parse.c:55:35: note: include '' or provide a declaration of 'free' parse.c: In function 'parse_cset': re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:82:9: note: in expansion of macro 'new_node' 82 | new_node(Ch_Set, curr_ptr, curr_ptr); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:82:9: note: in expansion of macro 'new_node' 82 | new_node(Ch_Set, curr_ptr, curr_ptr); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:82:9: note: in expansion of macro 'new_node' 82 | new_node(Ch_Set, curr_ptr, curr_ptr); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:82:9: note: in expansion of macro 'new_node' 82 | new_node(Ch_Set, curr_ptr, curr_ptr); | ^~~~~~~~ re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:85:17: note: in expansion of macro 'new_node' 85 | new_node(Ch_Range, range, range); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:85:17: note: in expansion of macro 'new_node' 85 | new_node(Ch_Range, range, range); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:85:17: note: in expansion of macro 'new_node' 85 | new_node(Ch_Range, range, range); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:85:17: note: in expansion of macro 'new_node' 85 | new_node(Ch_Range, range, range); | ^~~~~~~~ parse.c:89:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 89 | free(range); | ^~~~ parse.c:89:25: note: include '' or provide a declaration of 'free' parse.c:95:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 95 | free(range); | ^~~~ parse.c:95:25: note: include '' or provide a declaration of 'free' parse.c:102:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 102 | free(range); | ^~~~ parse.c:102:33: note: include '' or provide a declaration of 'free' re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:110:17: note: in expansion of macro 'new_node' 110 | new_node(Ch_Set, curr_ptr, curr_ptr); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:110:17: note: in expansion of macro 'new_node' 110 | new_node(Ch_Set, curr_ptr, curr_ptr); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:110:17: note: in expansion of macro 'new_node' 110 | new_node(Ch_Set, curr_ptr, curr_ptr); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:110:17: note: in expansion of macro 'new_node' 110 | new_node(Ch_Set, curr_ptr, curr_ptr); | ^~~~~~~~ parse.c:118:36: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 118 | if (range != NULL) free(range); | ^~~~ parse.c:118:36: note: include '' or provide a declaration of 'free' parse.c:119:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 119 | free(curr_ptr); | ^~~~ parse.c:119:17: note: include '' or provide a declaration of 'free' parse.c: In function 'parse_wildcard': re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:134:9: note: in expansion of macro 'new_node' 134 | new_node(Ch_Range, r, r); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:134:9: note: in expansion of macro 'new_node' 134 | new_node(Ch_Range, r, r); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:134:9: note: in expansion of macro 'new_node' 134 | new_node(Ch_Range, r, r); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:134:9: note: in expansion of macro 'new_node' 134 | new_node(Ch_Range, r, r); | ^~~~~~~~ re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:137:9: note: in expansion of macro 'new_node' 137 | new_node(Ch_Set, s, s); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:137:9: note: in expansion of macro 'new_node' 137 | new_node(Ch_Set, s, s); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:137:9: note: in expansion of macro 'new_node' 137 | new_node(Ch_Set, s, s); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:137:9: note: in expansion of macro 'new_node' 137 | new_node(Ch_Set, s, s); | ^~~~~~~~ parse.c: In function 'free_tok': parse.c:169:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 169 | free(next_token); | ^~~~ parse.c:169:17: note: include '' or provide a declaration of 'free' parse.c: In function 'get_token': re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:187:9: note: in expansion of macro 'new_node' 187 | new_node(Tok_node, rn, rn); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:187:9: note: in expansion of macro 'new_node' 187 | new_node(Tok_node, rn, rn); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:187:9: note: in expansion of macro 'new_node' 187 | new_node(Tok_node, rn, rn); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:187:9: note: in expansion of macro 'new_node' 187 | new_node(Tok_node, rn, rn); | ^~~~~~~~ parse.c: In function 'cat2': re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:251:9: note: in expansion of macro 'new_node' 251 | new_node(Re_node, r, r); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:251:9: note: in expansion of macro 'new_node' 251 | new_node(Re_node, r, r); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:251:9: note: in expansion of macro 'new_node' 251 | new_node(Re_node, r, r); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:251:9: note: in expansion of macro 'new_node' 251 | new_node(Re_node, r, r); | ^~~~~~~~ parse.c:259:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 259 | free(r); | ^~~~ parse.c:259:17: note: include '' or provide a declaration of 'free' parse.c: In function 'wrap': re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:283:9: note: in expansion of macro 'new_node' 283 | new_node(Re_node, r, r); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:283:9: note: in expansion of macro 'new_node' 283 | new_node(Re_node, r, r); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:283:9: note: in expansion of macro 'new_node' 283 | new_node(Re_node, r, r); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:283:9: note: in expansion of macro 'new_node' 283 | new_node(Re_node, r, r); | ^~~~~~~~ parse.c:289:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 289 | free(r); | ^~~~ parse.c:289:17: note: include '' or provide a declaration of 'free' parse.c: In function 'mk_alt': re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ parse.c:309:9: note: in expansion of macro 'new_node' 309 | new_node(Re_node, node, node); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ parse.c:309:9: note: in expansion of macro 'new_node' 309 | new_node(Re_node, node, node); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:309:9: note: in expansion of macro 'new_node' 309 | new_node(Re_node, node, node); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ parse.c:309:9: note: in expansion of macro 'new_node' 309 | new_node(Re_node, node, node); | ^~~~~~~~ parse.c: In function 'parse_re': parse.c:345:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 345 | free(top); | ^~~~ parse.c:345:33: note: include '' or provide a declaration of 'free' parse.c:357:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 357 | free(ret); | ^~~~ parse.c:357:33: note: include '' or provide a declaration of 'free' parse.c:361:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 361 | free(ret); | ^~~~ parse.c:361:33: note: include '' or provide a declaration of 'free' parse.c:370:41: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 370 | free(ret); | ^~~~ parse.c:370:41: note: include '' or provide a declaration of 'free' parse.c:395:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 395 | free(ret); | ^~~~ parse.c:395:33: note: include '' or provide a declaration of 'free' parse.c:400:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 400 | free(ret); | ^~~~ parse.c:400:33: note: include '' or provide a declaration of 'free' parse.c:410:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 410 | free(next_token); | ^~~~ parse.c:410:25: note: include '' or provide a declaration of 'free' parse.c: In function 'parse': parse.c:447:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 447 | free(top); | ^~~~ parse.c:447:9: note: include '' or provide a declaration of 'free' gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o newmgrep.o newmgrep.c recursiv.c: In function 'recursive': recursiv.c:119:17: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 119 | strcpy(name_buf, argv[i]); | ^~~~~~ recursiv.c:74:1: note: include '' or provide a declaration of 'strcpy' 73 | #include +++ |+#include 74 | #define BUFSIZE 256 recursiv.c:119:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 119 | strcpy(name_buf, argv[i]); | ^~~~~~ recursiv.c:119:17: note: include '' or provide a declaration of 'strcpy' recursiv.c:124:36: warning: implicit declaration of function 'exec' [-Wimplicit-function-declaration] 124 | if ((ret = exec(3, file_list)) == -1) return -1; | ^~~~ recursiv.c: In function 'treewalk': recursiv.c:199:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 199 | strcpy(file_list[fdx++], name); | ^~~~~~ recursiv.c:199:17: note: include '' or provide a declaration of 'strcpy' recursiv.c: In function 'directory': recursiv.c:226:22: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 226 | nbp = name + strlen(name); | ^~~~~~ recursiv.c:226:22: note: include '' or provide a declaration of 'strlen' recursiv.c:226:22: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] recursiv.c:226:22: note: include '' or provide a declaration of 'strlen' recursiv.c:242:46: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 242 | if (dp->d_name[0] == '\0' || strcmp(dp->d_name, ".") == 0 || strcmp(dp->d_name, "..")==0) | ^~~~~~ recursiv.c:242:46: note: include '' or provide a declaration of 'strcmp' recursiv.c:249:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 249 | strcpy(nbp, dp->d_name); | ^~~~~~ recursiv.c:249:17: note: include '' or provide a declaration of 'strcpy' gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o utilitie.o utilitie.c preproce.c: In function 'preprocess': preproce.c:86:22: warning: implicit declaration of function 'asplit_pattern' [-Wimplicit-function-declaration] 86 | if (((ret1 = asplit_pattern(Pattern, m, aterminals, &anum_terminals, &AParse)) <= 0) || /* can change the pattern if simple boolean with {} */ | ^~~~~~~~~~~~~~ preproce.c:87:22: warning: implicit declaration of function 'asplit_terminal' [-Wimplicit-function-declaration] 87 | ((ret2 = asplit_terminal(0, anum_terminals, multibuf, &multilen)) <= 0) || | ^~~~~~~~~~~~~~~ preproce.c:89:58: warning: implicit declaration of function 'destroy_tree' [-Wimplicit-function-declaration] 89 | if (AComplexBoolean && (AParse != NULL)) destroy_tree(AParse); /* so that direct exec invocations don't use AParse by mistake! */ | ^~~~~~~~~~~~ preproce.c:125:44: warning: implicit declaration of function 'quick_tcompress' [-Wimplicit-function-declaration] 125 | if ((tc_D_length = quick_tcompress(FREQ_FILE, HASH_FILE, D_pattern, D_length, tc_D_pattern, MaxDelimit*2, TC_EASYSEARCH)) <= 0) { | ^~~~~~~~~~~~~~~ preproce.c:368:27: warning: implicit declaration of function 'init'; did you mean 'finite'? [-Wimplicit-function-declaration] 368 | num_pos = init(r_pat, table); | ^~~~ | finite maskgen.c:19:8: warning: type defaults to 'int' in declaration of 'Mask' [-Wimplicit-int] 19 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~~ maskgen.c:19:16: warning: type defaults to 'int' in declaration of 'Bit' [-Wimplicit-int] 19 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~ maskgen.c:19:23: warning: type defaults to 'int' in declaration of 'Init' [-Wimplicit-int] 19 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~~ maskgen.c:19:31: warning: type defaults to 'int' in declaration of 'NO_ERR_MASK' [-Wimplicit-int] 19 | extern Mask[], Bit[], Init[], NO_ERR_MASK; | ^~~~~~~~~~~ gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o codepage.o codepage.c gcc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -I/raven/include -c -o agrephlp.o agrephlp.c bitap.c: In function 'bitap': bitap.c:106:32: warning: implicit declaration of function 're'; did you mean 'read'? [-Wimplicit-function-declaration] 106 | return re(fd, M, D); /* SUN: need to find a even point */ | ^~ | read bitap.c:109:32: warning: implicit declaration of function 're1' [-Wimplicit-function-declaration] 109 | return re1(fd, M, D); | ^~~ bitap.c:115:24: warning: implicit declaration of function 'asearch1'; did you mean 'bsearch'? [-Wimplicit-function-declaration] 115 | return asearch1(old_D_pat, fd, D); | ^~~~~~~~ | bsearch bitap.c:120:24: warning: implicit declaration of function 'asearch'; did you mean 'bsearch'? [-Wimplicit-function-declaration] 120 | return asearch(old_D_pat, fd, D); | ^~~~~~~ | bsearch bitap.c:143:36: warning: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] 143 | while ((num_read = fill_buf(fd, buffer + Max_record, BlockSize)) > 0) | ^~~~~~~~ bitap.c:214:67: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] 214 | if (-1 == output(buffer, lasti, print_end, j)) { free_buf(fd, buffer); return -1;} | ^~~~~~ bitap.c: At top level: bitap.c:450:1: warning: return type defaults to 'int' [-Wimplicit-int] 450 | fill_buf(fd, buf, record_size) | ^~~~~~~~ In file included from utilitie.c:7: utilitie.c: In function 'Push': re.h:80:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 80 | exit(2);\ | ^~~~ utilitie.c:27:9: note: in expansion of macro 'new_node' 27 | new_node(Stack, node, node); | ^~~~~~~~ utilitie.c:8:1: note: include '' or provide a declaration of 'exit' 7 | #include "re.h" +++ |+#include 8 | re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ utilitie.c:27:9: note: in expansion of macro 'new_node' 27 | new_node(Stack, node, node); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ utilitie.c:27:9: note: in expansion of macro 'new_node' 27 | new_node(Stack, node, node); | ^~~~~~~~ re.h:82:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ utilitie.c:27:9: note: in expansion of macro 'new_node' 27 | new_node(Stack, node, node); | ^~~~~~~~ utilitie.c:8:1: note: include '' or provide a declaration of 'memset' 7 | #include "re.h" +++ |+#include 8 | re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ utilitie.c:27:9: note: in expansion of macro 'new_node' 27 | new_node(Stack, node, node); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ utilitie.c:27:9: note: in expansion of macro 'new_node' 27 | new_node(Stack, node, node); | ^~~~~~~~ utilitie.c: In function 'Pop': utilitie.c:48:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 48 | free(temp); | ^~~~ utilitie.c:48:17: note: include '' or provide a declaration of 'free' utilitie.c:48:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] utilitie.c:48:17: note: include '' or provide a declaration of 'free' utilitie.c: In function 'pset_union': re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ utilitie.c:94:25: note: in expansion of macro 'new_node' 94 | new_node(Pset, new, new); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ utilitie.c:94:25: note: in expansion of macro 'new_node' 94 | new_node(Pset, new, new); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ utilitie.c:94:25: note: in expansion of macro 'new_node' 94 | new_node(Pset, new, new); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ utilitie.c:94:25: note: in expansion of macro 'new_node' 94 | new_node(Pset, new, new); | ^~~~~~~~ utilitie.c: In function 'create_pos': re.h:80:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(2);\ | ^~~~ utilitie.c:116:9: note: in expansion of macro 'new_node' 116 | new_node(Pset, x, x); | ^~~~~~~~ re.h:80:17: note: include '' or provide a declaration of 'exit' 80 | exit(2);\ | ^~~~ utilitie.c:116:9: note: in expansion of macro 'new_node' 116 | new_node(Pset, x, x); | ^~~~~~~~ re.h:82:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ utilitie.c:116:9: note: in expansion of macro 'new_node' 116 | new_node(Pset, x, x); | ^~~~~~~~ re.h:82:9: note: include '' or provide a declaration of 'memset' 82 | memset((l), '\0', sizeof(*(x)));\ | ^~~~~~ utilitie.c:116:9: note: in expansion of macro 'new_node' 116 | new_node(Pset, x, x); | ^~~~~~~~ utilitie.c: In function 'word_exists': utilitie.c:160:30: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 160 | if (!strncmp(line, word, wordlen)) { | ^~~~~~~ utilitie.c:160:30: note: include '' or provide a declaration of 'strncmp' utilitie.c:160:50: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 160 | if (!strncmp(line, word, wordlen)) { | ^~~~~~~ : note: built-in 'strncmp' declared here In file included from asplit.c:4: putils.c: In function 'print_tree': putils.c:69:1: warning: type of 'level' defaults to 'int' [-Wimplicit-int] 69 | print_tree(t, level) | ^~~~~~~~~~ codepage.c: In function 'get_current_codepage': codepage.c:50:5: warning: type of 'VOID' defaults to 'int' [-Wimplicit-int] 50 | int get_current_codepage(VOID) | ^~~~~~~~~~~~~~~~~~~~ agrephlp.c:68:9: warning: type defaults to 'int' in declaration of 'AGREPOPT_STR' [-Wimplicit-int] 68 | extern AGREPOPT_STR[MAX_LINE_LEN]; | ^~~~~~~~~~~~ agrephlp.c:69:9: warning: type defaults to 'int' in declaration of 'VERBOSE' [-Wimplicit-int] 69 | extern VERBOSE; | ^~~~~~~ agrephlp.c: In function 'agrep_online_help': agrephlp.c:228:12: warning: implicit declaration of function 'get_current_codepage' [-Wimplicit-function-declaration] 228 | if ((cpage=get_current_codepage()) != -1) fprintf(stderr,"is CP %d.\n\n",cpage); | ^~~~~~~~~~~~~~~~~~~~ asearch1.c: In function 'asearch1': asearch1.c:65:36: warning: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] 65 | while ((num_read = fill_buf(Text, buffer + Max_record, BlockSize)) > 0) | ^~~~~~~~ asearch1.c:137:67: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] 137 | if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} | ^~~~~~ newmgrep.c:73:8: warning: type defaults to 'int' in declaration of 'COUNT' [-Wimplicit-int] 73 | extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched; | ^~~~~ newmgrep.c:73:15: warning: type defaults to 'int' in declaration of 'FNAME' [-Wimplicit-int] 73 | extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched; | ^~~~~ newmgrep.c:73:22: warning: type defaults to 'int' in declaration of 'SILENT' [-Wimplicit-int] 73 | extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched; | ^~~~~~ newmgrep.c:73:30: warning: type defaults to 'int' in declaration of 'FILENAMEONLY' [-Wimplicit-int] 73 | extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched; | ^~~~~~~~~~~~ newmgrep.c:73:44: warning: type defaults to 'int' in declaration of 'prev_num_of_matched' [-Wimplicit-int] 73 | extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched; | ^~~~~~~~~~~~~~~~~~~ newmgrep.c:73:65: warning: type defaults to 'int' in declaration of 'num_of_matched' [-Wimplicit-int] 73 | extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched; | ^~~~~~~~~~~~~~ newmgrep.c:74:8: warning: type defaults to 'int' in declaration of 'INVERSE' [-Wimplicit-int] 74 | extern INVERSE, OUTTAIL; | ^~~~~~~ newmgrep.c:74:17: warning: type defaults to 'int' in declaration of 'OUTTAIL' [-Wimplicit-int] 74 | extern INVERSE, OUTTAIL; | ^~~~~~~ newmgrep.c:75:8: warning: type defaults to 'int' in declaration of 'WORDBOUND' [-Wimplicit-int] 75 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ newmgrep.c:75:19: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] 75 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ newmgrep.c:75:30: warning: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] 75 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~ newmgrep.c:79:8: warning: type defaults to 'int' in declaration of 'total_line' [-Wimplicit-int] 79 | extern total_line; | ^~~~~~~~~~ newmgrep.c:80:8: warning: type defaults to 'int' in declaration of 'agrep_initialfd' [-Wimplicit-int] 80 | extern agrep_initialfd; | ^~~~~~~~~~~~~~~ newmgrep.c: In function 'prepf': newmgrep.c:222:35: warning: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] 222 | while((num_read = fill_buf(mfp, buf+length, 2*BLOCKSIZE)) > 0) { | ^~~~~~~~ newmgrep.c: In function 'mgrep': newmgrep.c:528:55: warning: implicit declaration of function 'm_short'; did you mean 'qsort'? [-Wimplicit-function-declaration] 528 | if(SHORT) { if (-1 == m_short(text, start, end)) {free_buf(fd, text); return -1;}} | ^~~~~~~ | qsort newmgrep.c:529:55: warning: implicit declaration of function 'monkey1' [-Wimplicit-function-declaration] 529 | else { if (-1 == monkey1(text, start, end)) {free_buf(fd, text); return -1;}} | ^~~~~~~ newmgrep.c: In function 'monkey1': newmgrep.c:980:96: warning: implicit declaration of function 'eval_tree' [-Wimplicit-function-declaration] 980 | if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) { | ^~~~~~~~~ asearch.c: In function 'asearch': asearch.c:51:24: warning: implicit declaration of function 'asearch0'; did you mean 'asearch'? [-Wimplicit-function-declaration] 51 | return asearch0(old_D_pat, text, D); | ^~~~~~~~ | asearch asearch.c:73:29: warning: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] 73 | while ((l = fill_buf(text, buffer + Max_record, BlockSize)) > 0) | ^~~~~~~~ asearch.c:164:67: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] 164 | if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} | ^~~~~~ sgrep.c:100:8: warning: type defaults to 'int' in declaration of 'WORDBOUND' [-Wimplicit-int] 100 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ sgrep.c:100:19: warning: type defaults to 'int' in declaration of 'WHOLELINE' [-Wimplicit-int] 100 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~~~ sgrep.c:100:30: warning: type defaults to 'int' in declaration of 'NOUPPER' [-Wimplicit-int] 100 | extern WORDBOUND, WHOLELINE, NOUPPER; | ^~~~~~~ sgrep.c: In function 'sgrep': sgrep.c:262:5: warning: type of 'samepattern' defaults to 'int' [-Wimplicit-int] 262 | int sgrep(in_pat, in_m, fd, D, samepattern) | ^~~~~ sgrep.c:334:36: warning: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] 334 | while( (num_read = fill_buf(fd, text+offset, 2*BLOCKSIZE)) > 0) | ^~~~~~~~ sgrep.c:409:51: warning: implicit declaration of function 'monkey' [-Wimplicit-function-declaration] 409 | if (-1 == monkey(pat, m, text+start, text+end, oldpat, oldm)) { | ^~~~~~ sgrep.c:415:51: warning: implicit declaration of function 'bm'; did you mean 'bcmp'? [-Wimplicit-function-declaration] 415 | if (-1 == bm(pat, m, text+start, text+end, oldpat, oldm)) { | ^~ | bcmp sgrep.c:423:51: warning: implicit declaration of function 'monkey4' [-Wimplicit-function-declaration] 423 | if (-1 == monkey4( pat, m, text+start, text+end, D , oldpat, oldm )) { | ^~~~~~~ sgrep.c:430:59: warning: implicit declaration of function 'a_monkey' [-Wimplicit-function-declaration] 430 | if (-1 == a_monkey(pat, m, text+start, text+end, D, oldpat, oldm)) { | ^~~~~~~~ sgrep.c:436:59: warning: implicit declaration of function 'agrep'; did you mean 'sgrep'? [-Wimplicit-function-declaration] 436 | if (-1 == agrep(pat, m, text+start, text+end, D, oldpat, oldm)) { | ^~~~~ | sgrep sgrep.c: In function 'agrep': sgrep.c:1196:51: warning: implicit declaration of function 's_output' [-Wimplicit-function-declaration] 1196 | if (-1 == s_output(text, ¤tpos, textbegin, textend, &lastout, pat, M, oldpat, oldM)) return -1; | ^~~~~~~~ sgrep.c: In function 'prep_bm': sgrep.c:1488:10: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int] 1488 | register m; | ^ sgrep.c: In function 'a_monkey': sgrep.c:1871:35: warning: implicit declaration of function 'verify' [-Wimplicit-function-declaration] 1871 | if((pos = verify(m, 2*m+D, D, pat, oldtext)) > 0) { | ^~~~~~ sgrep.c: In function 'prep4': sgrep.c:2497:17: warning: implicit declaration of function 'blog'; did you mean 'log'? [-Wimplicit-function-declaration] 2497 | BSize = blog(4, m); | ^~~~ | log agrep.c: In function 'reinit_value': agrep.c:266:38: warning: implicit declaration of function 'destroy_tree' [-Wimplicit-function-declaration] 266 | if (AComplexBoolean) destroy_tree(AParse); | ^~~~~~~~~~~~ agrep.c: In function 'compute_next': agrep.c:419:21: warning: implicit declaration of function 'exponen'; did you mean 'popen'? [-Wimplicit-function-declaration] 419 | k = exponen(M); | ^~~~~~~ | popen agrep.c: In function 're1': agrep.c:513:36: warning: implicit declaration of function 'fill_buf' [-Wimplicit-function-declaration] 513 | while ((num_read = fill_buf(Text, buffer + Maxline, BlockSize)) > 0) | ^~~~~~~~ agrep.c:573:59: warning: implicit declaration of function 'r_output' [-Wimplicit-function-declaration] 573 | if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} | ^~~~~~~~ agrep.c: In function 'agrep_init': agrep.c:2112:30: warning: implicit declaration of function 'agrep_usage' [-Wimplicit-function-declaration] 2112 | if (argc < 2) return agrep_usage(); | ^~~~~~~~~~~ agrep.c:2512:45: warning: implicit declaration of function 'prepf' [-Wimplicit-function-declaration] 2512 | if (prepf(-1, multibuf, multilen) <= -1) { | ^~~~~ agrep.c:2747:38: warning: implicit declaration of function 'get_current_codepage' [-Wimplicit-function-declaration] 2747 | if (CODEPAGE_STR[0]=='\0') j=get_current_codepage(); | ^~~~~~~~~~~~~~~~~~~~ agrep.c:2891:9: warning: implicit declaration of function 'initialize_common' [-Wimplicit-function-declaration] 2891 | initialize_common(FREQ_FILE, 0); /* no error msgs */ | ^~~~~~~~~~~~~~~~~ agrep.c:2952:41: warning: implicit declaration of function 'check_file' [-Wimplicit-function-declaration] 2952 | if ((filetype = check_file(*argv)) == NOSUCHFILE) { | ^~~~~~~~~~ agrep.c: In function 'agrep_search': agrep.c:3169:27: warning: implicit declaration of function 'checksg' [-Wimplicit-function-declaration] 3169 | if (-1 == checksg(Pattern, D, 1)) return -1; /* check if the pattern is simple */ | ^~~~~~~ agrep.c:3174:35: warning: implicit declaration of function 'preprocess' [-Wimplicit-function-declaration] 3174 | if (-1 == preprocess(D_pattern, Pattern)) return -1; | ^~~~~~~~~~ agrep.c:3179:46: warning: implicit declaration of function 'maskgen' [-Wimplicit-function-declaration] 3179 | if(!AParse && ((M = maskgen(Pattern, D)) == -1)) return -1; | ^~~~~~~ agrep.c:3186:52: warning: implicit declaration of function 'quick_tcompress' [-Wimplicit-function-declaration] 3186 | if ((tc_D_length = quick_tcompress(FREQ_FILE,HASH_FILE,D_pattern,D_length,tc_D_pattern,MaxDelimit*2,TC_EASYSEARCH)) <= 0) { | ^~~~~~~~~~~~~~~ agrep.c:3222:17: warning: implicit declaration of function 'exec'; did you mean 'exect'? [-Wimplicit-function-declaration] 3222 | ret = exec(execfd, NULL); | ^~~~ | exect agrep.c:3224:21: warning: implicit declaration of function 'recursive' [-Wimplicit-function-declaration] 3224 | ret = ( recursive( Numfiles, Textfiles ) ); | ^~~~~~~~~ agrep.c: In function 'exec': agrep.c:3342:20: warning: implicit declaration of function 'compat' [-Wimplicit-function-declaration] 3342 | if ((-1 == compat())) return -1; /* check compatibility between options */ | ^~~~~~ agrep.c:3357:44: warning: implicit declaration of function 'mgrep'; did you mean 'memagrep'? [-Wimplicit-function-declaration] 3357 | if(PAT_FILE || PAT_BUFFER) mgrep(fd, AParse); | ^~~~~ | memagrep agrep.c:3359:41: warning: implicit declaration of function 'sgrep'; did you mean 'strsep'? [-Wimplicit-function-declaration] 3359 | if(SGREP) ret = sgrep(OldPattern, strlen(OldPattern), fd, D, 0); | ^~~~~ | strsep agrep.c:3360:41: warning: implicit declaration of function 'bitap' [-Wimplicit-function-declaration] 3360 | else ret = bitap(old_D_pat, Pattern, fd, M, D); | ^~~~~ agrep.c:3421:30: warning: implicit declaration of function 'tuncompressible_filename' [-Wimplicit-function-declaration] 3421 | if (!tuncompressible_filename(file_list[i], strlen(file_list[i]))) TCOMPRESSED = OFF; | ^~~~~~~~~~~~~~~~~~~~~~~~ agrep.c:3560:51: warning: implicit declaration of function 'file_out'; did you mean 'fileno'? [-Wimplicit-function-declaration] 3560 | if (-1 == file_out(file_list[i])) { | ^~~~~~~~ | fileno agrep.c: In function 'agrep_usage': agrep.c:3963:9: warning: implicit declaration of function 'agrep_online_help' [-Wimplicit-function-declaration] 3963 | agrep_online_help(); | ^~~~~~~~~~~~~~~~~ gcc -o agrep follow.o asearch.o asearch1.o agrep.o bitap.o checkfil.o compat.o dummyfil.o main.o maskgen.o parse.o checksg.o preproce.o delim.o asplit.o recursiv.o sgrep.o newmgrep.o utilitie.o codepage.o agrephlp.o gmake[1]: Leaving directory '/construction/agrep/agrep-7b7f350' -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for agrep-standard ===> Generating temporary packing list (single) /bin/mkdir -p -p /construction/agrep/stage/raven/bin install -s -m 555 /construction/agrep/agrep-7b7f350/agrep /construction/agrep/stage/raven/bin/agrep ====> Start compressing man pages ====> Man page compression complete ====> Install ISCL license (single) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building agrep-single-standard-3.41.5 subpackage file sizes/checksums [3]: . done packing files [3]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Sunday,13 AUG 2023 at 08:57:16 UTC Duration: 00:00:03