DC-Build-Header: glimpse 4.18.7-6 / 2021-10-26 22:50:18 +0000 DC-Task: type:rebuild-binarch-only source:glimpse version:4.18.7-6 chroot:unstable esttime:91 logfile:/tmp/glimpse_4.18.7-6_unstable_clang13.log modes:clang13:binarch-only DC-Sbuild-call: su user42 -c 'sbuild -n --arch-any --apt-update -d unstable -v --no-run-lintian --chroot-setup-commands=/tmp/clang13 glimpse_4.18.7-6' sbuild (Debian sbuild) 0.78.1 (09 February 2019) on ip-172-31-5-238.eu-central-1.compute.internal +==============================================================================+ | glimpse 4.18.7-6 (amd64) Tue, 26 Oct 2021 22:50:18 +0000 | +==============================================================================+ Package: glimpse Version: 4.18.7-6 Source Version: 4.18.7-6 Distribution: unstable Machine Architecture: amd64 Host Architecture: amd64 Build Architecture: amd64 Build Type: binary I: NOTICE: Log filtering will replace 'var/run/schroot/mount/sid-amd64-sbuild-e557b45f-9e80-45ed-ba57-0b3d81485382' with '<>' +------------------------------------------------------------------------------+ | Chroot Setup Commands | +------------------------------------------------------------------------------+ /tmp/clang13 ------------ + echo 'Entering customization script...' Entering customization script... + CLANG_VERSION=13 + echo 'Install of clang-13' Install of clang-13 + apt-get update Get:1 http://127.0.0.1:12990/debian sid InRelease [165 kB] Get:2 http://127.0.0.1:12990/debian sid/main Sources.diff/Index [63.6 kB] Get:3 http://127.0.0.1:12990/debian sid/main amd64 Packages.diff/Index [63.6 kB] Get:4 http://127.0.0.1:12990/debian sid/main Sources T-2021-10-26-2004.40-F-2021-10-26-0202.15.pdiff [47.3 kB] Get:4 http://127.0.0.1:12990/debian sid/main Sources T-2021-10-26-2004.40-F-2021-10-26-0202.15.pdiff [47.3 kB] Get:5 http://127.0.0.1:12990/debian sid/main amd64 Packages T-2021-10-26-2004.40-F-2021-10-26-0202.15.pdiff [55.9 kB] Get:5 http://127.0.0.1:12990/debian sid/main amd64 Packages T-2021-10-26-2004.40-F-2021-10-26-0202.15.pdiff [55.9 kB] Get:6 http://127.0.0.1:12990/debian sid/main Translation-en [6586 kB] Fetched 6981 kB in 3s (2760 kB/s) Reading package lists... + apt-get install --yes --no-install-recommends --force-yes clang-13 libomp-13-dev libobjc-9-dev Reading package lists... Building dependency tree... The following additional packages will be installed: lib32gcc-s1 lib32stdc++6 libasan5 libbsd0 libc6-i386 libclang-common-13-dev libclang-cpp13 libclang1-13 libedit2 libgc1 libgcc-9-dev libicu67 libllvm13 libmd0 libobjc-11-dev libobjc4 libomp5-13 libxml2 libz3-4 Suggested packages: clang-13-doc libomp-13-doc Recommended packages: llvm-13-dev python3 The following NEW packages will be installed: clang-13 lib32gcc-s1 lib32stdc++6 libasan5 libbsd0 libc6-i386 libclang-common-13-dev libclang-cpp13 libclang1-13 libedit2 libgc1 libgcc-9-dev libicu67 libllvm13 libmd0 libobjc-11-dev libobjc-9-dev libobjc4 libomp-13-dev libomp5-13 libxml2 libz3-4 0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded. Need to get 68.5 MB of archives. After this operation, 379 MB of additional disk space will be used. Get:1 http://127.0.0.1:12990/debian sid/main amd64 libmd0 amd64 1.0.4-1 [29.6 kB] Get:2 http://127.0.0.1:12990/debian sid/main amd64 libbsd0 amd64 0.11.3-1 [108 kB] Get:3 http://127.0.0.1:12990/debian sid/main amd64 libedit2 amd64 3.1-20210910-1 [97.5 kB] Get:4 http://127.0.0.1:12990/debian sid/main amd64 libicu67 amd64 67.1-7 [8622 kB] Get:5 http://127.0.0.1:12990/debian sid/main amd64 libxml2 amd64 2.9.12+dfsg-5 [696 kB] Get:6 http://127.0.0.1:12990/debian sid/main amd64 libz3-4 amd64 4.8.12-1+b1 [6997 kB] Get:7 http://127.0.0.1:12990/debian sid/main amd64 libllvm13 amd64 1:13.0.0-8 [19.7 MB] Get:8 http://127.0.0.1:12990/debian sid/main amd64 libclang-cpp13 amd64 1:13.0.0-8 [10.5 MB] Get:9 http://127.0.0.1:12990/debian sid/main amd64 libgc1 amd64 1:8.0.4-3 [239 kB] Get:10 http://127.0.0.1:12990/debian sid/main amd64 libobjc4 amd64 11.2.0-10 [43.2 kB] Get:11 http://127.0.0.1:12990/debian sid/main amd64 libobjc-11-dev amd64 11.2.0-10 [170 kB] Get:12 http://127.0.0.1:12990/debian sid/main amd64 libc6-i386 amd64 2.32-4 [2624 kB] Get:13 http://127.0.0.1:12990/debian sid/main amd64 lib32gcc-s1 amd64 11.2.0-10 [49.9 kB] Get:14 http://127.0.0.1:12990/debian sid/main amd64 lib32stdc++6 amd64 11.2.0-10 [601 kB] Get:15 http://127.0.0.1:12990/debian sid/main amd64 libclang-common-13-dev amd64 1:13.0.0-8 [5730 kB] Get:16 http://127.0.0.1:12990/debian sid/main amd64 libclang1-13 amd64 1:13.0.0-8 [6093 kB] Get:17 http://127.0.0.1:12990/debian sid/main amd64 clang-13 amd64 1:13.0.0-8 [119 kB] Get:18 http://127.0.0.1:12990/debian sid/main amd64 libasan5 amd64 9.4.0-3 [2734 kB] Get:19 http://127.0.0.1:12990/debian sid/main amd64 libgcc-9-dev amd64 9.4.0-3 [2343 kB] Get:20 http://127.0.0.1:12990/debian sid/main amd64 libobjc-9-dev amd64 9.4.0-3 [219 kB] Get:21 http://127.0.0.1:12990/debian sid/main amd64 libomp5-13 amd64 1:13.0.0-8 [377 kB] Get:22 http://127.0.0.1:12990/debian sid/main amd64 libomp-13-dev amd64 1:13.0.0-8 [482 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 68.5 MB in 0s (151 MB/s) Selecting previously unselected package libmd0:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 12431 files and directories currently installed.) Preparing to unpack .../00-libmd0_1.0.4-1_amd64.deb ... Unpacking libmd0:amd64 (1.0.4-1) ... Selecting previously unselected package libbsd0:amd64. Preparing to unpack .../01-libbsd0_0.11.3-1_amd64.deb ... Unpacking libbsd0:amd64 (0.11.3-1) ... Selecting previously unselected package libedit2:amd64. Preparing to unpack .../02-libedit2_3.1-20210910-1_amd64.deb ... Unpacking libedit2:amd64 (3.1-20210910-1) ... Selecting previously unselected package libicu67:amd64. Preparing to unpack .../03-libicu67_67.1-7_amd64.deb ... Unpacking libicu67:amd64 (67.1-7) ... Selecting previously unselected package libxml2:amd64. Preparing to unpack .../04-libxml2_2.9.12+dfsg-5_amd64.deb ... Unpacking libxml2:amd64 (2.9.12+dfsg-5) ... Selecting previously unselected package libz3-4:amd64. Preparing to unpack .../05-libz3-4_4.8.12-1+b1_amd64.deb ... Unpacking libz3-4:amd64 (4.8.12-1+b1) ... Selecting previously unselected package libllvm13:amd64. Preparing to unpack .../06-libllvm13_1%3a13.0.0-8_amd64.deb ... Unpacking libllvm13:amd64 (1:13.0.0-8) ... Selecting previously unselected package libclang-cpp13. Preparing to unpack .../07-libclang-cpp13_1%3a13.0.0-8_amd64.deb ... Unpacking libclang-cpp13 (1:13.0.0-8) ... Selecting previously unselected package libgc1:amd64. Preparing to unpack .../08-libgc1_1%3a8.0.4-3_amd64.deb ... Unpacking libgc1:amd64 (1:8.0.4-3) ... Selecting previously unselected package libobjc4:amd64. Preparing to unpack .../09-libobjc4_11.2.0-10_amd64.deb ... Unpacking libobjc4:amd64 (11.2.0-10) ... Selecting previously unselected package libobjc-11-dev:amd64. Preparing to unpack .../10-libobjc-11-dev_11.2.0-10_amd64.deb ... Unpacking libobjc-11-dev:amd64 (11.2.0-10) ... Selecting previously unselected package libc6-i386. Preparing to unpack .../11-libc6-i386_2.32-4_amd64.deb ... Unpacking libc6-i386 (2.32-4) ... Selecting previously unselected package lib32gcc-s1. Preparing to unpack .../12-lib32gcc-s1_11.2.0-10_amd64.deb ... Unpacking lib32gcc-s1 (11.2.0-10) ... Selecting previously unselected package lib32stdc++6. Preparing to unpack .../13-lib32stdc++6_11.2.0-10_amd64.deb ... Unpacking lib32stdc++6 (11.2.0-10) ... Selecting previously unselected package libclang-common-13-dev. Preparing to unpack .../14-libclang-common-13-dev_1%3a13.0.0-8_amd64.deb ... Unpacking libclang-common-13-dev (1:13.0.0-8) ... Selecting previously unselected package libclang1-13. Preparing to unpack .../15-libclang1-13_1%3a13.0.0-8_amd64.deb ... Unpacking libclang1-13 (1:13.0.0-8) ... Selecting previously unselected package clang-13. Preparing to unpack .../16-clang-13_1%3a13.0.0-8_amd64.deb ... Unpacking clang-13 (1:13.0.0-8) ... Selecting previously unselected package libasan5:amd64. Preparing to unpack .../17-libasan5_9.4.0-3_amd64.deb ... Unpacking libasan5:amd64 (9.4.0-3) ... Selecting previously unselected package libgcc-9-dev:amd64. Preparing to unpack .../18-libgcc-9-dev_9.4.0-3_amd64.deb ... Unpacking libgcc-9-dev:amd64 (9.4.0-3) ... Selecting previously unselected package libobjc-9-dev:amd64. Preparing to unpack .../19-libobjc-9-dev_9.4.0-3_amd64.deb ... Unpacking libobjc-9-dev:amd64 (9.4.0-3) ... Selecting previously unselected package libomp5-13:amd64. Preparing to unpack .../20-libomp5-13_1%3a13.0.0-8_amd64.deb ... Unpacking libomp5-13:amd64 (1:13.0.0-8) ... Selecting previously unselected package libomp-13-dev. Preparing to unpack .../21-libomp-13-dev_1%3a13.0.0-8_amd64.deb ... Unpacking libomp-13-dev (1:13.0.0-8) ... Setting up libicu67:amd64 (67.1-7) ... Setting up libasan5:amd64 (9.4.0-3) ... Setting up libz3-4:amd64 (4.8.12-1+b1) ... Setting up libgc1:amd64 (1:8.0.4-3) ... Setting up libmd0:amd64 (1.0.4-1) ... Setting up libc6-i386 (2.32-4) ... Setting up libomp5-13:amd64 (1:13.0.0-8) ... Setting up libbsd0:amd64 (0.11.3-1) ... Setting up libxml2:amd64 (2.9.12+dfsg-5) ... Setting up libedit2:amd64 (3.1-20210910-1) ... Setting up libobjc4:amd64 (11.2.0-10) ... Setting up libgcc-9-dev:amd64 (9.4.0-3) ... Setting up lib32gcc-s1 (11.2.0-10) ... Setting up lib32stdc++6 (11.2.0-10) ... Setting up libllvm13:amd64 (1:13.0.0-8) ... Setting up libobjc-9-dev:amd64 (9.4.0-3) ... Setting up libclang-common-13-dev (1:13.0.0-8) ... Setting up libomp-13-dev (1:13.0.0-8) ... Setting up libobjc-11-dev:amd64 (11.2.0-10) ... Setting up libclang1-13 (1:13.0.0-8) ... Setting up libclang-cpp13 (1:13.0.0-8) ... Setting up clang-13 (1:13.0.0-8) ... Processing triggers for libc-bin (2.32-4) ... W: --force-yes is deprecated, use one of the options starting with --allow instead. + echo 'Replace gcc, g++ & cpp by clang' Replace gcc, g++ & cpp by clang + VERSIONS='4.6 4.7 4.8 4.9 5 6 7 8 9 10 11' + cd /usr/bin + for VERSION in $VERSIONS + rm -f g++-4.6 gcc-4.6 cpp-4.6 gcc + ln -s clang++-13 g++-4.6 + ln -s clang-13 gcc-4.6 + ln -s clang-13 cpp-4.6 + ln -s clang-13 gcc + echo 'gcc-4.6 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-4.6 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-4.6 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-4.6 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-4.7 gcc-4.7 cpp-4.7 gcc + ln -s clang++-13 g++-4.7 + ln -s clang-13 gcc-4.7 + ln -s clang-13 cpp-4.7 + ln -s clang-13 gcc + echo 'gcc-4.7 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-4.7 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-4.7 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-4.7 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-4.8 gcc-4.8 cpp-4.8 gcc + ln -s clang++-13 g++-4.8 + ln -s clang-13 gcc-4.8 + ln -s clang-13 cpp-4.8 + ln -s clang-13 gcc + echo 'gcc-4.8 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-4.8 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-4.8 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-4.8 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-4.9 gcc-4.9 cpp-4.9 gcc + ln -s clang++-13 g++-4.9 + ln -s clang-13 gcc-4.9 + ln -s clang-13 cpp-4.9 + ln -s clang-13 gcc + echo 'gcc-4.9 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-4.9 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-4.9 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-4.9 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-5 gcc-5 cpp-5 gcc + ln -s clang++-13 g++-5 + ln -s clang-13 gcc-5 + ln -s clang-13 cpp-5 + ln -s clang-13 gcc + echo 'gcc-5 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-5 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-5 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-5 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-6 gcc-6 cpp-6 gcc + ln -s clang++-13 g++-6 + ln -s clang-13 gcc-6 + ln -s clang-13 cpp-6 + ln -s clang-13 gcc + echo 'gcc-6 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-6 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-6 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-6 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-7 gcc-7 cpp-7 gcc + ln -s clang++-13 g++-7 + ln -s clang-13 gcc-7 + ln -s clang-13 cpp-7 + ln -s clang-13 gcc + echo 'gcc-7 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-7 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-7 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-7 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-8 gcc-8 cpp-8 gcc + ln -s clang++-13 g++-8 + ln -s clang-13 gcc-8 + ln -s clang-13 cpp-8 + ln -s clang-13 gcc + echo 'gcc-8 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-8 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-8 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-8 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-9 gcc-9 cpp-9 gcc + ln -s clang++-13 g++-9 + ln -s clang-13 gcc-9 + ln -s clang-13 cpp-9 + ln -s clang-13 gcc + echo 'gcc-9 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-9 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-9 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-9 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-10 gcc-10 cpp-10 gcc + ln -s clang++-13 g++-10 + ln -s clang-13 gcc-10 + ln -s clang-13 cpp-10 + ln -s clang-13 gcc + echo 'gcc-10 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: gcc-10 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + echo 'g++-10 hold' + dpkg --set-selections dpkg: warning: package not in status nor available database at line 1: g++-10 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ + for VERSION in $VERSIONS + rm -f g++-11 gcc-11 cpp-11 gcc + ln -s clang++-13 g++-11 + ln -s clang-13 gcc-11 + ln -s clang-13 cpp-11 + ln -s clang-13 gcc + echo 'gcc-11 hold' + dpkg --set-selections + echo 'g++-11 hold' + dpkg --set-selections + cd - /build/glimpse-JlALvp + echo 'Check if gcc, g++ & cpp are actually clang' Check if gcc, g++ & cpp are actually clang + gcc --version + grep clang + cpp --version + grep clang + g++ --version + grep clang + cd /usr/bin/ + rm -f clang++ clang + ln -s clang-13 clang++ + ln -s clang-13 clang + clang++ --version Debian clang version 13.0.0-8 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin + clang --version Debian clang version 13.0.0-8 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin + cd - /build/glimpse-JlALvp + apt install --yes --no-install-recommends --force-yes qt5-qmake WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: qt5-qmake-bin qtchooser The following NEW packages will be installed: qt5-qmake qt5-qmake-bin qtchooser 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1322 kB of archives. After this operation, 4914 kB of additional disk space will be used. Get:1 http://127.0.0.1:12990/debian sid/main amd64 qt5-qmake-bin amd64 5.15.2+dfsg-12 [1046 kB] Get:2 http://127.0.0.1:12990/debian sid/main amd64 qtchooser amd64 66-2 [26.3 kB] Get:3 http://127.0.0.1:12990/debian sid/main amd64 qt5-qmake amd64 5.15.2+dfsg-12 [249 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 1322 kB in 0s (58.6 MB/s) Selecting previously unselected package qt5-qmake-bin. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 13528 files and directories currently installed.) Preparing to unpack .../qt5-qmake-bin_5.15.2+dfsg-12_amd64.deb ... Unpacking qt5-qmake-bin (5.15.2+dfsg-12) ... Selecting previously unselected package qtchooser. Preparing to unpack .../qtchooser_66-2_amd64.deb ... Unpacking qtchooser (66-2) ... Selecting previously unselected package qt5-qmake:amd64. Preparing to unpack .../qt5-qmake_5.15.2+dfsg-12_amd64.deb ... Unpacking qt5-qmake:amd64 (5.15.2+dfsg-12) ... Setting up qt5-qmake-bin (5.15.2+dfsg-12) ... Setting up qtchooser (66-2) ... Setting up qt5-qmake:amd64 (5.15.2+dfsg-12) ... W: --force-yes is deprecated, use one of the options starting with --allow instead. + cp /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang/qmake.conf /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang/qplatformdefs.h /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/ + ls -al /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/ total 16 drwxr-xr-x 2 root root 4096 Oct 26 22:50 . drwxr-xr-x 76 root root 4096 Oct 26 22:50 .. -rw-r--r-- 1 root root 276 Oct 26 22:50 qmake.conf -rw-r--r-- 1 root root 3218 Oct 26 22:50 qplatformdefs.h + cat /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf # # qmake configuration for linux-clang # MAKEFILE_GENERATOR = UNIX CONFIG += incremental QMAKE_INCREMENTAL_STYLE = sublib include(../common/linux.conf) include(../common/gcc-base-unix.conf) include(../common/clang.conf) QMAKE_LFLAGS += -ccc-gcc-name g++ load(qt_config) + export QMAKESPEC=/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang/ + QMAKESPEC=/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang/ + sed -i -e 's|compare_problem(2,|compare_problem(0,|g' /usr/bin/dpkg-gensymbols + sed -i -e 's|compare_problem(1,|compare_problem(0,|g' /usr/bin/dpkg-gensymbols + grep 'compare_problem(' /usr/bin/dpkg-gensymbols compare_problem(4, g_('new libraries appeared in the symbols file: %s'), "@libs"); compare_problem(3, g_('some libraries disappeared in the symbols file: %s'), "@libs"); compare_problem(0, g_('some new symbols appeared in the symbols file: %s'), compare_problem(0, g_('some symbols or patterns disappeared in the symbols file: %s'), I: Finished running '/tmp/clang13'. Finished processing commands. -------------------------------------------------------------------------------- I: NOTICE: Log filtering will replace 'build/glimpse-JlALvp/resolver-xi8WIg' with '<>' +------------------------------------------------------------------------------+ | Update chroot | +------------------------------------------------------------------------------+ Hit:1 http://127.0.0.1:12990/debian sid InRelease Reading package lists... Reading package lists... Building dependency tree... Reading state information... Calculating upgrade... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. +------------------------------------------------------------------------------+ | Fetch source files | +------------------------------------------------------------------------------+ Check APT --------- Checking available source versions... Download source files with APT ------------------------------ Reading package lists... NOTICE: 'glimpse' packaging is maintained in the 'Git' version control system at: https://github.com/az143/glimpse.git -b master Please use: git clone https://github.com/az143/glimpse.git -b master to retrieve the latest (possibly unreleased) updates to the package. Need to get 521 kB of source archives. Get:1 http://127.0.0.1:12990/debian sid/main glimpse 4.18.7-6 (dsc) [1747 B] Get:2 http://127.0.0.1:12990/debian sid/main glimpse 4.18.7-6 (tar) [511 kB] Get:3 http://127.0.0.1:12990/debian sid/main glimpse 4.18.7-6 (diff) [8144 B] Fetched 521 kB in 0s (6343 kB/s) Download complete and in download only mode I: NOTICE: Log filtering will replace 'build/glimpse-JlALvp/glimpse-4.18.7' with '<>' I: NOTICE: Log filtering will replace 'build/glimpse-JlALvp' with '<>' +------------------------------------------------------------------------------+ | Install package build dependencies | +------------------------------------------------------------------------------+ Setup apt archive ----------------- Merged Build-Depends: flex, libfl-dev, debhelper (>= 12), build-essential, fakeroot Filtered Build-Depends: flex, libfl-dev, debhelper (>= 12), build-essential, fakeroot dpkg-deb: building package 'sbuild-build-depends-main-dummy' in '/<>/apt_archive/sbuild-build-depends-main-dummy.deb'. Ign:1 copy:/<>/apt_archive ./ InRelease Get:2 copy:/<>/apt_archive ./ Release [957 B] Ign:3 copy:/<>/apt_archive ./ Release.gpg Get:4 copy:/<>/apt_archive ./ Sources [378 B] Get:5 copy:/<>/apt_archive ./ Packages [462 B] Fetched 1797 B in 0s (0 B/s) Reading package lists... Reading package lists... Install main build dependencies (apt-based resolver) ---------------------------------------------------- Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: autoconf automake autopoint autotools-dev bsdextrautils debhelper dh-autoreconf dh-strip-nondeterminism dwz file flex gettext gettext-base groff-base intltool-debian libarchive-zip-perl libdebhelper-perl libelf1 libfile-stripnondeterminism-perl libfl-dev libfl2 libmagic-mgc libmagic1 libpipeline1 libsigsegv2 libsub-override-perl libtool libuchardet0 m4 man-db po-debconf sensible-utils Suggested packages: autoconf-archive gnu-standards autoconf-doc dh-make bison flex-doc gettext-doc libasprintf-dev libgettextpo-dev groff libtool-doc gfortran | fortran95-compiler gcj-jdk m4-doc apparmor less www-browser libmail-box-perl Recommended packages: curl | wget | lynx libarchive-cpio-perl libltdl-dev libmail-sendmail-perl The following NEW packages will be installed: autoconf automake autopoint autotools-dev bsdextrautils debhelper dh-autoreconf dh-strip-nondeterminism dwz file flex gettext gettext-base groff-base intltool-debian libarchive-zip-perl libdebhelper-perl libelf1 libfile-stripnondeterminism-perl libfl-dev libfl2 libmagic-mgc libmagic1 libpipeline1 libsigsegv2 libsub-override-perl libtool libuchardet0 m4 man-db po-debconf sbuild-build-depends-main-dummy sensible-utils 0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded. Need to get 9629 kB of archives. After this operation, 33.4 MB of additional disk space will be used. Get:1 copy:/<>/apt_archive ./ sbuild-build-depends-main-dummy 0.invalid.0 [880 B] Get:2 http://127.0.0.1:12990/debian sid/main amd64 bsdextrautils amd64 2.37.2-4 [143 kB] Get:3 http://127.0.0.1:12990/debian sid/main amd64 libuchardet0 amd64 0.0.7-1 [67.8 kB] Get:4 http://127.0.0.1:12990/debian sid/main amd64 groff-base amd64 1.22.4-7 [935 kB] Get:5 http://127.0.0.1:12990/debian sid/main amd64 libpipeline1 amd64 1.5.3-1 [34.3 kB] Get:6 http://127.0.0.1:12990/debian sid/main amd64 man-db amd64 2.9.4-2 [1354 kB] Get:7 http://127.0.0.1:12990/debian sid/main amd64 libsigsegv2 amd64 2.13-1 [34.8 kB] Get:8 http://127.0.0.1:12990/debian sid/main amd64 m4 amd64 1.4.18-5 [204 kB] Get:9 http://127.0.0.1:12990/debian sid/main amd64 flex amd64 2.6.4-8 [440 kB] Get:10 http://127.0.0.1:12990/debian sid/main amd64 sensible-utils all 0.0.17 [21.5 kB] Get:11 http://127.0.0.1:12990/debian sid/main amd64 libmagic-mgc amd64 1:5.39-3 [273 kB] Get:12 http://127.0.0.1:12990/debian sid/main amd64 libmagic1 amd64 1:5.39-3 [126 kB] Get:13 http://127.0.0.1:12990/debian sid/main amd64 file amd64 1:5.39-3 [69.1 kB] Get:14 http://127.0.0.1:12990/debian sid/main amd64 gettext-base amd64 0.21-4 [175 kB] Get:15 http://127.0.0.1:12990/debian sid/main amd64 autoconf all 2.71-2 [343 kB] Get:16 http://127.0.0.1:12990/debian sid/main amd64 autotools-dev all 20180224.1+nmu1 [77.1 kB] Get:17 http://127.0.0.1:12990/debian sid/main amd64 automake all 1:1.16.5-1 [823 kB] Get:18 http://127.0.0.1:12990/debian sid/main amd64 autopoint all 0.21-4 [510 kB] Get:19 http://127.0.0.1:12990/debian sid/main amd64 libdebhelper-perl all 13.5.2 [192 kB] Get:20 http://127.0.0.1:12990/debian sid/main amd64 libtool all 2.4.6-15 [513 kB] Get:21 http://127.0.0.1:12990/debian sid/main amd64 dh-autoreconf all 20 [17.1 kB] Get:22 http://127.0.0.1:12990/debian sid/main amd64 libarchive-zip-perl all 1.68-1 [104 kB] Get:23 http://127.0.0.1:12990/debian sid/main amd64 libsub-override-perl all 0.09-2 [10.2 kB] Get:24 http://127.0.0.1:12990/debian sid/main amd64 libfile-stripnondeterminism-perl all 1.12.0-2 [26.3 kB] Get:25 http://127.0.0.1:12990/debian sid/main amd64 dh-strip-nondeterminism all 1.12.0-2 [15.5 kB] Get:26 http://127.0.0.1:12990/debian sid/main amd64 libelf1 amd64 0.185-2 [172 kB] Get:27 http://127.0.0.1:12990/debian sid/main amd64 dwz amd64 0.14-1 [98.3 kB] Get:28 http://127.0.0.1:12990/debian sid/main amd64 gettext amd64 0.21-4 [1311 kB] Get:29 http://127.0.0.1:12990/debian sid/main amd64 intltool-debian all 0.35.0+20060710.5 [26.8 kB] Get:30 http://127.0.0.1:12990/debian sid/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get:31 http://127.0.0.1:12990/debian sid/main amd64 debhelper all 13.5.2 [1056 kB] Get:32 http://127.0.0.1:12990/debian sid/main amd64 libfl2 amd64 2.6.4-8 [103 kB] Get:33 http://127.0.0.1:12990/debian sid/main amd64 libfl-dev amd64 2.6.4-8 [104 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 9629 kB in 0s (132 MB/s) Selecting previously unselected package bsdextrautils. (Reading database ... 14273 files and directories currently installed.) Preparing to unpack .../00-bsdextrautils_2.37.2-4_amd64.deb ... Unpacking bsdextrautils (2.37.2-4) ... Selecting previously unselected package libuchardet0:amd64. Preparing to unpack .../01-libuchardet0_0.0.7-1_amd64.deb ... Unpacking libuchardet0:amd64 (0.0.7-1) ... Selecting previously unselected package groff-base. Preparing to unpack .../02-groff-base_1.22.4-7_amd64.deb ... Unpacking groff-base (1.22.4-7) ... Selecting previously unselected package libpipeline1:amd64. Preparing to unpack .../03-libpipeline1_1.5.3-1_amd64.deb ... Unpacking libpipeline1:amd64 (1.5.3-1) ... Selecting previously unselected package man-db. Preparing to unpack .../04-man-db_2.9.4-2_amd64.deb ... Unpacking man-db (2.9.4-2) ... Selecting previously unselected package libsigsegv2:amd64. Preparing to unpack .../05-libsigsegv2_2.13-1_amd64.deb ... Unpacking libsigsegv2:amd64 (2.13-1) ... Selecting previously unselected package m4. Preparing to unpack .../06-m4_1.4.18-5_amd64.deb ... Unpacking m4 (1.4.18-5) ... Selecting previously unselected package flex. Preparing to unpack .../07-flex_2.6.4-8_amd64.deb ... Unpacking flex (2.6.4-8) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../08-sensible-utils_0.0.17_all.deb ... Unpacking sensible-utils (0.0.17) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../09-libmagic-mgc_1%3a5.39-3_amd64.deb ... Unpacking libmagic-mgc (1:5.39-3) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../10-libmagic1_1%3a5.39-3_amd64.deb ... Unpacking libmagic1:amd64 (1:5.39-3) ... Selecting previously unselected package file. Preparing to unpack .../11-file_1%3a5.39-3_amd64.deb ... Unpacking file (1:5.39-3) ... Selecting previously unselected package gettext-base. Preparing to unpack .../12-gettext-base_0.21-4_amd64.deb ... Unpacking gettext-base (0.21-4) ... Selecting previously unselected package autoconf. Preparing to unpack .../13-autoconf_2.71-2_all.deb ... Unpacking autoconf (2.71-2) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../14-autotools-dev_20180224.1+nmu1_all.deb ... Unpacking autotools-dev (20180224.1+nmu1) ... Selecting previously unselected package automake. Preparing to unpack .../15-automake_1%3a1.16.5-1_all.deb ... Unpacking automake (1:1.16.5-1) ... Selecting previously unselected package autopoint. Preparing to unpack .../16-autopoint_0.21-4_all.deb ... Unpacking autopoint (0.21-4) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../17-libdebhelper-perl_13.5.2_all.deb ... Unpacking libdebhelper-perl (13.5.2) ... Selecting previously unselected package libtool. Preparing to unpack .../18-libtool_2.4.6-15_all.deb ... Unpacking libtool (2.4.6-15) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../19-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../20-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../21-libsub-override-perl_0.09-2_all.deb ... Unpacking libsub-override-perl (0.09-2) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../22-libfile-stripnondeterminism-perl_1.12.0-2_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.12.0-2) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../23-dh-strip-nondeterminism_1.12.0-2_all.deb ... Unpacking dh-strip-nondeterminism (1.12.0-2) ... Selecting previously unselected package libelf1:amd64. Preparing to unpack .../24-libelf1_0.185-2_amd64.deb ... Unpacking libelf1:amd64 (0.185-2) ... Selecting previously unselected package dwz. Preparing to unpack .../25-dwz_0.14-1_amd64.deb ... Unpacking dwz (0.14-1) ... Selecting previously unselected package gettext. Preparing to unpack .../26-gettext_0.21-4_amd64.deb ... Unpacking gettext (0.21-4) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../27-intltool-debian_0.35.0+20060710.5_all.deb ... Unpacking intltool-debian (0.35.0+20060710.5) ... Selecting previously unselected package po-debconf. Preparing to unpack .../28-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../29-debhelper_13.5.2_all.deb ... Unpacking debhelper (13.5.2) ... Selecting previously unselected package libfl2:amd64. Preparing to unpack .../30-libfl2_2.6.4-8_amd64.deb ... Unpacking libfl2:amd64 (2.6.4-8) ... Selecting previously unselected package libfl-dev:amd64. Preparing to unpack .../31-libfl-dev_2.6.4-8_amd64.deb ... Unpacking libfl-dev:amd64 (2.6.4-8) ... Selecting previously unselected package sbuild-build-depends-main-dummy. Preparing to unpack .../32-sbuild-build-depends-main-dummy_0.invalid.0_amd64.deb ... Unpacking sbuild-build-depends-main-dummy (0.invalid.0) ... Setting up libpipeline1:amd64 (1.5.3-1) ... Setting up bsdextrautils (2.37.2-4) ... update-alternatives: using /usr/bin/write.ul to provide /usr/bin/write (write) in auto mode Setting up libmagic-mgc (1:5.39-3) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.5.2) ... Setting up libmagic1:amd64 (1:5.39-3) ... Setting up gettext-base (0.21-4) ... Setting up file (1:5.39-3) ... Setting up autotools-dev (20180224.1+nmu1) ... Setting up libsigsegv2:amd64 (2.13-1) ... Setting up autopoint (0.21-4) ... Setting up libfl2:amd64 (2.6.4-8) ... Setting up sensible-utils (0.0.17) ... Setting up libuchardet0:amd64 (0.0.7-1) ... Setting up libsub-override-perl (0.09-2) ... Setting up libelf1:amd64 (0.185-2) ... Setting up libfile-stripnondeterminism-perl (1.12.0-2) ... Setting up gettext (0.21-4) ... Setting up libtool (2.4.6-15) ... Setting up m4 (1.4.18-5) ... Setting up intltool-debian (0.35.0+20060710.5) ... Setting up autoconf (2.71-2) ... Setting up dh-strip-nondeterminism (1.12.0-2) ... Setting up dwz (0.14-1) ... Setting up groff-base (1.22.4-7) ... Setting up automake (1:1.16.5-1) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up flex (2.6.4-8) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up man-db (2.9.4-2) ... Not building database; man-db/auto-update is not 'true'. Setting up libfl-dev:amd64 (2.6.4-8) ... Setting up dh-autoreconf (20) ... Setting up debhelper (13.5.2) ... Setting up sbuild-build-depends-main-dummy (0.invalid.0) ... Processing triggers for libc-bin (2.32-4) ... +------------------------------------------------------------------------------+ | Check architectures | +------------------------------------------------------------------------------+ Arch check ok (amd64 included in any) +------------------------------------------------------------------------------+ | Build environment | +------------------------------------------------------------------------------+ Kernel: Linux 4.19.0-6-cloud-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) amd64 (x86_64) Toolchain package versions: binutils_2.37-7 dpkg-dev_1.20.9 g++-11_11.2.0-10 gcc-11_11.2.0-10 libc6-dev_2.32-4 libstdc++-11-dev_11.2.0-10 libstdc++6_11.2.0-10 linux-libc-dev_5.14.12-1 Package versions: adduser_3.118 apt_2.3.11 autoconf_2.71-2 automake_1:1.16.5-1 autopoint_0.21-4 autotools-dev_20180224.1+nmu1 base-files_12 base-passwd_3.5.52 bash_5.1-3+b2 binutils_2.37-7 binutils-common_2.37-7 binutils-x86-64-linux-gnu_2.37-7 bsdextrautils_2.37.2-4 bsdutils_1:2.37.2-4 build-essential_12.9 bzip2_1.0.8-4 clang-13_1:13.0.0-8 coreutils_8.32-4+b1 cpp_4:11.2.0-2 cpp-11_11.2.0-10 dash_0.5.11+git20210120+802ebd4-2 debconf_1.5.78 debhelper_13.5.2 debian-archive-keyring_2021.1.1 debianutils_5.5-1 dh-autoreconf_20 dh-strip-nondeterminism_1.12.0-2 diffutils_1:3.7-5 dpkg_1.20.9 dpkg-dev_1.20.9 dwz_0.14-1 e2fsprogs_1.46.4-1 fakeroot_1.26-1 file_1:5.39-3 findutils_4.8.0-1 flex_2.6.4-8 g++_4:11.2.0-2 g++-11_11.2.0-10 gcc_4:11.2.0-2 gcc-10-base_10.3.0-11 gcc-11_11.2.0-10 gcc-11-base_11.2.0-10 gcc-9-base_9.4.0-3 gettext_0.21-4 gettext-base_0.21-4 gpgv_2.2.27-2 grep_3.7-1 groff-base_1.22.4-7 gzip_1.10-4 hostname_3.23 init-system-helpers_1.60 intltool-debian_0.35.0+20060710.5 lib32gcc-s1_11.2.0-10 lib32stdc++6_11.2.0-10 libacl1_2.3.1-1 libapt-pkg6.0_2.3.11 libarchive-zip-perl_1.68-1 libasan5_9.4.0-3 libasan6_11.2.0-10 libatomic1_11.2.0-10 libattr1_1:2.5.1-1 libaudit-common_1:3.0.6-1 libaudit1_1:3.0.6-1 libbinutils_2.37-7 libblkid1_2.37.2-4 libbsd0_0.11.3-1 libbz2-1.0_1.0.8-4 libc-bin_2.32-4 libc-dev-bin_2.32-4 libc6_2.32-4 libc6-dev_2.32-4 libc6-i386_2.32-4 libcap-ng0_0.7.9-2.2+b1 libcap2_1:2.44-1 libcc1-0_11.2.0-10 libclang-common-13-dev_1:13.0.0-8 libclang-cpp13_1:13.0.0-8 libclang1-13_1:13.0.0-8 libcom-err2_1.46.4-1 libcrypt-dev_1:4.4.25-2 libcrypt1_1:4.4.25-2 libctf-nobfd0_2.37-7 libctf0_2.37-7 libdb5.3_5.3.28+dfsg1-0.8 libdebconfclient0_0.260 libdebhelper-perl_13.5.2 libdpkg-perl_1.20.9 libedit2_3.1-20210910-1 libelf1_0.185-2 libext2fs2_1.46.4-1 libfakeroot_1.26-1 libffi8_3.4.2-3 libfile-stripnondeterminism-perl_1.12.0-2 libfl-dev_2.6.4-8 libfl2_2.6.4-8 libgc1_1:8.0.4-3 libgcc-11-dev_11.2.0-10 libgcc-9-dev_9.4.0-3 libgcc-s1_11.2.0-10 libgcrypt20_1.9.4-3+b1 libgdbm-compat4_1.22-1 libgdbm6_1.22-1 libgmp10_2:6.2.1+dfsg-2 libgnutls30_3.7.2-2 libgomp1_11.2.0-10 libgpg-error0_1.42-3 libgssapi-krb5-2_1.18.3-7 libhogweed6_3.7.3-1 libicu67_67.1-7 libidn2-0_2.3.2-2 libisl23_0.24-2 libitm1_11.2.0-10 libk5crypto3_1.18.3-7 libkeyutils1_1.6.1-2 libkrb5-3_1.18.3-7 libkrb5support0_1.18.3-7 libllvm13_1:13.0.0-8 liblsan0_11.2.0-10 liblz4-1_1.9.3-2 liblzma5_5.2.5-2 libmagic-mgc_1:5.39-3 libmagic1_1:5.39-3 libmd0_1.0.4-1 libmount1_2.37.2-4 libmpc3_1.2.1-1 libmpfr6_4.1.0-3 libnettle8_3.7.3-1 libnsl-dev_1.3.0-2 libnsl2_1.3.0-2 libobjc-11-dev_11.2.0-10 libobjc-9-dev_9.4.0-3 libobjc4_11.2.0-10 libomp-13-dev_1:13.0.0-8 libomp5-13_1:13.0.0-8 libp11-kit0_0.24.0-5 libpam-modules_1.4.0-10 libpam-modules-bin_1.4.0-10 libpam-runtime_1.4.0-10 libpam0g_1.4.0-10 libpcre2-8-0_10.36-2 libpcre3_2:8.39-13 libperl5.32_5.32.1-6 libpipeline1_1.5.3-1 libquadmath0_11.2.0-10 libseccomp2_2.5.2-2 libselinux1_3.1-3 libsemanage-common_3.1-1 libsemanage1_3.1-1+b2 libsepol1_3.1-1 libsigsegv2_2.13-1 libsmartcols1_2.37.2-4 libss2_1.46.4-1 libssl1.1_1.1.1l-1 libstdc++-11-dev_11.2.0-10 libstdc++6_11.2.0-10 libsub-override-perl_0.09-2 libsystemd0_249.5-1 libtasn1-6_4.17.0-2 libtinfo6_6.2+20210905-1 libtirpc-common_1.3.2-2 libtirpc-dev_1.3.2-2 libtirpc3_1.3.2-2 libtool_2.4.6-15 libtsan0_11.2.0-10 libubsan1_11.2.0-10 libuchardet0_0.0.7-1 libudev1_249.5-1 libunistring2_0.9.10-6 libuuid1_2.37.2-4 libxml2_2.9.12+dfsg-5 libxxhash0_0.8.0-2 libz3-4_4.8.12-1+b1 libzstd1_1.4.8+dfsg-3 linux-libc-dev_5.14.12-1 login_1:4.8.1-1 logsave_1.46.4-1 lsb-base_11.1.0 m4_1.4.18-5 make_4.3-4.1 man-db_2.9.4-2 mawk_1.3.4.20200120-2 mount_2.37.2-4 ncurses-base_6.2+20210905-1 ncurses-bin_6.2+20210905-1 passwd_1:4.8.1-1 patch_2.7.6-7 perl_5.32.1-6 perl-base_5.32.1-6 perl-modules-5.32_5.32.1-6 po-debconf_1.0.21+nmu1 qt5-qmake_5.15.2+dfsg-12 qt5-qmake-bin_5.15.2+dfsg-12 qtchooser_66-2 rpcsvc-proto_1.4.2-4 sbuild-build-depends-main-dummy_0.invalid.0 sed_4.8-1 sensible-utils_0.0.17 sysvinit-utils_3.00-1 tar_1.34+dfsg-1 tzdata_2021e-1 util-linux_2.37.2-4 xz-utils_5.2.5-2 zlib1g_1:1.2.11.dfsg-2 +------------------------------------------------------------------------------+ | Build | +------------------------------------------------------------------------------+ Unpack source ------------- -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 3.0 (quilt) Source: glimpse Binary: glimpse Architecture: any Version: 4.18.7-6 Maintainer: Alexander Zangerl Standards-Version: 4.3.0 Vcs-Browser: https://github.com/az143/glimpse Vcs-Git: https://github.com/az143/glimpse.git -b master Build-Depends: flex, libfl-dev, debhelper (>= 12) Package-List: glimpse deb text optional arch=any Checksums-Sha1: 0b26cbef72e8a3f56a4cef14f5e74d2e56bd057f 511222 glimpse_4.18.7.orig.tar.gz 4968a5900ce25e3400b72ed44240441d520e2900 8144 glimpse_4.18.7-6.debian.tar.xz Checksums-Sha256: ec52abb0da27d90518989024289077b81c3786630373902c1db749d3aa072a2c 511222 glimpse_4.18.7.orig.tar.gz f64a252d94de997743a5d904199c28282d8e77a7d5e9f787930e39d7cdb59e0a 8144 glimpse_4.18.7-6.debian.tar.xz Files: a99093e1e52dc2aa548dbc3ca132679d 511222 glimpse_4.18.7.orig.tar.gz af36f717825ce6ac3646cb4ea844b9b2 8144 glimpse_4.18.7-6.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJfZedTAAoJED06g4g30PqNqm0QAKOwAM3sOsgSW6vCOPaHbjS0 Ui+fPZaeieYdhD4HPSWXwrd3N0UQUa4oveXc0Oal+0LzDZhyDbNg+youQpoSvaAQ jV1eq4mCUQs0e6ZT3LYjCsqa69Xtdvp/0C1+ErizvjLPyK4RgvDwuwv23jBZNrKs Jf1+Q+gNngvsFdfMXB/35k6VQvimFyi2y8kVt2ORgoJ+ZMII1hlnd/M9wqlyovi/ h4y+RiIYCMjYCyVpNfccpDv9YZo5kkF0DrbJoYLZCypUssqX+UcTj8RsTM239yEL wkIMHYfL9/B8yzbLvKWR1wTsYJ2RnTvYndKExsstb/cMGHd3+QFxBuwre1wdsJzj HFuBhNWG7i1woXDDNdEhycanJHH6PmMZUm31aumJyEnmVWrejUtz+r/f9al61FRE vSWimNJ3DUpTEzp4nUvoA35+RzAy3/BewmIKNr2bdZ3bCV2pLYtRiu+2Gv9z1tCW ve+yVa6CA3qyrf7aZLokLQXWdkT9Xp4TeAoXZ8trQ54zb2qQ9Ju2cQAOCOA15a4/ THOXIVumj1I6nfKwwSsv1yCYcLtDu4V27Uf238xJI0wSRWsXONU4aBGGMl/10zKZ fR0VAMCRWLXm+KVhUcEkFeLqC71qhwpGYCbZ/gloKC+yTElO+LH0NkHc+mBhc/Gr /Wxao6/c+Il+Ug+y1ltT =SnJP -----END PGP SIGNATURE----- gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/tmp/dpkg-verify-sig.2AVYdKDY/trustedkeys.kbx': General error gpgv: Signature made Sat Sep 19 11:11:15 2020 UTC gpgv: using RSA key 3D3A838837D0FA8D gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./glimpse_4.18.7-6.dsc dpkg-source: info: extracting glimpse in /<> dpkg-source: info: unpacking glimpse_4.18.7.orig.tar.gz dpkg-source: info: unpacking glimpse_4.18.7-6.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying 01-makefile dpkg-source: info: applying 01-manpages dpkg-source: info: applying 01-cross dpkg-source: info: applying 12-manpage-hyphen dpkg-source: info: applying 15-manpage-url dpkg-source: info: applying 20-bin-spelling dpkg-source: info: applying 25-fix-double-free dpkg-source: info: applying 30-manpage-spelling Check disk space ---------------- Sufficient free space for build User Environment ---------------- APT_CONFIG=/var/lib/sbuild/apt.conf HOME=/sbuild-nonexistent LANG=C.UTF-8 LC_ALL=C.UTF-8 LOGNAME=user42 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games SCHROOT_ALIAS_NAME=unstable SCHROOT_CHROOT_NAME=sid-amd64-sbuild SCHROOT_COMMAND=env SCHROOT_GID=1001 SCHROOT_GROUP=user42 SCHROOT_SESSION_ID=sid-amd64-sbuild-e557b45f-9e80-45ed-ba57-0b3d81485382 SCHROOT_UID=1001 SCHROOT_USER=user42 SHELL=/bin/sh USER=user42 dpkg-buildpackage ----------------- Command: dpkg-buildpackage -us -uc -b -rfakeroot dpkg-buildpackage: info: source package glimpse dpkg-buildpackage: info: source version 4.18.7-6 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Alexander Zangerl dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean dh clean --without autoreconf dh_clean debian/rules build dh build --without autoreconf dh_update_autotools_config debian/rules override_dh_auto_configure make[1]: Entering directory '/<>' autoconf configure.in:3: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.in:3: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.in:3: the top level configure.in:19: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete ./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from... ./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from... configure.in:19: the top level configure.in:27: warning: The macro `ac_cv_prog_gcc' is obsolete. configure.in:27: You should run autoupdate. ./lib/autoconf/c.m4:440: ac_cv_prog_gcc is expanded from... configure.in:27: the top level configure.in:51: warning: The macro `AC_HEADER_STDC' is obsolete. configure.in:51: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.in:51: the top level configure.in:57: warning: The macro `AC_HEADER_TIME' is obsolete. configure.in:57: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.in:57: the top level configure.in:63: warning: The macro `AC_TYPE_SIGNAL' is obsolete. configure.in:63: You should run autoupdate. ./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from... configure.in:63: the top level configure.in:144: warning: AC_OUTPUT should be used without arguments. configure.in:144: You should run autoupdate. dh_auto_configure ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking for ar... /usr/bin/ar checking for ranlib... ranlib checking whether ln -s works... yes checking for flex... flex checking for lex output file root... lex.yy checking for lex library... none needed checking for library containing yywrap... -ll checking whether yytext is a pointer... yes checking for strip... /usr/bin/strip checking for cp... /bin/cp checking for a BSD-compatible install... /usr/bin/install -c checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for sys/time.h... yes checking for utime.h... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fcntl.h... yes checking for sys/file.h... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/select.h... yes checking for sys/dir.h... yes checking for sys/ndir.h... no checking for strerr.h... no checking for an ANSI C-conforming const... yes checking return type of signal handlers... void checking whether utime accepts a null argument... yes checking for strdup... yes checking for strerror... yes checking for sqrt in -lm... yes checking for dlopen in -lc... no checking for dlopen in -ldl... yes checking for connect... yes checking for gethostbyname... yes configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating index/Makefile config.status: creating compress/Makefile config.status: creating agrep/Makefile config.status: WARNING: 'agrep/Makefile.in' seems to ignore the --datarootdir setting config.status: creating dynfilters/Makefile config.status: creating libtemplate/Makefile config.status: creating libtemplate/util/Makefile config.status: creating libtemplate/template/Makefile config.status: creating libtemplate/lib/Makefile config.status: creating libtemplate/include/autoconf.h make[1]: Leaving directory '/<>' debian/rules override_dh_auto_build make[1]: Entering directory '/<>' /usr/bin/make DEBUGFLAGS="-g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" OTHERLIBS="-Wl,-z,relro -Wl,-z,now" make[2]: Entering directory '/<>' [ -d bin ] || mkdir bin [ -d lib ] || mkdir lib for d in compress agrep libtemplate index dynfilters ; do \ ( cd $d; /usr/bin/make ); \ done make[3]: Entering directory '/<>/compress' gcc -I../index -I../agrep -I../libtemplate/include -O2 -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hash.o hash.c hash.c:168:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] thash4k(word, len) ^ hash.c:212:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *i = thash4k(word, len); ^~~~ hash.c:280:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fprintf(hashfp, "%d %d %s\n", thash64k(e->word, strlen(e->word)), wordindex, e->word); /* must look like I used 64K table */ ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:116:51: note: expanded from macro 'fprintf' __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__) ^~~~~~~~~~~ hash.c:522:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] pad_hash_file(filename, FILEBLOCKSIZE) ^ hash.c:636:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] system((const char *)buf); ^~~~~~ ~~~~~~~~~~~~~~~~~ 5 warnings generated. gcc -I../index -I../agrep -I../libtemplate/include -O2 -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o string.o string.c string.c:28:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((stringfp = fopen(string_file, "w")) == NULL) { ^~~~~~~~~~~ /usr/include/stdio.h:246:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ string.c:32:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((indexfp = fopen(index_file, "r")) == NULL) { ^~~~~~~~~~ /usr/include/stdio.h:246:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ string.c:213:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] pad_string_file(filename, FILEBLOCKSIZE) ^ string.c:225:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((infp = fopen(filename, "r")) == NULL) { ^~~~~~~~ /usr/include/stdio.h:246:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ string.c:229:10: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(buf, "%s.index", filename); ^~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:43:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^~~ string.c:230:23: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((indexfp = fopen(buf, "w")) == NULL) { ^~~ /usr/include/stdio.h:246:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ string.c:235:10: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(buf, "%s.%d", filename, pid); ^~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:43:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^~~ string.c:236:21: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((outfp = fopen(buf, "w")) == NULL) { ^~~ /usr/include/stdio.h:246:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ string.c:249:27: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((char *)buf != fgets(buf, MAX_NAME_LEN, infp)) goto end_of_input; ^~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:260:25: note: passing argument to parameter '__s' here fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ string.c:251:8: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(buf, outfp); ^~~ /usr/include/stdio.h:631:42: note: passing argument to parameter '__s' here extern int fputs (const char *__restrict __s, FILE *__restrict __stream); ^ string.c:256:14: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] while(fgets(buf, MAX_NAME_LEN, infp) == (char *)buf) { ^~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:260:25: note: passing argument to parameter '__s' here fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ string.c:261:10: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(buf, outfp); ^~~ /usr/include/stdio.h:631:42: note: passing argument to parameter '__s' here extern int fputs (const char *__restrict __s, FILE *__restrict __stream); ^ string.c:265:14: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else fputs(buf, outfp); ^~~ /usr/include/stdio.h:631:42: note: passing argument to parameter '__s' here extern int fputs (const char *__restrict __s, FILE *__restrict __stream); ^ string.c:277:10: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(buf, "exec %s %s.%d %s\n", SYSTEM_MV, tescapesinglequote(filename, es1), pid, tescapesinglequote(filename, es2)); ^~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:43:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^~~ string.c:278:9: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] system(buf); ^~~ /usr/include/stdlib.h:784:32: note: passing argument to parameter '__command' here extern int system (const char *__command) __wur; ^ string.c:278:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] system(buf); ^~~~~~ ~~~ 16 warnings generated. gcc -I../index -I../agrep -I../libtemplate/include -O2 -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o misc.o misc.c misc.c:34:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] set_usemalloc() ^ misc.c:37:1: warning: non-void function does not return a value [-Wreturn-type] } ^ misc.c:39:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] unset_usemalloc() ^ misc.c:42:1: warning: non-void function does not return a value [-Wreturn-type] } ^ misc.c:61:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] myfpcopy(fp, src) ^ misc.c:75:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] mystrcpy(dest, src) ^ misc.c:80:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*dest = *src) { ~~~~~~^~~~~~ misc.c:80:14: note: place parentheses around the assignment to silence this warning while(*dest = *src) { ^ ( ) misc.c:80:14: note: use '==' to turn this assignment into an equality comparison while(*dest = *src) { ^ == misc.c:203:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] build_freq(freq_words_table, freq_words_strings, freq_words_lens, freq_file, flags) ^ misc.c:231:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] fscanf(fp, "%d\n", &freq_words); ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ misc.c:274:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] initialize_common(freq_file, flags) ^ misc.c:291:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] uninitialize_common() ^ misc.c:294:2: error: non-void function 'uninitialize_common' should return a value [-Wreturn-type] return; ^ 11 warnings and 1 error generated. make[3]: *** [: misc.o] Error 1 make[3]: Leaving directory '/<>/compress' make[3]: Entering directory '/<>/agrep' gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o follow.o follow.c gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o asearch.o asearch.c asearch.c:47:10: warning: implicit declaration of function 'asearch0' is invalid in C99 [-Wimplicit-function-declaration] return asearch0(old_D_pat, text, D); ^ asearch.c:69:15: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while ((l = fill_buf(text, buffer + Max_record, BlockSize)) > 0) ^ asearch.c:184:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:187:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:313:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:316:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:486:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:489:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:616:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:619:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:696:15: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while ((l = fill_buf(text, buffer + Max_record, BlockSize)) > 0) ^ asearch.c:788:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:791:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:888:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:891:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:1033:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:1036:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:1133:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ asearch.c:1136:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, printout_end, j)) {free_buf(text, buffer); return -1;} ^ 19 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o asearch1.o asearch1.c asearch1.c:62:22: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Max_record, BlockSize)) > 0) ^ asearch1.c:77:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer+Max_record+num_read, old_D_pat, D_length); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ asearch1.c:158:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} ^ asearch1.c:161:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} ^ asearch1.c:255:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} ^ asearch1.c:258:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} ^ asearch1.c:287:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer+Max_record-ResidueSize, buffer+lasti, ResidueSize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ asearch1.c:287:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer+Max_record-ResidueSize, buffer+lasti, ResidueSize); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ asearch1.c:395:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} ^ asearch1.c:398:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} ^ asearch1.c:492:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} ^ asearch1.c:495:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, i-D_length-1, j)) {free_buf(Text, buffer); return -1;} ^ 12 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o agrep.o agrep.c agrep.c:177:24: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean) destroy_tree(AParse); ^ agrep.c:209:16: warning: passing 'unsigned char [32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(D_pattern, original_D_pattern); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:209:27: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(D_pattern, original_D_pattern); ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:211:16: warning: passing 'unsigned char [32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(old_D_pat, original_old_D_pat); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:211:27: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(old_D_pat, original_old_D_pat); ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:264:9: warning: passing 'unsigned char [32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tc_D_pattern, "\n"); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:329:7: warning: implicit declaration of function 'exponen' is invalid in C99 [-Wimplicit-function-declaration] k = exponen(M); ^ agrep.c:346:6: warning: implicit declaration of function 'exponen' is invalid in C99 [-Wimplicit-function-declaration] k = exponen(M/2); ^ agrep.c:425:22: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Maxline, BlockSize)) > 0) ^ agrep.c:516:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:600:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:615:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer, buffer+num_read, Maxline); ^~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:615:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer, buffer+num_read, Maxline); ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:705:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:789:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:813:22: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Maxline, BlockSize)) > 0) ^ agrep.c:946:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:1082:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:1106:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer, buffer+num_read, Maxline); ^~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:1106:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer, buffer+num_read, Maxline); ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:1237:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:1373:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:1439:22: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Maxline, BlockSize)) > 0) ^ agrep.c:1525:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:1605:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:1624:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer+Maxline-ResidueSize, buffer+lasti, ResidueSize); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:1624:40: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer+Maxline-ResidueSize, buffer+lasti, ResidueSize); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:1710:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:1790:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:1814:22: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while ((num_read = fill_buf(Text, buffer + Maxline, BlockSize)) > 0) ^ agrep.c:1921:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:2020:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:2045:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer, buffer+num_read, Maxline); ^~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:2045:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer, buffer+num_read, Maxline); ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:2150:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i-1, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:2249:17: warning: implicit declaration of function 'r_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == r_output(buffer, i, end, j)) {free_buf(Text, buffer); return -1;} ^ agrep.c:2464:10: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(Progname, argv[0], MAXNAME); ^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:2465:23: warning: implicit declaration of function 'agrep_usage' is invalid in C99 [-Wimplicit-function-declaration] if (argc < 2) return agrep_usage(); ^ agrep.c:2634:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(D_pattern+1, argv[0]); ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2651:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(D_pattern+1, p + 1); ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2655:12: warning: passing 'unsigned char [32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(D_pattern, ">; "); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:33: note: passing argument to parameter '__dest' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2659:12: warning: passing 'unsigned char [32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(original_D_pattern, D_pattern); ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2659:32: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(original_D_pattern, D_pattern); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2697:14: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(Pattern, (argv)[0]); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:33: note: passing argument to parameter '__dest' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2699:18: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcat(Pattern, argv[0]); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:33: note: passing argument to parameter '__dest' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2705:14: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(Pattern, p+1); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:33: note: passing argument to parameter '__dest' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2707:19: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcat (Pattern, p+1); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:33: note: passing argument to parameter '__dest' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2712:21: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] pattern_index = abs(argv - original_argv); ^ agrep.c:2712:21: note: use function 'labs' instead pattern_index = abs(argv - original_argv); ^~~ labs agrep.c:2728:13: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(Pattern, argv[0]); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:33: note: passing argument to parameter '__dest' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2748:14: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat (Pattern, p+1); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:33: note: passing argument to parameter '__dest' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:2751:21: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] pattern_index = abs(argv - original_argv); ^ agrep.c:2751:21: note: use function 'labs' instead pattern_index = abs(argv - original_argv); ^~~ labs agrep.c:2801:9: warning: implicit declaration of function 'prepf' is invalid in C99 [-Wimplicit-function-declaration] if (prepf(multifd, NULL, 0) <= -1) { ^ agrep.c:3013:4: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] getcwd(COMP_DIR, MAX_LINE_LEN-1); ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ agrep.c:3028:2: warning: implicit declaration of function 'initialize_common' is invalid in C99 [-Wimplicit-function-declaration] initialize_common(FREQ_FILE, 0); /* no error msgs */ ^ agrep.c:3053:10: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(Pattern, *argv); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3054:19: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] pattern_index = abs(argv - original_argv); ^ agrep.c:3054:19: note: use function 'labs' instead pattern_index = abs(argv - original_argv); ^~~ labs agrep.c:3082:38: warning: implicit declaration of function 'check_file' is invalid in C99 [-Wimplicit-function-declaration] if (!glimpse_call && ((filetype = check_file(*argv)) == NOSUCHFILE) && !PRINTNONEXISTENTFILE) { ^ agrep.c:3095:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(Textfiles[Numfiles++], *argv++); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3102:13: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] M = strlen(Pattern); ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ agrep.c:3127:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(pattern_buffer, Pattern, M+1); /* copy \0 */ ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:3127:27: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(pattern_buffer, Pattern, M+1); /* copy \0 */ ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:3144:50: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return (agrep_init(argc, argv, -1, pattern_len, pattern_buffer)); ^~~~~~~~~~~~~~ agrep.c:3154:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return (agrep_init(argc, argv, 3, pattern_len, pattern_buffer)); ^~~~~~~~~~~~~~ agrep.c:3186:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp(agrep_saved_pattern, pattern_buffer)) { ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:140:32: note: passing argument to parameter '__s1' here extern int strcmp (const char *__s1, const char *__s2) ^ agrep.c:3186:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp(agrep_saved_pattern, pattern_buffer)) { ^~~~~~~~~~~~~~ /usr/include/string.h:140:50: note: passing argument to parameter '__s2' here extern int strcmp (const char *__s1, const char *__s2) ^ agrep.c:3206:12: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(Pattern, pattern_buffer, pattern_len+1); /* copy \0 */ ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:3206:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(Pattern, pattern_buffer, pattern_len+1); /* copy \0 */ ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ agrep.c:3207:14: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] M = strlen(Pattern); ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ agrep.c:3258:38: warning: implicit declaration of function 'check_file' is invalid in C99 [-Wimplicit-function-declaration] if (!glimpse_call && ((filetype = check_file(*(char **)input)) == NOSUCHFILE) && !PRINTNONEXISTENTFILE) { ^ agrep.c:3290:13: warning: implicit declaration of function 'checksg' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == checksg(Pattern, D, 1)) return -1; /* check if the pattern is simple */ ^ agrep.c:3291:10: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(OldPattern, Pattern); ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3291:22: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(OldPattern, Pattern); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3294:14: warning: implicit declaration of function 'preprocess' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == preprocess(D_pattern, Pattern)) return -1; ^ agrep.c:3295:11: warning: passing 'unsigned char [32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(old_D_pat, D_pattern); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3295:22: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(old_D_pat, D_pattern); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3297:25: warning: implicit declaration of function 'maskgen' is invalid in C99 [-Wimplicit-function-declaration] if(!AParse && ((M = maskgen(Pattern, D)) == -1)) return -1; ^ agrep.c:3304:24: warning: implicit declaration of function 'quick_tcompress' is invalid in C99 [-Wimplicit-function-declaration] if ((tc_D_length = quick_tcompress(FREQ_FILE,HASH_FILE,D_pattern,D_length,tc_D_pattern,MaxDelimit*2,TC_EASYSEARCH)) <= 0) { ^ agrep.c:3305:13: warning: passing 'unsigned char [32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tc_D_pattern, D_pattern); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3305:27: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tc_D_pattern, D_pattern); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3310:15: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] M = strlen(OldPattern); ^~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ agrep.c:3317:15: warning: implicit declaration of function 'prepf' is invalid in C99 [-Wimplicit-function-declaration] prepf_ret= prepf(-1, multibuf, multilen); ^ agrep.c:3319:25: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean) destroy_tree(AParse); ^ agrep.c:3333:35: warning: implicit declaration of function 'exec' is invalid in C99 [-Wimplicit-function-declaration] if (agrep_initialfd == -1) ret = exec(execfd, NULL); ^ agrep.c:3334:28: warning: implicit declaration of function 'recursive' is invalid in C99 [-Wimplicit-function-declaration] else if(RECURSIVE) ret = (recursive(Numfiles, Textfiles)); ^ agrep.c:3353:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return(agrep_search(pattern_len, pattern_buffer, -1, input_len, input_buffer, output_len, output)); ^~~~~~~~~~~~~~ agrep.c:3365:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return(agrep_search(pattern_len, pattern_buffer, 3, file_num, file_buffer, output_len, output)); ^~~~~~~~~~~~~~ agrep.c:3396:47: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((ret = memagrep_init(argc, argv, MAXPAT, Pattern)) < 0) return -1; ^~~~~~~ agrep.c:3399:30: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return memagrep_search(ret, Pattern, input_len, input_buffer, output_len, output); ^~~~~~~ agrep.c:3411:48: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((ret = fileagrep_init(argc, argv, MAXPAT, Pattern)) < 0) return -1; ^~~~~~~ agrep.c:3414:31: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return fileagrep_search(ret, Pattern, 0, NULL, output_len, output); ^~~~~~~ agrep.c:3443:13: warning: implicit declaration of function 'compat' is invalid in C99 [-Wimplicit-function-declaration] if ((-1 == compat())) return -1; /* check compatibility between options */ ^ agrep.c:3456:30: warning: implicit declaration of function 'mgrep' is invalid in C99 [-Wimplicit-function-declaration] if(PAT_FILE || PAT_BUFFER) mgrep(fd, AParse); ^ agrep.c:3458:20: warning: implicit declaration of function 'sgrep' is invalid in C99 [-Wimplicit-function-declaration] if(SGREP) ret = sgrep(OldPattern, strlen(OldPattern), fd, D, 0); ^ agrep.c:3458:45: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if(SGREP) ret = sgrep(OldPattern, strlen(OldPattern), fd, D, 0); ^~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ agrep.c:3459:20: warning: implicit declaration of function 'bitap' is invalid in C99 [-Wimplicit-function-declaration] else ret = bitap(old_D_pat, Pattern, fd, M, D); ^ agrep.c:3512:34: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (PRINTFILENUMBER) sprintf(CurrentFileName, "%d", i); ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:43:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^~~ agrep.c:3513:17: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, file_list[i]); ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3519:9: warning: implicit declaration of function 'tuncompressible_filename' is invalid in C99 [-Wimplicit-function-declaration] if (!tuncompressible_filename(file_list[i], strlen(file_list[i]))) TCOMPRESSED = OFF; ^ agrep.c:3526:32: warning: implicit declaration of function 'mgrep' is invalid in C99 [-Wimplicit-function-declaration] if(PAT_FILE || PAT_BUFFER) mgrep(fd, AParse); ^ agrep.c:3528:22: warning: implicit declaration of function 'sgrep' is invalid in C99 [-Wimplicit-function-declaration] if(SGREP) ret = sgrep(OldPattern, strlen(OldPattern), fd, D, i); ^ agrep.c:3528:47: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if(SGREP) ret = sgrep(OldPattern, strlen(OldPattern), fd, D, i); ^~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ agrep.c:3529:22: warning: implicit declaration of function 'bitap' is invalid in C99 [-Wimplicit-function-declaration] else ret = bitap(old_D_pat, Pattern, fd, M, D); ^ agrep.c:3700:16: warning: implicit declaration of function 'file_out' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == file_out(file_list[i])) { ^ agrep.c:3721:14: warning: implicit declaration of function 'preprocess' is invalid in C99 [-Wimplicit-function-declaration] if(-1 == preprocess(D_pattern, Pattern)) return -1; ^ agrep.c:3722:12: warning: passing 'unsigned char [32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(old_D_pat, D_pattern); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3722:23: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(old_D_pat, D_pattern); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3723:13: warning: implicit declaration of function 'maskgen' is invalid in C99 [-Wimplicit-function-declaration] if((M = maskgen(Pattern, D)) == -1) return -1; ^ agrep.c:3731:35: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (PRINTFILENUMBER) sprintf(CurrentFileName, "%d", i); ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:43:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^~~ agrep.c:3732:18: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, file_list[i]); ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3736:34: warning: implicit declaration of function 'mgrep' is invalid in C99 [-Wimplicit-function-declaration] if(PAT_FILE || PAT_BUFFER) mgrep(fd, AParse); ^ agrep.c:3738:24: warning: implicit declaration of function 'sgrep' is invalid in C99 [-Wimplicit-function-declaration] if(SGREP) ret = sgrep(OldPattern,strlen(OldPattern),fd,D, i); ^ agrep.c:3738:48: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if(SGREP) ret = sgrep(OldPattern,strlen(OldPattern),fd,D, i); ^~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ agrep.c:3739:19: warning: implicit declaration of function 'bitap' is invalid in C99 [-Wimplicit-function-declaration] else ret = bitap(old_D_pat,Pattern,fd,M,D); ^ agrep.c:3783:35: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (PRINTFILENUMBER) sprintf(CurrentFileName, "%d", i); ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:43:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^~~ agrep.c:3784:18: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, file_list[i]); ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ agrep.c:3788:34: warning: implicit declaration of function 'mgrep' is invalid in C99 [-Wimplicit-function-declaration] if(PAT_FILE || PAT_BUFFER) mgrep(fd, AParse); ^ agrep.c:3790:24: warning: implicit declaration of function 'sgrep' is invalid in C99 [-Wimplicit-function-declaration] if(SGREP) ret = sgrep(OldPattern,strlen(OldPattern),fd,D, i); ^ agrep.c:3790:48: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if(SGREP) ret = sgrep(OldPattern,strlen(OldPattern),fd,D, i); ^~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ agrep.c:3791:19: warning: implicit declaration of function 'bitap' is invalid in C99 [-Wimplicit-function-declaration] else ret = bitap(old_D_pat,Pattern,fd,M,D); ^ agrep.c:3868:21: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while((num_read = fill_buf(fd, buf, SIZE)) > 0) ^ agrep.c:3869:4: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] write(1, buf, num_read); ^~~~~ ~~~~~~~~~~~~~~~~ agrep.c:3876:19: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] if ((num_read = fill_buf(fd, agrep_outbuffer + agrep_outpointer, agrep_outlen - agrep_outpointer)) > 0) ^ 122 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o bitap.o bitap.c bitap.c:70:11: warning: implicit declaration of function 're' is invalid in C99 [-Wimplicit-function-declaration] return re(fd, M, D); /* SUN: need to find a even point */ ^ bitap.c:73:11: warning: implicit declaration of function 're1' is invalid in C99 [-Wimplicit-function-declaration] return re1(fd, M, D); ^ bitap.c:78:10: warning: implicit declaration of function 'asearch1' is invalid in C99 [-Wimplicit-function-declaration] return asearch1(old_D_pat, fd, D); ^ bitap.c:82:10: warning: implicit declaration of function 'asearch' is invalid in C99 [-Wimplicit-function-declaration] return asearch(old_D_pat, fd, D); ^ bitap.c:104:22: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while ((num_read = fill_buf(fd, buffer + Max_record, BlockSize)) > 0) ^ bitap.c:122:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer+Max_record+num_read, old_D_pat, D_length); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ bitap.c:195:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, print_end, j - (NumBufferFills - 1))) { free_buf(fd, buffer); return -1;} ^ bitap.c:275:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, print_end, j - (NumBufferFills - 1))) { free_buf(fd, buffer); return -1;} ^ bitap.c:297:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer+Max_record-ResidueSize, buffer+lasti, ResidueSize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ bitap.c:297:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(buffer+Max_record-ResidueSize, buffer+lasti, ResidueSize); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ bitap.c:396:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, print_end, j)) { free_buf(fd, buffer); return -1;} ^ bitap.c:476:18: warning: implicit declaration of function 'output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == output(buffer, lasti, print_end, j)) { free_buf(fd, buffer); return -1;} ^ bitap.c:498:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fill_buf(fd, buf, record_size) ^ 13 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o checkfile.o checkfile.c checkfile.c:47:6: warning: implicit declaration of function 'my_stat' is invalid in C99 [-Wimplicit-function-declaration] if (my_stat(fname, &buf) != 0) { ^ 1 warning generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o compat.o compat.c compat.c:9:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern FILEOUT; ~~~~~~ ^ compat.c:10:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern REGEX; ~~~~~~ ^ compat.c:11:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern DELIMITER; ~~~~~~ ^ compat.c:12:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern WHOLELINE; ~~~~~~ ^ compat.c:13:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern LINENUM; ~~~~~~ ^ compat.c:14:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern I, S, DD; ~~~~~~ ^ compat.c:14:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern I, S, DD; ~~~~~~ ^ compat.c:14:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern I, S, DD; ~~~~~~ ^ compat.c:15:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern JUMP; ~~~~~~ ^ 9 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o maskgen.o maskgen.c maskgen.c:6:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ~~~~~~ ^ maskgen.c:6:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ~~~~~~ ^ maskgen.c:6:23: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ~~~~~~ ^ maskgen.c:6:31: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern Mask[], Bit[], Init[], NO_ERR_MASK; ~~~~~~ ^ maskgen.c:34:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((M = strlen(Pattern)) <= 0) return 0; ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ 5 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o parse.o parse.c parse.c:45:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] new_node(Re_Lit, l, l); ^ ../agrep/re.h:75:3: note: expanded from macro 'new_node' exit(2);\ ^ parse.c:45:2: note: include the header or explicitly provide a declaration for 'exit' ../agrep/re.h:75:3: note: expanded from macro 'new_node' exit(2);\ ^ parse.c:45:2: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] new_node(Re_Lit, l, l); ^ ../agrep/re.h:77:2: note: expanded from macro 'new_node' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:45:2: note: include the header or explicitly provide a declaration for 'memset' ../agrep/re.h:77:2: note: expanded from macro 'new_node' memset((l), '\0', sizeof(*(x)));\ ^ parse.c:48:18: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] if (l != NULL) free(l); ^ parse.c:48:18: note: include the header or explicitly provide a declaration for 'free' 3 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o checksg.o checksg.c checksg.c:24:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] m = strlen(Pattern); ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ 1 warning generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o preprocess.o preprocess.c preprocess.c:53:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((m = strlen(Pattern)) <= 0) return 0; ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ preprocess.c:67:15: warning: implicit declaration of function 'asplit_pattern' is invalid in C99 [-Wimplicit-function-declaration] if (((ret1 = asplit_pattern(Pattern, m, aterminals, &anum_terminals, &AParse)) <= 0) || /* can change the pattern if simple boolean with {} */ ^ preprocess.c:68:15: warning: implicit declaration of function 'asplit_terminal' is invalid in C99 [-Wimplicit-function-declaration] ((ret2 = asplit_terminal(0, anum_terminals, multibuf, &multilen)) <= 0) || ^ preprocess.c:70:44: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean && (AParse != NULL)) destroy_tree(AParse); /* so that direct exec invocations don't use AParse by mistake! */ ^ preprocess.c:80:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] m = strlen(Pattern); ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ preprocess.c:97:23: warning: implicit declaration of function 'quick_tcompress' is invalid in C99 [-Wimplicit-function-declaration] if ((tc_D_length = quick_tcompress(FREQ_FILE, HASH_FILE, D_pattern, D_length, tc_D_pattern, MaxDelimit*2, TC_EASYSEARCH)) <= 0) { ^ preprocess.c:98:12: warning: passing 'unsigned char [32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tc_D_pattern, D_pattern); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:98:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tc_D_pattern, D_pattern); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:113:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] r_pat = (CHAR *) malloc(strlen(Pattern)+2*strlen(D_pattern) + 8); /* bug-report, From: Chris Dalton */ ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ preprocess.c:113:51: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] r_pat = (CHAR *) malloc(strlen(Pattern)+2*strlen(D_pattern) + 8); /* bug-report, From: Chris Dalton */ ^~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ preprocess.c:114:9: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(temp, D_pattern); ^~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:114:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(temp, D_pattern); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:115:21: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] d_end = t = strlen(temp); /* size of D_pattern, including '; ' */ ^~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ preprocess.c:121:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(temp, Pattern); ^~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:33: note: passing argument to parameter '__dest' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:121:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(temp, Pattern); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:64: note: passing argument to parameter '__src' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:122:14: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] m = strlen(temp); ^~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ preprocess.c:135:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(temp, Pattern); ^~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:33: note: passing argument to parameter '__dest' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:135:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(temp, Pattern); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:64: note: passing argument to parameter '__src' here __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:136:14: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] m = strlen(temp); ^~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ preprocess.c:186:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(D_pattern, old_D_pat); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:186:20: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(D_pattern, old_D_pat); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:322:13: warning: implicit declaration of function 'init' is invalid in C99 [-Wimplicit-function-declaration] num_pos = init(r_pat, table); ^ preprocess.c:341:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(old_pat, Pattern); /* do real change to the Pattern to be returned */ ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ preprocess.c:341:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(old_pat, Pattern); /* do real change to the Pattern to be returned */ ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ 24 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o delim.o delim.c delim.c:15:9: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(temp, src); ^~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ delim.c:15:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(temp, src); ^~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ delim.c:27:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *pdestlen = strlen(dest); ^~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ 3 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o asplit.o asplit.c asplit.c:82:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (buffer_pat = aparse_flat(buffer, buffer_end, *pAParse, pAParse)) { ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ asplit.c:82:21: note: place parentheses around the assignment to silence this warning while (buffer_pat = aparse_flat(buffer, buffer_end, *pAParse, pAParse)) { ^ ( ) asplit.c:82:21: note: use '==' to turn this assignment into an equality comparison while (buffer_pat = aparse_flat(buffer, buffer_end, *pAParse, pAParse)) { ^ == asplit.c:254:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(n->data.leaf.value, oldtokenbuf); ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:33: note: passing argument to parameter '__dest' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ asplit.c:254:31: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(n->data.leaf.value, oldtokenbuf); ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ asplit.c:376:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] word_length = strlen(aterminals[first].data.leaf.value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ asplit.c:380:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(&pat_buf[*pat_ptr], aterminals[first].data.leaf.value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:73:64: note: passing argument to parameter '__src' here __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ 5 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o recursive.o recursive.c recursive.c:67:3: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(name_buf, argv[i]); ^ recursive.c:67:3: note: include the header or explicitly provide a declaration for 'strcpy' recursive.c:71:15: warning: implicit declaration of function 'exec' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = exec(3, file_list)) == -1) return -1; ^ recursive.c:74:5: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free(file_list[j]); ^ recursive.c:74:5: note: include the header or explicitly provide a declaration for 'free' recursive.c:114:5: warning: implicit declaration of function 'my_lstat' is invalid in C99 [-Wimplicit-function-declaration] if(my_lstat(name, &stbuf) == -1) { ^ recursive.c:129:4: warning: implicit declaration of function 'exec' is invalid in C99 [-Wimplicit-function-declaration] exec(3, file_list); ^ recursive.c:147:15: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] nbp = name + strlen(name); ^ recursive.c:147:15: note: include the header or explicitly provide a declaration for 'strlen' recursive.c:160:32: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (dp->d_name[0] == '\0' || strcmp(dp->d_name, ".") == 0 || strcmp(dp->d_name, "..")==0) ^ recursive.c:160:32: note: include the header or explicitly provide a declaration for 'strcmp' 7 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o sgrep.o sgrep.c sgrep.c:52:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ~~~~~~ ^ sgrep.c:52:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ~~~~~~ ^ sgrep.c:52:30: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ~~~~~~ ^ sgrep.c:193:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(pat, in_pat, MAXLINE); ^~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ sgrep.c:193:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(pat, in_pat, MAXLINE); ^~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ sgrep.c:241:22: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while( (num_read = fill_buf(fd, text+offset, 2*BlockSize)) > 0) ^ sgrep.c:294:16: warning: implicit declaration of function 'monkey' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == monkey(pat, m, text+start, text+end, oldpat, oldm)) { ^ sgrep.c:300:16: warning: implicit declaration of function 'bm' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == bm(pat, m, text+start, text+end, oldpat, oldm)) { ^ sgrep.c:308:16: warning: implicit declaration of function 'monkey4' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == monkey4( pat, m, text+start, text+end, D , oldpat, oldm )) { ^ sgrep.c:315:17: warning: implicit declaration of function 'a_monkey' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == a_monkey(pat, m, text+start, text+end, D, oldpat, oldm)) { ^ sgrep.c:321:17: warning: implicit declaration of function 'agrep' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == agrep(pat, m, text+start, text+end, D, oldpat, oldm)) { ^ sgrep.c:406:16: warning: implicit declaration of function 'monkey' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == monkey(pat, m, text+start, text+end, oldpat, oldm)) { ^ sgrep.c:412:16: warning: implicit declaration of function 'bm' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == bm(pat, m, text+start, text+end, oldpat, oldm)) { ^ sgrep.c:420:16: warning: implicit declaration of function 'monkey4' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == monkey4( pat, m, text+start, text+end, D , oldpat, oldm )) { ^ sgrep.c:427:17: warning: implicit declaration of function 'a_monkey' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == a_monkey(pat, m, text+start, text+end, D, oldpat, oldm)) { ^ sgrep.c:433:17: warning: implicit declaration of function 'agrep' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == agrep(pat, m, text+start, text+end, D, oldpat, oldm)) { ^ sgrep.c:549:16: warning: implicit declaration of function 'monkey' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == monkey(pat, m, text+start, text+end, oldpat, oldm)) { ^ sgrep.c:557:16: warning: implicit declaration of function 'bm' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == bm(pat, m, text+start, text+end, oldpat, oldm)) { ^ sgrep.c:567:16: warning: implicit declaration of function 'monkey4' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == monkey4( pat, m, text+start, text+end, D , oldpat, oldm )) { ^ sgrep.c:576:17: warning: implicit declaration of function 'a_monkey' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == a_monkey(pat, m, text+start, text+end, D, oldpat, oldm)) { ^ sgrep.c:584:17: warning: implicit declaration of function 'agrep' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == agrep(pat, m, text+start, text+end, D, oldpat, oldm)) { ^ sgrep.c:839:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:839:73: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:1157:16: warning: implicit declaration of function 's_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == s_output(text, ¤tpos, textbegin, textend, &lastout, pat, M, oldpat, oldM)) return -1; ^ sgrep.c:1190:16: warning: implicit declaration of function 's_output' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == s_output(text, ¤tpos, textbegin, textend, &lastout, pat, M, oldpat, oldM)) return -1; ^ sgrep.c:1417:27: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text + oldi-curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:1417:75: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text + oldi-curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:1478:10: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register m; ~~~~~~~~ ^ sgrep.c:1698:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:1698:73: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:1871:14: warning: implicit declaration of function 'verify' is invalid in C99 [-Wimplicit-function-declaration] if((pos = verify(m, 2*m+D, D, pat, oldtext)) > 0) { ^ sgrep.c:1992:32: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:1992:74: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:2137:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] m = strlen(Pattern); ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ sgrep.c:2179:37: warning: unsequenced modification and access to 'last' [-Wunsequenced] if(A[last] < D) A[last+1] = A[last++]+1; ~~~~ ^ sgrep.c:2201:37: warning: unsequenced modification and access to 'last' [-Wunsequenced] if(B[last] < D) B[last+1] = B[last++]+1; ~~~~ ^ sgrep.c:2219:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] m = strlen(Pattern); ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ sgrep.c:2400:32: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:2400:74: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ sgrep.c:2552:10: warning: implicit declaration of function 'blog' is invalid in C99 [-Wimplicit-function-declaration] BSize = blog(4, m); ^ 40 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o newmgrep.o newmgrep.c newmgrep.c:52:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ~~~~~~ ^ newmgrep.c:52:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ~~~~~~ ^ newmgrep.c:52:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ~~~~~~ ^ newmgrep.c:52:30: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ~~~~~~ ^ newmgrep.c:52:44: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ~~~~~~ ^ newmgrep.c:52:65: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ~~~~~~ ^ newmgrep.c:52:81: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern COUNT, FNAME, SILENT, FILENAMEONLY, prev_num_of_matched, num_of_matched, PRINTFILETIME; ~~~~~~ ^ newmgrep.c:53:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern INVERSE, OUTTAIL; ~~~~~~ ^ newmgrep.c:53:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern INVERSE, OUTTAIL; ~~~~~~ ^ newmgrep.c:54:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ~~~~~~ ^ newmgrep.c:54:19: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ~~~~~~ ^ newmgrep.c:54:30: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern WORDBOUND, WHOLELINE, NOUPPER; ~~~~~~ ^ newmgrep.c:59:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern total_line; ~~~~~~ ^ newmgrep.c:60:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern agrep_initialfd; ~~~~~~ ^ newmgrep.c:195:21: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while((num_read = fill_buf(mfp, buf+length, 2*BlockSize)) > 0) { ^ newmgrep.c:287:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] p = strlen(patt[i]); ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ newmgrep.c:445:22: warning: implicit declaration of function 'fill_buf' is invalid in C99 [-Wimplicit-function-declaration] while( (num_read = fill_buf(fd, text+Max_record, 2*BlockSize)) > 0) ^ newmgrep.c:485:27: warning: implicit declaration of function 'm_short' is invalid in C99 [-Wimplicit-function-declaration] if(SHORT) { if (-1 == m_short(text, start, end)) {free_buf(fd, text); return -1;}} ^ newmgrep.c:486:27: warning: implicit declaration of function 'monkey1' is invalid in C99 [-Wimplicit-function-declaration] else { if (-1 == monkey1(text, start, end)) {free_buf(fd, text); return -1;}} ^ newmgrep.c:543:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(text+start, text+end, residue); ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ newmgrep.c:543:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(text+start, text+end, residue); ^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ newmgrep.c:568:15: warning: implicit declaration of function 'm_short' is invalid in C99 [-Wimplicit-function-declaration] if(SHORT) m_short(text, start, end); ^ newmgrep.c:569:15: warning: implicit declaration of function 'monkey1' is invalid in C99 [-Wimplicit-function-declaration] else monkey1(text, start, end); ^ newmgrep.c:666:27: warning: implicit declaration of function 'm_short' is invalid in C99 [-Wimplicit-function-declaration] if(SHORT) { if (-1 == m_short(text, start, end)) {free_buf(fd, text); return -1;}} ^ newmgrep.c:667:27: warning: implicit declaration of function 'monkey1' is invalid in C99 [-Wimplicit-function-declaration] else { if (-1 == monkey1(text, start, end)) {free_buf(fd, text); return -1;}} ^ newmgrep.c:849:27: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ newmgrep.c:849:69: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin); ~~ ^~~~~~~~~~~~~~~~~~~~~~~ %ld /usr/include/x86_64-linux-gnu/bits/stdio2.h:44:7: note: expanded from macro 'sprintf' __VA_ARGS__) ^~~~~~~~~~~ newmgrep.c:1053:61: warning: implicit declaration of function 'eval_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) { ^ newmgrep.c:1062:60: warning: implicit declaration of function 'eval_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) { ^ newmgrep.c:1077:59: warning: implicit declaration of function 'eval_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) { ^ newmgrep.c:1091:58: warning: implicit declaration of function 'eval_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) { ^ newmgrep.c:1551:60: warning: implicit declaration of function 'eval_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) { ^ newmgrep.c:1560:59: warning: implicit declaration of function 'eval_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) { ^ newmgrep.c:1574:58: warning: implicit declaration of function 'eval_tree' is invalid in C99 [-Wimplicit-function-declaration] if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) { ^ newmgrep.c:2001:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] leni = strlen(aterminals[i].data.leaf.value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ newmgrep.c:2007:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] lenj = strlen(aterminals[j].data.leaf.value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ 36 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o utilities.o utilities.c utilities.c:21:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] new_node(Stack, node, node); ^ ../agrep/re.h:75:3: note: expanded from macro 'new_node' exit(2);\ ^ utilities.c:21:2: note: include the header or explicitly provide a declaration for 'exit' ../agrep/re.h:75:3: note: expanded from macro 'new_node' exit(2);\ ^ utilities.c:21:2: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] new_node(Stack, node, node); ^ ../agrep/re.h:77:2: note: expanded from macro 'new_node' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:21:2: note: include the header or explicitly provide a declaration for 'memset' ../agrep/re.h:77:2: note: expanded from macro 'new_node' memset((l), '\0', sizeof(*(x)));\ ^ utilities.c:42:3: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free(temp); ^ utilities.c:42:3: note: include the header or explicitly provide a declaration for 'free' utilities.c:168:9: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (!strncmp(line, word, wordlen)) { ^ utilities.c:168:9: note: include the header or explicitly provide a declaration for 'strncmp' utilities.c:168:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(line, word, wordlen)) { ^~~~ utilities.c:168:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(line, word, wordlen)) { ^~~~ 6 warnings generated. gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dummyfilters.o dummyfilters.c /usr/bin/ar rcv ../lib/libagrep.a follow.o asearch.o asearch1.o agrep.o bitap.o checkfile.o compat.o maskgen.o parse.o checksg.o preprocess.o delim.o asplit.o recursive.o sgrep.o newmgrep.o utilities.o dummyfilters.o a - follow.o a - asearch.o a - asearch1.o a - agrep.o a - bitap.o a - checkfile.o a - compat.o a - maskgen.o a - parse.o a - checksg.o a - preprocess.o a - delim.o a - asplit.o a - recursive.o a - sgrep.o a - newmgrep.o a - utilities.o a - dummyfilters.o ranlib ../lib/libagrep.a gcc -DMEASURE_TIMES=0 -DDOTCOMPRESSED=0 -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o main.o main.c In file included from main.c:15: ../agrep/dummysyscalls.c:25:9: warning: implicit declaration of function 'lstat' is invalid in C99 [-Wimplicit-function-declaration] return lstat(name, buf); ^ ../agrep/dummysyscalls.c:33:9: warning: implicit declaration of function 'stat' is invalid in C99 [-Wimplicit-function-declaration] return stat(name, buf); ^ main.c:29:8: warning: implicit declaration of function 'fileagrep' is invalid in C99 [-Wimplicit-function-declaration] ret = fileagrep(argc, argv, 0, stdout); ^ 3 warnings generated. gcc -Wl,-z,relro -Wl,-z,now -o agrep follow.o asearch.o asearch1.o agrep.o bitap.o checkfile.o compat.o maskgen.o parse.o checksg.o preprocess.o delim.o asplit.o recursive.o sgrep.o newmgrep.o utilities.o dummyfilters.o main.o -Wl,-z,relro -Wl,-z,now make[3]: Leaving directory '/<>/agrep' make[3]: Entering directory '/<>/libtemplate' Making all in util make[4]: Entering directory '/<>/libtemplate/util' gcc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o buffer.o buffer.c gcc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o host.o host.c gcc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o log.o log.c log.c:135:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ log.c:135:3: note: include the header or explicitly provide a declaration for 'exit' 1 warning generated. gcc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o strdup.o strdup.c gcc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o system.o system.c system.c:70:3: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] memset(argv, '\0', sizeof(char *) * 64); ^ system.c:70:3: note: include the header or explicitly provide a declaration for 'memset' system.c:85:31: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] (void) waitpid(pid, &status, (int) NULL); ^~~~~~~~~~ system.c:140:41: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] (void) waitpid(dsl_pid, (int *) NULL, (int) NULL); ^~~~~~~~~~ 3 warnings generated. gcc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o strerror.o strerror.c gcc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o string.o string.c gcc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o xmalloc.o xmalloc.c ar r libutil.a buffer.o host.o log.o strdup.o system.o strerror.o string.o xmalloc.o ar: creating libutil.a ranlib libutil.a /usr/bin/install -c -m 644 libutil.a ../lib/libutil.a ranlib ../lib/libutil.a make[4]: Leaving directory '/<>/libtemplate/util' Making all in template make[4]: Entering directory '/<>/libtemplate/template' gcc -I../include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o template.o template.c ar r libtemplate.a template.o ar: creating libtemplate.a ranlib libtemplate.a /usr/bin/install -c libtemplate.a ../lib/libtemplate.a ranlib ../lib/libtemplate.a make[4]: Leaving directory '/<>/libtemplate/template' Making all in lib make[4]: Entering directory '/<>/libtemplate/lib' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/<>/libtemplate/lib' make[3]: Leaving directory '/<>/libtemplate' make[3]: Entering directory '/<>/index' rm -f buildcast.c cp glimpse.c buildcast.c gcc -c -I../index -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -DBUILDCAST=1 -o buildcast.o buildcast.c buildcast.c:89:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern set_usemalloc(); /* compress/misc.c */ ~~~~~~ ^ buildcast.c:98:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] cross_boundary(oldnum, newnum) ^ buildcast.c:111:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] determine_sync() ^ buildcast.c:158:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ buildcast.c:193:5: warning: implicit declaration of function 'build_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] build_filename_hashtable((char *)NULL, 0); ^ buildcast.c:201:13: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:298:10: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:307:10: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:318:10: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:323:10: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:341:10: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:349:10: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:363:14: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:415:10: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:425:9: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:435:9: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:440:9: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:493:9: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(1); ^ buildcast.c:529:9: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] return usage(0); ^ buildcast.c:536:2: warning: implicit declaration of function 'partition' is invalid in C99 [-Wimplicit-function-declaration] partition(argc, argv); ^ buildcast.c:573:5: warning: implicit declaration of function 'read_filters' is invalid in C99 [-Wimplicit-function-declaration] read_filters(INDEX_DIR, UseFilters); ^ buildcast.c:585:5: warning: implicit declaration of function 'initialize_tuncompress' is invalid in C99 [-Wimplicit-function-declaration] initialize_tuncompress(string_file, freq_file, 0); ^ buildcast.c:626:5: warning: implicit declaration of function 'set_indexable_char' is invalid in C99 [-Wimplicit-function-declaration] set_indexable_char(indexable_char); ^ buildcast.c:744:5: warning: implicit declaration of function 'partition' is invalid in C99 [-Wimplicit-function-declaration] partition(argc, argv); ^ buildcast.c:745:5: warning: implicit declaration of function 'initialize_data_structures' is invalid in C99 [-Wimplicit-function-declaration] initialize_data_structures(file_num); ^ buildcast.c:747:5: warning: implicit declaration of function 'build_index' is invalid in C99 [-Wimplicit-function-declaration] build_index(); ^ buildcast.c:749:5: warning: implicit declaration of function 'cleanup' is invalid in C99 [-Wimplicit-function-declaration] cleanup(); ^ buildcast.c:750:5: warning: implicit declaration of function 'save_data_structures' is invalid in C99 [-Wimplicit-function-declaration] save_data_structures(); ^ buildcast.c:751:5: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] destroy_filename_hashtable(); ^ buildcast.c:752:5: warning: implicit declaration of function 'uninitialize_common' is invalid in C99 [-Wimplicit-function-declaration] uninitialize_common(); ^ buildcast.c:753:5: warning: implicit declaration of function 'uninitialize_tcompress' is invalid in C99 [-Wimplicit-function-declaration] uninitialize_tcompress(); ^ buildcast.c:754:5: warning: implicit declaration of function 'uninitialize_tuncompress' is invalid in C99 [-Wimplicit-function-declaration] uninitialize_tuncompress(); ^ buildcast.c:755:5: warning: implicit declaration of function 'compute_dictionary' is invalid in C99 [-Wimplicit-function-declaration] compute_dictionary(threshold, DISKBLOCKSIZE, specialwords, INDEX_DIR); ^ buildcast.c:759:7: warning: implicit declaration of function 'initialize_tcompress' is invalid in C99 [-Wimplicit-function-declaration] if (!initialize_tcompress(hash_file, freq_file, TC_ERRORMSGS)) goto docleanup; ^ buildcast.c:765:6: warning: implicit declaration of function 'tcompress_file' is invalid in C99 [-Wimplicit-function-declaration] tcompress_file(name, outname, TC_REMOVE | TC_EASYSEARCH | TC_OVERWRITE | TC_NOPROMPT); ^ buildcast.c:1063:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] cleanup() ^ buildcast.c:1125:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] usage(flag) ^ 37 warnings generated. gcc -c -I../index -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security region.c gcc -c -I../index -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security dir.c dir.c:117:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fsize(name, pat, pat_len, num_pat, inc, inc_len, num_inc, toplevel) ^ dir.c:153:71: warning: implicit declaration of function 'get_filename_index' is invalid in C99 [-Wimplicit-function-declaration] if (!IndexableFile && !DeleteFromIndex && FastIndex && ((fileindex = get_filename_index(name, name_list, file_num)) != -1) && (disable_list[block2index(fileindex)] & mask_int[fileindex % (8*sizeof(int))])) { ^ dir.c:268:3: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_EXIT; ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:280:3: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_INCLUDE; ^ dir.c:222:9: note: expanded from macro 'PROCESS_INCLUDE' (memagrep_search(-inc_len[i], inc[i], len_current_dir_buf, current_dir_buf, 0, dummyout) > 0))\ ^ dir.c:285:4: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_EXIT; ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:292:4: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_EXIT; ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:302:6: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_INCLUDE; ^ dir.c:222:9: note: expanded from macro 'PROCESS_INCLUDE' (memagrep_search(-inc_len[i], inc[i], len_current_dir_buf, current_dir_buf, 0, dummyout) > 0))\ ^ dir.c:304:6: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_EXCLUDE; ^ dir.c:180:5: note: expanded from macro 'PROCESS_EXCLUDE' PROCESS_EXIT;\ ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:304:6: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] dir.c:189:16: note: expanded from macro 'PROCESS_EXCLUDE' ((ret = memagrep_search(-pat_len[i], pat[i], len_current_dir_buf, current_dir_buf, 0, dummyout)) > 0))\ ^ dir.c:304:6: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] dir.c:193:5: note: expanded from macro 'PROCESS_EXCLUDE' PROCESS_EXIT;\ ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:308:6: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_EXCLUDE; ^ dir.c:180:5: note: expanded from macro 'PROCESS_EXCLUDE' PROCESS_EXIT;\ ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:308:6: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] dir.c:189:16: note: expanded from macro 'PROCESS_EXCLUDE' ((ret = memagrep_search(-pat_len[i], pat[i], len_current_dir_buf, current_dir_buf, 0, dummyout)) > 0))\ ^ dir.c:308:6: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] dir.c:193:5: note: expanded from macro 'PROCESS_EXCLUDE' PROCESS_EXIT;\ ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:310:6: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_INCLUDE; ^ dir.c:222:9: note: expanded from macro 'PROCESS_INCLUDE' (memagrep_search(-inc_len[i], inc[i], len_current_dir_buf, current_dir_buf, 0, dummyout) > 0))\ ^ dir.c:313:5: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_FILTER; ^ dir.c:252:9: note: expanded from macro 'PROCESS_FILTER' (memagrep_search(-filter_len[i], filter[i], len_current_dir_buf, current_dir_buf, 0, dummyout) > 0))\ ^ dir.c:317:5: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_INCLUDE; ^ dir.c:222:9: note: expanded from macro 'PROCESS_INCLUDE' (memagrep_search(-inc_len[i], inc[i], len_current_dir_buf, current_dir_buf, 0, dummyout) > 0))\ ^ dir.c:319:6: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_EXCLUDE; ^ dir.c:180:5: note: expanded from macro 'PROCESS_EXCLUDE' PROCESS_EXIT;\ ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:319:6: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] dir.c:189:16: note: expanded from macro 'PROCESS_EXCLUDE' ((ret = memagrep_search(-pat_len[i], pat[i], len_current_dir_buf, current_dir_buf, 0, dummyout)) > 0))\ ^ dir.c:319:6: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] dir.c:193:5: note: expanded from macro 'PROCESS_EXCLUDE' PROCESS_EXIT;\ ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:322:5: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_EXCLUDE; ^ dir.c:180:5: note: expanded from macro 'PROCESS_EXCLUDE' PROCESS_EXIT;\ ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:322:5: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] dir.c:189:16: note: expanded from macro 'PROCESS_EXCLUDE' ((ret = memagrep_search(-pat_len[i], pat[i], len_current_dir_buf, current_dir_buf, 0, dummyout)) > 0))\ ^ dir.c:322:5: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] dir.c:193:5: note: expanded from macro 'PROCESS_EXCLUDE' PROCESS_EXIT;\ ^ dir.c:170:4: note: expanded from macro 'PROCESS_EXIT' remove_filename(fileindex, new_partition);\ ^ dir.c:323:5: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_INCLUDE; ^ dir.c:222:9: note: expanded from macro 'PROCESS_INCLUDE' (memagrep_search(-inc_len[i], inc[i], len_current_dir_buf, current_dir_buf, 0, dummyout) > 0))\ ^ dir.c:325:4: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] PROCESS_FILTER; ^ dir.c:252:9: note: expanded from macro 'PROCESS_FILTER' (memagrep_search(-filter_len[i], filter[i], len_current_dir_buf, current_dir_buf, 0, dummyout) > 0))\ ^ dir.c:332:13: warning: implicit declaration of function 'fsize_directory' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == fsize_directory(name, pat, pat_len, num_pat, inc, inc_len, num_inc)) return -1; ^ dir.c:336:8: warning: implicit declaration of function 'filetype' is invalid in C99 [-Wimplicit-function-declaration] if (!filetype(name, IndexEverything?2:1, NULL, NULL)) printf("%s\n", name); ^ dir.c:341:7: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] remove_filename(fileindex, new_partition); ^ dir.c:353:14: warning: implicit declaration of function 'tuncompress_file' is invalid in C99 [-Wimplicit-function-declaration] if (tuncompress_file(name, outname, TC_EASYSEARCH | TC_OVERWRITE | TC_NOPROMPT) <= 0) return 0; ^ dir.c:375:8: warning: implicit declaration of function 'filetype' is invalid in C99 [-Wimplicit-function-declaration] if (filetype(name, IndexEverything?2:1, &xinfo_len, xinfo)) { ^ dir.c:377:5: warning: implicit declaration of function 'remove_filename' is invalid in C99 [-Wimplicit-function-declaration] remove_filename(fileindex, new_partition); ^ dir.c:393:8: warning: implicit declaration of function 'change_filename' is invalid in C99 [-Wimplicit-function-declaration] change_filename(name, name_len, fileindex, t1); ^ dir.c:399:10: warning: implicit declaration of function 'filetype' is invalid in C99 [-Wimplicit-function-declaration] if(filetype(name, IndexEverything?2:1, &xinfo_len, xinfo)) { ^ dir.c:427:7: warning: implicit declaration of function 'insert_filename' is invalid in C99 [-Wimplicit-function-declaration] insert_filename(LIST_GET(name_list, file_num), file_num); ^ dir.c:455:6: warning: implicit declaration of function 'filetype' is invalid in C99 [-Wimplicit-function-declaration] if(filetype(name, IndexEverything?2:1, &xinfo_len, xinfo)) { ^ dir.c:492:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fsize_directory(name, pat, pat_len, num_pat, inc, inc_len, num_inc) ^ 35 warnings generated. gcc -c -I../index -I../agrep -I../libtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security io.c In file included from io.c:12: ../index/utils.c:449:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] hashNk(name, len) ^ io.c:48:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] get_array_of_lines(inputfile, table, max_entry, overflow_ok) ^ io.c:66:8: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(buffer, MAX_NAME_BUF, file_in); ^~~~~~ /usr/include/stdio.h:568:38: note: passing argument to parameter '__s' here extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ io.c:67:9: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sscanf(buffer, "%d", &num_lines); ^~~~~~ /usr/include/stdio.h:415:60: note: passing argument to parameter '__s' here extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ io.c:75:14: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] while(fgets(buffer, MAX_NAME_BUF, file_in)) { ^~~~~~ /usr/include/stdio.h:568:38: note: passing argument to parameter '__s' here extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ io.c:76:24: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] line_length = strlen(buffer); ^~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ io.c:107:14: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(np, buffer); ^~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ io.c:169:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] get_index_type(s, dashn, num, attr, delim) ^ io.c:188:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] get_block_numbers(srcbuf, destbuf, partfp) ^ io.c:212:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (fgets(destbuf, REAL_INDEX_BUF - MAX_WORD_BUF - 1, partfp) == NULL) { ^~~~~~~ /usr/include/stdio.h:568:38: note: passing argument to parameter '__s' here extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ io.c:218:1: warning: non-void function does not return a value [-Wreturn-type] } ^ io.c:266:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] len = strlen(filter_command[i]); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ io.c:272:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((filter_handle[i] = dlopen(filter_command[i], ^~~~~~~~~~~~~~~~~ /usr/include/dlfcn.h:56:34: note: passing argument to parameter '__file' here extern void *dlopen (const char *__file, int __mode) __THROWNL; ^ io.c:326:20: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] escapesinglequote(in_name, escaped_in); ^~~~~~~ io.c:327:20: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] escapesinglequote(out_name, escaped_out); ^~~~~~~~ io.c:369:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] read_filters(index_dir, dofilter) ^ io.c:387:20: error: non-void function 'read_filters' should return a value [-Wreturn-type] if (!dofilter) return; ^ io.c:449:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] apply_filter(inname, outname) ^ io.c:481:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((suffix = strstr(name+1, filter[i])) != NULL) { /* Chris Dalton */ ^~~~~~~~~ /usr/include/string.h:334:58: note: passing argument to parameter '__needle' here extern char *strstr (const char *__haystack, const char *__needle) ^ io.c:514:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp(filter[i], suffix) == 0) { ^~~~~~~~~ /usr/include/string.h:140:32: note: passing argument to parameter '__s1' here extern int strcmp (const char *__s1, const char *__s2) ^ io.c:526:9: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] (memagrep_search(-filter_len[i], filter[i], name_len + 2, name, 0, dummyout) > 0)) { ^ io.c:566:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static_stop_list(word) ^ io.c:662:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] my_free(ptr, size) ^ io.c:709:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tokenallfree() ^ io.c:714:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tokenfree(e, len) ^ io.c:736:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] indicesallfree() ^ io.c:741:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] indicesfree(e, len) ^ io.c:764:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] wordallfree() ^ io.c:769:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] wordfree(s, len) ^ io.c:995:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] index = hash64k(word, len); ^~~~ io.c:1049:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dump_mini(indexfile) ^ io.c:1073:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(s, "%s.tmp", indexfile); ^ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ io.c:1074:26: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((newindexfp = fopen(s, "w")) == NULL) { ^ /usr/include/stdio.h:246:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ io.c:1081:8: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(indexnumber, 256, indexfp); ^~~~~~~~~~~ /usr/include/stdio.h:568:38: note: passing argument to parameter '__s' here extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ io.c:1082:8: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(onefileperblock, 256, indexfp); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:568:38: note: passing argument to parameter '__s' here extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ io.c:1086:15: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] while (fgets(s, MAX_LINE_LEN, indexfp) != NULL) { ^ /usr/include/stdio.h:568:38: note: passing argument to parameter '__s' here extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ io.c:1088:20: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] linelen = strlen(s); ^ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ io.c:1096:24: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] hash_value = hash64k(s, j); ^ io.c:1099:13: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (fputs(s, newindexfp) == EOF) { ^ /usr/include/stdio.h:631:42: note: passing argument to parameter '__s' here extern int fputs (const char *__restrict __s, FILE *__restrict __stream); ^ io.c:1110:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(s, "exec %s '%s'", SYSTEM_RM, escapesinglequote(indexfile, es1)); ^ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ io.c:1111:9: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] system(s); ^ /usr/include/stdlib.h:784:32: note: passing argument to parameter '__command' here extern int system (const char *__command) __wur; ^ io.c:1117:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(s, "exec %s -n -T '%s' '%s.tmp' > '%s'\n", SYSTEM_SORT, escapesinglequote(INDEX_DIR, es1), escapesinglequote(indexfile, es2), escapesinglequote(indexfile, es3)); ^ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ io.c:1119:14: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] rc = system(s); ^ /usr/include/stdlib.h:784:32: note: passing argument to parameter '__command' here extern int system (const char *__command) __wur; ^ io.c:1130:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(s, "exec %s '%s.tmp'", SYSTEM_RM, escapesinglequote(indexfile, es1)); ^ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ io.c:1131:9: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] system(s); ^ /usr/include/stdlib.h:784:32: note: passing argument to parameter '__command' here extern int system (const char *__command) __wur; ^ io.c:1144:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(s, "%s.tmp", indexfile); ^ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ io.c:1145:26: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((newindexfp = fopen(s, "w")) == NULL) { ^ /usr/include/stdio.h:246:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ io.c:1151:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(s, "%s/%s", INDEX_DIR, MINI_FILE); ^ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ io.c:1152:22: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((minifp = fopen(s, "w")) == NULL) { ^ /usr/include/stdio.h:246:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ io.c:1159:8: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(indexnumber, newindexfp); ^~~~~~~~~~~ /usr/include/stdio.h:631:42: note: passing argument to parameter '__s' here extern int fputs (const char *__restrict __s, FILE *__restrict __stream); ^ io.c:1160:8: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(onefileperblock, newindexfp); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:631:42: note: passing argument to parameter '__s' here extern int fputs (const char *__restrict __s, FILE *__restrict __stream); ^ io.c:1167:15: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] while (fgets(s, MAX_LINE_LEN, indexfp) != NULL) { ^ /usr/include/stdio.h:568:38: note: passing argument to parameter '__s' here extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ io.c:1168:20: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] linelen = strlen(s); ^ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ io.c:1173:10: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sscanf(s, "%d", &hash_value); ^ /usr/include/stdio.h:415:60: note: passing argument to parameter '__s' here extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ io.c:1175:9: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(t, newindexfp); ^ /usr/include/stdio.h:631:42: note: passing argument to parameter '__s' here extern int fputs (const char *__restrict __s, FILE *__restrict __stream); ^ io.c:1210:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(s, "exec %s '%s'", SYSTEM_RM, escapesinglequote(indexfile, es1)); ^ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ io.c:1211:9: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] system(s); ^ /usr/include/stdlib.h:784:32: note: passing argument to parameter '__command' here extern int system (const char *__command) __wur; ^ io.c:1217:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(s, "exec %s '%s.tmp' '%s'\n", SYSTEM_MV, escapesinglequote(indexfile, es1), escapesinglequote(indexfile, es2)); ^ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ io.c:1218:9: warning: passing 'unsigned char [1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] system(s); ^ /usr/include/stdlib.h:784:32: note: passing argument to parameter '__command' here extern int system (const char *__command) __wur; ^ io.c:1236:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] initialize_data_structures(files) ^ io.c:1261:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] destroy_data_structures() ^ io.c:1463:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] insert_filename(name, name_index) ^ io.c:1474:20: error: non-void function 'insert_filename' should return a value [-Wreturn-type] if (name == NULL) return; ^ io.c:1476:57: error: non-void function 'insert_filename' should return a value [-Wreturn-type] if (special_parse_name(name, len, &begin, &end) == -1) return; ^ io.c:1479:3: error: non-void function 'insert_filename' should return a value [-Wreturn-type] return; ^ io.c:1496:21: error: non-void function 'insert_filename' should return a value [-Wreturn-type] if ((*pe) != NULL) return; ^ io.c:1515:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] change_filename(name, len, index, newname) ^ io.c:1525:47: error: non-void function 'change_filename' should return a value [-Wreturn-type] if (special_get_name(name, len, temp) == -1) return; ^ io.c:1529:21: error: non-void function 'change_filename' should return a value [-Wreturn-type] if ((*pe) == NULL) return; ^ io.c:1534:2: error: non-void function 'change_filename' should return a value [-Wreturn-type] return; ^ io.c:1537:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] delete_filename(name, name_index) ^ io.c:1548:20: error: non-void function 'delete_filename' should return a value [-Wreturn-type] if (name == NULL) return; ^ io.c:1550:57: error: non-void function 'delete_filename' should return a value [-Wreturn-type] if (special_parse_name(name, len, &begin, &end) == -1) return; ^ io.c:1553:3: error: non-void function 'delete_filename' should return a value [-Wreturn-type] return; ^ io.c:1570:21: error: non-void function 'delete_filename' should return a value [-Wreturn-type] if ((*pe) == NULL) return; ^ io.c:1577:2: error: non-void function 'delete_filename' should return a value [-Wreturn-type] return; ^ io.c:1580:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] init_filename_hashtable() ^ io.c:1587:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] build_filename_hashtable(names, num) ^ io.c:1598:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] destroy_filename_hashtable() ^ 66 warnings and 13 errors generated. make[3]: *** [Makefile:138: io.o] Error 1 make[3]: Leaving directory '/<>/index' make[3]: Entering directory '/<>/dynfilters' flex -F -8 htuml2txt.lex gcc -O3 -fomit-frame-pointer -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -c lex.yy.c htuml2txt.lex:105:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); /* HTML odes with */ ^ htuml2txt.lex:106:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); /* corresponding ISO */ ^ htuml2txt.lex:107:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); /* codes */ ^ htuml2txt.lex:108:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:109:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:110:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:111:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:112:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:113:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:114:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:115:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:116:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:117:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:118:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:119:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:120:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:121:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:122:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:123:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:124:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:125:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:126:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:127:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:128:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:131:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:132:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:133:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:134:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:135:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:136:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:137:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:138:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:139:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:140:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:141:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:142:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:143:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:144:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:145:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:146:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:147:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:148:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:149:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:150:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:151:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:152:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:153:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:154:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:155:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:156:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:157:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:158:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:159:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:160:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:161:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:162:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:163:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:164:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:165:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:166:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:167:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:168:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:169:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:170:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:171:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:172:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:173:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:174:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:175:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:176:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:177:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:178:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:179:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:180:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:181:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:182:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:183:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:184:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:185:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:186:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:187:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:188:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:189:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:190:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:191:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:192:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:193:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:194:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:195:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:196:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:197:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:198:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:199:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:200:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:201:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:202:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:203:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:204:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:205:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:206:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:207:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:208:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:209:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:210:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:211:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:212:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:213:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:214:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:215:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:216:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:217:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:218:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:219:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:220:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:221:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:222:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:223:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:224:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:225:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('
', yyout); ^ htuml2txt.lex:226:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('
', yyout); ^ htuml2txt.lex:227:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:228:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:229:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:230:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:231:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:232:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:233:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:234:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:235:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:236:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:237:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:238:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:239:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:240:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:241:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:242:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:243:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:244:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:245:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:246:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:247:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:248:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:249:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:250:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:251:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:252:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:253:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:254:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:255:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:256:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:257:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:258:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:259:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:260:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:261:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:262:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:263:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:264:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:265:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:266:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:267:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:268:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:269:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:270:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:271:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:272:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:273:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:274:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:275:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:276:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:277:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:278:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:279:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:280:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:281:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:282:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:283:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:284:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:285:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:286:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:287:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:288:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:289:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:290:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:291:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:292:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:293:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ htuml2txt.lex:294:7: warning: illegal character encoding in character literal [-Winvalid-source-encoding] fputc('', yyout); ^ 188 warnings generated. gcc -o htuml2txt lex.yy.o -lfl make[3]: Leaving directory '/<>/dynfilters' gcc -c -Iindex -Iagrep -Ilibtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -DISSERVER=0 -o main.o main.c In file included from main.c:33: ./communicate.c:232:22: warning: passing 'unsigned char [4]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (writen(sockfd, array, 4) < 4) return -1; ^~~~~ ./communicate.c:245:22: warning: passing 'unsigned char [4]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (writen(sockfd, array, 4) < 4) return -1; ^~~~~ ./communicate.c:290:37: warning: passing 'unsigned char [4]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (sockfd >= 0) if (readn(sockfd, array, 4) != 4) return -1; ^~~~~ ./communicate.c:299:37: warning: passing 'unsigned char [4]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (sockfd >= 0) if (readn(sockfd, array, 4) != 4) return -1; ^~~~~ main.c:204:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern free_list(); ~~~~~~ ^ main.c:292:48: warning: '/*' within block comment [-Wcomment] /* beginregionptr = curtextend - GD_length; /* prevent next curtextbegin to go behind previous curtextend (!) */ ^ main.c:373:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp(curtextbegin, GD_pattern, GD_length)) { ^~~~~~~~~~~~ /usr/include/string.h:143:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ main.c:373:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp(curtextbegin, GD_pattern, GD_length)) { ^~~~~~~~~~ /usr/include/string.h:143:51: note: passing argument to parameter '__s2' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ main.c:400:15: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = memagrep_search(AM, APattern, curtextend-curtextbegin, curtextbegin, 0, outfp)) > 0) ^ main.c:417:15: warning: implicit declaration of function 'exec' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = exec(-1, NULL)) > 0) ^ main.c:438:4: warning: implicit declaration of function 'file_out' is invalid in C99 [-Wimplicit-function-declaration] file_out(realfilename); ^ main.c:466:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] read_index(indexdir) ^ main.c:536:20: warning: implicit declaration of function 'get_table' is invalid in C99 [-Wimplicit-function-declaration] GNumpartitions = get_table(P_TABLE, p_table, MAX_PARTITION, 0); ^ main.c:562:63: warning: implicit declaration of function 'read_mini' is invalid in C99 [-Wimplicit-function-declaration] if (OneFilePerBlock && glimpse_isserver && (minifp != NULL)) read_mini(indexfp, minifp); ^ main.c:563:2: warning: implicit declaration of function 'read_filenames' is invalid in C99 [-Wimplicit-function-declaration] read_filenames(); ^ main.c:566:2: warning: implicit declaration of function 'set_indexable_char' is invalid in C99 [-Wimplicit-function-declaration] set_indexable_char(indexable_char); ^ main.c:568:2: warning: implicit declaration of function 'set_special_char' is invalid in C99 [-Wimplicit-function-declaration] set_special_char(indexable_char); ^ main.c:600:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] reinitialize_server(argc, argv) ^ main.c:605:2: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] CLEANUP; ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:605:2: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:649:2: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] CLEANUP; ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:649:2: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:693:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ main.c:727:3: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] usage(); /* Client nees at least 1 argument */ ^ main.c:743:2: warning: implicit declaration of function 'init_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] init_filename_hashtable(); ^ main.c:747:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] gethostname(SERV_HOST, MAXNAME - 2); ^~~~~~~~~ /usr/include/unistd.h:890:31: note: passing argument to parameter '__name' here extern int gethostname (char *__name, size_t __len) __THROW __nonnull ((1)) ^ main.c:751:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(&GProgname[0], argv[0]); ^~~~~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:753:2: warning: implicit declaration of function 'region_initialize' is invalid in C99 [-Wimplicit-function-declaration] region_initialize(); ^ main.c:758:3: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(-1); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:758:3: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:774:3: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(-1); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:774:3: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:800:7: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usageS()); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:800:7: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:800:18: warning: implicit declaration of function 'usageS' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usageS()); ^ main.c:820:7: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:820:7: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:820:18: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:824:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(SERV_HOST, argv[0]); ^~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:828:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(SERV_HOST, p+1); ^~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:841:7: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:841:7: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:841:18: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:900:7: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:900:7: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:900:18: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:912:5: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:912:5: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:912:16: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:955:5: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(1); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:955:5: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:958:5: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:958:5: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:958:16: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:963:6: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:963:6: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:963:17: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(usage()); ^ main.c:1214:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((hp = gethostbyname(SERV_HOST)) == NULL) { ^~~~~~~~~ /usr/include/netdb.h:142:51: note: passing argument to parameter '__name' here extern struct hostent *gethostbyname (const char *__name); ^ main.c:1273:2: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(ret); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:1273:2: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:1284:8: warning: implicit declaration of function 'process_query' is invalid in C99 [-Wimplicit-function-declaration] ret = process_query(oldargc, oldargv, fileno(stdin)); ^ main.c:1285:2: warning: implicit declaration of function 'attr_free_table' is invalid in C99 [-Wimplicit-function-declaration] RETURNMAIN(ret); ^ main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:593:3: note: expanded from macro 'CLEANUP' attr_free_table();\ ^ main.c:1285:2: warning: implicit declaration of function 'destroy_filename_hashtable' is invalid in C99 [-Wimplicit-function-declaration] main.c:734:9: note: expanded from macro 'RETURNMAIN' CLEANUP;\ ^ main.c:595:2: note: expanded from macro 'CLEANUP' destroy_filename_hashtable();\ ^ main.c:1289:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] process_query(argc, argv, newsockfd) ^ main.c:1387:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(&GProgname[0], argv[0]); ^~~~~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:1388:24: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration] if (argc <= 1) return(usage()); ^ main.c:1434:9: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(GD_pattern, "\n"); ^~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:1435:21: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] GD_length = strlen(GD_pattern); ^~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ main.c:1462:7: warning: implicit declaration of function 'fileagrep' is invalid in C99 [-Wimplicit-function-declaration] i = fileagrep(oldargc, oldargv, 0, stdout); ^ main.c:1463:3: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(i); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1482:3: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1493:3: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1505:3: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1517:3: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1529:3: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1543:3: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1565:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1570:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1572:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(FileOpt, argv[0]); ^~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:1577:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1579:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(FileOpt, p+1); ^~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:1607:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1671:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1689:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1700:6: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1709:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1731:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usageS()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1731:14: warning: implicit declaration of function 'usageS' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usageS()); ^ main.c:1735:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(SERV_HOST, argv[0]); ^~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:1741:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(SERV_HOST, p+1); ^~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:1752:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1779:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1811:9: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1836:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1881:5: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1887:5: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1942:8: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1947:8: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1955:9: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1970:8: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:1978:9: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2061:4: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2067:35: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (-1 == read_index(indexdir)) RETURN(-1); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2091:3: warning: implicit declaration of function 'read_filters' is invalid in C99 [-Wimplicit-function-declaration] read_filters(INDEX_DIR, UseFilters); ^ main.c:2093:27: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (glimpse_clientdied) RETURN(0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2095:13: warning: implicit declaration of function 'fileagrep_init' is invalid in C99 [-Wimplicit-function-declaration] if ((GM = fileagrep_init(agrep_argc, agrep_argv, MAXPAT, GPattern)) <= 0) { ^ main.c:2098:4: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2114:4: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(-1); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2119:11: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(APattern, GPattern); ^~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2119:21: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(APattern, GPattern); ^~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2127:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(terminals[0].data.leaf.value, GPattern); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2127:41: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(terminals[0].data.leaf.value, GPattern); ^~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2130:12: warning: implicit declaration of function 'split_pattern' is invalid in C99 [-Wimplicit-function-declaration] else if (split_pattern(GPattern, GM, APattern, terminals, &num_terminals, &GParse, StructuredIndex) <= 0) RETURN(-1); ^ main.c:2130:109: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] else if (split_pattern(GPattern, GM, APattern, terminals, &num_terminals, &GParse, StructuredIndex) <= 0) RETURN(-1); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2138:4: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()) ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2150:13: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] AM=strlen(APattern); ^~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ main.c:2152:32: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(agrep_argv[patindex], APattern); ^~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2160:36: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((num = readline(newsockfd, dest_index_buf, REAL_INDEX_BUF)) <= 0) { ^~~~~~~~~~~~~~ main.c:2162:6: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(-1); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2165:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(dest_index_buf, "BEGIN", strlen("BEGIN"))) break; ^~~~~~~~~~~~~~ /usr/include/string.h:143:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ main.c:2167:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sscanf(&dest_index_buf[strlen("BEGIN")], "%d%d%d", &bestmatcherrors, &NOBYTELEVEL, &OPTIMIZEBYTELEVEL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:415:60: note: passing argument to parameter '__s' here extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ main.c:2169:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] num = readline(newsockfd, dest_index_buf, REAL_INDEX_BUF); ^~~~~~~~~~~~~~ main.c:2172:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(dest_index_buf, "END", strlen("END"))) break; ^~~~~~~~~~~~~~ /usr/include/string.h:143:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ main.c:2181:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] GTextfiles[GNumfiles++] = (CHAR *)strdup(GTextfilenames[x]); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:171:34: note: passing argument to parameter '__s' here extern char *strdup (const char *__s) ^ main.c:2186:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] GTextfiles[GNumfiles++] = (CHAR *)strdup(GTextfilenames[x]); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:171:34: note: passing argument to parameter '__s' here extern char *strdup (const char *__s) ^ main.c:2217:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] num = readline(newsockfd, dest_index_buf, REAL_INDEX_BUF); ^~~~~~~~~~~~~~ main.c:2273:9: warning: implicit declaration of function 'search_index' is invalid in C99 [-Wimplicit-function-declaration] ret = search_index(GParse); ^ main.c:2274:85: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if ((ret <= 0) && (!OneFilePerBlock || (src_index_set[REAL_PARTITION - 1] != 1))) RETURN(-1); /* previously was: if ret < 0 then return... */ ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2303:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ main.c:2315:24: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (num_blocks <= 0) RETURN (0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2429:24: warning: implicit declaration of function 'mask_filenames' is invalid in C99 [-Wimplicit-function-declaration] if (FILENAMESINFILE) mask_filenames(src_index_set, filenames_file, file_num, num_blocks); /* keep only those files that are in filenames_file */ ^ main.c:2440:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ main.c:2452:25: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (num_blocks <= 0) RETURN (0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2457:4: warning: implicit declaration of function 'get_filenames' is invalid in C99 [-Wimplicit-function-declaration] get_filenames(src_index_set, 0, NULL, dummylen, dummypat, file_num); ^ main.c:2512:5: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2525:23: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (cc[0] != 'y') RETURN(0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2532:26: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(index_argv[0], GProgname); ^~~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2548:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2559:6: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2565:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fileopt_length = strlen(FileOpt); ^~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ main.c:2566:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(index_argv[index_argc],FileOpt+j,fileopt_length-j); ^~~~~~~~~ /usr/include/string.h:129:32: note: passing argument to parameter '__src' here const char *__restrict __src, size_t __n) ^ main.c:2582:4: warning: implicit declaration of function 'get_filenames' is invalid in C99 [-Wimplicit-function-declaration] get_filenames(src_index_set, index_argc, index_argv, dummylen, dummypat, file_num); ^ main.c:2640:5: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2653:23: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (cc[0] != 'y') RETURN(0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2680:23: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (GNumfiles <= 0) RETURN(0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2681:27: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] if (glimpse_clientdied) RETURN(0); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2692:37: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (GPRINTFILENUMBER) sprintf(CurrentFileName, "%d", GFileIndex[i]); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ main.c:2693:19: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2693:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2698:18: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, stdout)) > 0) { ^ main.c:2721:37: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (GPRINTFILENUMBER) sprintf(CurrentFileName, "%d", GFileIndex[i]); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ main.c:2722:19: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2722:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2735:19: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, stdout)) > 0) { ^ main.c:2740:75: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else if ((ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], GTextfiles[i], GFileIndex[i], src_offset_table, stdout)) > 0) { ^~~~~~~~~~~~~ main.c:2740:90: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else if ((ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], GTextfiles[i], GFileIndex[i], src_offset_table, stdout)) > 0) { ^~~~~~~~~~~~~ main.c:2764:10: warning: implicit declaration of function 'apply_filter' is invalid in C99 [-Wimplicit-function-declaration] if (apply_filter(GTextfiles[i], outname[0]) == 1) { ^ main.c:2767:37: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (GPRINTFILENUMBER) sprintf(CurrentFileName, "%d", GFileIndex[i]); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ main.c:2768:19: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2768:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2779:19: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = fileagrep_search(AM, APattern, 1, outname, 0, stdout)) > 0) { ^ main.c:2789:20: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = fileagrep_search(AM, APattern, 1, outname, 0, stdout)) > 0) { ^ main.c:2794:76: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else if ((ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], outname[0], GFileIndex[i], src_offset_table, stdout)) > 0) { ^~~~~~~~~~~~~ main.c:2805:19: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, stdout)) > 0) { ^ main.c:2812:38: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (GPRINTFILENUMBER) sprintf(CurrentFileName, "%d", GFileIndex[i]); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ main.c:2813:20: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2813:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2826:20: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, stdout)) > 0) { ^ main.c:2831:76: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else if ((ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], GTextfiles[i], GFileIndex[i], src_offset_table, stdout)) > 0) { ^~~~~~~~~~~~~ main.c:2831:91: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else if ((ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], GTextfiles[i], GFileIndex[i], src_offset_table, stdout)) > 0) { ^~~~~~~~~~~~~ main.c:2880:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2883:36: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (GPRINTFILENUMBER) sprintf(CurrentFileName, "%d", GFileIndex[i]); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ main.c:2884:18: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2884:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2891:13: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, tmpfp); ^ main.c:2907:14: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, tmpfp); ^ main.c:2909:70: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], GTextfiles[i], GFileIndex[i], src_offset_table, tmpfp); ^~~~~~~~~~~~~ main.c:2909:85: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], GTextfiles[i], GFileIndex[i], src_offset_table, tmpfp); ^~~~~~~~~~~~~ main.c:2928:54: warning: implicit declaration of function 'filter_output' is invalid in C99 [-Wimplicit-function-declaration] ret = filter_output(GTextfiles[i], tempfile, GParse, GD_pattern, GD_length, GOUTTAIL, nullfp, StructuredIndex); ^ main.c:2930:54: warning: implicit declaration of function 'filter_output' is invalid in C99 [-Wimplicit-function-declaration] ret = filter_output(outname[0], tempfile, GParse, GD_pattern, GD_length, GOUTTAIL, nullfp, StructuredIndex); ^ main.c:2966:7: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(usage()); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:2970:36: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (GPRINTFILENUMBER) sprintf(CurrentFileName, "%d", GFileIndex[i]); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:334:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ main.c:2971:18: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~~~ /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2971:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else strcpy(CurrentFileName, GTextfiles[i]); ^~~~~~~~~~~~~ /usr/include/string.h:125:70: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ main.c:2972:10: warning: implicit declaration of function 'apply_filter' is invalid in C99 [-Wimplicit-function-declaration] if (apply_filter(GTextfiles[i], outname[0]) == 1) { ^ main.c:2984:14: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] ret = fileagrep_search(AM, APattern, 1, outname, 0, tmpfp); ^ main.c:2991:15: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] ret = fileagrep_search(AM, APattern, 1, outname, 0, tmpfp); ^ main.c:2993:71: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], outname[0], GFileIndex[i], src_offset_table, tmpfp); ^~~~~~~~~~~~~ main.c:3003:14: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, tmpfp); ^ main.c:3019:15: warning: implicit declaration of function 'fileagrep_search' is invalid in C99 [-Wimplicit-function-declaration] ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, tmpfp); ^ main.c:3021:71: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], GTextfiles[i], GFileIndex[i], src_offset_table, tmpfp); ^~~~~~~~~~~~~ main.c:3021:86: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else ret = glimpse_search(AM, APattern, GD_length, GD_pattern, GTextfiles[i], GTextfiles[i], GFileIndex[i], src_offset_table, tmpfp); ^~~~~~~~~~~~~ main.c:3041:13: warning: implicit declaration of function 'filter_output' is invalid in C99 [-Wimplicit-function-declaration] ret = filter_output(GTextfiles[i], tempfile, GParse, GD_pattern, GD_length, GOUTTAIL, nullfp, StructuredIndex); ^ main.c:3043:13: warning: implicit declaration of function 'filter_output' is invalid in C99 [-Wimplicit-function-declaration] ret = filter_output(outname[0], tempfile, GParse, GD_pattern, GD_length, GOUTTAIL, nullfp, StructuredIndex); ^ main.c:3064:3: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(gnum_of_matched); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:3071:7: warning: implicit declaration of function 'fileagrep' is invalid in C99 [-Wimplicit-function-declaration] i = fileagrep(oldargc, oldargv, 0, stdout); ^ main.c:3072:3: warning: implicit declaration of function 'destroy_tree' is invalid in C99 [-Wimplicit-function-declaration] RETURN(i); ^ main.c:1375:22: note: expanded from macro 'RETURN' if (ComplexBoolean) destroy_tree(&GParse);\ ^ main.c:3128:19: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *pbyteoff = atoi(temp); ^~~~ /usr/include/stdlib.h:361:26: note: passing argument to parameter '__nptr' here __NTH (atoi (const char *__nptr)) ^ main.c:3182:32: warning: implicit declaration of function 'region_create' is invalid in C99 [-Wimplicit-function-declaration] if (StructuredIndex && (-1 == region_create(infile))) { ^ main.c:3189:25: warning: implicit declaration of function 'region_destroy' is invalid in C99 [-Wimplicit-function-declaration] if (StructuredIndex) region_destroy(); ^ main.c:3262:48: warning: implicit declaration of function 'region_identify' is invalid in C99 [-Wimplicit-function-declaration] else if ( (num_attr <= 0) || (((attribute = region_identify(byteoff, 0)) < num_attr) && (attribute >= 0)) ) { ^ main.c:3286:11: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] if (memagrep_search( strlen(terminals[i].data.leaf.value), terminals[i].data.leaf.value, ^ main.c:3286:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (memagrep_search( strlen(terminals[i].data.leaf.value), terminals[i].data.leaf.value, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ main.c:3341:17: warning: implicit declaration of function 'eval_tree' is invalid in C99 [-Wimplicit-function-declaration] success = eval_tree(GParse, matched_terminals); ^ main.c:3399:14: warning: implicit declaration of function 'eval_tree' is invalid in C99 [-Wimplicit-function-declaration] success = eval_tree(GParse, matched_terminals); ^ main.c:3466:23: warning: implicit declaration of function 'region_destroy' is invalid in C99 [-Wimplicit-function-declaration] if (StructuredIndex) region_destroy(); ^ main.c:3481:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] usage() ^ main.c:3561:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] usageS() ^ 208 warnings generated. gcc -c -Iindex -Iagrep -Ilibtemplate/include -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -o get_filename.o get_filename.c get_filename.c:43:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] read_filenames() ^ get_filename.c:63:9: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(buffer, MAX_NAME_SIZE, fp); ^~~~~~ /usr/include/stdio.h:568:38: note: passing argument to parameter '__s' here extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ get_filename.c:64:27: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] first_line_len = strlen(buffer); ^~~~~~ /usr/include/string.h:391:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ get_filename.c:66:10: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sscanf(buffer, "%d", &file_num); ^~~~~~ /usr/include/stdio.h:415:60: note: passing argument to parameter '__s' here extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ get_filename.c:77:3: warning: implicit declaration of function 'initialize_data_structures' is invalid in C99 [-Wimplicit-function-declaration] initialize_data_structures(file_num); ^ get_filename.c:126:103: warning: implicit declaration of function 'slow_mask_filenames' is invalid in C99 [-Wimplicit-function-declaration] if ((num_blocks*100/num_files > DEF_MAX_INDEX_PERCENT/2) && (num_blocks > MaxNum8bPartition)) return slow_mask_filenames(index_vect, infile); ^ get_filename.c:173:15: warning: implicit declaration of function 'memagrep' is invalid in C99 [-Wimplicit-function-declaration] if ((((ret = memagrep(5, argv, name_list_size, name_list_buffer, outputbuffer_len, outputbuffer)) <= 0) || (agrep_outpointer <= 0)) && (errno != ERANGE)) { ^ get_filename.c:334:15: warning: implicit declaration of function 'memagrep' is invalid in C99 [-Wimplicit-function-declaration] if ((((ret = memagrep(5, argv, name_list_size, name_list_buffer, outputbuffer_len, outputbuffer)) <= 0) || (agrep_outpointer <= 0)) && (errno != ERANGE)) { ^ get_filename.c:484:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] get_filenames(index_vect, argc, argv, dummylen, dummypat, file_num) ^ get_filename.c:539:6: error: non-void function 'get_filenames' should return a value [-Wreturn-type] return; ^ get_filename.c:581:6: error: non-void function 'get_filenames' should return a value [-Wreturn-type] return; ^ get_filename.c:598:22: warning: implicit declaration of function 'memagrep_init' is invalid in C99 [-Wimplicit-function-declaration] if ((dummylen = memagrep_init(argc, argv, MAX_PAT, dummypat)) <= 0) goto end_files; ^ get_filename.c:600:12: warning: implicit declaration of function 'memagrep_search' is invalid in C99 [-Wimplicit-function-declaration] ret = memagrep_search(dummylen, dummypat, dummylen*2, beginptr, outputbuffer_len, outputbuffer); ^ get_filename.c:673:7: error: non-void function 'get_filenames' should return a value [-Wreturn-type] return; ^ get_filename.c:752:7: error: non-void function 'get_filenames' should return a value [-Wreturn-type] return; ^ get_filename.c:778:2: error: non-void function 'get_filenames' should return a value [-Wreturn-type] return; ^ 11 warnings and 5 errors generated. make[2]: *** [Makefile:160: get_filename.o] Error 1 make[2]: Leaving directory '/<>' make[1]: *** [debian/rules:13: override_dh_auto_build] Error 2 make[1]: Leaving directory '/<>' make: *** [debian/rules:28: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2021-10-26T22:50:54Z Finished -------- +------------------------------------------------------------------------------+ | Cleanup | +------------------------------------------------------------------------------+ Purging /<> Not cleaning session: cloned chroot in use E: Build failure (dpkg-buildpackage died) +------------------------------------------------------------------------------+ | Summary | +------------------------------------------------------------------------------+ Build Architecture: amd64 Build Type: binary Build-Space: 7512 Build-Time: 12 Distribution: unstable Fail-Stage: build Host Architecture: amd64 Install-Time: 4 Job: glimpse_4.18.7-6 Machine Architecture: amd64 Package: glimpse Package-Time: 36 Source-Version: 4.18.7-6 Space: 7512 Status: attempted Version: 4.18.7-6 -------------------------------------------------------------------------------- Finished at 2021-10-26T22:50:54Z Build needed 00:00:36, 7512k disk space E: Build failure (dpkg-buildpackage died) DC-Status: Failed 38.802492573s DC-Time-Estimation: 38.802492573 versus expected 91 (r/m: 1.345210164754227 ; m: 38.802492573)