DC-Build-Header: medusa 2.1.1-1 / 2014-09-04 18:14:46 +0000 DC-Task: source:medusa version:2.1.1-1 architecture:any chroot:unstable esttime:503 logfile:/tmp/medusa_2.1.1-1_unstable_clang.log modes:binary-only:parallel:clang DC-Sbuild-call: su user -c 'sbuild -n --apt-update -d unstable -v --chroot-setup-commands=/tmp/switch-to-clang --append-to-version "clang1" --maintainer "Lucas Nussbaum " --uploader "Lucas Nussbaum " medusa_2.1.1-1' sbuild (Debian sbuild) 0.63.2 (18 Aug 2012) on ip-172-31-6-121.us-west-2.compute.internal ╔══════════════════════════════════════════════════════════════════════════════╗ ║ medusa 2.1.1-1clang1 (amd64) 04 Sep 2014 18:14 ║ ╚══════════════════════════════════════════════════════════════════════════════╝ Package: medusa Version: 2.1.1-1clang1 Source Version: 2.1.1-1 Distribution: unstable Machine Architecture: amd64 Host Architecture: amd64 Build Architecture: amd64 I: NOTICE: Log filtering will replace 'build/medusa-6z0ZhM/medusa-2.1.1' with '«PKGBUILDDIR»' I: NOTICE: Log filtering will replace 'build/medusa-6z0ZhM' with '«BUILDDIR»' I: NOTICE: Log filtering will replace 'var/lib/schroot/mount/unstable-amd64-sbuild-58ea5050-db07-4ceb-af07-6bacced44167' with '«CHROOT»' ┌──────────────────────────────────────────────────────────────────────────────┐ │ Update chroot │ └──────────────────────────────────────────────────────────────────────────────┘ Get:1 http://localhost:9999 unstable InRelease [233 kB] Get:2 http://localhost:9999 unstable/main Sources/DiffIndex [7876 B] Get:3 http://localhost:9999 unstable/main amd64 Packages/DiffIndex [7876 B] Get:4 http://localhost:9999 unstable/main Translation-en/DiffIndex [7876 B] Get:5 http://localhost:9999 unstable/main 2014-09-03-1436.55.pdiff [24.7 kB] Get:6 http://localhost:9999 unstable/main 2014-09-03-2030.01.pdiff [10.5 kB] Get:7 http://localhost:9999 unstable/main 2014-09-04-0229.22.pdiff [7545 B] Get:8 http://localhost:9999 unstable/main 2014-09-04-0831.05.pdiff [14.0 kB] Get:9 http://localhost:9999 unstable/main amd64 2014-09-03-1436.55.pdiff [26.7 kB] Get:10 http://localhost:9999 unstable/main 2014-09-04-0831.05.pdiff [14.0 kB] Get:11 http://localhost:9999 unstable/main amd64 2014-09-03-2030.01.pdiff [12.4 kB] Get:12 http://localhost:9999 unstable/main amd64 2014-09-04-0229.22.pdiff [5892 B] Get:13 http://localhost:9999 unstable/main amd64 2014-09-04-0831.05.pdiff [18.1 kB] Get:14 http://localhost:9999 unstable/main 2014-09-03-1436.55.pdiff [3960 B] Get:15 http://localhost:9999 unstable/main 2014-09-03-2030.01.pdiff [1010 B] Get:16 http://localhost:9999 unstable/main 2014-09-04-0229.22.pdiff [648 B] Get:17 http://localhost:9999 unstable/main 2014-09-04-0831.05.pdiff [61 B] Get:18 http://localhost:9999 unstable/main amd64 2014-09-04-0831.05.pdiff [18.1 kB] Get:19 http://localhost:9999 unstable/main 2014-09-04-0831.05.pdiff [61 B] Fetched 382 kB in 5s (71.0 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: binutils 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 3310 kB of archives. After this operation, 50.2 kB of additional disk space will be used. Get:1 http://localhost:9999/debian/ unstable/main binutils amd64 2.24.51.20140903-1 [3310 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 3310 kB in 0s (22.2 MB/s) (Reading database ... 15135 files and directories currently installed.) Preparing to unpack .../binutils_2.24.51.20140903-1_amd64.deb ... Unpacking binutils (2.24.51.20140903-1) over (2.24.51.20140818-1) ... Setting up binutils (2.24.51.20140903-1) ... Processing triggers for libc-bin (2.19-10) ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Fetch source files │ └──────────────────────────────────────────────────────────────────────────────┘ Check APT ───────── Checking available source versions... Download source files with APT ────────────────────────────── Reading package lists... Building dependency tree... Reading state information... Need to get 390 kB of source archives. Get:1 http://localhost:9999/debian/ unstable/main medusa 2.1.1-1 (dsc) [1068 B] Get:2 http://localhost:9999/debian/ unstable/main medusa 2.1.1-1 (tar) [383 kB] Get:3 http://localhost:9999/debian/ unstable/main medusa 2.1.1-1 (diff) [5512 B] Fetched 390 kB in 1s (270 kB/s) Download complete and in download only mode Check arch ────────── ┌──────────────────────────────────────────────────────────────────────────────┐ │ Chroot Setup Commands │ └──────────────────────────────────────────────────────────────────────────────┘ /tmp/switch-to-clang ──────────────────── + echo 'Entering customization script...' Entering customization script... + CLANG_VERSION=3.5 + echo 'Install of clang-3.5' Install of clang-3.5 + apt-get update Hit http://localhost:9999 unstable InRelease Get:1 http://localhost:9999 unstable/main Sources/DiffIndex [7876 B] Get:2 http://localhost:9999 unstable/main amd64 Packages/DiffIndex [7876 B] Get:3 http://localhost:9999 unstable/main Translation-en/DiffIndex [7876 B] Fetched 23.6 kB in 1s (12.8 kB/s) Reading package lists... + apt-get install --yes --no-install-recommends --force-yes clang-3.5 Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: libbsd0 libclang-common-3.5-dev libclang1-3.5 libedit2 libffi6 libllvm3.5 libobjc-4.9-dev libobjc4 Suggested packages: gnustep gnustep-devel clang-3.5-doc Recommended packages: llvm-3.5-dev python The following NEW packages will be installed: clang-3.5 libbsd0 libclang-common-3.5-dev libclang1-3.5 libedit2 libffi6 libllvm3.5 libobjc-4.9-dev libobjc4 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. Need to get 33.3 MB of archives. After this operation, 132 MB of additional disk space will be used. Get:1 http://localhost:9999/debian/ unstable/main libbsd0 amd64 0.7.0-2 [67.9 kB] Get:2 http://localhost:9999/debian/ unstable/main libedit2 amd64 3.1-20140620-2 [85.1 kB] Get:3 http://localhost:9999/debian/ unstable/main libffi6 amd64 3.1-2 [19.8 kB] Get:4 http://localhost:9999/debian/ unstable/main libllvm3.5 amd64 1:3.5-1 [7609 kB] Get:5 http://localhost:9999/debian/ unstable/main libobjc4 amd64 4.9.1-12 [112 kB] Get:6 http://localhost:9999/debian/ unstable/main libobjc-4.9-dev amd64 4.9.1-12 [372 kB] Get:7 http://localhost:9999/debian/ unstable/main libclang1-3.5 amd64 1:3.5-1 [3628 kB] Get:8 http://localhost:9999/debian/ unstable/main libclang-common-3.5-dev amd64 1:3.5-1 [677 kB] Get:9 http://localhost:9999/debian/ unstable/main clang-3.5 amd64 1:3.5-1 [20.7 MB] debconf: delaying package configuration, since apt-utils is not installed Fetched 33.3 MB in 0s (34.9 MB/s) Selecting previously unselected package libbsd0:amd64. (Reading database ... 15135 files and directories currently installed.) Preparing to unpack .../libbsd0_0.7.0-2_amd64.deb ... Unpacking libbsd0:amd64 (0.7.0-2) ... Selecting previously unselected package libedit2:amd64. Preparing to unpack .../libedit2_3.1-20140620-2_amd64.deb ... Unpacking libedit2:amd64 (3.1-20140620-2) ... Selecting previously unselected package libffi6:amd64. Preparing to unpack .../libffi6_3.1-2_amd64.deb ... Unpacking libffi6:amd64 (3.1-2) ... Selecting previously unselected package libllvm3.5:amd64. Preparing to unpack .../libllvm3.5_1%3a3.5-1_amd64.deb ... Unpacking libllvm3.5:amd64 (1:3.5-1) ... Selecting previously unselected package libobjc4:amd64. Preparing to unpack .../libobjc4_4.9.1-12_amd64.deb ... Unpacking libobjc4:amd64 (4.9.1-12) ... Selecting previously unselected package libobjc-4.9-dev:amd64. Preparing to unpack .../libobjc-4.9-dev_4.9.1-12_amd64.deb ... Unpacking libobjc-4.9-dev:amd64 (4.9.1-12) ... Selecting previously unselected package libclang1-3.5:amd64. Preparing to unpack .../libclang1-3.5_1%3a3.5-1_amd64.deb ... Unpacking libclang1-3.5:amd64 (1:3.5-1) ... Selecting previously unselected package libclang-common-3.5-dev. Preparing to unpack .../libclang-common-3.5-dev_1%3a3.5-1_amd64.deb ... Unpacking libclang-common-3.5-dev (1:3.5-1) ... Selecting previously unselected package clang-3.5. Preparing to unpack .../clang-3.5_1%3a3.5-1_amd64.deb ... Unpacking clang-3.5 (1:3.5-1) ... Setting up libbsd0:amd64 (0.7.0-2) ... Setting up libedit2:amd64 (3.1-20140620-2) ... Setting up libffi6:amd64 (3.1-2) ... Setting up libllvm3.5:amd64 (1:3.5-1) ... Setting up libobjc4:amd64 (4.9.1-12) ... Setting up libobjc-4.9-dev:amd64 (4.9.1-12) ... Setting up libclang1-3.5:amd64 (1:3.5-1) ... Setting up libclang-common-3.5-dev (1:3.5-1) ... Setting up clang-3.5 (1:3.5-1) ... Processing triggers for libc-bin (2.19-10) ... + echo 'Replace gcc, g++ & cpp by clang' Replace gcc, g++ & cpp by clang + VERSIONS='4.6 4.7 4.8 4.9' + cd /usr/bin + for VERSION in '$VERSIONS' + rm -f g++-4.6 gcc-4.6 cpp-4.6 gcc + ln -s clang++-3.5 g++-4.6 + ln -s clang-3.5 gcc-4.6 + ln -s clang-3.5 cpp-4.6 + ln -s clang-3.5 gcc + echo 'gcc-4.6 hold' + dpkg --set-selections + echo 'g++-4.6 hold' + dpkg --set-selections + for VERSION in '$VERSIONS' + rm -f g++-4.7 gcc-4.7 cpp-4.7 gcc + ln -s clang++-3.5 g++-4.7 + ln -s clang-3.5 gcc-4.7 + ln -s clang-3.5 cpp-4.7 + ln -s clang-3.5 gcc + echo 'gcc-4.7 hold' + dpkg --set-selections + echo 'g++-4.7 hold' + dpkg --set-selections + for VERSION in '$VERSIONS' + rm -f g++-4.8 gcc-4.8 cpp-4.8 gcc + ln -s clang++-3.5 g++-4.8 + ln -s clang-3.5 gcc-4.8 + ln -s clang-3.5 cpp-4.8 + ln -s clang-3.5 gcc + echo 'gcc-4.8 hold' + dpkg --set-selections dpkg: warning: package not in 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 + echo 'g++-4.8 hold' + dpkg --set-selections dpkg: warning: package not in 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 + for VERSION in '$VERSIONS' + rm -f g++-4.9 gcc-4.9 cpp-4.9 gcc + ln -s clang++-3.5 g++-4.9 + ln -s clang-3.5 gcc-4.9 + ln -s clang-3.5 cpp-4.9 + ln -s clang-3.5 gcc + echo 'gcc-4.9 hold' + dpkg --set-selections + echo 'g++-4.9 hold' + dpkg --set-selections + cd - /«BUILDDIR» + 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 I: Finished running '/tmp/switch-to-clang'. Finished processing commands. ──────────────────────────────────────────────────────────────────────────────── Merged Build-Depends: build-essential, fakeroot Filtered Build-Depends: build-essential, fakeroot dpkg-deb: building package `sbuild-build-depends-core-dummy' in `/«BUILDDIR»/resolver-dCRmpf/apt_archive/sbuild-build-depends-core-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install core build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: sbuild-build-depends-core-dummy debconf: delaying package configuration, since apt-utils is not installed 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/816 B of archives. After this operation, 0 B of additional disk space will be used. Selecting previously unselected package sbuild-build-depends-core-dummy. (Reading database ... 15338 files and directories currently installed.) Preparing to unpack .../sbuild-build-depends-core-dummy.deb ... Unpacking sbuild-build-depends-core-dummy (0.invalid.0) ... Setting up sbuild-build-depends-core-dummy (0.invalid.0) ... Merged Build-Depends: base-files, base-passwd, bash, bsdutils, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, init, libc-bin, login, mount, ncurses-base, ncurses-bin, perl-base, sed, sysvinit-utils, tar, util-linux, libc6-dev | libc-dev, gcc (>= 4:4.9.1), g++ (>= 4:4.9.1), make, dpkg-dev (>= 1.17.11), debhelper (>= 5), autotools-dev, libssl-dev, libsvn-dev, libpq-dev, libssh2-1-dev Filtered Build-Depends: base-files, base-passwd, bash, bsdutils, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, init, libc-bin, login, mount, ncurses-base, ncurses-bin, perl-base, sed, sysvinit-utils, tar, util-linux, libc6-dev, gcc (>= 4:4.9.1), g++ (>= 4:4.9.1), make, dpkg-dev (>= 1.17.11), debhelper (>= 5), autotools-dev, libssl-dev, libsvn-dev, libpq-dev, libssh2-1-dev dpkg-deb: building package `sbuild-build-depends-medusa-dummy' in `/«BUILDDIR»/resolver-9FDOGa/apt_archive/sbuild-build-depends-medusa-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install medusa build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: autotools-dev bsdmainutils comerr-dev debhelper file gettext gettext-base groff-base intltool-debian krb5-multidev libapr1 libapr1-dev libaprutil1 libaprutil1-dev libasprintf0c2 libcroco3 libexpat1-dev libgcrypt20-dev libglib2.0-0 libgnutls26 libgpg-error-dev libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit9 libkadm5srv-mit9 libkdb5-7 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap2-dev libmagic1 libmysqlclient-dev libmysqlclient18 libp11-kit0 libpcre3-dev libpcrecpp0 libpipeline1 libpq-dev libpq5 libsasl2-2 libsasl2-modules-db libsctp-dev libsctp1 libserf-1-1 libsqlite3-0 libsqlite3-dev libssh2-1 libssh2-1-dev libssl-dev libssl1.0.0 libsvn-dev libsvn1 libtasn1-6 libunistring0 libxml2 man-db mysql-common po-debconf uuid-dev zlib1g-dev Suggested packages: wamerican wordlist whois vacation doc-base dh-make gettext-doc groff krb5-doc python libgcrypt20-doc krb5-user postgresql-doc-9.4 sqlite3-doc libsvn-doc libserf-dev less www-browser libmail-box-perl Recommended packages: curl wget lynx-cur autopoint libasprintf-dev libgettextpo-dev libglib2.0-data shared-mime-info krb5-locales libsasl2-modules lksctp-tools libssl-doc xml-core libmail-sendmail-perl The following NEW packages will be installed: autotools-dev bsdmainutils comerr-dev debhelper file gettext gettext-base groff-base intltool-debian krb5-multidev libapr1 libapr1-dev libaprutil1 libaprutil1-dev libasprintf0c2 libcroco3 libexpat1-dev libgcrypt20-dev libglib2.0-0 libgnutls26 libgpg-error-dev libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit9 libkadm5srv-mit9 libkdb5-7 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap2-dev libmagic1 libmysqlclient-dev libmysqlclient18 libp11-kit0 libpcre3-dev libpcrecpp0 libpipeline1 libpq-dev libpq5 libsasl2-2 libsasl2-modules-db libsctp-dev libsctp1 libserf-1-1 libsqlite3-0 libsqlite3-dev libssh2-1 libssh2-1-dev libssl-dev libssl1.0.0 libsvn-dev libsvn1 libtasn1-6 libunistring0 libxml2 man-db mysql-common po-debconf sbuild-build-depends-medusa-dummy uuid-dev zlib1g-dev 0 upgraded, 63 newly installed, 0 to remove and 0 not upgraded. Need to get 22.1 MB/22.1 MB of archives. After this operation, 85.9 MB of additional disk space will be used. Get:1 http://localhost:9999/debian/ unstable/main libpipeline1 amd64 1.3.0-1 [25.8 kB] Get:2 http://localhost:9999/debian/ unstable/main libssl1.0.0 amd64 1.0.1i-2 [1026 kB] Get:3 http://localhost:9999/debian/ unstable/main groff-base amd64 1.22.2-7 [1142 kB] Get:4 http://localhost:9999/debian/ unstable/main bsdmainutils amd64 9.0.5 [211 kB] Get:5 http://localhost:9999/debian/ unstable/main man-db amd64 2.6.7.1-1 [990 kB] Get:6 http://localhost:9999/debian/ unstable/main libasprintf0c2 amd64 0.19.2-2 [30.8 kB] Get:7 http://localhost:9999/debian/ unstable/main libp11-kit0 amd64 0.20.3-2 [153 kB] Get:8 http://localhost:9999/debian/ unstable/main libtasn1-6 amd64 4.1-1 [48.2 kB] Get:9 http://localhost:9999/debian/ unstable/main libgnutls26 amd64 2.12.23-17 [531 kB] Get:10 http://localhost:9999/debian/ unstable/main libkeyutils1 amd64 1.5.9-5 [11.7 kB] Get:11 http://localhost:9999/debian/ unstable/main libkrb5support0 amd64 1.12.1+dfsg-9 [57.8 kB] Get:12 http://localhost:9999/debian/ unstable/main libk5crypto3 amd64 1.12.1+dfsg-9 [113 kB] Get:13 http://localhost:9999/debian/ unstable/main libkrb5-3 amd64 1.12.1+dfsg-9 [302 kB] Get:14 http://localhost:9999/debian/ unstable/main libgssapi-krb5-2 amd64 1.12.1+dfsg-9 [150 kB] Get:15 http://localhost:9999/debian/ unstable/main libgssrpc4 amd64 1.12.1+dfsg-9 [85.2 kB] Get:16 http://localhost:9999/debian/ unstable/main libkadm5clnt-mit9 amd64 1.12.1+dfsg-9 [67.2 kB] Get:17 http://localhost:9999/debian/ unstable/main libkdb5-7 amd64 1.12.1+dfsg-9 [67.3 kB] Get:18 http://localhost:9999/debian/ unstable/main libkadm5srv-mit9 amd64 1.12.1+dfsg-9 [81.8 kB] Get:19 http://localhost:9999/debian/ unstable/main libsasl2-modules-db amd64 2.1.26.dfsg1-11 [66.8 kB] Get:20 http://localhost:9999/debian/ unstable/main libsasl2-2 amd64 2.1.26.dfsg1-11 [104 kB] Get:21 http://localhost:9999/debian/ unstable/main libldap-2.4-2 amd64 2.4.39-1.1+b1 [214 kB] Get:22 http://localhost:9999/debian/ unstable/main libmagic1 amd64 1:5.19-1 [237 kB] Get:23 http://localhost:9999/debian/ unstable/main libsqlite3-0 amd64 3.8.6-1 [431 kB] Get:24 http://localhost:9999/debian/ unstable/main libxml2 amd64 2.9.1+dfsg1-4 [797 kB] Get:25 http://localhost:9999/debian/ unstable/main libapr1 amd64 1.5.1-2 [94.4 kB] Get:26 http://localhost:9999/debian/ unstable/main libaprutil1 amd64 1.5.3-3 [85.5 kB] Get:27 http://localhost:9999/debian/ unstable/main libglib2.0-0 amd64 2.40.0-5 [2421 kB] Get:28 http://localhost:9999/debian/ unstable/main libcroco3 amd64 0.6.8-3 [135 kB] Get:29 http://localhost:9999/debian/ unstable/main mysql-common all 5.5.39-1 [86.1 kB] Get:30 http://localhost:9999/debian/ unstable/main libmysqlclient18 amd64 5.5.39-1 [674 kB] Get:31 http://localhost:9999/debian/ unstable/main libpcrecpp0 amd64 1:8.35-3 [142 kB] Get:32 http://localhost:9999/debian/ unstable/main libpq5 amd64 9.4~beta2-1+b1 [119 kB] Get:33 http://localhost:9999/debian/ unstable/main libsctp1 amd64 1.0.16+dfsg-2 [27.6 kB] Get:34 http://localhost:9999/debian/ unstable/main libserf-1-1 amd64 1.3.7-1 [52.2 kB] Get:35 http://localhost:9999/debian/ unstable/main libssh2-1 amd64 1.4.3-4 [125 kB] Get:36 http://localhost:9999/debian/ unstable/main libsvn1 amd64 1.8.10-1+b1 [1075 kB] Get:37 http://localhost:9999/debian/ unstable/main libunistring0 amd64 0.9.3-5.2 [283 kB] Get:38 http://localhost:9999/debian/ unstable/main file amd64 1:5.19-1 [58.0 kB] Get:39 http://localhost:9999/debian/ unstable/main gettext-base amd64 0.19.2-2 [120 kB] Get:40 http://localhost:9999/debian/ unstable/main autotools-dev all 20140510.1 [70.3 kB] Get:41 http://localhost:9999/debian/ unstable/main gettext amd64 0.19.2-2 [1237 kB] Get:42 http://localhost:9999/debian/ unstable/main intltool-debian all 0.35.0+20060710.1 [30.8 kB] Get:43 http://localhost:9999/debian/ unstable/main po-debconf all 1.0.16+nmu3 [220 kB] Get:44 http://localhost:9999/debian/ unstable/main debhelper all 9.20140817 [814 kB] Get:45 http://localhost:9999/debian/ unstable/main comerr-dev amd64 2.1-1.42.12-1 [38.4 kB] Get:46 http://localhost:9999/debian/ unstable/main krb5-multidev amd64 1.12.1+dfsg-9 [144 kB] Get:47 http://localhost:9999/debian/ unstable/main uuid-dev amd64 2.20.1-5.8 [70.6 kB] Get:48 http://localhost:9999/debian/ unstable/main libsctp-dev amd64 1.0.16+dfsg-2 [83.5 kB] Get:49 http://localhost:9999/debian/ unstable/main libapr1-dev amd64 1.5.1-2 [605 kB] Get:50 http://localhost:9999/debian/ unstable/main libldap2-dev amd64 2.4.39-1.1+b1 [319 kB] Get:51 http://localhost:9999/debian/ unstable/main libexpat1-dev amd64 2.1.0-6 [126 kB] Get:52 http://localhost:9999/debian/ unstable/main libpcre3-dev amd64 1:8.35-3 [468 kB] Get:53 http://localhost:9999/debian/ unstable/main libsqlite3-dev amd64 3.8.6-1 [529 kB] Get:54 http://localhost:9999/debian/ unstable/main zlib1g-dev amd64 1:1.2.8.dfsg-2 [205 kB] Get:55 http://localhost:9999/debian/ unstable/main libssl-dev amd64 1.0.1i-2 [1261 kB] Get:56 http://localhost:9999/debian/ unstable/main libpq-dev amd64 9.4~beta2-1+b1 [160 kB] Get:57 http://localhost:9999/debian/ unstable/main libmysqlclient-dev amd64 5.5.39-1 [948 kB] Get:58 http://localhost:9999/debian/ unstable/main libaprutil1-dev amd64 1.5.3-3 [366 kB] Get:59 http://localhost:9999/debian/ unstable/main libgpg-error-dev amd64 1.13-4 [31.1 kB] Get:60 http://localhost:9999/debian/ unstable/main libgcrypt20-dev amd64 1.6.2-3 [436 kB] Get:61 http://localhost:9999/debian/ unstable/main libssh2-1-dev amd64 1.4.3-4 [290 kB] Get:62 http://localhost:9999/debian/ unstable/main libsvn-dev amd64 1.8.10-1+b1 [1213 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 22.1 MB in 1s (11.4 MB/s) Selecting previously unselected package libpipeline1:amd64. (Reading database ... 15338 files and directories currently installed.) Preparing to unpack .../libpipeline1_1.3.0-1_amd64.deb ... Unpacking libpipeline1:amd64 (1.3.0-1) ... Selecting previously unselected package libssl1.0.0:amd64. Preparing to unpack .../libssl1.0.0_1.0.1i-2_amd64.deb ... Unpacking libssl1.0.0:amd64 (1.0.1i-2) ... Selecting previously unselected package groff-base. Preparing to unpack .../groff-base_1.22.2-7_amd64.deb ... Unpacking groff-base (1.22.2-7) ... Selecting previously unselected package bsdmainutils. Preparing to unpack .../bsdmainutils_9.0.5_amd64.deb ... Unpacking bsdmainutils (9.0.5) ... Selecting previously unselected package man-db. Preparing to unpack .../man-db_2.6.7.1-1_amd64.deb ... Unpacking man-db (2.6.7.1-1) ... Selecting previously unselected package libasprintf0c2:amd64. Preparing to unpack .../libasprintf0c2_0.19.2-2_amd64.deb ... Unpacking libasprintf0c2:amd64 (0.19.2-2) ... Selecting previously unselected package libp11-kit0:amd64. Preparing to unpack .../libp11-kit0_0.20.3-2_amd64.deb ... Unpacking libp11-kit0:amd64 (0.20.3-2) ... Selecting previously unselected package libtasn1-6:amd64. Preparing to unpack .../libtasn1-6_4.1-1_amd64.deb ... Unpacking libtasn1-6:amd64 (4.1-1) ... Selecting previously unselected package libgnutls26:amd64. Preparing to unpack .../libgnutls26_2.12.23-17_amd64.deb ... Unpacking libgnutls26:amd64 (2.12.23-17) ... Selecting previously unselected package libkeyutils1:amd64. Preparing to unpack .../libkeyutils1_1.5.9-5_amd64.deb ... Unpacking libkeyutils1:amd64 (1.5.9-5) ... Selecting previously unselected package libkrb5support0:amd64. Preparing to unpack .../libkrb5support0_1.12.1+dfsg-9_amd64.deb ... Unpacking libkrb5support0:amd64 (1.12.1+dfsg-9) ... Selecting previously unselected package libk5crypto3:amd64. Preparing to unpack .../libk5crypto3_1.12.1+dfsg-9_amd64.deb ... Unpacking libk5crypto3:amd64 (1.12.1+dfsg-9) ... Selecting previously unselected package libkrb5-3:amd64. Preparing to unpack .../libkrb5-3_1.12.1+dfsg-9_amd64.deb ... Unpacking libkrb5-3:amd64 (1.12.1+dfsg-9) ... Selecting previously unselected package libgssapi-krb5-2:amd64. Preparing to unpack .../libgssapi-krb5-2_1.12.1+dfsg-9_amd64.deb ... Unpacking libgssapi-krb5-2:amd64 (1.12.1+dfsg-9) ... Selecting previously unselected package libgssrpc4:amd64. Preparing to unpack .../libgssrpc4_1.12.1+dfsg-9_amd64.deb ... Unpacking libgssrpc4:amd64 (1.12.1+dfsg-9) ... Selecting previously unselected package libkadm5clnt-mit9:amd64. Preparing to unpack .../libkadm5clnt-mit9_1.12.1+dfsg-9_amd64.deb ... Unpacking libkadm5clnt-mit9:amd64 (1.12.1+dfsg-9) ... Selecting previously unselected package libkdb5-7:amd64. Preparing to unpack .../libkdb5-7_1.12.1+dfsg-9_amd64.deb ... Unpacking libkdb5-7:amd64 (1.12.1+dfsg-9) ... Selecting previously unselected package libkadm5srv-mit9:amd64. Preparing to unpack .../libkadm5srv-mit9_1.12.1+dfsg-9_amd64.deb ... Unpacking libkadm5srv-mit9:amd64 (1.12.1+dfsg-9) ... Selecting previously unselected package libsasl2-modules-db:amd64. Preparing to unpack .../libsasl2-modules-db_2.1.26.dfsg1-11_amd64.deb ... Unpacking libsasl2-modules-db:amd64 (2.1.26.dfsg1-11) ... Selecting previously unselected package libsasl2-2:amd64. Preparing to unpack .../libsasl2-2_2.1.26.dfsg1-11_amd64.deb ... Unpacking libsasl2-2:amd64 (2.1.26.dfsg1-11) ... Selecting previously unselected package libldap-2.4-2:amd64. Preparing to unpack .../libldap-2.4-2_2.4.39-1.1+b1_amd64.deb ... Unpacking libldap-2.4-2:amd64 (2.4.39-1.1+b1) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../libmagic1_1%3a5.19-1_amd64.deb ... Unpacking libmagic1:amd64 (1:5.19-1) ... Selecting previously unselected package libsqlite3-0:amd64. Preparing to unpack .../libsqlite3-0_3.8.6-1_amd64.deb ... Unpacking libsqlite3-0:amd64 (3.8.6-1) ... Selecting previously unselected package libxml2:amd64. Preparing to unpack .../libxml2_2.9.1+dfsg1-4_amd64.deb ... Unpacking libxml2:amd64 (2.9.1+dfsg1-4) ... Selecting previously unselected package libapr1:amd64. Preparing to unpack .../libapr1_1.5.1-2_amd64.deb ... Unpacking libapr1:amd64 (1.5.1-2) ... Selecting previously unselected package libaprutil1:amd64. Preparing to unpack .../libaprutil1_1.5.3-3_amd64.deb ... Unpacking libaprutil1:amd64 (1.5.3-3) ... Selecting previously unselected package libglib2.0-0:amd64. Preparing to unpack .../libglib2.0-0_2.40.0-5_amd64.deb ... Unpacking libglib2.0-0:amd64 (2.40.0-5) ... Selecting previously unselected package libcroco3:amd64. Preparing to unpack .../libcroco3_0.6.8-3_amd64.deb ... Unpacking libcroco3:amd64 (0.6.8-3) ... Selecting previously unselected package mysql-common. Preparing to unpack .../mysql-common_5.5.39-1_all.deb ... Unpacking mysql-common (5.5.39-1) ... Selecting previously unselected package libmysqlclient18:amd64. Preparing to unpack .../libmysqlclient18_5.5.39-1_amd64.deb ... Unpacking libmysqlclient18:amd64 (5.5.39-1) ... Selecting previously unselected package libpcrecpp0:amd64. Preparing to unpack .../libpcrecpp0_1%3a8.35-3_amd64.deb ... Unpacking libpcrecpp0:amd64 (1:8.35-3) ... Selecting previously unselected package libpq5:amd64. Preparing to unpack .../libpq5_9.4~beta2-1+b1_amd64.deb ... Unpacking libpq5:amd64 (9.4~beta2-1+b1) ... Selecting previously unselected package libsctp1:amd64. Preparing to unpack .../libsctp1_1.0.16+dfsg-2_amd64.deb ... Unpacking libsctp1:amd64 (1.0.16+dfsg-2) ... Selecting previously unselected package libserf-1-1:amd64. Preparing to unpack .../libserf-1-1_1.3.7-1_amd64.deb ... Unpacking libserf-1-1:amd64 (1.3.7-1) ... Selecting previously unselected package libssh2-1:amd64. Preparing to unpack .../libssh2-1_1.4.3-4_amd64.deb ... Unpacking libssh2-1:amd64 (1.4.3-4) ... Selecting previously unselected package libsvn1:amd64. Preparing to unpack .../libsvn1_1.8.10-1+b1_amd64.deb ... Unpacking libsvn1:amd64 (1.8.10-1+b1) ... Selecting previously unselected package libunistring0:amd64. Preparing to unpack .../libunistring0_0.9.3-5.2_amd64.deb ... Unpacking libunistring0:amd64 (0.9.3-5.2) ... Selecting previously unselected package file. Preparing to unpack .../file_1%3a5.19-1_amd64.deb ... Unpacking file (1:5.19-1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../gettext-base_0.19.2-2_amd64.deb ... Unpacking gettext-base (0.19.2-2) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../autotools-dev_20140510.1_all.deb ... Unpacking autotools-dev (20140510.1) ... Selecting previously unselected package gettext. Preparing to unpack .../gettext_0.19.2-2_amd64.deb ... Unpacking gettext (0.19.2-2) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../intltool-debian_0.35.0+20060710.1_all.deb ... Unpacking intltool-debian (0.35.0+20060710.1) ... Selecting previously unselected package po-debconf. Preparing to unpack .../po-debconf_1.0.16+nmu3_all.deb ... Unpacking po-debconf (1.0.16+nmu3) ... Selecting previously unselected package debhelper. Preparing to unpack .../debhelper_9.20140817_all.deb ... Unpacking debhelper (9.20140817) ... Selecting previously unselected package comerr-dev. Preparing to unpack .../comerr-dev_2.1-1.42.12-1_amd64.deb ... Unpacking comerr-dev (2.1-1.42.12-1) ... Selecting previously unselected package krb5-multidev. Preparing to unpack .../krb5-multidev_1.12.1+dfsg-9_amd64.deb ... Unpacking krb5-multidev (1.12.1+dfsg-9) ... Selecting previously unselected package uuid-dev. Preparing to unpack .../uuid-dev_2.20.1-5.8_amd64.deb ... Unpacking uuid-dev (2.20.1-5.8) ... Selecting previously unselected package libsctp-dev. Preparing to unpack .../libsctp-dev_1.0.16+dfsg-2_amd64.deb ... Unpacking libsctp-dev (1.0.16+dfsg-2) ... Selecting previously unselected package libapr1-dev. Preparing to unpack .../libapr1-dev_1.5.1-2_amd64.deb ... Unpacking libapr1-dev (1.5.1-2) ... Selecting previously unselected package libldap2-dev:amd64. Preparing to unpack .../libldap2-dev_2.4.39-1.1+b1_amd64.deb ... Unpacking libldap2-dev:amd64 (2.4.39-1.1+b1) ... Selecting previously unselected package libexpat1-dev:amd64. Preparing to unpack .../libexpat1-dev_2.1.0-6_amd64.deb ... Unpacking libexpat1-dev:amd64 (2.1.0-6) ... Selecting previously unselected package libpcre3-dev:amd64. Preparing to unpack .../libpcre3-dev_1%3a8.35-3_amd64.deb ... Unpacking libpcre3-dev:amd64 (1:8.35-3) ... Selecting previously unselected package libsqlite3-dev:amd64. Preparing to unpack .../libsqlite3-dev_3.8.6-1_amd64.deb ... Unpacking libsqlite3-dev:amd64 (3.8.6-1) ... Selecting previously unselected package zlib1g-dev:amd64. Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-2_amd64.deb ... Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-2) ... Selecting previously unselected package libssl-dev:amd64. Preparing to unpack .../libssl-dev_1.0.1i-2_amd64.deb ... Unpacking libssl-dev:amd64 (1.0.1i-2) ... Selecting previously unselected package libpq-dev. Preparing to unpack .../libpq-dev_9.4~beta2-1+b1_amd64.deb ... Unpacking libpq-dev (9.4~beta2-1+b1) ... Selecting previously unselected package libmysqlclient-dev. Preparing to unpack .../libmysqlclient-dev_5.5.39-1_amd64.deb ... Unpacking libmysqlclient-dev (5.5.39-1) ... Selecting previously unselected package libaprutil1-dev. Preparing to unpack .../libaprutil1-dev_1.5.3-3_amd64.deb ... Unpacking libaprutil1-dev (1.5.3-3) ... Selecting previously unselected package libgpg-error-dev. Preparing to unpack .../libgpg-error-dev_1.13-4_amd64.deb ... Unpacking libgpg-error-dev (1.13-4) ... Selecting previously unselected package libgcrypt20-dev. Preparing to unpack .../libgcrypt20-dev_1.6.2-3_amd64.deb ... Unpacking libgcrypt20-dev (1.6.2-3) ... Selecting previously unselected package libssh2-1-dev:amd64. Preparing to unpack .../libssh2-1-dev_1.4.3-4_amd64.deb ... Unpacking libssh2-1-dev:amd64 (1.4.3-4) ... Selecting previously unselected package libsvn-dev. Preparing to unpack .../libsvn-dev_1.8.10-1+b1_amd64.deb ... Unpacking libsvn-dev (1.8.10-1+b1) ... Selecting previously unselected package sbuild-build-depends-medusa-dummy. Preparing to unpack .../sbuild-build-depends-medusa-dummy.deb ... Unpacking sbuild-build-depends-medusa-dummy (0.invalid.0) ... Setting up libpipeline1:amd64 (1.3.0-1) ... Setting up libssl1.0.0:amd64 (1.0.1i-2) ... Setting up groff-base (1.22.2-7) ... Setting up bsdmainutils (9.0.5) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode Setting up man-db (2.6.7.1-1) ... Not building database; man-db/auto-update is not 'true'. Setting up libasprintf0c2:amd64 (0.19.2-2) ... Setting up libp11-kit0:amd64 (0.20.3-2) ... Setting up libtasn1-6:amd64 (4.1-1) ... Setting up libgnutls26:amd64 (2.12.23-17) ... Setting up libkeyutils1:amd64 (1.5.9-5) ... Setting up libkrb5support0:amd64 (1.12.1+dfsg-9) ... Setting up libk5crypto3:amd64 (1.12.1+dfsg-9) ... Setting up libkrb5-3:amd64 (1.12.1+dfsg-9) ... Setting up libgssapi-krb5-2:amd64 (1.12.1+dfsg-9) ... Setting up libgssrpc4:amd64 (1.12.1+dfsg-9) ... Setting up libkadm5clnt-mit9:amd64 (1.12.1+dfsg-9) ... Setting up libkdb5-7:amd64 (1.12.1+dfsg-9) ... Setting up libkadm5srv-mit9:amd64 (1.12.1+dfsg-9) ... Setting up libsasl2-modules-db:amd64 (2.1.26.dfsg1-11) ... Setting up libsasl2-2:amd64 (2.1.26.dfsg1-11) ... Setting up libldap-2.4-2:amd64 (2.4.39-1.1+b1) ... Setting up libmagic1:amd64 (1:5.19-1) ... Setting up libsqlite3-0:amd64 (3.8.6-1) ... Setting up libxml2:amd64 (2.9.1+dfsg1-4) ... Setting up libapr1:amd64 (1.5.1-2) ... Setting up libaprutil1:amd64 (1.5.3-3) ... Setting up libglib2.0-0:amd64 (2.40.0-5) ... No schema files found: doing nothing. Setting up libcroco3:amd64 (0.6.8-3) ... Setting up mysql-common (5.5.39-1) ... Setting up libmysqlclient18:amd64 (5.5.39-1) ... Setting up libpcrecpp0:amd64 (1:8.35-3) ... Setting up libpq5:amd64 (9.4~beta2-1+b1) ... Setting up libsctp1:amd64 (1.0.16+dfsg-2) ... Setting up libserf-1-1:amd64 (1.3.7-1) ... Setting up libssh2-1:amd64 (1.4.3-4) ... Setting up libsvn1:amd64 (1.8.10-1+b1) ... Setting up libunistring0:amd64 (0.9.3-5.2) ... Setting up file (1:5.19-1) ... Setting up gettext-base (0.19.2-2) ... Setting up autotools-dev (20140510.1) ... Setting up gettext (0.19.2-2) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu3) ... Setting up debhelper (9.20140817) ... Setting up comerr-dev (2.1-1.42.12-1) ... Setting up krb5-multidev (1.12.1+dfsg-9) ... Setting up uuid-dev (2.20.1-5.8) ... Setting up libsctp-dev (1.0.16+dfsg-2) ... Setting up libapr1-dev (1.5.1-2) ... Setting up libldap2-dev:amd64 (2.4.39-1.1+b1) ... Setting up libexpat1-dev:amd64 (2.1.0-6) ... Setting up libpcre3-dev:amd64 (1:8.35-3) ... Setting up libsqlite3-dev:amd64 (3.8.6-1) ... Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-2) ... Setting up libssl-dev:amd64 (1.0.1i-2) ... Setting up libpq-dev (9.4~beta2-1+b1) ... Setting up libmysqlclient-dev (5.5.39-1) ... Setting up libaprutil1-dev (1.5.3-3) ... Setting up libgpg-error-dev (1.13-4) ... Setting up libgcrypt20-dev (1.6.2-3) ... Setting up libssh2-1-dev:amd64 (1.4.3-4) ... Setting up libsvn-dev (1.8.10-1+b1) ... Setting up sbuild-build-depends-medusa-dummy (0.invalid.0) ... Processing triggers for libc-bin (2.19-10) ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build environment │ └──────────────────────────────────────────────────────────────────────────────┘ Kernel: Linux 2.6.32-5-xen-amd64 amd64 (x86_64) Toolchain package versions: binutils_2.24.51.20140903-1 dpkg-dev_1.17.13 g++-4.6_4.6.4-7 g++-4.9_4.9.1-12 gcc-4.6_4.6.4-7 gcc-4.7_4.7.4-3 gcc-4.9_4.9.1-12 libc6-dev_2.19-10 libstdc++-4.9-dev_4.9.1-12 libstdc++6_4.9.1-12 libstdc++6-4.6-dev_4.6.4-7 linux-libc-dev_3.14.15-2 Package versions: acl_2.2.52-1.1 adduser_3.113+nmu3 apt_1.0.7 autotools-dev_20140510.1 base-files_7.5 base-passwd_3.5.35 bash_4.3-9 binutils_2.24.51.20140903-1 bsdmainutils_9.0.5 bsdutils_1:2.20.1-5.8 build-essential_11.7 bzip2_1.0.6-7 clang-3.5_1:3.5-1 comerr-dev_2.1-1.42.12-1 coreutils_8.23-2 cpp_4:4.9.1-3 cpp-4.6_4.6.4-7 cpp-4.7_4.7.4-3 cpp-4.9_4.9.1-12 dash_0.5.7-4 dbus_1.8.6-2 debconf_1.5.53 debconf-i18n_1.5.53 debfoster_2.7-2 debhelper_9.20140817 debian-archive-keyring_2014.1 debianutils_4.4 diffutils_1:3.3-1 dmsetup_2:1.02.88-1 dpkg_1.17.13 dpkg-dev_1.17.13 e2fslibs_1.42.12-1 e2fsprogs_1.42.12-1 fakeroot_1.20.1-1.1 file_1:5.19-1 findutils_4.4.2-9 g++_4:4.9.1-3 g++-4.6_4.6.4-7 g++-4.9_4.9.1-12 gcc_4:4.9.1-3 gcc-4.4-base_4.4.7-8 gcc-4.5-base_4.5.4-1 gcc-4.6_4.6.4-7 gcc-4.6-base_4.6.4-7 gcc-4.7_4.7.4-3 gcc-4.7-base_4.7.4-3 gcc-4.8-base_4.8.3-10 gcc-4.9_4.9.1-12 gcc-4.9-base_4.9.1-12 gettext_0.19.2-2 gettext-base_0.19.2-2 gnupg_1.4.18-3 gpgv_1.4.18-3 grep_2.20-2 groff-base_1.22.2-7 gzip_1.6-3 hostname_3.15 init_1.21 initscripts_2.88dsf-53.4 insserv_1.14.0-5 intltool-debian_0.35.0+20060710.1 krb5-multidev_1.12.1+dfsg-9 libacl1_2.2.52-1.1 libalgorithm-c3-perl_0.09-1 libapr1_1.5.1-2 libapr1-dev_1.5.1-2 libaprutil1_1.5.3-3 libaprutil1-dev_1.5.3-3 libapt-pkg4.12_1.0.7 libarchive-extract-perl_0.72-1 libasan1_4.9.1-12 libasprintf0c2_0.19.2-2 libatomic1_4.9.1-12 libattr1_1:2.4.47-1 libaudit-common_1:2.3.7-1 libaudit1_1:2.3.7-1 libblkid1_2.20.1-5.8 libbsd0_0.7.0-2 libbz2-1.0_1.0.6-7 libc-bin_2.19-10 libc-dev-bin_2.19-10 libc6_2.19-10 libc6-dev_2.19-10 libcap-ng0_0.7.4-2 libcap2_1:2.24-4 libcap2-bin_1:2.24-4 libcgi-fast-perl_1:2.02-1 libcgi-pm-perl_4.03-1 libcilkrts5_4.9.1-12 libclang-common-3.5-dev_1:3.5-1 libclang1-3.5_1:3.5-1 libclass-c3-perl_0.26-1 libclass-c3-xs-perl_0.13-2+b1 libclass-isa-perl_0.36-5 libcloog-isl4_0.18.2-1 libcloog-ppl1_0.16.1-5 libcomerr2_1.42.12-1 libcroco3_0.6.8-3 libcryptsetup4_2:1.6.6-1 libdata-optlist-perl_0.109-1 libdata-section-perl_0.200006-1 libdb5.1_5.1.29-5 libdb5.3_5.3.28-6 libdbus-1-3_1.8.6-2 libdebconfclient0_0.191 libdevmapper1.02.1_2:1.02.88-1 libdpkg-perl_1.17.13 libedit2_3.1-20140620-2 libexpat1_2.1.0-6 libexpat1-dev_2.1.0-6 libfakeroot_1.20.1-1.1 libfcgi-perl_0.77-1+b1 libffi6_3.1-2 libfile-fcntllock-perl_0.22-1+b1 libgc1c2_1:7.2d-6.3 libgcc-4.7-dev_4.7.4-3 libgcc-4.9-dev_4.9.1-12 libgcc1_1:4.9.1-12 libgcrypt11_1.5.4-3 libgcrypt20_1.6.2-3 libgcrypt20-dev_1.6.2-3 libgdbm3_1.8.3-13 libglib2.0-0_2.40.0-5 libgmp10_2:6.0.0+dfsg-6 libgmpxx4ldbl_2:6.0.0+dfsg-6 libgnutls26_2.12.23-17 libgomp1_4.9.1-12 libgpg-error-dev_1.13-4 libgpg-error0_1.13-4 libgpm2_1.20.4-6.1 libgssapi-krb5-2_1.12.1+dfsg-9 libgssrpc4_1.12.1+dfsg-9 libisl10_0.12.2-2 libitm1_4.9.1-12 libk5crypto3_1.12.1+dfsg-9 libkadm5clnt-mit9_1.12.1+dfsg-9 libkadm5srv-mit9_1.12.1+dfsg-9 libkdb5-7_1.12.1+dfsg-9 libkeyutils1_1.5.9-5 libkmod2_18-1 libkrb5-3_1.12.1+dfsg-9 libkrb5support0_1.12.1+dfsg-9 libldap-2.4-2_2.4.39-1.1+b1 libldap2-dev_2.4.39-1.1+b1 libllvm3.5_1:3.5-1 liblocale-gettext-perl_1.05-8+b1 liblog-message-perl_0.8-1 liblog-message-simple-perl_0.10-2 liblsan0_4.9.1-12 liblzma5_5.1.1alpha+20120614-2 libmagic1_1:5.19-1 libmodule-build-perl_0.420800-1 libmodule-pluggable-perl_5.1-1 libmodule-signature-perl_0.73-1 libmount1_2.20.1-5.8 libmpc2_0.9-4 libmpc3_1.0.2-1 libmpfr4_3.1.2-1 libmro-compat-perl_0.12-1 libmysqlclient-dev_5.5.39-1 libmysqlclient18_5.5.39-1 libncurses5_5.9+20140712-2 libncursesw5_5.9+20140712-2 libobjc-4.9-dev_4.9.1-12 libobjc4_4.9.1-12 libp11-kit0_0.20.3-2 libpackage-constants-perl_0.04-1 libpam-cap_1:2.24-4 libpam-modules_1.1.8-3.1 libpam-modules-bin_1.1.8-3.1 libpam-runtime_1.1.8-3.1 libpam-systemd_208-8 libpam0g_1.1.8-3.1 libparams-util-perl_1.07-2+b1 libpcre3_1:8.35-3 libpcre3-dev_1:8.35-3 libpcrecpp0_1:8.35-3 libpipeline1_1.3.0-1 libpod-latex-perl_0.61-1 libpod-readme-perl_0.11-1 libppl-c4_1:1.1-3 libppl13_1:1.1-3 libpq-dev_9.4~beta2-1+b1 libpq5_9.4~beta2-1+b1 libprocps3_1:3.3.9-7 libquadmath0_4.9.1-12 libreadline6_6.3-8 libregexp-common-perl_2013031301-1 libsasl2-2_2.1.26.dfsg1-11 libsasl2-modules-db_2.1.26.dfsg1-11 libsctp-dev_1.0.16+dfsg-2 libsctp1_1.0.16+dfsg-2 libselinux1_2.3-2 libsemanage-common_2.3-1 libsemanage1_2.3-1 libsepol1_2.3-2 libserf-1-1_1.3.7-1 libslang2_2.2.4-17 libsoftware-license-perl_0.103010-1 libsqlite3-0_3.8.6-1 libsqlite3-dev_3.8.6-1 libss2_1.42.12-1 libssh2-1_1.4.3-4 libssh2-1-dev_1.4.3-4 libssl-dev_1.0.1i-2 libssl1.0.0_1.0.1i-2 libstdc++-4.9-dev_4.9.1-12 libstdc++6_4.9.1-12 libstdc++6-4.6-dev_4.6.4-7 libsub-exporter-perl_0.986-1 libsub-install-perl_0.928-1 libsvn-dev_1.8.10-1+b1 libsvn1_1.8.10-1+b1 libswitch-perl_2.17-1 libsystemd-daemon0_208-8 libsystemd-journal0_208-8 libsystemd-login0_208-8 libtasn1-6_4.1-1 libterm-ui-perl_0.42-1 libtext-charwidth-perl_0.04-7+b3 libtext-iconv-perl_1.7-5+b2 libtext-soundex-perl_3.4-1+b2 libtext-template-perl_1.46-1 libtext-wrapi18n-perl_0.06-7 libtimedate-perl_2.3000-2 libtinfo5_5.9+20140712-2 libtsan0_4.9.1-12 libubsan0_4.9.1-12 libudev1_208-8 libunistring0_0.9.3-5.2 libusb-0.1-4_2:0.1.12-24 libustr-1.0-1_1.0.4-3 libuuid1_2.20.1-5.8 libwrap0_7.6.q-25 libxml2_2.9.1+dfsg1-4 linux-libc-dev_3.14.15-2 login_1:4.2-2+b1 lsb-base_4.1+Debian13 make_4.0-8 man-db_2.6.7.1-1 mawk_1.3.3-17 mount_2.20.1-5.8 multiarch-support_2.19-10 mysql-common_5.5.39-1 ncurses-base_5.9+20140712-2 ncurses-bin_5.9+20140712-2 passwd_1:4.2-2+b1 patch_2.7.1-6 perl_5.20.0-6 perl-base_5.20.0-6 perl-modules_5.20.0-6 po-debconf_1.0.16+nmu3 procps_1:3.3.9-7 psmisc_22.21-2 readline-common_6.3-8 rename_0.20-3 sbuild-build-depends-core-dummy_0.invalid.0 sbuild-build-depends-medusa-dummy_0.invalid.0 sed_4.2.2-4 sensible-utils_0.0.9 startpar_0.59-3 sudo_1.8.9p5-1 systemd_208-8 systemd-sysv_208-8 sysv-rc_2.88dsf-53.4 sysvinit_2.88dsf-53.4 sysvinit-utils_2.88dsf-53.4 tar_1.27.1-2 tcpd_7.6.q-25 tzdata_2014g-1 ucf_3.0030 udev_208-8 util-linux_2.20.1-5.8 uuid-dev_2.20.1-5.8 vim_2:7.4.430-1 vim-common_2:7.4.430-1 vim-runtime_2:7.4.430-1 xz-utils_5.1.1alpha+20120614-2 zlib1g_1:1.2.8.dfsg-2 zlib1g-dev_1:1.2.8.dfsg-2 ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build │ └──────────────────────────────────────────────────────────────────────────────┘ Unpack source ───────────── gpgv: keyblock resource `/sbuild-nonexistent/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Sat Jan 25 22:10:05 2014 UTC using DSA key ID 894BB479 gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./medusa_2.1.1-1.dsc dpkg-source: info: extracting medusa in medusa-2.1.1 dpkg-source: info: unpacking medusa_2.1.1.orig.tar.gz dpkg-source: info: unpacking medusa_2.1.1-1.debian.tar.xz dpkg-source: info: applying web_form.patch Check disc space ──────────────── Sufficient free space for build Hack binNMU version ─────────────────── Created changelog entry for binNMU version 2.1.1-1clang1 User Environment ──────────────── DEB_BUILD_OPTIONS=parallel=10 HOME=/sbuild-nonexistent LOGNAME=user PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games SCHROOT_ALIAS_NAME=unstable-amd64-sbuild SCHROOT_CHROOT_NAME=unstable-amd64-sbuild SCHROOT_COMMAND=env SCHROOT_GID=1000 SCHROOT_GROUP=user SCHROOT_SESSION_ID=unstable-amd64-sbuild-58ea5050-db07-4ceb-af07-6bacced44167 SCHROOT_UID=1000 SCHROOT_USER=user SHELL=/bin/sh USER=user dpkg-buildpackage ───────────────── dpkg-buildpackage: source package medusa dpkg-buildpackage: source version 2.1.1-1clang1 dpkg-buildpackage: source distribution unstable dpkg-source --before-build medusa-2.1.1 dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || /usr/bin/make distclean rm -f config.sub config.guess dh_clean debian/rules build-arch dh_testdir cp -f /usr/share/misc/config.sub config.sub cp -f /usr/share/misc/config.guess config.guess ./configure --host=x86_64-linux-gnu --build=x86_64-linux-gnu --prefix=/usr --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info CFLAGS="-Wall -g -O2" --with-default-mod-path="/usr/lib/medusa/modules" CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" CPPFLAGS="-D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" FCFLAGS="-g -O2 -fstack-protector-strong" FFLAGS="-g -O2 -fstack-protector-strong" GCJFLAGS="-g -O2 -fstack-protector-strong" LDFLAGS="-Wl,-z,relro" OBJCFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" OBJCXXFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for x86_64-linux-gnu-gcc... x86_64-linux-gnu-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 we are using the GNU C compiler... yes checking whether x86_64-linux-gnu-gcc accepts -g... yes checking for x86_64-linux-gnu-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of x86_64-linux-gnu-gcc... gcc3 checking how to run the C preprocessor... x86_64-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking size of short... 2 checking whether to enable debugging... yes configure: checking for pthread support... checking for main in -lpthread... yes configure: checking for dlopen/dlclose... checking for dlclose in -ldl... yes checking for library containing clock_gettime... none required checking for clock_gettime... yes configure: checking for OpenSSL Library and Header files... checking for CRYPTO_lock in -lcrypto... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking for main in -lssl... yes configure: *** Checking module dependencies and enabling accordingly *** configure: checking for AFPFS-NG Library and Header files... checking afpfs-ng/afp_protocol.h usability... no configure: WARNING: *** AFPFS-NG header files required for AFP module. *** The AFPFS-NG package must be installed for the AFP module to function. This includes both the library and header files. AFPFS-NG is available at the following site: http://alexthepuffin.googlepages.com/. The AFP module will NOT be built. checking afpfs-ng/afp_protocol.h presence... no checking for afpfs-ng/afp_protocol.h... no checking whether to enable AFP module... no checking whether to enable CVS module... yes checking whether to enable FTP module... yes checking whether to enable HTTP module... yes checking whether to enable IMAP module... yes checking whether to enable MSSQL module... yes checking whether to enable MYSQL module... yes configure: checking for NCPFS Library and Header files... checking ncp/nwcalls.h usability... no configure: WARNING: *** NCPFS header files required for NCP module. *** The NCPFS package must be installed for the NCP module to function. This includes both the library and header files. If your distribution does not include these files or offer a ncpfs-devel package, the files can be manually installed using "make install-dev" within the NCPFS source. The NCP module will NOT be built. checking ncp/nwcalls.h presence... no checking for ncp/nwcalls.h... no checking whether to enable NCP module... no checking whether to enable NNTP module... yes checking whether to enable PCANYWHERE module... yes checking whether to enable POP3 module... yes configure: checking for PostgreSQL Library and Header files... checking libpq-fe.h usability... yes checking libpq-fe.h presence... yes checking for libpq-fe.h... yes checking for main in -lpq... yes checking whether to enable POSTGRES module... yes checking whether to enable REXEC module... yes checking whether to enable RLOGIN module... yes checking whether to enable RSH module... yes checking whether to enable SMBNT module... yes checking whether to enable SMTP module... yes checking whether to enable SMTP-VRFY module... yes checking whether to enable SNMP module... yes configure: checking for Libssh2 Library files... checking for main in -lssh2... yes configure: WARNING: LIBSSH2 path not found. Assuming it was... ldd: missing file arguments Try `ldd --help' for more information. checking whether to enable SSH module... yes configure: checking for Subversion Library and Header files... checking for apr-1-config... /usr/bin/apr-1-config checking /usr/include/apr-1.0/apr_tables.h usability... yes checking /usr/include/apr-1.0/apr_tables.h presence... yes checking for /usr/include/apr-1.0/apr_tables.h... yes checking subversion-1/svn_client.h usability... yes checking subversion-1/svn_client.h presence... yes checking for subversion-1/svn_client.h... yes checking for main in -lsvn_client-1... yes checking whether to enable SVN module... yes checking whether to enable TELNET module... yes checking whether to enable VMAUTHD module... yes checking whether to enable VNC module... yes checking whether to enable WRAPPER module... yes checking whether to enable WEB-FORM module... yes configure: configure: ******************************************************* configure: Medusa Module Build Summary configure: configure: AFP ** Disabled ** configure: CVS Enabled configure: FTP Enabled configure: HTTP Enabled configure: IMAP Enabled configure: MSSQL Enabled configure: MYSQL Enabled configure: NCP ** Disabled ** configure: NNTP Enabled configure: PCANYWHERE Enabled configure: POP3 Enabled configure: POSTGRES Enabled configure: REXEC Enabled configure: RLOGIN Enabled configure: RSH Enabled configure: SMBNT Enabled configure: SMTP Enabled configure: SMTP-VRFY Enabled configure: SNMP Enabled configure: SSH Enabled configure: SVN Enabled configure: TELNET Enabled configure: VMAUTHD Enabled configure: VNC Enabled configure: WRAPPER Enabled configure: WEB-FORM Enabled configure: configure: If a module is unexpectedly marked as disabled, check configure: above output and verify dependancies were satisfied. configure: configure: It should also be noted that, by default, not all of configure: the modules are built. Incomplete modules or modules configure: which have not been sufficiently tested may be configure: disabled. To enable non-default modules, use the configure: "--enable-module-MODULE_NAME" configure option. configure: ******************************************************* configure: checking for strcasestr... yes checking for asprintf... yes checking for vasprintf... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/modsrc/Makefile config.status: creating config.h config.status: executing depfiles commands dh_testdir /usr/bin/make make[1]: Entering directory '/«PKGBUILDDIR»' /usr/bin/make all-recursive make[2]: Entering directory '/«PKGBUILDDIR»' Making all in src make[3]: Entering directory '/«PKGBUILDDIR»/src' Making all in modsrc make[4]: Entering directory '/«PKGBUILDDIR»/src/modsrc' x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT cvs.o -MD -MP -MF .deps/cvs.Tpo -c -o cvs.o cvs.c cvs.c:84:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ cvs.c:92:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ cvs.c:111:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ cvs.c:165:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ cvs.c:360:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 5 warnings generated. mv -f .deps/cvs.Tpo .deps/cvs.Po x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT medusa-trace.o -MD -MP -MF .deps/medusa-trace.Tpo -c -o medusa-trace.o `test -f '../medusa-trace.c' || echo './'`../medusa-trace.c mv -f .deps/medusa-trace.Tpo .deps/medusa-trace.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o cvs.mod cvs.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT ftp.o -MD -MP -MF .deps/ftp.Tpo -c -o ftp.o ftp.c ftp.c:92:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ ftp.c:99:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ ftp.c:140:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ ftp.c:198:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ ftp.c:277:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "220", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:277:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "220", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ftp.c:277:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "220", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:277:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "220", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ftp.c:277:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "220", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:277:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "220", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:277:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "220", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ftp.c:277:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "220", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ ftp.c:282:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:282:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ftp.c:282:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:282:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ftp.c:282:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:282:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:282:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ftp.c:282:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421", 3) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ ftp.c:312:14: warning: implicit declaration of function 'medusaCheckSocket' is invalid in C99 [-Wimplicit-function-declaration] if ( medusaCheckSocket(hSocket, psLogin->psServer->psAudit->iSocketWait) ) ^ ftp.c:382:11: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTH TLS\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ ftp.c:383:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:383:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ ftp.c:398:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "234 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:398:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "234 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ftp.c:398:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "234 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:398:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "234 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ftp.c:398:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "234 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:398:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "234 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:398:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "234 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ftp.c:398:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "234 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ ftp.c:426:11: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "USER %.250s\r\n", szLogin); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ ftp.c:428:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:428:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ ftp.c:441:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( (strstr(bufReceive, "530 Non-anonymous sessions must use encryption.") != NULL) || ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ ftp.c:442:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strstr(bufReceive, "331 Non-anonymous sessions must use encryption.") != NULL) || ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ ftp.c:443:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strstr(bufReceive, "331 Rejected--secure connection required") != NULL) ) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ ftp.c:464:13: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "USER %.250s\r\n", szLogin); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ ftp.c:466:45: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:466:29: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ ftp.c:481:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:481:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ftp.c:481:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:481:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ftp.c:481:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:481:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:481:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ftp.c:481:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ ftp.c:488:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:488:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ftp.c:488:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:488:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ftp.c:488:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:488:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:488:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ftp.c:488:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "421 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ ftp.c:495:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "331 ", 4) != 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:495:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "331 ", 4) != 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ftp.c:495:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "331 ", 4) != 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:495:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "331 ", 4) != 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ftp.c:495:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "331 ", 4) != 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:495:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "331 ", 4) != 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:495:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "331 ", 4) != 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ftp.c:495:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "331 ", 4) != 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ ftp.c:506:11: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "PASS %.250s\r\n", szPassword); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ ftp.c:508:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ ftp.c:508:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ ftp.c:535:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 69 warnings generated. mv -f .deps/ftp.Tpo .deps/ftp.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o ftp.mod ftp.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT http.o -MD -MP -MF .deps/http.Tpo -c -o http.o http.c http.c:106:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ http.c:113:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ http.c:133:21: warning: comparison of constant 2 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !( 0 <= argc <= 2) ) ~~~~~~~~~ ^ ~ http.c:239:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(_psLogin, psCredSet) == FAILURE) ^ http.c:382:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "GET /%s HTTP/1.1\r\nHost: %s\r\nUser-Agent: %s\r\n\r\n", ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:386:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ http.c:402:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((strcasestr(bufReceive, "WWW-Authenticate: Basic")) || (strcasestr(bufReceive, "WWW-Authenticate:Basic"))) ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:402:74: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((strcasestr(bufReceive, "WWW-Authenticate: Basic")) || (strcasestr(bufReceive, "WWW-Authenticate:Basic"))) ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:407:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strcasestr(bufReceive, "WWW-Authenticate: NTLM")) || (strcasestr(bufReceive, "WWW-Authenticate:NTLM"))) ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:407:78: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strcasestr(bufReceive, "WWW-Authenticate: NTLM")) || (strcasestr(bufReceive, "WWW-Authenticate:NTLM"))) ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:412:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strcasestr(bufReceive, "WWW-Authenticate: Digest")) || strcasestr(bufReceive, "WWW-Authenticate:Digest")) ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:412:79: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strcasestr(bufReceive, "WWW-Authenticate: Digest")) || strcasestr(bufReceive, "WWW-Authenticate:Digest")) ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:417:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strcasestr(bufReceive, "WWW-Authenticate:")) ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:445:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(szLoginDomain, "%s\\%s", _psSessionData->szDomain, szLogin); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:448:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szLoginDomain = szLogin; ^ ~~~~~~~ http.c:451:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szEncodedAuth = basic_authentication_encode(szLoginDomain, szPassword); ^~~~~~~~~~~~~ ./../medusa-utils.h:31:54: note: passing argument to parameter 'user' here extern char *basic_authentication_encode(const char *user, const char *passwd); ^ http.c:451:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szEncodedAuth = basic_authentication_encode(szLoginDomain, szPassword); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:458:76: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] 14 + strlen(_psSessionData->szUserAgent) + 23 + strlen(szEncodedAuth) + 4; ^~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ http.c:463:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "GET /%s HTTP/1.1\r\nHost: %s\r\nUser-Agent: %s\r\nAuthorization: Basic %s\r\n\r\n", ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:466:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ http.c:496:56: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode((char *)&sTmpReq, SmbLength(&sTmpReq), szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ http.c:500:76: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] 14 + strlen(_psSessionData->szUserAgent) + 22 + strlen(szTmpBuf64) + 28; ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ http.c:505:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "GET /%s HTTP/1.1\r\nHost: %s\r\nUser-Agent: %s\r\nAuthorization: NTLM %s\r\nConnection: keep-alive\r\n\r\n", ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:508:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ http.c:532:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf64 = (char *)strcasestr(bufReceive, "WWW-Authenticate: NTLM "); ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:532:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf64 = (char *)strcasestr(bufReceive, "WWW-Authenticate: NTLM "); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:539:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(szTmpBuf64, '\r')); ^~~~~~~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ http.c:539:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(szTmpBuf64, '\r')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:543:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(szTmpBuf64 + 23, (char *)&sTmpChall); ^~~~~~~~~~~~~~~ ./../medusa-utils.h:30:38: note: passing argument to parameter 'base64' here extern int base64_decode(const char *base64, char *to); ^ http.c:554:58: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode((char *)&sTmpResp, SmbLength(&sTmpResp), szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ http.c:558:76: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] 14 + strlen(_psSessionData->szUserAgent) + 22 + strlen(szTmpBuf64) + 23; ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ http.c:563:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "GET /%s HTTP/1.1\r\nHost: %s\r\nUser-Agent: %s\r\nAuthorization: NTLM %s\r\nConnection: close\r\n\r\n", ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:566:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ http.c:628:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "GET /%s HTTP/1.1\r\nHost: %s\r\nUser-Agent: %s\r\nConnection: keep-alive\r\n\r\n", ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:631:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ http.c:640:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveLine(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:655:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate: Digest ") ) ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:655:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate: Digest ") ) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:655:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate: Digest ") ) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:655:14: note: place parentheses around the assignment to silence this warning if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate: Digest ") ) ^ ( ) http.c:655:14: note: use '==' to turn this assignment into an equality comparison if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate: Digest ") ) ^ == http.c:659:40: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate:Digest ") ) ^~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:659:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate:Digest ") ) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:659:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate:Digest ") ) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:659:19: note: place parentheses around the assignment to silence this warning else if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate:Digest ") ) ^ ( ) http.c:659:19: note: use '==' to turn this assignment into an equality comparison else if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate:Digest ") ) ^ == http.c:668:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '\r')); ^~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ http.c:668:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '\r')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:672:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szAuthenticate, szTmp, szTmp1 - szTmp); ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ http.c:672:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szAuthenticate, szTmp, szTmp1 - szTmp); ^~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ http.c:680:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( strcasestr(szAuthenticate, "algorithm=MD5-sess") || strcasestr(szAuthenticate, "algorithm=\"MD5-sess\"") ) ^~~~~~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:680:71: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( strcasestr(szAuthenticate, "algorithm=MD5-sess") || strcasestr(szAuthenticate, "algorithm=\"MD5-sess\"") ) ^~~~~~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:687:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ( strcasestr(szAuthenticate, "algorithm=MD5") || strcasestr(szAuthenticate, "algorithm=\"MD5\"")) ^~~~~~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:687:71: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ( strcasestr(szAuthenticate, "algorithm=MD5") || strcasestr(szAuthenticate, "algorithm=\"MD5\"")) ^~~~~~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:694:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ( strcasestr(szAuthenticate, "algorithm=") ) ^~~~~~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:708:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp = (char *)strcasestr(szAuthenticate, "realm=\""); ^~~~~~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:708:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp = (char *)strcasestr(szAuthenticate, "realm=\""); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:712:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '"')); ^~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ http.c:712:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '"')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:716:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szRealm, szTmp, szTmp1 - szTmp); ^~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ http.c:727:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp = (char *)strcasestr(szAuthenticate, "nonce=\""); ^~~~~~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:727:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp = (char *)strcasestr(szAuthenticate, "nonce=\""); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:731:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '"')); ^~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ http.c:731:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '"')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:735:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szNonce, szTmp, szTmp1 - szTmp); ^~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ http.c:746:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp = (char *)strcasestr(szAuthenticate, "qop=\""); ^~~~~~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:746:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp = (char *)strcasestr(szAuthenticate, "qop=\""); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:750:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '"')); ^~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ http.c:750:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '"')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:754:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szQop, szTmp, szTmp1 - szTmp); ^~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ http.c:764:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp = (char *)strcasestr(szAuthenticate, "opaque=\""); ^~~~~~~~~~~~~~ /usr/include/string.h:373:38: note: passing argument to parameter '__haystack' here extern char *strcasestr (const char *__haystack, const char *__needle) ^ http.c:764:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp = (char *)strcasestr(szAuthenticate, "opaque=\""); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:768:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '"')); ^~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ http.c:768:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmp1 = ((char*)index(szTmp, '"')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:772:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szOpaque, szTmp, szTmp1 - szTmp); ^~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ http.c:832:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(szAuthorization, "Digest username=\"%s\", realm=\"%s\", nonce=\"%s\", uri=\"%s\", algorithm=%s, response=\"%s\", qop=%s, nc=00000001, cnonce=\"%s\", opaque=\"%s\"", ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:835:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(szAuthorization, "Digest username=\"%s\", realm=\"%s\", nonce=\"%s\", uri=\"%s\", algorithm=%s, response=\"%s\", qop=%s, nc=00000001, cnonce=\"%s\"", ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:838:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(szAuthorization, "Digest username=\"%s\", realm=\"%s\", nonce=\"%s\", uri=\"%s\", algorithm=%s, response=\"%s\", opaque=\"%s\"", ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:841:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(szAuthorization, "Digest username=\"%s\", realm=\"%s\", nonce=\"%s\", uri=\"%s\", algorithm=%s, response=\"%s\"", ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:852:76: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] 14 + strlen(_psSessionData->szUserAgent) + 17 + strlen(szAuthorization) + 28; ^~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ http.c:857:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "GET /%s HTTP/1.1\r\nHost: %s\r\nUser-Agent: %s\r\nAuthorization: %s\r\nConnection: keep-alive\r\n\r\n", ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ http.c:860:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ http.c:868:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ http.c:882:7: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(*login, szPassword); ^ http.c:917:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] pTemp = strstr(pReceiveBuffer, "HTTP/1."); ^~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ 81 warnings generated. mv -f .deps/http.Tpo .deps/http.Po x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT ntlm.o -MD -MP -MF .deps/ntlm.Tpo -c -o ntlm.o ntlm.c mv -f .deps/ntlm.Tpo .deps/ntlm.Po x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT http-digest.o -MD -MP -MF .deps/http-digest.Tpo -c -o http-digest.o http-digest.c http-digest.c:57:17: warning: passing 'HASH' (aka 'char [16]') to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5_Final(HA1, &Md5Ctx); ^~~ /usr/include/openssl/md5.h:113:30: note: passing argument to parameter 'md' here int MD5_Final(unsigned char *md, MD5_CTX *c); ^ http-digest.c:66:23: warning: passing 'HASH' (aka 'char [16]') to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5_Final(HA1, &Md5Ctx); ^~~ /usr/include/openssl/md5.h:113:30: note: passing argument to parameter 'md' here int MD5_Final(unsigned char *md, MD5_CTX *c); ^ http-digest.c:98:17: warning: passing 'HASH' (aka 'char [16]') to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5_Final(HA2, &Md5Ctx); ^~~ /usr/include/openssl/md5.h:113:30: note: passing argument to parameter 'md' here int MD5_Final(unsigned char *md, MD5_CTX *c); ^ http-digest.c:117:17: warning: passing 'HASH' (aka 'char [16]') to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5_Final(RespHash, &Md5Ctx); ^~~~~~~~ /usr/include/openssl/md5.h:113:30: note: passing argument to parameter 'md' here int MD5_Final(unsigned char *md, MD5_CTX *c); ^ 4 warnings generated. mv -f .deps/http-digest.Tpo .deps/http-digest.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o http.mod http.o ntlm.o http-digest.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT imap.o -MD -MP -MF .deps/imap.Tpo -c -o imap.o imap.c imap.c:102:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ imap.c:109:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ imap.c:143:20: warning: comparison of constant 2 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 2) ) ~~~~~~~~~ ^ ~ imap.c:232:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ imap.c:301:14: warning: implicit declaration of function 'medusaCheckSocket' is invalid in C99 [-Wimplicit-function-declaration] if ( medusaCheckSocket(hSocket, psLogin->psServer->psAudit->iSocketWait) ) ^ imap.c:374:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"* OK ") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:379:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"* BYE Connection refused") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:397:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s CAPABILITY\r\n", _psSessionData->szTag); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:399:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:399:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ imap.c:415:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((params->nUseSSL == 0) && (strstr(bufReceive, "STARTTLS") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:423:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s STARTTLS\r\n", _psSessionData->szTag); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:424:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:424:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ imap.c:455:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s CAPABILITY\r\n", _psSessionData->szTag); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:457:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:457:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ imap.c:479:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"AUTH=LOGIN") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:484:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"AUTH=PLAIN") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:489:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"AUTH=NTLM") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:519:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s LOGIN \"%s\\\\%s\" \"%s\"\r\n", _psSessionData->szTag, _psSessionData->szDomain, szLogin, szPassword); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:524:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s LOGIN \"%s\" \"%s\"\r\n", _psSessionData->szTag, szLogin, szPassword); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:527:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:527:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ imap.c:551:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s AUTHENTICATE PLAIN\r\n", _psSessionData->szTag); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:553:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:553:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ imap.c:580:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szTmp, nSendBufferSize, szEncodedAuth); ^~~~~ ./../medusa-utils.h:29:38: note: passing argument to parameter 'str' here extern int base64_encode(const char *str, int length, char *b64store); ^ imap.c:580:41: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szTmp, nSendBufferSize, szEncodedAuth); ^~~~~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ imap.c:584:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] nSendBufferSize = strlen(szEncodedAuth) + 2; ^~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:587:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s\r\n", szEncodedAuth); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:590:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:590:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ imap.c:624:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s AUTHENTICATE NTLM\r\n", _psSessionData->szTag); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:626:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:626:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ imap.c:648:56: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode((char *)&sTmpReq, SmbLength(&sTmpReq), szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ imap.c:651:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] nSendBufferSize = strlen(szTmpBuf64) + 2; ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:654:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s\r\n", szTmpBuf64); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:658:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:658:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ imap.c:674:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^~~~~~~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ imap.c:674:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap.c:678:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(bufReceive + 2, (char *)&sTmpChall); ^~~~~~~~~~~~~~ ./../medusa-utils.h:30:38: note: passing argument to parameter 'base64' here extern int base64_decode(const char *base64, char *to); ^ imap.c:689:58: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode((char *)&sTmpResp, SmbLength(&sTmpResp), szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ imap.c:692:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] nSendBufferSize = strlen(szTmpBuf64) + 2; ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ imap.c:695:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s\r\n", szTmpBuf64); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ imap.c:697:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ imap.c:740:5: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(*psLogin, szPassword); ^ imap.c:778:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"OK") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:784:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"NO Clear text passwords have been disabled for this protocol.") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:790:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"NO Cleartext login on this server requires the use of transport level security (SSL/TLS)") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:796:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"NO The specified authentication package is not supported.") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:802:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"NO") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:809:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strstr(bufReceive,"* BYE ") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ imap.c:815:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"BAD") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ 56 warnings generated. mv -f .deps/imap.Tpo .deps/imap.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o imap.mod imap.o ntlm.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT mssql.o -MD -MP -MF .deps/mssql.Tpo -c -o mssql.o mssql.c mssql.c:103:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ mssql.c:110:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ mssql.c:126:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ mssql.c:154:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ mssql.c:300:29: warning: passing 'unsigned char [1]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, pkt_sqlping, 1, 0) < 0) ^~~~~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ mssql.c:324:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (szTmp = strstr(szTmp, "ServerName;")) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mssql.c:324:20: note: place parentheses around the assignment to silence this warning while (szTmp = strstr(szTmp, "ServerName;")) ^ ( ) mssql.c:324:20: note: use '==' to turn this assignment into an equality comparison while (szTmp = strstr(szTmp, "ServerName;")) ^ == mssql.c:506:27: warning: passing 'unsigned char [513]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, MSLEN + 1 + 39 + MSLEN + 1 + 110 + 1 + MSLEN + 270, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ mssql.c:511:27: warning: passing 'unsigned char [71]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, pkt_langp, 71, 0) < 0) ^~~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ mssql.c:517:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mssql.c:536:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 10 warnings generated. mv -f .deps/mssql.Tpo .deps/mssql.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o mssql.mod mssql.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT mysql.o -MD -MP -MF .deps/mysql.Tpo -c -o mysql.o mysql.c mysql.c:99:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ mysql.c:107:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ mysql.c:135:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ mysql.c:188:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ mysql.c:433:3: warning: implicit declaration of function 'sha1_reset' is invalid in C99 [-Wimplicit-function-declaration] sha1_reset(&sha1_context); ^ mysql.c:445:3: warning: implicit declaration of function 'sha1_input' is invalid in C99 [-Wimplicit-function-declaration] sha1_input(&sha1_context, (uint8 *) password, strlen(password)); ^ mysql.c:446:3: warning: implicit declaration of function 'sha1_result' is invalid in C99 [-Wimplicit-function-declaration] sha1_result(&sha1_context, hash_stage1); ^ mysql.c:490:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(response + 9, szLogin, login_len); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ mysql.c:569:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(response + 36, szLogin, login_len); /* NULL terminated username */ ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ mysql.c:595:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mysql.c:605:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strstr(bufReceive + 7, "is not allowed to connect to this MySQL server")) ^~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ mysql.c:633:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(strstr(szServerVersion, "3.") || strstr(szServerVersion, "4.") || strstr(szServerVersion, "5.") )) ^~~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ mysql.c:633:49: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(strstr(szServerVersion, "3.") || strstr(szServerVersion, "4.") || strstr(szServerVersion, "5.") )) ^~~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ mysql.c:633:82: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(strstr(szServerVersion, "3.") || strstr(szServerVersion, "4.") || strstr(szServerVersion, "5.") )) ^~~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ mysql.c:640:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((strstr(szServerVersion, "4.1") || strstr(szServerVersion, "5.") )) ^~~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ mysql.c:640:49: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((strstr(szServerVersion, "4.1") || strstr(szServerVersion, "5.") )) ^~~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ mysql.c:651:48: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memcpy(*szSessionSalt, bufReceive + strlen(szServerVersion) + 10, 9); ^~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ mysql.c:652:51: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memcpy(*szSessionSalt+8 , bufReceive + strlen(szServerVersion) + 37 , 12); ^~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ mysql.c:654:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(*szSessionSalt) != 20) ^~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ mysql.c:670:48: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memcpy(*szSessionSalt, bufReceive + strlen(szServerVersion) + 10, 9); ^~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ mysql.c:672:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(*szSessionSalt) != 8) { ^~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ mysql.c:706:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(szSessionSalt) == 8 || _psSessionData->protoFlag == PROTO_OLD) ^~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ mysql.c:712:69: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] iRet = MySQLPrepareAuthOld(_psSessionData, szLogin, szPassword, szSessionSalt, &szResponse, &iResponseLength); ^~~~~~~~~~~~~ mysql.c:462:93: note: passing argument to parameter 'szSessionSalt' here int MySQLPrepareAuthOld(_MYSQL_DATA *_psSessionData, char* szLogin, char* szPassword, char* szSessionSalt, unsigned char** szResponse, unsigned long* iResponseLength) ^ mysql.c:721:66: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] iRet = MySQLPrepareAuth(_psSessionData, szLogin, szPassword, szSessionSalt, &szResponse, &iResponseLength); ^~~~~~~~~~~~~ mysql.c:530:90: note: passing argument to parameter 'szSessionSalt' here int MySQLPrepareAuth(_MYSQL_DATA *_psSessionData, char* szLogin, char* szPassword, char* szSessionSalt, unsigned char** szResponse, unsigned long* iResponseLength) ^ mysql.c:730:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, szResponse, iResponseLength, 0) < 0) ^~~~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ mysql.c:740:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mysql.c:779:72: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] iRet = MySQLPrepareAuthNewOld(_psSessionData, szLogin, szPassword, szSessionSalt, &szResponse, &iResponseLength); ^~~~~~~~~~~~~ mysql.c:508:96: note: passing argument to parameter 'szSessionSalt' here int MySQLPrepareAuthNewOld(_MYSQL_DATA *_psSessionData, char* szLogin, char* szPassword, char* szSessionSalt, unsigned char** szResponse, unsigned long* iResponseLength) ^ mysql.c:787:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, szResponse, iResponseLength, 0) < 0) ^~~~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ mysql.c:798:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mysql.c:840:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 30 warnings generated. mv -f .deps/mysql.Tpo .deps/mysql.Po x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT sha1.o -MD -MP -MF .deps/sha1.Tpo -c -o sha1.o sha1.c mv -f .deps/sha1.Tpo .deps/sha1.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o mysql.mod mysql.o medusa-trace.o sha1.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT nntp.o -MD -MP -MF .deps/nntp.Tpo -c -o nntp.o nntp.c nntp.c:89:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ nntp.c:96:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ nntp.c:110:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ nntp.c:135:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ nntp.c:236:11: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "QUIT\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ nntp.c:238:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ nntp.c:238:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ nntp.c:256:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:263:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"200") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ nntp.c:268:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"400") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ nntp.c:283:11: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "HELP\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ nntp.c:285:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ nntp.c:285:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ nntp.c:293:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:301:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"480") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ nntp.c:326:11: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTHINFO USER %.250s\r\n", szLogin); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ nntp.c:328:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ nntp.c:328:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ nntp.c:334:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:341:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"381") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ nntp.c:356:13: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTHINFO PASS \"\"\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ nntp.c:358:13: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTHINFO PASS %.250s\r\n", szPassword); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ nntp.c:360:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ nntp.c:360:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ nntp.c:366:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:373:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"281") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ nntp.c:380:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"482") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ nntp.c:387:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"501") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ nntp.c:394:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"502") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ nntp.c:408:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 30 warnings generated. mv -f .deps/nntp.Tpo .deps/nntp.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o nntp.mod nntp.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT pcanywhere.o -MD -MP -MF .deps/pcanywhere.Tpo -c -o pcanywhere.o pcanywhere.c pcanywhere.c:106:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ pcanywhere.c:113:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ pcanywhere.c:158:49: warning: passing 'unsigned char [17]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(psSessionData->domain + strlen(psSessionData->domain) + 1, 0x5C, 1); // '\' ^~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pcanywhere.c:133:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ pcanywhere.c:189:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ pcanywhere.c:330:27: warning: passing 'unsigned char [7]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend1, nSendBufferSize1, 0) < 0) ^~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pcanywhere.c:344:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcanywhere.c:350:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive + 6, "Enter login name:")) ^~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pcanywhere.c:359:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend + 2, clogin, BUF_SIZE - 3); ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pcanywhere.c:362:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive + 6, "Enter user name:")) ^~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pcanywhere.c:373:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szTmp, szDomain, strlen(szDomain)); ^~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pcanywhere.c:375:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szTmp + strlen(szDomain) + 1, szLogin, strlen(szLogin)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pcanywhere.c:376:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] pcaEncrypt(szTmp, clogin, 0xAB, 1); ^~~~~ pcanywhere.c:294:23: note: passing argument to parameter 'plaintext' here void pcaEncrypt(char *plaintext, char *ciphertext, int key, int offset) ^ pcanywhere.c:383:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend + 2, clogin, BUF_SIZE - 3); ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pcanywhere.c:394:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend + 3, clogin, BUF_SIZE - 4); ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pcanywhere.c:417:27: warning: passing 'unsigned char [16384]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pcanywhere.c:427:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcanywhere.c:433:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive + 6, "Enter password:")) ^~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pcanywhere.c:450:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend + 2, cpass, BUF_SIZE - 3); ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pcanywhere.c:454:27: warning: passing 'unsigned char [16384]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pcanywhere.c:459:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ pcanywhere.c:472:27: warning: passing 'unsigned char [14]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pcanywhere.c:479:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcanywhere.c:485:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive + 28, "Host is denying connection")) ^~~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pcanywhere.c:509:27: warning: passing 'unsigned char [4]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend1, nSendBufferSize1, 0) < 0) ^~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pcanywhere.c:516:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcanywhere.c:523:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive + 11, "Please press ...")) ^~~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pcanywhere.c:540:27: warning: passing 'unsigned char [3]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend2, nSendBufferSize2, 0) < 0) ^~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pcanywhere.c:547:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcanywhere.c:600:31: warning: passing 'unsigned char [17]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] iRet = pcaUserAuth(hSocket, _psSessionData->domain, szLogin, szPassword); ^~~~~~~~~~~~~~~~~~~~~~ pcanywhere.c:311:36: note: passing argument to parameter 'szDomain' here int pcaUserAuth(int hSocket, char* szDomain, char* szLogin, char* szPassword) ^ pcanywhere.c:610:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcanywhere.c:618:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive + 5, "Invalid login") || strstr(bufReceive + 6, "Enter password")) ^~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pcanywhere.c:618:62: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive + 5, "Invalid login") || strstr(bufReceive + 6, "Enter password")) ^~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pcanywhere.c:633:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 34 warnings generated. mv -f .deps/pcanywhere.Tpo .deps/pcanywhere.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o pcanywhere.mod pcanywhere.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT pop3.o -MD -MP -MF .deps/pop3.Tpo -c -o pop3.o pop3.c pop3.c:97:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ pop3.c:104:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ pop3.c:133:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ pop3.c:220:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ pop3.c:292:19: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "STLS\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:293:51: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:293:35: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:310:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive, "+OK") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:346:14: warning: implicit declaration of function 'medusaCheckSocket' is invalid in C99 [-Wimplicit-function-declaration] if ( medusaCheckSocket(hSocket, psLogin->psServer->psAudit->iSocketWait) ) ^ pop3.c:415:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "CAPA\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:417:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:417:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:429:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"USER") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:434:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"SASL") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:436:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((strstr(bufReceive,"PLAIN") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:441:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"LOGIN") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:446:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"NTLM") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:457:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"-ERR") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:479:13: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "USER %.100s@%.150s\r\n", szLogin, _psSessionData->szDomain); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:481:13: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "USER %.250s\r\n", szLogin); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:483:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:483:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:494:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive, " signing off.")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:500:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive, "ERR Cleartext login on this server requires the use of transport level security (SSL/TLS)")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:505:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive, "ERR Clear text passwords have been disabled for this protocol.")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:513:11: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "PASS %.250s\r\n", szPassword); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:515:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:515:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:547:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szTmpBuf, szLogin, strlen(szLogin)); ^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pop3.c:548:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szTmpBuf + strlen(szLogin) + 1, szLogin, strlen(szLogin)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pop3.c:549:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szTmpBuf + strlen(szLogin) + 1 + strlen(szLogin) + 1, szPassword, strlen(szPassword)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pop3.c:553:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szTmpBuf, nSendBufferSize, szTmpBuf64); ^~~~~~~~ ./../medusa-utils.h:29:38: note: passing argument to parameter 'str' here extern int base64_encode(const char *str, int length, char *b64store); ^ pop3.c:553:44: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szTmpBuf, nSendBufferSize, szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ pop3.c:556:32: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufSend = malloc(11 + strlen(szTmpBuf64) + 2 + 1); ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:557:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(bufSend, 0, 11 + strlen(szTmpBuf64) + 2 + 1); ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:559:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTH PLAIN %s\r\n", szTmpBuf64); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:562:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:562:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:595:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTH LOGIN\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:597:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:597:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:610:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"-ERR The specified authentication package is not supported.") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:616:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^~~~~~~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ pop3.c:616:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pop3.c:618:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szPrompt = malloc(strlen(bufReceive + 2) + 1); ^~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:619:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(szPrompt, 0, strlen(bufReceive + 2) + 1); ^~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:621:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(bufReceive + 2, szPrompt); ^~~~~~~~~~~~~~ ./../medusa-utils.h:30:38: note: passing argument to parameter 'base64' here extern int base64_decode(const char *base64, char *to); ^ pop3.c:621:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(bufReceive + 2, szPrompt); ^~~~~~~~ ./../medusa-utils.h:30:52: note: passing argument to parameter 'to' here extern int base64_decode(const char *base64, char *to); ^ pop3.c:632:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szLogin, strlen(szLogin), bufSend); ^~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ pop3.c:633:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(bufSend, "\r\n", 2); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:34: note: passing argument to parameter '__dest' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pop3.c:635:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:635:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:648:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^~~~~~~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ pop3.c:648:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pop3.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szPrompt = malloc(strlen(bufReceive + 2) + 1); ^~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:651:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(szPrompt, 0, strlen(bufReceive + 2) + 1); ^~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:653:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(bufReceive + 2, szPrompt); ^~~~~~~~~~~~~~ ./../medusa-utils.h:30:38: note: passing argument to parameter 'base64' here extern int base64_decode(const char *base64, char *to); ^ pop3.c:653:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(bufReceive + 2, szPrompt); ^~~~~~~~ ./../medusa-utils.h:30:52: note: passing argument to parameter 'to' here extern int base64_decode(const char *base64, char *to); ^ pop3.c:664:49: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szPassword, strlen(szPassword), bufSend); ^~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ pop3.c:665:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(bufSend, "\r\n", 2); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:34: note: passing argument to parameter '__dest' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ pop3.c:667:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:667:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:698:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTH NTLM\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:700:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:700:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:721:56: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode((char *)&sTmpReq, SmbLength(&sTmpReq), szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ pop3.c:724:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] nSendBufferSize = strlen(szTmpBuf64) + 2; ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:727:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s\r\n", szTmpBuf64); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:731:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:731:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:747:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^~~~~~~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ pop3.c:747:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pop3.c:751:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(bufReceive + 2, (char *)&sTmpChall); ^~~~~~~~~~~~~~ ./../medusa-utils.h:30:38: note: passing argument to parameter 'base64' here extern int base64_decode(const char *base64, char *to); ^ pop3.c:761:58: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode((char *)&sTmpResp, SmbLength(&sTmpResp), szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ pop3.c:764:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] nSendBufferSize = strlen(szTmpBuf64) + 2; ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ pop3.c:767:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s\r\n", szTmpBuf64); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ pop3.c:769:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ pop3.c:816:5: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(*psLogin, szPassword); ^ pop3.c:851:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"-ERR The specified authentication package is not supported.") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:865:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strstr(bufReceive, "CPF2204")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:871:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive, "CPF22E2")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:877:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive, "CPF22E3")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:883:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive, "CPF22E4")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:889:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive, "CPF22E5")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ pop3.c:895:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive, "-ERR Logon attempt invalid")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ 85 warnings generated. mv -f .deps/pop3.Tpo .deps/pop3.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o pop3.mod pop3.o ntlm.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT postgres.o -MD -MP -MF .deps/postgres.Tpo -c -o postgres.o postgres.c postgres.c:88:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ postgres.c:95:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ postgres.c:114:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ postgres.c:168:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ postgres.c:293:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 5 warnings generated. mv -f .deps/postgres.Tpo .deps/postgres.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o postgres.mod postgres.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT rexec.o -MD -MP -MF .deps/rexec.Tpo -c -o rexec.o rexec.c rexec.c:80:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ rexec.c:87:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ rexec.c:95:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ rexec.c:120:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ rexec.c:229:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend+1, szLogin, strlen(szLogin)); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ rexec.c:231:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend+2+strlen(szLogin), szPassword, strlen(szPassword)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ rexec.c:233:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend+1+strlen(szLogin)+1+strlen(szPassword)+1, "id", 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ rexec.c:236:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(szLogin)+1+strlen(szPassword)+1+4 , 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ rexec.c:242:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rexec.c:248:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"Login incorrect") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ rexec.c:256:5: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ rexec.c:259:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rexec.c:265:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"uid") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ rexec.c:271:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"Command ID in library") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ 14 warnings generated. mv -f .deps/rexec.Tpo .deps/rexec.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o rexec.mod rexec.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT rlogin.o -MD -MP -MF .deps/rlogin.Tpo -c -o rlogin.o rlogin.c rlogin.c:79:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ rlogin.c:86:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ rlogin.c:94:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ rlogin.c:119:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ rlogin.c:228:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend+1, szLogin, strlen(szLogin)); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ rlogin.c:230:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend+2+strlen(szLogin), szLogin, strlen(szLogin)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ rlogin.c:232:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend+1+strlen(szLogin)+1+strlen(szLogin)+1, "xterm", 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ rlogin.c:235:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(szLogin)+1+strlen(szLogin)+1+7 , 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ rlogin.c:241:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rlogin.c:248:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rlogin.c:254:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"Incorrect") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ rlogin.c:260:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"Password") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ rlogin.c:263:15: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend,"%s\r",szPassword); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ rlogin.c:264:47: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend) , 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ rlogin.c:264:31: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend) , 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ rlogin.c:270:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rlogin.c:276:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"incorrect") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ rlogin.c:298:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 18 warnings generated. mv -f .deps/rlogin.Tpo .deps/rlogin.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o rlogin.mod rlogin.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT rsh.o -MD -MP -MF .deps/rsh.Tpo -c -o rsh.o rsh.c rsh.c:80:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ rsh.c:87:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ rsh.c:96:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ rsh.c:121:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ rsh.c:233:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend+1, szLogin, strlen(szLogin)); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ rsh.c:235:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend+2+strlen(szLogin), szPassword, strlen(szPassword)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ rsh.c:237:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend+1+strlen(szLogin)+1+strlen(szPassword)+1, "id", 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ rsh.c:240:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(szLogin)+1+strlen(szPassword)+1+4 , 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ rsh.c:248:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rsh.c:254:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rsh.c:260:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"uid") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ rsh.c:274:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 12 warnings generated. mv -f .deps/rsh.Tpo .deps/rsh.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o rsh.mod rsh.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT smbnt.o -MD -MP -MF .deps/smbnt.Tpo -c -o smbnt.o smbnt.c smbnt.c:193:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ smbnt.c:200:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ smbnt.c:256:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ smbnt.c:371:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ smbnt.c:427:13: warning: implicit declaration of function 'NBSSessionRequest' is invalid in C99 [-Wimplicit-function-declaration] if (NBSSessionRequest(hSocket, _psSessionData) < 0) { ^ smbnt.c:433:13: warning: implicit declaration of function 'SMBNegProt' is invalid in C99 [-Wimplicit-function-declaration] if (SMBNegProt(hSocket, _psSessionData) < 0) ^ smbnt.c:664:13: warning: passing 'unsigned char [15]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(password, pass, 14); ^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ smbnt.c:664:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(password, pass, 14); ^~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ smbnt.c:727:12: warning: assigning to 'unsigned char *' from 'char [1]' converts between pointers to integer types with different sign [-Wpointer-sign] pass = ""; ^ ~~ smbnt.c:889:3: warning: implicit declaration of function 'hmac_md5_init_limK_to_64' is invalid in C99 [-Wimplicit-function-declaration] hmac_md5_init_limK_to_64(ntlm_hash, 16, &ctx); ^ smbnt.c:890:3: warning: implicit declaration of function 'hmac_md5_update' is invalid in C99 [-Wimplicit-function-declaration] hmac_md5_update((const unsigned char *)unicodeUsername, 2 * strlen((char *)szLogin), &ctx); ^ smbnt.c:892:3: warning: implicit declaration of function 'hmac_md5_final' is invalid in C99 [-Wimplicit-function-declaration] hmac_md5_final(kr_buf, &ctx); ^ smbnt.c:1298:49: warning: passing 'unsigned char [16]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy((char *) _psSessionData->workgroup, _psSessionData->workgroup_other, 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ smbnt.c:1530:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(buf + iOffset, szPassword, 256); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ smbnt.c:1545:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(buf + iOffset + iByteCount, "Unix"); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smbnt.c:1547:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(buf + iOffset + iByteCount, "Samba"); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smbnt.c:1713:5: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), _psSessionData->machine_name); ^ 17 warnings generated. mv -f .deps/smbnt.Tpo .deps/smbnt.Po x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT hmacmd5.o -MD -MP -MF .deps/hmacmd5.Tpo -c -o hmacmd5.o hmacmd5.c mv -f .deps/hmacmd5.Tpo .deps/hmacmd5.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o smbnt.mod smbnt.o hmacmd5.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT smtp.o -MD -MP -MF .deps/smtp.Tpo -c -o smtp.o smtp.c smtp.c:99:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ smtp.c:106:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ smtp.c:135:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ smtp.c:219:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ smtp.c:282:14: warning: implicit declaration of function 'medusaCheckSocket' is invalid in C99 [-Wimplicit-function-declaration] if ( medusaCheckSocket(hSocket, psLogin->psServer->psAudit->iSocketWait) ) ^ smtp.c:365:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "EHLO %s\r\n", _psSessionData->szEHLO); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp.c:367:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:367:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:384:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((params->nUseSSL == 0) && (strstr(bufReceive, "STARTTLS") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:392:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "STARTTLS\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp.c:393:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:393:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:424:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "EHLO %s\r\n", _psSessionData->szEHLO); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp.c:426:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:426:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:449:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"AUTH=LOGIN") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:454:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"AUTH=PLAIN") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:459:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"AUTH ") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:461:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((strstr(bufReceive,"LOGIN") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:466:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"PLAIN") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:471:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((strstr(bufReceive,"NTLM") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:510:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTH PLAIN\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp.c:512:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:512:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:531:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szTmpBuf, szLogin, strlen(szLogin)); ^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ smtp.c:532:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szTmpBuf + strlen(szLogin) + 1, szLogin, strlen(szLogin)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ smtp.c:533:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szTmpBuf + strlen(szLogin) + 1 + strlen(szLogin) + 1, szPassword, strlen(szPassword)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ smtp.c:537:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szTmpBuf, nSendBufferSize, szTmpBuf64); ^~~~~~~~ ./../medusa-utils.h:29:38: note: passing argument to parameter 'str' here extern int base64_encode(const char *str, int length, char *b64store); ^ smtp.c:537:44: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szTmpBuf, nSendBufferSize, szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ smtp.c:540:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufSend = malloc(strlen(szTmpBuf64) + 2 + 1); ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:541:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(bufSend, 0, strlen(szTmpBuf64) + 2 + 1); ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:543:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s\r\n", szTmpBuf64); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp.c:546:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:546:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:582:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTH LOGIN\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp.c:584:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:584:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:599:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((szTmpBuf = (char*)strstr(bufReceive, "334 ")) == NULL) || ((szTmpBuf2 = (char*)index(szTmpBuf, '\r')) == NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:599:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((szTmpBuf = (char*)strstr(bufReceive, "334 ")) == NULL) || ((szTmpBuf2 = (char*)index(szTmpBuf, '\r')) == NULL)) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp.c:599:94: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((szTmpBuf = (char*)strstr(bufReceive, "334 ")) == NULL) || ((szTmpBuf2 = (char*)index(szTmpBuf, '\r')) == NULL)) ^~~~~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ smtp.c:599:79: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((szTmpBuf = (char*)strstr(bufReceive, "334 ")) == NULL) || ((szTmpBuf2 = (char*)index(szTmpBuf, '\r')) == NULL)) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp.c:608:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szPrompt = malloc(strlen(szTmpBuf) + 1); ^~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:609:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(szPrompt, 0, strlen(szTmpBuf) + 1); ^~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:611:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(szTmpBuf, szPrompt); ^~~~~~~~ ./../medusa-utils.h:30:38: note: passing argument to parameter 'base64' here extern int base64_decode(const char *base64, char *to); ^ smtp.c:611:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(szTmpBuf, szPrompt); ^~~~~~~~ ./../medusa-utils.h:30:52: note: passing argument to parameter 'to' here extern int base64_decode(const char *base64, char *to); ^ smtp.c:625:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(szLoginDomain, "%s\\%s", _psSessionData->szDomain, szLogin); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp.c:628:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szLoginDomain = szLogin; ^ ~~~~~~~ smtp.c:632:32: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufSend = malloc((2 * strlen(szLoginDomain) + 2) + 2 + 1); ^~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:633:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(bufSend, 0, (2 * strlen(szLoginDomain) + 2) + 2 + 1); ^~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:634:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szLoginDomain, strlen(szLoginDomain), bufSend); ^~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:634:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szLoginDomain, strlen(szLoginDomain), bufSend); ^~~~~~~~~~~~~ ./../medusa-utils.h:29:38: note: passing argument to parameter 'str' here extern int base64_encode(const char *str, int length, char *b64store); ^ smtp.c:634:55: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szLoginDomain, strlen(szLoginDomain), bufSend); ^~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ smtp.c:635:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(bufSend, "\r\n", 2); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:34: note: passing argument to parameter '__dest' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ smtp.c:640:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:640:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:654:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((szTmpBuf = (char*)strstr(bufReceive, "334 ")) == NULL) || ((szTmpBuf2 = (char*)index(szTmpBuf, '\r')) == NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:654:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((szTmpBuf = (char*)strstr(bufReceive, "334 ")) == NULL) || ((szTmpBuf2 = (char*)index(szTmpBuf, '\r')) == NULL)) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp.c:654:94: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((szTmpBuf = (char*)strstr(bufReceive, "334 ")) == NULL) || ((szTmpBuf2 = (char*)index(szTmpBuf, '\r')) == NULL)) ^~~~~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ smtp.c:654:79: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((szTmpBuf = (char*)strstr(bufReceive, "334 ")) == NULL) || ((szTmpBuf2 = (char*)index(szTmpBuf, '\r')) == NULL)) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp.c:663:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szPrompt = malloc(strlen(szTmpBuf) + 1); ^~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:664:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(szPrompt, 0, strlen(szTmpBuf) + 1); ^~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:666:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(szTmpBuf, szPrompt); ^~~~~~~~ ./../medusa-utils.h:30:38: note: passing argument to parameter 'base64' here extern int base64_decode(const char *base64, char *to); ^ smtp.c:666:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(szTmpBuf, szPrompt); ^~~~~~~~ ./../medusa-utils.h:30:52: note: passing argument to parameter 'to' here extern int base64_decode(const char *base64, char *to); ^ smtp.c:677:49: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode(szPassword, strlen(szPassword), bufSend); ^~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ smtp.c:678:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(bufSend, "\r\n", 2); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:34: note: passing argument to parameter '__dest' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ smtp.c:680:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:680:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:712:56: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode((char *)&sTmpReq, SmbLength(&sTmpReq), szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ smtp.c:715:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] nSendBufferSize = strlen(szTmpBuf64) + 2; ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:718:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "AUTH NTLM %s\r\n", szTmpBuf64); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp.c:722:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:722:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:739:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^~~~~~~~~~ /usr/include/string.h:489:33: note: passing argument to parameter '__s' here extern char *index (const char *__s, int __c) ^ smtp.c:739:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szTmpBuf = ((char*)index(bufReceive, '\r')); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp.c:743:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_decode(bufReceive + 4, (char *)&sTmpChall); ^~~~~~~~~~~~~~ ./../medusa-utils.h:30:38: note: passing argument to parameter 'base64' here extern int base64_decode(const char *base64, char *to); ^ smtp.c:753:58: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] base64_encode((char *)&sTmpResp, SmbLength(&sTmpResp), szTmpBuf64); ^~~~~~~~~~ ./../medusa-utils.h:29:61: note: passing argument to parameter 'b64store' here extern int base64_encode(const char *str, int length, char *b64store); ^ smtp.c:756:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] nSendBufferSize = strlen(szTmpBuf64) + 2; ^~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp.c:759:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "%s\r\n", szTmpBuf64); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp.c:761:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp.c:801:5: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(*psLogin, szPassword); ^ smtp.c:815:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strstr(bufReceive,"235 ") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:822:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"435 ") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:829:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"501 ") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp.c:835:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strstr(bufReceive,"535 ") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ 84 warnings generated. mv -f .deps/smtp.Tpo .deps/smtp.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o smtp.mod smtp.o ntlm.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT smtp-vrfy.o -MD -MP -MF .deps/smtp-vrfy.Tpo -c -o smtp-vrfy.o smtp-vrfy.c smtp-vrfy.c:88:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ smtp-vrfy.c:95:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ smtp-vrfy.c:114:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ smtp-vrfy.c:172:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ smtp-vrfy.c:225:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp-vrfy.c:225:27: note: place parentheses around the assignment to silence this warning while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ^ ( ) smtp-vrfy.c:225:27: note: use '==' to turn this assignment into an equality comparison while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ^ == smtp-vrfy.c:335:11: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "HELO %.250s\r\n", _psSessionData->szHELO); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp-vrfy.c:337:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp-vrfy.c:337:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp-vrfy.c:346:21: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp-vrfy.c:346:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp-vrfy.c:346:21: note: place parentheses around the assignment to silence this warning while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ^ ( ) smtp-vrfy.c:346:21: note: use '==' to turn this assignment into an equality comparison while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ^ == smtp-vrfy.c:359:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strstr(bufReceive, "250 ") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp-vrfy.c:362:38: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (nBannerStatus > 0 && (strstr(bufReceive, "\r\n") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp-vrfy.c:385:11: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "QUIT\r\n"); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp-vrfy.c:387:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp-vrfy.c:387:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp-vrfy.c:420:13: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "VRFY %.250s@%.250s\r\n", szAccount, szDomain); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp-vrfy.c:425:13: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "VRFY %.250s\r\n", szAccount); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ smtp-vrfy.c:428:43: warning: passing 'unsigned char [300]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp-vrfy.c:428:27: warning: passing 'unsigned char [300]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ smtp-vrfy.c:434:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveLineDelay(hSocket, &nReceiveBufferSize, RECEIVE_DELAY_1, RECEIVE_DELAY_2); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp-vrfy.c:440:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "250 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp-vrfy.c:440:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "250 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ smtp-vrfy.c:440:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "250 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:440:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "250 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ smtp-vrfy.c:440:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "250 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:440:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "250 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:440:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "250 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ smtp-vrfy.c:440:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "250 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ smtp-vrfy.c:446:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "252 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp-vrfy.c:446:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "252 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ smtp-vrfy.c:446:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "252 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:446:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "252 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ smtp-vrfy.c:446:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "252 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:446:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "252 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:446:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "252 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ smtp-vrfy.c:446:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "252 ", 4) == 0) /* valid account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ smtp-vrfy.c:452:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "550 ", 4) == 0) /* non-existant account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp-vrfy.c:452:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "550 ", 4) == 0) /* non-existant account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ smtp-vrfy.c:452:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "550 ", 4) == 0) /* non-existant account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:452:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "550 ", 4) == 0) /* non-existant account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ smtp-vrfy.c:452:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "550 ", 4) == 0) /* non-existant account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:452:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "550 ", 4) == 0) /* non-existant account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:452:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "550 ", 4) == 0) /* non-existant account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ smtp-vrfy.c:452:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "550 ", 4) == 0) /* non-existant account */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ smtp-vrfy.c:458:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "557 ", 4) == 0) /* 557 5.5.2 String does not match anything. */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp-vrfy.c:458:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "557 ", 4) == 0) /* 557 5.5.2 String does not match anything. */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ smtp-vrfy.c:458:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "557 ", 4) == 0) /* 557 5.5.2 String does not match anything. */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:458:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "557 ", 4) == 0) /* 557 5.5.2 String does not match anything. */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ smtp-vrfy.c:458:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "557 ", 4) == 0) /* 557 5.5.2 String does not match anything. */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:458:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "557 ", 4) == 0) /* 557 5.5.2 String does not match anything. */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:458:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "557 ", 4) == 0) /* 557 5.5.2 String does not match anything. */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ smtp-vrfy.c:458:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "557 ", 4) == 0) /* 557 5.5.2 String does not match anything. */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ smtp-vrfy.c:464:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "554 ", 4) == 0) /* invalid domain name */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ smtp-vrfy.c:464:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "554 ", 4) == 0) /* invalid domain name */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ smtp-vrfy.c:464:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "554 ", 4) == 0) /* invalid domain name */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:464:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "554 ", 4) == 0) /* invalid domain name */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ smtp-vrfy.c:464:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "554 ", 4) == 0) /* invalid domain name */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:464:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "554 ", 4) == 0) /* invalid domain name */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ smtp-vrfy.c:464:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "554 ", 4) == 0) /* invalid domain name */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ smtp-vrfy.c:464:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "554 ", 4) == 0) /* invalid domain name */ ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ smtp-vrfy.c:479:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveLineDelay(hSocket, &nReceiveBufferSize, RECEIVE_DELAY_1, RECEIVE_DELAY_2); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp-vrfy.c:481:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strstr(bufReceive, "421 Error: too many errors")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ smtp-vrfy.c:487:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szDomain); ^ 63 warnings generated. mv -f .deps/smtp-vrfy.Tpo .deps/smtp-vrfy.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o smtp-vrfy.mod smtp-vrfy.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT snmp.o -MD -MP -MF .deps/snmp.Tpo -c -o snmp.o snmp.c snmp.c:100:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ snmp.c:107:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ snmp.c:154:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ snmp.c:247:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ snmp.c:301:9: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(psLogin, psCredSet->pPass); ^ snmp.c:289:20: warning: comparison of constant -1 with expression of type 'enum MODULE_STATE' is always false [-Wtautological-constant-out-of-range-compare] if (nState == FAILURE) ~~~~~~ ^ ~~~~~~~ snmp.c:606:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize - 1, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ snmp.c:675:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(bufSend + sizeof(snmpv1_a) + strlen(szPassword) + sizeof(snmpv1_w), szLocation, strlen(szLocation)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ snmp.c:678:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, nSendBufferSize - 1, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ snmp.c:698:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRawDelay(hSocket, &nReceiveBufferSize, _psSessionData->nReadTimeout, _psSessionData->nReadTimeout); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10 warnings generated. mv -f .deps/snmp.Tpo .deps/snmp.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o snmp.mod snmp.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT ssh.o -MD -MP -MF .deps/ssh.Tpo -c -o ssh.o ssh.c ssh.c:102:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ ssh.c:109:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ ssh.c:125:20: warning: comparison of constant 1 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 1) ) ~~~~~~~~~ ^ ~ ssh.c:200:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ ssh.c:228:3: warning: implicit declaration of function 'ERR_load_crypto_strings' is invalid in C99 [-Wimplicit-function-declaration] ERR_load_crypto_strings(); ^ ssh.c:311:19: warning: implicit declaration of function 'addMissedCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (addMissedCredSet(psLogin, psCredSet) == SUCCESS) ^ ssh.c:533:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 7 warnings generated. mv -f .deps/ssh.Tpo .deps/ssh.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o ssh.mod ssh.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT svn.o -MD -MP -MF .deps/svn.Tpo -c -o svn.o svn.c svn.c:92:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ svn.c:99:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ svn.c:118:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ svn.c:172:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ svn.c:297:7: warning: implicit declaration of function 'svn_cmdline_init' is invalid in C99 [-Wimplicit-function-declaration] if (svn_cmdline_init ("MEDUSA", stderr) != EXIT_SUCCESS) ^ svn.c:307:14: warning: 'svn_client_create_context' is deprecated [-Wdeprecated-declarations] if ((err = svn_client_create_context (&ctx, pool))) ^ /usr/include/subversion-1/svn_client.h:1048:1: note: 'svn_client_create_context' has been explicitly marked deprecated here svn_client_create_context(svn_client_ctx_t **ctx, ^ svn.c:336:9: warning: 'svn_client_ls' is deprecated [-Wdeprecated-declarations] err = svn_client_ls (&dirents, _psSessionData->szURL, &revision, FALSE, ctx, pool); ^ /usr/include/subversion-1/svn_client.h:5600:1: note: 'svn_client_ls' has been explicitly marked deprecated here svn_client_ls(apr_hash_t **dirents, ^ svn.c:372:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 8 warnings generated. mv -f .deps/svn.Tpo .deps/svn.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o svn.mod svn.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT telnet.o -MD -MP -MF .deps/telnet.Tpo -c -o telnet.o telnet.c telnet.c:117:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ telnet.c:124:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ telnet.c:143:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ telnet.c:199:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(_psLogin, psCredSet) == FAILURE) ^ telnet.c:241:9: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(_psLogin, psCredSet->pPass); ^ telnet.c:798:27: warning: passing 'unsigned char [3]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, 3, 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ telnet.c:841:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] medusaSend(hSocket, bufTemp, 3, 0); ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ telnet.c:846:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] medusaSend(hSocket, bufTemp, 3, 0); ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ 8 warnings generated. mv -f .deps/telnet.Tpo .deps/telnet.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o telnet.mod telnet.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT vmauthd.o -MD -MP -MF .deps/vmauthd.Tpo -c -o vmauthd.o vmauthd.c vmauthd.c:84:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ vmauthd.c:91:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ vmauthd.c:109:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ vmauthd.c:134:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ vmauthd.c:250:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strstr(bufReceive, "SSL Required")) ^~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ vmauthd.c:276:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "USER %s\r\n", szLogin); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ vmauthd.c:278:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ vmauthd.c:278:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ vmauthd.c:298:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(bufSend, "PASS %s\r\n", szPassword); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ ^ vmauthd.c:300:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ vmauthd.c:300:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, bufSend, strlen(bufSend), 0) < 0) ^~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ vmauthd.c:317:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "230 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ vmauthd.c:317:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "230 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ vmauthd.c:317:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "230 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ vmauthd.c:317:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "230 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ vmauthd.c:317:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "230 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ vmauthd.c:317:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "230 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ vmauthd.c:317:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "230 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ vmauthd.c:317:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(bufReceive, "230 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ vmauthd.c:324:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:899:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ vmauthd.c:324:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ vmauthd.c:324:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:806:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ vmauthd.c:324:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ vmauthd.c:324:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:810:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ vmauthd.c:324:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ vmauthd.c:324:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ vmauthd.c:324:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strncmp(bufReceive, "530 ", 4) == 0) ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:902:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:147:33: note: passing argument to parameter '__s1' here extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ vmauthd.c:338:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 28 warnings generated. mv -f .deps/vmauthd.Tpo .deps/vmauthd.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o vmauthd.mod vmauthd.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT vnc.o -MD -MP -MF .deps/vnc.Tpo -c -o vnc.o vnc.c vnc.c:107:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ vnc.c:114:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ vnc.c:148:20: warning: comparison of constant 3 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !(0 <= argc <= 3) ) ~~~~~~~~~ ^ ~ vnc.c:216:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ vnc.c:270:15: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(psLogin, "[NO AUTH REQUIRED]"); ^ vnc.c:536:5: warning: implicit declaration of function 'writeErrorBin' is invalid in C99 [-Wimplicit-function-declaration] writeErrorBin(ERR_DEBUG_MODULE, "Supported Security Types (version 3.3): ", bufReceive, nReceiveBufferSize); ^ vnc.c:646:37: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, &szSecurityTypes[i], 1, 0) < 0) ^~~~~~~~~~~~~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ vnc.c:665:37: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, &szSecurityTypes[i], 1, 0) < 0) ^~~~~~~~~~~~~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ vnc.c:728:37: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, &szSecurityTypes[i], 1, 0) < 0) ^~~~~~~~~~~~~~~~~~~ ./../medusa-net.h:86:41: note: passing argument to parameter 'buf' here extern int medusaSend(int socket, char *buf, int size, int options); ^ vnc.c:770:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] vncEncryptBytes(_psSessionData->szChallenge, szPassword); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ vnc.c:368:37: note: passing argument to parameter 'bytes' here void vncEncryptBytes(unsigned char *bytes, char *passwd) ^ vnc.c:865:13: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(ms_user, _psSessionData->szDomain, strlen(_psSessionData->szDomain)); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ vnc.c:866:13: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(ms_user, "\\", 1); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:34: note: passing argument to parameter '__dest' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ vnc.c:867:13: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(ms_user, szLogin, strlen(szLogin)); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:34: note: passing argument to parameter '__dest' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ vnc.c:870:13: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(ms_user, szLogin, 256); ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ vnc.c:872:11: warning: passing 'unsigned char [64]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(ms_passwd, szPassword, 64); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ 15 warnings generated. mv -f .deps/vnc.Tpo .deps/vnc.Po x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT d3des.o -MD -MP -MF .deps/d3des.Tpo -c -o d3des.o d3des.c mv -f .deps/d3des.Tpo .deps/d3des.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o vnc.mod vnc.o d3des.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT web-form.o -MD -MP -MF .deps/web-form.Tpo -c -o web-form.o web-form.c web-form.c:100:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ web-form.c:108:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ web-form.c:135:21: warning: comparison of constant 2 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] if ( !( 0 <= argc <= 2) ) ~~~~~~~~~ ^ ~ web-form.c:265:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(_psLogin, psCredSet) == FAILURE) ^ web-form.c:307:11: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(_psLogin, psCredSet->pPass); ^ 5 warnings generated. mv -f .deps/web-form.Tpo .deps/web-form.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o web-form.mod web-form.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT wrapper.o -MD -MP -MF .deps/wrapper.Tpo -c -o wrapper.o wrapper.c wrapper.c:94:5: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ERROR, "%s reports an error in summaryUsage() : ppszSummary must be NULL when called", MODULE_NAME); ^ wrapper.c:101:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, "%s (%s) %s :: %s\n", MODULE_NAME, MODULE_VERSION, MODULE_AUTHOR, MODULE_SUMMARY_USAGE); ^ wrapper.c:173:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(psSessionData->szCmd, pOpt, strlen(pOpt) + 1); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:187:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(psSessionData->szCmdParam, pOpt, strlen(pOpt) + 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:221:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ wrapper.c:247:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] nCmdLength = strlen(_psSessionData->szCmdParam); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ wrapper.c:256:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] nCmdLength = strlen(_psSessionData->szCmdParam); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ wrapper.c:269:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (szTmp = strstr(_psSessionData->szCmdParam, "%H")) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ wrapper.c:269:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (szTmp = strstr(_psSessionData->szCmdParam, "%H")) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:269:19: note: place parentheses around the assignment to silence this warning if (szTmp = strstr(_psSessionData->szCmdParam, "%H")) ^ ( ) wrapper.c:269:19: note: use '==' to turn this assignment into an equality comparison if (szTmp = strstr(_psSessionData->szCmdParam, "%H")) ^ == wrapper.c:273:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szCmdTmp, _psSessionData->szCmdParam, nCmdPartLength); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:288:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (szTmp = strstr(szCmdTmp, "%U")) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:288:19: note: place parentheses around the assignment to silence this warning if (szTmp = strstr(szCmdTmp, "%U")) ^ ( ) wrapper.c:288:19: note: use '==' to turn this assignment into an equality comparison if (szTmp = strstr(szCmdTmp, "%U")) ^ == wrapper.c:292:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(_psSessionData->szCmdParamFull, szCmdTmp, nCmdPartLength); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:293:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(_psSessionData->szCmdParamFull + nCmdPartLength, psCredSet->psUser->pUser, strlen(psCredSet->psUser->pUser)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:294:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(_psSessionData->szCmdParamFull + nCmdPartLength + strlen(psCredSet->psUser->pUser), szTmp + 2, strlen(szTmp) - 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:307:71: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((_psSessionData->nType == TYPE_SINGLE) && (szTmp = strstr(_psSessionData->szCmdParamFull, "%P"))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:342:34: note: passing argument to parameter '__haystack' here extern char *strstr (const char *__haystack, const char *__needle) ^ wrapper.c:311:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(szCmdTmp, _psSessionData->szCmdParamFull, nCmdPartLength); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:315:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(_psSessionData->szCmdParamFull, szCmdTmp, nCmdLength + 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:332:51: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] _psSessionData->szCmdFull = malloc(strlen(_psSessionData->szCmd) + strlen(_psSessionData->szCmdParamFull) + 7); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ wrapper.c:332:83: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] _psSessionData->szCmdFull = malloc(strlen(_psSessionData->szCmd) + strlen(_psSessionData->szCmdParamFull) + 7); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ wrapper.c:333:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(_psSessionData->szCmdFull, 0, strlen(_psSessionData->szCmd) + strlen(_psSessionData->szCmdParamFull) + 7); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ wrapper.c:333:85: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] memset(_psSessionData->szCmdFull, 0, strlen(_psSessionData->szCmd) + strlen(_psSessionData->szCmdParamFull) + 7); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ wrapper.c:334:74: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(_psSessionData->szCmdFull, _psSessionData->szCmd, strlen(_psSessionData->szCmd)); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ wrapper.c:334:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(_psSessionData->szCmdFull, _psSessionData->szCmd, strlen(_psSessionData->szCmd)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:34: note: passing argument to parameter '__dest' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:334:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(_psSessionData->szCmdFull, _psSessionData->szCmd, strlen(_psSessionData->szCmd)); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:117:65: note: passing argument to parameter '__src' here __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:335:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(_psSessionData->szCmdFull, " ", 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:34: note: passing argument to parameter '__dest' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:336:83: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(_psSessionData->szCmdFull, _psSessionData->szCmdParamFull, strlen(_psSessionData->szCmdParamFull)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:35: note: passing argument to parameter '__s' here extern size_t strlen (const char *__s) ^ wrapper.c:336:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(_psSessionData->szCmdFull, _psSessionData->szCmdParamFull, strlen(_psSessionData->szCmdParamFull)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:34: note: passing argument to parameter '__dest' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:336:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(_psSessionData->szCmdFull, _psSessionData->szCmdParamFull, strlen(_psSessionData->szCmdParamFull)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:65: note: passing argument to parameter '__src' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:337:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncat(_psSessionData->szCmdFull, " 1>&2", 5); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string3.h:147:34: note: passing argument to parameter '__dest' here __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:57:59: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^ wrapper.c:342:16: warning: implicit declaration of function 'initProcess' is invalid in C99 [-Wimplicit-function-declaration] iRet = initProcess(_psSessionData); ^ wrapper.c:374:16: warning: implicit declaration of function 'closeProcess' is invalid in C99 [-Wimplicit-function-declaration] iRet = closeProcess(_psSessionData); ^ wrapper.c:451:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((fopen(_psSessionData->szCmd, "r")) == NULL) ^~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:272:44: note: passing argument to parameter '__filename' here extern FILE *fopen (const char *__restrict __filename, ^ wrapper.c:460:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (system(_psSessionData->szCmdFull) < 0) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdlib.h:717:32: note: passing argument to parameter '__command' here extern int system (const char *__command) __wur; ^ wrapper.c:491:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ wrapper.c:582:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 35 warnings generated. mv -f .deps/wrapper.Tpo .deps/wrapper.Po x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -L/usr/local/lib -rdynamic -o wrapper.mod wrapper.o medusa-trace.o -lpq -lssh2 -lsvn_client-1 -shared -lcrypto -ldl -lpthread -lssl -lcrypto -ldl -lrt -lm make[4]: Leaving directory '/«PKGBUILDDIR»/src/modsrc' make[4]: Entering directory '/«PKGBUILDDIR»/src' x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT listModules.o -MD -MP -MF .deps/listModules.Tpo -c -o listModules.o listModules.c listModules.c:83:5: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, " Available modules in \"%s\" :", pszTarget); ^ 1 warning generated. mv -f .deps/listModules.Tpo .deps/listModules.Po x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../src -D_FORTIFY_SOURCE=2 -g -DDEBUG -fPIC -I/usr/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT medusa.o -MD -MP -MF .deps/medusa.Tpo -c -o medusa.o medusa.c medusa.c:57:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, ""); ^ medusa.c:140:9: warning: implicit declaration of function 'writeError' is invalid in C99 [-Wimplicit-function-declaration] writeError(ERR_ALERT, "Options 'h' and 'H' are mutually exclusive."); ^ medusa.c:300:7: warning: implicit declaration of function 'listModules' is invalid in C99 [-Wimplicit-function-declaration] listModules(szModulePaths, 1); // End the program after this executes by passing a 1 as the second param ^ medusa.c:337:11: warning: implicit declaration of function 'invokeModule' is invalid in C99 [-Wimplicit-function-declaration] ret = invokeModule(_psAudit->pModuleName, NULL, NULL, NULL); ^ medusa.c:1441:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ medusa.c:1500:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ medusa.c:1570:5: error: non-void function 'startLoginThreadPool' should return a value [-Wreturn-type] return; ^ medusa.c:1612:7: error: non-void function 'startLoginThreadPool' should return a value [-Wreturn-type] return; ^ medusa.c:1648:7: error: non-void function 'startLoginThreadPool' should return a value [-Wreturn-type] return; ^ medusa.c:1678:3: error: non-void function 'startLoginThreadPool' should return a value [-Wreturn-type] return; ^ medusa.c:1747:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (szResumeMap = strstr(_psAudit->pOptResume, szTmp1)) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ medusa.c:1747:28: note: place parentheses around the assignment to silence this warning else if (szResumeMap = strstr(_psAudit->pOptResume, szTmp1)) ^ ( ) medusa.c:1747:28: note: use '==' to turn this assignment into an equality comparison else if (szResumeMap = strstr(_psAudit->pOptResume, szTmp1)) ^ == 7 warnings and 4 errors generated. Makefile:313: recipe for target 'medusa.o' failed make[4]: *** [medusa.o] Error 1 make[4]: Leaving directory '/«PKGBUILDDIR»/src' make[3]: *** [all-recursive] Error 1 Makefile:333: recipe for target 'all-recursive' failed make[3]: Leaving directory '/«PKGBUILDDIR»/src' make[2]: *** [all-recursive] Error 1 Makefile:338: recipe for target 'all-recursive' failed make[2]: Leaving directory '/«PKGBUILDDIR»' make[1]: *** [all] Error 2 Makefile:238: recipe for target 'all' failed make[1]: Leaving directory '/«PKGBUILDDIR»' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2 debian/rules:27: recipe for target 'build-stamp' failed ──────────────────────────────────────────────────────────────────────────────── Build finished at 20140904-1815 Finished ──────── E: Build failure (dpkg-buildpackage died) ┌──────────────────────────────────────────────────────────────────────────────┐ │ Cleanup │ └──────────────────────────────────────────────────────────────────────────────┘ Purging /«BUILDDIR» Not cleaning session: cloned chroot in use ┌──────────────────────────────────────────────────────────────────────────────┐ │ Summary │ └──────────────────────────────────────────────────────────────────────────────┘ Build Architecture: amd64 Build-Space: 5624 Build-Time: 21 Distribution: unstable Fail-Stage: build Host Architecture: amd64 Install-Time: 15 Job: medusa_2.1.1-1 Machine Architecture: amd64 Package: medusa Package-Time: 68 Source-Version: 2.1.1-1 Space: 5624 Status: attempted Version: 2.1.1-1clang1 ──────────────────────────────────────────────────────────────────────────────── Finished at 20140904-1815 Build needed 00:01:08, 5624k disc space DC-Status: Failed 69.671804071s DC-Time-Estimation: 69.671804071 versus expected 503 (r/m: 6.219563304079381 ; m: 69.671804071)