DC-Build-Header: medusa 2.0-3.1 / Thu Jan 31 19:01:26 +0000 2013 DC-Task: logfile:/tmp/medusa_2.0-3.1_unstable_clang.log version:2.0-3.1 modes:binary-only:clang chroot:unstable source:medusa esttime:64 architecture:any DC-Sbuild-call: su user -c 'sbuild -n --apt-update -d unstable -v --chroot-setup-commands=/tmp/switch-to-clang medusa_2.0-3.1' Could not create '/sbuild-nonexistent/logs': No such file or directory Could not create '/sbuild-nonexistent/logs': No such file or directory sbuild (Debian sbuild) 0.62.5 (13 Jul 2011) on ip-10-28-52-156.ec2.internal ╔══════════════════════════════════════════════════════════════════════════════╗ ║ medusa 2.0-3.1 (amd64) 31 Jan 2013 19:01 ║ ╚══════════════════════════════════════════════════════════════════════════════╝ Package: medusa Version: 2.0-3.1 Source Version: 2.0-3.1 Distribution: unstable Architecture: amd64 I: NOTICE: Log filtering will replace 'build/medusa-PncLz2/medusa-2.0' with '«PKGBUILDDIR»' I: NOTICE: Log filtering will replace 'build/medusa-PncLz2' with '«BUILDDIR»' I: NOTICE: Log filtering will replace 'var/lib/schroot/mount/unstable-amd64-sbuild-37598cef-1ddf-4123-a18c-961a982b7358' with '«CHROOT»' ┌──────────────────────────────────────────────────────────────────────────────┐ │ Update chroot │ └──────────────────────────────────────────────────────────────────────────────┘ Ign http://localhost unstable InRelease Get:1 http://localhost unstable Release.gpg [836 B] Get:2 http://localhost unstable Release [227 kB] Ign http://localhost unstable/main Sources/DiffIndex Ign http://localhost unstable/main amd64 Packages/DiffIndex Hit http://localhost unstable/main Translation-en/DiffIndex Get:3 http://localhost unstable/main Sources [8236 kB] Get:4 http://localhost unstable/main amd64 Packages [8279 kB] Fetched 16.7 MB in 3s (4696 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ┌──────────────────────────────────────────────────────────────────────────────┐ │ Fetch source files │ └──────────────────────────────────────────────────────────────────────────────┘ Check APT ───────── Checking available source versions... Download source files with APT ────────────────────────────── Reading package lists... Building dependency tree... Reading state information... Need to get 378 kB of source archives. Get:1 http://localhost/debian/ unstable/main medusa 2.0-3.1 (dsc) [1074 B] Get:2 http://localhost/debian/ unstable/main medusa 2.0-3.1 (tar) [371 kB] Get:3 http://localhost/debian/ unstable/main medusa 2.0-3.1 (diff) [5824 B] Fetched 378 kB in 0s (1396 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... + echo 'Add an unstable version of clang as repository' Add an unstable version of clang as repository + echo deb http://clang.ecranbleu.org/apt/debian unstable main + apt-get update Ign http://localhost unstable InRelease Hit http://localhost unstable Release.gpg Hit http://localhost unstable Release Ign http://clang.ecranbleu.org unstable InRelease Ign http://localhost unstable/main Sources/DiffIndex Ign http://clang.ecranbleu.org unstable Release.gpg Get:1 http://clang.ecranbleu.org unstable Release [1616 B] Ign http://localhost unstable/main amd64 Packages/DiffIndex Hit http://localhost unstable/main Translation-en/DiffIndex Get:2 http://clang.ecranbleu.org unstable/main amd64 Packages [2354 B] Hit http://localhost unstable/main Sources Ign http://clang.ecranbleu.org unstable/main Translation-en Hit http://localhost unstable/main amd64 Packages Fetched 3970 B in 1s (2602 B/s) Reading package lists... + echo 'Install of clang' Install of clang + apt-get update Ign http://localhost unstable InRelease Hit http://localhost unstable Release.gpg Hit http://localhost unstable Release Ign http://clang.ecranbleu.org unstable InRelease Ign http://localhost unstable/main Sources/DiffIndex Ign http://clang.ecranbleu.org unstable Release.gpg Ign http://localhost unstable/main amd64 Packages/DiffIndex Hit http://clang.ecranbleu.org unstable Release Ign http://clang.ecranbleu.org unstable/main amd64 Packages/DiffIndex Hit http://localhost unstable/main Translation-en/DiffIndex Hit http://localhost unstable/main Sources Hit http://localhost unstable/main amd64 Packages Hit http://clang.ecranbleu.org unstable/main amd64 Packages Ign http://clang.ecranbleu.org unstable/main Translation-en Reading package lists... + apt-get install --yes --no-install-recommends --force-yes clang Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: clang-3.2 compiler-rt libclang-common-dev libexpat1 libffi5 libllvm3.2 libncursesw5 libsqlite3-0 libssl1.0.0 mime-support python python-minimal python2.7 python2.7-minimal Suggested packages: python-doc python-tk python2.7-doc binfmt-support Recommended packages: llvm-3.2-dev file The following NEW packages will be installed: clang clang-3.2 compiler-rt libclang-common-dev libexpat1 libffi5 libllvm3.2 libncursesw5 libsqlite3-0 libssl1.0.0 mime-support python python-minimal python2.7 python2.7-minimal 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. Need to get 25.3 MB of archives. After this operation, 70.1 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! libclang-common-dev compiler-rt clang-3.2 clang Get:1 http://localhost/debian/ unstable/main libncursesw5 amd64 5.9-10 [141 kB] Get:2 http://localhost/debian/ unstable/main libssl1.0.0 amd64 1.0.1c-4 [1213 kB] Get:3 http://localhost/debian/ unstable/main libsqlite3-0 amd64 3.7.15.2-1 [463 kB] Get:4 http://localhost/debian/ unstable/main libexpat1 amd64 2.1.0-1 [141 kB] Get:5 http://localhost/debian/ unstable/main libffi5 amd64 3.0.10-3 [24.8 kB] Get:6 http://localhost/debian/ unstable/main libllvm3.2 amd64 3.2-2 [7865 kB] Get:7 http://clang.ecranbleu.org/apt/debian/ unstable/main libclang-common-dev amd64 3.2-2 [303 kB] Get:8 http://localhost/debian/ unstable/main mime-support all 3.52-2 [35.2 kB] Get:9 http://localhost/debian/ unstable/main python2.7-minimal amd64 2.7.3-6 [1783 kB] Get:10 http://localhost/debian/ unstable/main python2.7 amd64 2.7.3-6 [2729 kB] Get:11 http://localhost/debian/ unstable/main python-minimal all 2.7.3-3 [42.5 kB] Get:12 http://localhost/debian/ unstable/main python all 2.7.3-3 [179 kB] Get:13 http://clang.ecranbleu.org/apt/debian/ unstable/main compiler-rt amd64 3.2-2 [312 kB] Get:14 http://clang.ecranbleu.org/apt/debian/ unstable/main clang-3.2 amd64 3.2-2 [10.0 MB] Get:15 http://clang.ecranbleu.org/apt/debian/ unstable/main clang all 3.2-2 [9558 B] debconf: delaying package configuration, since apt-utils is not installed Fetched 25.3 MB in 3s (6825 kB/s) Selecting previously unselected package libncursesw5:amd64. (Reading database ... 13484 files and directories currently installed.) Unpacking libncursesw5:amd64 (from .../libncursesw5_5.9-10_amd64.deb) ... Selecting previously unselected package libssl1.0.0:amd64. Unpacking libssl1.0.0:amd64 (from .../libssl1.0.0_1.0.1c-4_amd64.deb) ... Selecting previously unselected package libsqlite3-0:amd64. Unpacking libsqlite3-0:amd64 (from .../libsqlite3-0_3.7.15.2-1_amd64.deb) ... Selecting previously unselected package libexpat1:amd64. Unpacking libexpat1:amd64 (from .../libexpat1_2.1.0-1_amd64.deb) ... Selecting previously unselected package libffi5:amd64. Unpacking libffi5:amd64 (from .../libffi5_3.0.10-3_amd64.deb) ... Selecting previously unselected package libllvm3.2:amd64. Unpacking libllvm3.2:amd64 (from .../libllvm3.2_3.2-2_amd64.deb) ... Selecting previously unselected package mime-support. Unpacking mime-support (from .../mime-support_3.52-2_all.deb) ... Selecting previously unselected package python2.7-minimal. Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.3-6_amd64.deb) ... Selecting previously unselected package python2.7. Unpacking python2.7 (from .../python2.7_2.7.3-6_amd64.deb) ... Selecting previously unselected package python-minimal. Unpacking python-minimal (from .../python-minimal_2.7.3-3_all.deb) ... Selecting previously unselected package python. Unpacking python (from .../python_2.7.3-3_all.deb) ... Selecting previously unselected package libclang-common-dev. Unpacking libclang-common-dev (from .../libclang-common-dev_3.2-2_amd64.deb) ... Selecting previously unselected package compiler-rt. Unpacking compiler-rt (from .../compiler-rt_3.2-2_amd64.deb) ... Selecting previously unselected package clang-3.2. Unpacking clang-3.2 (from .../clang-3.2_3.2-2_amd64.deb) ... Selecting previously unselected package clang. Unpacking clang (from .../archives/clang_3.2-2_all.deb) ... Setting up libncursesw5:amd64 (5.9-10) ... Setting up libssl1.0.0:amd64 (1.0.1c-4) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Setting up libsqlite3-0:amd64 (3.7.15.2-1) ... Setting up libexpat1:amd64 (2.1.0-1) ... Setting up libffi5:amd64 (3.0.10-3) ... Setting up libllvm3.2:amd64 (3.2-2) ... Setting up mime-support (3.52-2) ... Setting up python2.7-minimal (2.7.3-6) ... Linking and byte-compiling packages for runtime python2.7... Setting up python2.7 (2.7.3-6) ... Setting up python-minimal (2.7.3-3) ... Setting up python (2.7.3-3) ... Setting up libclang-common-dev (3.2-2) ... Setting up compiler-rt (3.2-2) ... Setting up clang-3.2 (3.2-2) ... Setting up clang (3.2-2) ... + echo 'Replace gcc, g++ & cpp by clang' Replace gcc, g++ & cpp by clang + VERSIONS='4.6 4.7' + cd /usr/bin + for VERSION in '$VERSIONS' + rm g++-4.6 gcc-4.6 cpp-4.6 + ln -s clang++ g++-4.6 + ln -s clang gcc-4.6 + ln -s clang cpp-4.6 + for VERSION in '$VERSIONS' + rm g++-4.7 gcc-4.7 cpp-4.7 + ln -s clang++ g++-4.7 + ln -s clang gcc-4.7 + ln -s clang cpp-4.7 + cd - /«BUILDDIR» + echo 'Block the installation of new gcc version' Block the installation of new gcc version + dpkg --set-selections + echo 'gcc-4.6 hold' + echo 'cpp-4.6 hold' + dpkg --set-selections + echo 'g++-4.6 hold' + dpkg --set-selections + echo 'gcc-4.7 hold' + dpkg --set-selections + echo 'cpp-4.7 hold' + dpkg --set-selections + echo 'g++-4.7 hold' + dpkg --set-selections + 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-0VXGmR/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/710 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 ... 14662 files and directories currently installed.) Unpacking sbuild-build-depends-core-dummy (from .../sbuild-build-depends-core-dummy.deb) ... 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, libc-bin, login, mount, ncurses-base, ncurses-bin, perl-base, sed, sysvinit, sysvinit-utils, tar, util-linux, libc6-dev | libc-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 5), autotools-dev, libncp-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, libc-bin, login, mount, ncurses-base, ncurses-bin, perl-base, sed, sysvinit, sysvinit-utils, tar, util-linux, libc6-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 5), autotools-dev, libncp-dev, libssl-dev, libsvn-dev, libpq-dev, libssh2-1-dev dpkg-deb: building package `sbuild-build-depends-medusa-dummy' in `/«BUILDDIR»/resolver-egk5kI/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 html2text intltool-debian krb5-multidev libapr1 libapr1-dev libaprutil1 libaprutil1-dev libasprintf-dev libasprintf0c2 libcroco3 libexpat1-dev libgcrypt11 libgcrypt11-dev libgettextpo-dev libgettextpo0 libglib2.0-0 libgnutls26 libgpg-error-dev libgpg-error0 libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-6 libkeyutils1 libkrb5-3 libkrb5-dev libkrb5support0 libldap-2.4-2 libldap2-dev libmagic1 libmysqlclient-dev libmysqlclient18 libncp libncp-dev libneon27-gnutls libp11-kit0 libpcre3 libpcre3-dev libpcrecpp0 libpipeline1 libpq-dev libpq5 libsasl2-2 libserf1 libsqlite3-dev libssh2-1 libssh2-1-dev libssl-dev libsvn-dev libsvn1 libtasn1-3 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 rng-tools libgcrypt11-doc krb5-user postgresql-doc-9.1 sqlite3-doc libsvn-doc libneon27-gnutls-dev less www-browser libmail-box-perl Recommended packages: curl wget lynx-cur autopoint libglib2.0-data shared-mime-info krb5-locales ca-certificates libsasl2-modules 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 html2text intltool-debian krb5-multidev libapr1 libapr1-dev libaprutil1 libaprutil1-dev libasprintf-dev libasprintf0c2 libcroco3 libexpat1-dev libgcrypt11 libgcrypt11-dev libgettextpo-dev libgettextpo0 libglib2.0-0 libgnutls26 libgpg-error-dev libgpg-error0 libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-6 libkeyutils1 libkrb5-3 libkrb5-dev libkrb5support0 libldap-2.4-2 libldap2-dev libmagic1 libmysqlclient-dev libmysqlclient18 libncp libncp-dev libneon27-gnutls libp11-kit0 libpcre3 libpcre3-dev libpcrecpp0 libpipeline1 libpq-dev libpq5 libsasl2-2 libserf1 libsqlite3-dev libssh2-1 libssh2-1-dev libssl-dev libsvn-dev libsvn1 libtasn1-3 libunistring0 libxml2 man-db mysql-common po-debconf sbuild-build-depends-medusa-dummy uuid-dev zlib1g-dev 0 upgraded, 69 newly installed, 0 to remove and 0 not upgraded. Need to get 25.0 MB/25.0 MB of archives. After this operation, 81.5 MB of additional disk space will be used. Get:1 http://localhost/debian/ unstable/main libpipeline1 amd64 1.2.2-1 [39.9 kB] Get:2 http://localhost/debian/ unstable/main groff-base amd64 1.22.1-2 [741 kB] Get:3 http://localhost/debian/ unstable/main bsdmainutils amd64 9.0.4 [210 kB] Get:4 http://localhost/debian/ unstable/main man-db amd64 2.6.3-3 [898 kB] Get:5 http://localhost/debian/ unstable/main libasprintf0c2 amd64 0.18.1.1-10 [27.2 kB] Get:6 http://localhost/debian/ unstable/main libgpg-error0 amd64 1.10-3.1 [77.9 kB] Get:7 http://localhost/debian/ unstable/main libgcrypt11 amd64 1.5.0-3 [298 kB] Get:8 http://localhost/debian/ unstable/main libp11-kit0 amd64 0.12-3 [52.8 kB] Get:9 http://localhost/debian/ unstable/main libtasn1-3 amd64 2.13-2 [67.7 kB] Get:10 http://localhost/debian/ unstable/main libgnutls26 amd64 2.12.20-3 [618 kB] Get:11 http://localhost/debian/ unstable/main libkeyutils1 amd64 1.5.5-4 [8690 B] Get:12 http://localhost/debian/ unstable/main libkrb5support0 amd64 1.10.1+dfsg-3 [49.2 kB] Get:13 http://localhost/debian/ unstable/main libk5crypto3 amd64 1.10.1+dfsg-3 [112 kB] Get:14 http://localhost/debian/ unstable/main libkrb5-3 amd64 1.10.1+dfsg-3 [394 kB] Get:15 http://localhost/debian/ unstable/main libgssapi-krb5-2 amd64 1.10.1+dfsg-3 [148 kB] Get:16 http://localhost/debian/ unstable/main libgssrpc4 amd64 1.10.1+dfsg-3 [87.5 kB] Get:17 http://localhost/debian/ unstable/main libkadm5clnt-mit8 amd64 1.10.1+dfsg-3 [67.6 kB] Get:18 http://localhost/debian/ unstable/main libkdb5-6 amd64 1.10.1+dfsg-3 [66.5 kB] Get:19 http://localhost/debian/ unstable/main libkadm5srv-mit8 amd64 1.10.1+dfsg-3 [84.6 kB] Get:20 http://localhost/debian/ unstable/main libsasl2-2 amd64 2.1.25.dfsg1-6 [120 kB] Get:21 http://localhost/debian/ unstable/main libldap-2.4-2 amd64 2.4.31-1 [243 kB] Get:22 http://localhost/debian/ unstable/main libmagic1 amd64 5.11-2 [202 kB] Get:23 http://localhost/debian/ unstable/main libpcre3 amd64 1:8.31-2 [247 kB] Get:24 http://localhost/debian/ unstable/main libxml2 amd64 2.8.0+dfsg1-7 [903 kB] Get:25 http://localhost/debian/ unstable/main libglib2.0-0 amd64 2.33.12+really2.32.4-5 [1838 kB] Get:26 http://localhost/debian/ unstable/main libcroco3 amd64 0.6.6-2 [134 kB] Get:27 http://localhost/debian/ unstable/main libunistring0 amd64 0.9.3-5 [434 kB] Get:28 http://localhost/debian/ unstable/main libgettextpo0 amd64 0.18.1.1-10 [145 kB] Get:29 http://localhost/debian/ unstable/main mysql-common all 5.5.29+dfsg-1 [109 kB] Get:30 http://localhost/debian/ unstable/main libmysqlclient18 amd64 5.5.29+dfsg-1 [708 kB] Get:31 http://localhost/debian/ unstable/main libpcrecpp0 amd64 1:8.31-2 [128 kB] Get:32 http://localhost/debian/ unstable/main libapr1 amd64 1.4.6-3 [99.6 kB] Get:33 http://localhost/debian/ unstable/main libaprutil1 amd64 1.4.1-3 [89.8 kB] Get:34 http://localhost/debian/ unstable/main libserf1 amd64 1.1.0-2 [46.8 kB] Get:35 http://localhost/debian/ unstable/main libssh2-1 amd64 1.4.2-1.1 [133 kB] Get:36 http://localhost/debian/ unstable/main libneon27-gnutls amd64 0.29.6-3 [142 kB] Get:37 http://localhost/debian/ unstable/main libsvn1 amd64 1.7.5-1 [1195 kB] Get:38 http://localhost/debian/ unstable/main file amd64 5.11-2 [51.8 kB] Get:39 http://localhost/debian/ unstable/main gettext-base amd64 0.18.1.1-10 [154 kB] Get:40 http://localhost/debian/ unstable/main autotools-dev all 20120608.1 [73.0 kB] Get:41 http://localhost/debian/ unstable/main html2text amd64 1.3.2a-15 [103 kB] Get:42 http://localhost/debian/ unstable/main libasprintf-dev amd64 0.18.1.1-10 [26.8 kB] Get:43 http://localhost/debian/ unstable/main libgettextpo-dev amd64 0.18.1.1-10 [184 kB] Get:44 http://localhost/debian/ unstable/main gettext amd64 0.18.1.1-10 [1815 kB] Get:45 http://localhost/debian/ unstable/main intltool-debian all 0.35.0+20060710.1 [30.8 kB] Get:46 http://localhost/debian/ unstable/main po-debconf all 1.0.16+nmu2 [224 kB] Get:47 http://localhost/debian/ unstable/main debhelper all 9.20120909 [705 kB] Get:48 http://localhost/debian/ unstable/main comerr-dev amd64 2.1-1.42.5-1 [43.6 kB] Get:49 http://localhost/debian/ unstable/main krb5-multidev amd64 1.10.1+dfsg-3 [153 kB] Get:50 http://localhost/debian/ unstable/main uuid-dev amd64 2.20.1-5.3 [72.4 kB] Get:51 http://localhost/debian/ unstable/main libapr1-dev amd64 1.4.6-3 [1065 kB] Get:52 http://localhost/debian/ unstable/main libldap2-dev amd64 2.4.31-1 [563 kB] Get:53 http://localhost/debian/ unstable/main libexpat1-dev amd64 2.1.0-1 [229 kB] Get:54 http://localhost/debian/ unstable/main libpcre3-dev amd64 1:8.31-2 [356 kB] Get:55 http://localhost/debian/ unstable/main libsqlite3-dev amd64 3.7.15.2-1 [589 kB] Get:56 http://localhost/debian/ unstable/main libpq5 amd64 9.1.7-1 [516 kB] Get:57 http://localhost/debian/ unstable/main zlib1g-dev amd64 1:1.2.7.dfsg-13 [215 kB] Get:58 http://localhost/debian/ unstable/main libssl-dev amd64 1.0.1c-4 [1698 kB] Get:59 http://localhost/debian/ unstable/main libkrb5-dev amd64 1.10.1+dfsg-3 [39.6 kB] Get:60 http://localhost/debian/ unstable/main libpq-dev amd64 9.1.7-1 [570 kB] Get:61 http://localhost/debian/ unstable/main libmysqlclient-dev amd64 5.5.29+dfsg-1 [974 kB] Get:62 http://localhost/debian/ unstable/main libaprutil1-dev amd64 1.4.1-3 [653 kB] Get:63 http://localhost/debian/ unstable/main libgpg-error-dev amd64 1.10-3.1 [43.0 kB] Get:64 http://localhost/debian/ unstable/main libgcrypt11-dev amd64 1.5.0-3 [402 kB] Get:65 http://localhost/debian/ unstable/main libssh2-1-dev amd64 1.4.2-1.1 [311 kB] Get:66 http://localhost/debian/ unstable/main libncp amd64 2.2.6-9 [185 kB] Get:67 http://localhost/debian/ unstable/main libncp-dev amd64 2.2.6-9 [271 kB] Get:68 http://localhost/debian/ unstable/main libsvn-dev amd64 1.7.5-1 [1677 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 25.0 MB in 1s (24.2 MB/s) Selecting previously unselected package libpipeline1:amd64. (Reading database ... 14662 files and directories currently installed.) Unpacking libpipeline1:amd64 (from .../libpipeline1_1.2.2-1_amd64.deb) ... Selecting previously unselected package groff-base. Unpacking groff-base (from .../groff-base_1.22.1-2_amd64.deb) ... Selecting previously unselected package bsdmainutils. Unpacking bsdmainutils (from .../bsdmainutils_9.0.4_amd64.deb) ... Selecting previously unselected package man-db. Unpacking man-db (from .../man-db_2.6.3-3_amd64.deb) ... Selecting previously unselected package libasprintf0c2:amd64. Unpacking libasprintf0c2:amd64 (from .../libasprintf0c2_0.18.1.1-10_amd64.deb) ... Selecting previously unselected package libgpg-error0:amd64. Unpacking libgpg-error0:amd64 (from .../libgpg-error0_1.10-3.1_amd64.deb) ... Selecting previously unselected package libgcrypt11:amd64. Unpacking libgcrypt11:amd64 (from .../libgcrypt11_1.5.0-3_amd64.deb) ... Selecting previously unselected package libp11-kit0:amd64. Unpacking libp11-kit0:amd64 (from .../libp11-kit0_0.12-3_amd64.deb) ... Selecting previously unselected package libtasn1-3:amd64. Unpacking libtasn1-3:amd64 (from .../libtasn1-3_2.13-2_amd64.deb) ... Selecting previously unselected package libgnutls26:amd64. Unpacking libgnutls26:amd64 (from .../libgnutls26_2.12.20-3_amd64.deb) ... Selecting previously unselected package libkeyutils1:amd64. Unpacking libkeyutils1:amd64 (from .../libkeyutils1_1.5.5-4_amd64.deb) ... Selecting previously unselected package libkrb5support0:amd64. Unpacking libkrb5support0:amd64 (from .../libkrb5support0_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package libk5crypto3:amd64. Unpacking libk5crypto3:amd64 (from .../libk5crypto3_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package libkrb5-3:amd64. Unpacking libkrb5-3:amd64 (from .../libkrb5-3_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package libgssapi-krb5-2:amd64. Unpacking libgssapi-krb5-2:amd64 (from .../libgssapi-krb5-2_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package libgssrpc4:amd64. Unpacking libgssrpc4:amd64 (from .../libgssrpc4_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package libkadm5clnt-mit8:amd64. Unpacking libkadm5clnt-mit8:amd64 (from .../libkadm5clnt-mit8_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package libkdb5-6:amd64. Unpacking libkdb5-6:amd64 (from .../libkdb5-6_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package libkadm5srv-mit8:amd64. Unpacking libkadm5srv-mit8:amd64 (from .../libkadm5srv-mit8_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package libsasl2-2:amd64. Unpacking libsasl2-2:amd64 (from .../libsasl2-2_2.1.25.dfsg1-6_amd64.deb) ... Selecting previously unselected package libldap-2.4-2:amd64. Unpacking libldap-2.4-2:amd64 (from .../libldap-2.4-2_2.4.31-1_amd64.deb) ... Selecting previously unselected package libmagic1:amd64. Unpacking libmagic1:amd64 (from .../libmagic1_5.11-2_amd64.deb) ... Selecting previously unselected package libpcre3:amd64. Unpacking libpcre3:amd64 (from .../libpcre3_1%3a8.31-2_amd64.deb) ... Selecting previously unselected package libxml2:amd64. Unpacking libxml2:amd64 (from .../libxml2_2.8.0+dfsg1-7_amd64.deb) ... Selecting previously unselected package libglib2.0-0:amd64. Unpacking libglib2.0-0:amd64 (from .../libglib2.0-0_2.33.12+really2.32.4-5_amd64.deb) ... Selecting previously unselected package libcroco3:amd64. Unpacking libcroco3:amd64 (from .../libcroco3_0.6.6-2_amd64.deb) ... Selecting previously unselected package libunistring0:amd64. Unpacking libunistring0:amd64 (from .../libunistring0_0.9.3-5_amd64.deb) ... Selecting previously unselected package libgettextpo0:amd64. Unpacking libgettextpo0:amd64 (from .../libgettextpo0_0.18.1.1-10_amd64.deb) ... Selecting previously unselected package mysql-common. Unpacking mysql-common (from .../mysql-common_5.5.29+dfsg-1_all.deb) ... Selecting previously unselected package libmysqlclient18:amd64. Unpacking libmysqlclient18:amd64 (from .../libmysqlclient18_5.5.29+dfsg-1_amd64.deb) ... Selecting previously unselected package libpcrecpp0:amd64. Unpacking libpcrecpp0:amd64 (from .../libpcrecpp0_1%3a8.31-2_amd64.deb) ... Selecting previously unselected package libapr1. Unpacking libapr1 (from .../libapr1_1.4.6-3_amd64.deb) ... Selecting previously unselected package libaprutil1. Unpacking libaprutil1 (from .../libaprutil1_1.4.1-3_amd64.deb) ... Selecting previously unselected package libserf1:amd64. Unpacking libserf1:amd64 (from .../libserf1_1.1.0-2_amd64.deb) ... Selecting previously unselected package libssh2-1:amd64. Unpacking libssh2-1:amd64 (from .../libssh2-1_1.4.2-1.1_amd64.deb) ... Selecting previously unselected package libneon27-gnutls. Unpacking libneon27-gnutls (from .../libneon27-gnutls_0.29.6-3_amd64.deb) ... Selecting previously unselected package libsvn1:amd64. Unpacking libsvn1:amd64 (from .../libsvn1_1.7.5-1_amd64.deb) ... Selecting previously unselected package file. Unpacking file (from .../archives/file_5.11-2_amd64.deb) ... Selecting previously unselected package gettext-base. Unpacking gettext-base (from .../gettext-base_0.18.1.1-10_amd64.deb) ... Selecting previously unselected package autotools-dev. Unpacking autotools-dev (from .../autotools-dev_20120608.1_all.deb) ... Selecting previously unselected package html2text. Unpacking html2text (from .../html2text_1.3.2a-15_amd64.deb) ... Selecting previously unselected package libasprintf-dev:amd64. Unpacking libasprintf-dev:amd64 (from .../libasprintf-dev_0.18.1.1-10_amd64.deb) ... Selecting previously unselected package libgettextpo-dev:amd64. Unpacking libgettextpo-dev:amd64 (from .../libgettextpo-dev_0.18.1.1-10_amd64.deb) ... Selecting previously unselected package gettext. Unpacking gettext (from .../gettext_0.18.1.1-10_amd64.deb) ... Selecting previously unselected package intltool-debian. Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ... Selecting previously unselected package po-debconf. Unpacking po-debconf (from .../po-debconf_1.0.16+nmu2_all.deb) ... Selecting previously unselected package debhelper. Unpacking debhelper (from .../debhelper_9.20120909_all.deb) ... Selecting previously unselected package comerr-dev. Unpacking comerr-dev (from .../comerr-dev_2.1-1.42.5-1_amd64.deb) ... Selecting previously unselected package krb5-multidev. Unpacking krb5-multidev (from .../krb5-multidev_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package uuid-dev. Unpacking uuid-dev (from .../uuid-dev_2.20.1-5.3_amd64.deb) ... Selecting previously unselected package libapr1-dev. Unpacking libapr1-dev (from .../libapr1-dev_1.4.6-3_amd64.deb) ... Selecting previously unselected package libldap2-dev:amd64. Unpacking libldap2-dev:amd64 (from .../libldap2-dev_2.4.31-1_amd64.deb) ... Selecting previously unselected package libexpat1-dev. Unpacking libexpat1-dev (from .../libexpat1-dev_2.1.0-1_amd64.deb) ... Selecting previously unselected package libpcre3-dev:amd64. Unpacking libpcre3-dev:amd64 (from .../libpcre3-dev_1%3a8.31-2_amd64.deb) ... Selecting previously unselected package libsqlite3-dev. Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.15.2-1_amd64.deb) ... Selecting previously unselected package libpq5. Unpacking libpq5 (from .../libpq5_9.1.7-1_amd64.deb) ... Selecting previously unselected package zlib1g-dev:amd64. Unpacking zlib1g-dev:amd64 (from .../zlib1g-dev_1%3a1.2.7.dfsg-13_amd64.deb) ... Selecting previously unselected package libssl-dev. Unpacking libssl-dev (from .../libssl-dev_1.0.1c-4_amd64.deb) ... Selecting previously unselected package libkrb5-dev. Unpacking libkrb5-dev (from .../libkrb5-dev_1.10.1+dfsg-3_amd64.deb) ... Selecting previously unselected package libpq-dev. Unpacking libpq-dev (from .../libpq-dev_9.1.7-1_amd64.deb) ... Selecting previously unselected package libmysqlclient-dev. Unpacking libmysqlclient-dev (from .../libmysqlclient-dev_5.5.29+dfsg-1_amd64.deb) ... Selecting previously unselected package libaprutil1-dev. Unpacking libaprutil1-dev (from .../libaprutil1-dev_1.4.1-3_amd64.deb) ... Selecting previously unselected package libgpg-error-dev. Unpacking libgpg-error-dev (from .../libgpg-error-dev_1.10-3.1_amd64.deb) ... Selecting previously unselected package libgcrypt11-dev. Unpacking libgcrypt11-dev (from .../libgcrypt11-dev_1.5.0-3_amd64.deb) ... Selecting previously unselected package libssh2-1-dev. Unpacking libssh2-1-dev (from .../libssh2-1-dev_1.4.2-1.1_amd64.deb) ... Selecting previously unselected package libncp. Unpacking libncp (from .../libncp_2.2.6-9_amd64.deb) ... Selecting previously unselected package libncp-dev. Unpacking libncp-dev (from .../libncp-dev_2.2.6-9_amd64.deb) ... Selecting previously unselected package libsvn-dev. Unpacking libsvn-dev (from .../libsvn-dev_1.7.5-1_amd64.deb) ... Selecting previously unselected package sbuild-build-depends-medusa-dummy. Unpacking sbuild-build-depends-medusa-dummy (from .../sbuild-build-depends-medusa-dummy.deb) ... Processing triggers for mime-support ... Setting up libpipeline1:amd64 (1.2.2-1) ... Setting up groff-base (1.22.1-2) ... Setting up bsdmainutils (9.0.4) ... 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.3-3) ... Building database of manual pages ... Setting up libasprintf0c2:amd64 (0.18.1.1-10) ... Setting up libgpg-error0:amd64 (1.10-3.1) ... Setting up libgcrypt11:amd64 (1.5.0-3) ... Setting up libp11-kit0:amd64 (0.12-3) ... Setting up libtasn1-3:amd64 (2.13-2) ... Setting up libgnutls26:amd64 (2.12.20-3) ... Setting up libkeyutils1:amd64 (1.5.5-4) ... Setting up libkrb5support0:amd64 (1.10.1+dfsg-3) ... Setting up libk5crypto3:amd64 (1.10.1+dfsg-3) ... Setting up libkrb5-3:amd64 (1.10.1+dfsg-3) ... Setting up libgssapi-krb5-2:amd64 (1.10.1+dfsg-3) ... Setting up libgssrpc4:amd64 (1.10.1+dfsg-3) ... Setting up libkadm5clnt-mit8:amd64 (1.10.1+dfsg-3) ... Setting up libkdb5-6:amd64 (1.10.1+dfsg-3) ... Setting up libkadm5srv-mit8:amd64 (1.10.1+dfsg-3) ... Setting up libsasl2-2:amd64 (2.1.25.dfsg1-6) ... Setting up libldap-2.4-2:amd64 (2.4.31-1) ... Setting up libmagic1:amd64 (5.11-2) ... Setting up libpcre3:amd64 (1:8.31-2) ... Setting up libxml2:amd64 (2.8.0+dfsg1-7) ... Setting up libglib2.0-0:amd64 (2.33.12+really2.32.4-5) ... No schema files found: doing nothing. Setting up libcroco3:amd64 (0.6.6-2) ... Setting up libunistring0:amd64 (0.9.3-5) ... Setting up libgettextpo0:amd64 (0.18.1.1-10) ... Setting up mysql-common (5.5.29+dfsg-1) ... Setting up libmysqlclient18:amd64 (5.5.29+dfsg-1) ... Setting up libpcrecpp0:amd64 (1:8.31-2) ... Setting up libapr1 (1.4.6-3) ... Setting up libaprutil1 (1.4.1-3) ... Setting up libserf1:amd64 (1.1.0-2) ... Setting up libssh2-1:amd64 (1.4.2-1.1) ... Setting up libneon27-gnutls (0.29.6-3) ... Setting up libsvn1:amd64 (1.7.5-1) ... Setting up file (5.11-2) ... Setting up gettext-base (0.18.1.1-10) ... Setting up autotools-dev (20120608.1) ... Setting up html2text (1.3.2a-15) ... Setting up libasprintf-dev:amd64 (0.18.1.1-10) ... Setting up libgettextpo-dev:amd64 (0.18.1.1-10) ... Setting up gettext (0.18.1.1-10) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu2) ... Setting up debhelper (9.20120909) ... Setting up comerr-dev (2.1-1.42.5-1) ... Setting up krb5-multidev (1.10.1+dfsg-3) ... Setting up uuid-dev (2.20.1-5.3) ... Setting up libapr1-dev (1.4.6-3) ... Setting up libldap2-dev:amd64 (2.4.31-1) ... Setting up libexpat1-dev (2.1.0-1) ... Setting up libpcre3-dev:amd64 (1:8.31-2) ... Setting up libsqlite3-dev (3.7.15.2-1) ... Setting up libpq5 (9.1.7-1) ... Setting up zlib1g-dev:amd64 (1:1.2.7.dfsg-13) ... Setting up libssl-dev (1.0.1c-4) ... Setting up libkrb5-dev (1.10.1+dfsg-3) ... Setting up libpq-dev (9.1.7-1) ... Setting up libmysqlclient-dev (5.5.29+dfsg-1) ... Setting up libaprutil1-dev (1.4.1-3) ... Setting up libgpg-error-dev (1.10-3.1) ... Setting up libgcrypt11-dev (1.5.0-3) ... Setting up libssh2-1-dev (1.4.2-1.1) ... Setting up libncp (2.2.6-9) ... Setting up libncp-dev (2.2.6-9) ... Setting up libsvn-dev (1.7.5-1) ... Setting up sbuild-build-depends-medusa-dummy (0.invalid.0) ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build environment │ └──────────────────────────────────────────────────────────────────────────────┘ Kernel: Linux 2.6.32-5-xen-amd64 amd64 (x86_64) Toolchain package versions: binutils_2.22-7.1 dpkg-dev_1.16.9 g++-4.6_4.6.3-15 g++-4.7_4.7.2-5 gcc-4.6_4.6.3-15 gcc-4.7_4.7.2-5 libc6-dev_2.13-38 libstdc++6_4.7.2-5 libstdc++6-4.6-dev_4.6.3-15 libstdc++6-4.7-dev_4.7.2-5 linux-libc-dev_3.2.35-2 Package versions: apt_0.9.7.7 autotools-dev_20120608.1 base-files_7.1 base-passwd_3.5.26 bash_4.2+dfsg-0.1 binutils_2.22-7.1 bsdmainutils_9.0.4 bsdutils_1:2.20.1-5.3 build-essential_11.6 bzip2_1.0.6-4 clang_3.2-2 clang-3.2_3.2-2 comerr-dev_2.1-1.42.5-1 compiler-rt_3.2-2 coreutils_8.20-3 cpp_4:4.7.2-1 cpp-4.6_4.6.3-15 cpp-4.7_4.7.2-5 dash_0.5.7-3 debconf_1.5.49 debconf-i18n_1.5.49 debfoster_2.7-1.2 debhelper_9.20120909 debian-archive-keyring_2012.4 debianutils_4.3.4 diffutils_1:3.2-7 dpkg_1.16.9 dpkg-dev_1.16.9 e2fslibs_1.42.5-1 e2fsprogs_1.42.5-1 fakeroot_1.18.4-2 file_5.11-2 findutils_4.4.2-5 g++_4:4.7.2-1 g++-4.6_4.6.3-15 g++-4.7_4.7.2-5 gcc_4:4.7.2-1 gcc-4.4-base_4.4.7-3 gcc-4.5-base_4.5.4-1 gcc-4.6_4.6.3-15 gcc-4.6-base_4.6.3-15 gcc-4.7_4.7.2-5 gcc-4.7-base_4.7.2-5 gettext_0.18.1.1-10 gettext-base_0.18.1.1-10 gnupg_1.4.12-7 gpgv_1.4.12-7 grep_2.14-1 groff-base_1.22.1-2 gzip_1.5-1.1 hostname_3.12 html2text_1.3.2a-15 initscripts_2.88dsf-39 insserv_1.14.0-5 intltool-debian_0.35.0+20060710.1 krb5-multidev_1.10.1+dfsg-3 libacl1_2.2.51-8 libapr1_1.4.6-3 libapr1-dev_1.4.6-3 libaprutil1_1.4.1-3 libaprutil1-dev_1.4.1-3 libapt-pkg4.12_0.9.7.7 libasprintf-dev_0.18.1.1-10 libasprintf0c2_0.18.1.1-10 libattr1_1:2.4.46-8 libblkid1_2.20.1-5.3 libbz2-1.0_1.0.6-4 libc-bin_2.13-38 libc-dev-bin_2.13-38 libc6_2.13-38 libc6-dev_2.13-38 libclang-common-dev_3.2-2 libclass-isa-perl_0.36-5 libcomerr2_1.42.5-1 libcroco3_0.6.6-2 libdb5.1_5.1.29-5 libdpkg-perl_1.16.9 libexpat1_2.1.0-1 libexpat1-dev_2.1.0-1 libffi5_3.0.10-3 libfile-fcntllock-perl_0.14-2 libgc1c2_1:7.1-9.1 libgcc1_1:4.7.2-5 libgcrypt11_1.5.0-3 libgcrypt11-dev_1.5.0-3 libgdbm3_1.8.3-11 libgettextpo-dev_0.18.1.1-10 libgettextpo0_0.18.1.1-10 libglib2.0-0_2.33.12+really2.32.4-5 libgmp10_2:5.0.5+dfsg-2 libgnutls26_2.12.20-3 libgomp1_4.7.2-5 libgpg-error-dev_1.10-3.1 libgpg-error0_1.10-3.1 libgpm2_1.20.4-6 libgssapi-krb5-2_1.10.1+dfsg-3 libgssrpc4_1.10.1+dfsg-3 libitm1_4.7.2-5 libk5crypto3_1.10.1+dfsg-3 libkadm5clnt-mit8_1.10.1+dfsg-3 libkadm5srv-mit8_1.10.1+dfsg-3 libkdb5-6_1.10.1+dfsg-3 libkeyutils1_1.5.5-4 libkrb5-3_1.10.1+dfsg-3 libkrb5-dev_1.10.1+dfsg-3 libkrb5support0_1.10.1+dfsg-3 libldap-2.4-2_2.4.31-1 libldap2-dev_2.4.31-1 libllvm3.2_3.2-2 liblocale-gettext-perl_1.05-7+b1 liblzma5_5.1.1alpha+20120614-2 libmagic1_5.11-2 libmount1_2.20.1-5.3 libmpc2_0.9-4 libmpfr4_3.1.0-5 libmysqlclient-dev_5.5.29+dfsg-1 libmysqlclient18_5.5.29+dfsg-1 libncp_2.2.6-9 libncp-dev_2.2.6-9 libncurses5_5.9-10 libncursesw5_5.9-10 libneon27-gnutls_0.29.6-3 libp11-kit0_0.12-3 libpam-modules_1.1.3-7.1 libpam-modules-bin_1.1.3-7.1 libpam-runtime_1.1.3-7.1 libpam0g_1.1.3-7.1 libpcre3_1:8.31-2 libpcre3-dev_1:8.31-2 libpcrecpp0_1:8.31-2 libpipeline1_1.2.2-1 libpq-dev_9.1.7-1 libpq5_9.1.7-1 libquadmath0_4.7.2-5 libreadline6_6.2+dfsg-0.1 libsasl2-2_2.1.25.dfsg1-6 libselinux1_2.1.9-5 libsemanage-common_2.1.6-6 libsemanage1_2.1.6-6 libsepol1_2.1.4-3 libserf1_1.1.0-2 libslang2_2.2.4-15 libsqlite3-0_3.7.15.2-1 libsqlite3-dev_3.7.15.2-1 libss2_1.42.5-1 libssh2-1_1.4.2-1.1 libssh2-1-dev_1.4.2-1.1 libssl-dev_1.0.1c-4 libssl1.0.0_1.0.1c-4 libstdc++6_4.7.2-5 libstdc++6-4.6-dev_4.6.3-15 libstdc++6-4.7-dev_4.7.2-5 libsvn-dev_1.7.5-1 libsvn1_1.7.5-1 libswitch-perl_2.16-2 libtasn1-3_2.13-2 libtext-charwidth-perl_0.04-7+b1 libtext-iconv-perl_1.7-5 libtext-wrapi18n-perl_0.06-7 libtimedate-perl_1.2000-1 libtinfo5_5.9-10 libunistring0_0.9.3-5 libusb-0.1-4_2:0.1.12-23+nmu1 libustr-1.0-1_1.0.4-3 libuuid1_2.20.1-5.3 libxml2_2.8.0+dfsg1-7 linux-libc-dev_3.2.35-2 login_1:4.1.5.1-1 lsb-base_4.1+Debian9 make_3.81-8.2 man-db_2.6.3-3 mawk_1.3.3-17 mime-support_3.52-2 mount_2.20.1-5.3 multiarch-support_2.13-38 mysql-common_5.5.29+dfsg-1 ncurses-base_5.9-10 ncurses-bin_5.9-10 passwd_1:4.1.5.1-1 patch_2.6.1-3 perl_5.14.2-17 perl-base_5.14.2-17 perl-modules_5.14.2-17 po-debconf_1.0.16+nmu2 python_2.7.3-3 python-minimal_2.7.3-3 python2.7_2.7.3-6 python2.7-minimal_2.7.3-6 readline-common_6.2+dfsg-0.1 sbuild-build-depends-core-dummy_0.invalid.0 sbuild-build-depends-medusa-dummy_0.invalid.0 sed_4.2.1-10 sensible-utils_0.0.7 sudo_1.8.5p2-1 sysv-rc_2.88dsf-39 sysvinit_2.88dsf-39 sysvinit-utils_2.88dsf-39 tar_1.26+dfsg-0.1 tzdata_2012j-1 ucf_3.0025+nmu3 util-linux_2.20.1-5.3 uuid-dev_2.20.1-5.3 vim_2:7.3.547-6 vim-common_2:7.3.547-6 vim-runtime_2:7.3.547-6 xz-utils_5.1.1alpha+20120614-2 zlib1g_1:1.2.7.dfsg-13 zlib1g-dev_1:1.2.7.dfsg-13 ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build │ └──────────────────────────────────────────────────────────────────────────────┘ Unpack source ───────────── gpgv: keyblock resource `/sbuild-nonexistent/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Tue May 22 11:28:05 2012 UTC using DSA key ID 0F932C9C gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./medusa_2.0-3.1.dsc dpkg-source: info: extracting medusa in medusa-2.0 dpkg-source: info: unpacking medusa_2.0.orig.tar.gz dpkg-source: info: unpacking medusa_2.0-3.1.debian.tar.gz dpkg-source: info: applying web_form.patch dpkg-source: info: applying as-needed.patch dpkg-source: info: applying sslv2.patch dpkg-source: info: applying g++-4.7.patch Check disc space ──────────────── Sufficient free space for build User Environment ──────────────── HOME=/sbuild-nonexistent LOGNAME=user PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games SCHROOT_CHROOT_NAME=unstable-amd64-sbuild SCHROOT_COMMAND=env SCHROOT_GID=1000 SCHROOT_GROUP=user SCHROOT_SESSION_ID=unstable-amd64-sbuild-37598cef-1ddf-4123-a18c-961a982b7358 SCHROOT_UID=1000 SCHROOT_USER=user SHELL=/bin/sh USER=user dpkg-buildpackage ───────────────── dpkg-buildpackage: source package medusa dpkg-buildpackage: source version 2.0-3.1 dpkg-buildpackage: source changed by Matthias Klose dpkg-source --before-build medusa-2.0 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" 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 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 for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 pcre (Perl Compatible Regular Expressions) support... checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking for main in -lpcre... yes checking for gethostbyname_r... yes checking for library containing clock_gettime... -lrt 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 checking afpfs-ng/afp_protocol.h presence... no checking for afpfs-ng/afp_protocol.h... 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 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... yes checking ncp/nwcalls.h presence... yes checking for ncp/nwcalls.h... yes checking for main in -lncp... yes checking whether to enable NCP module... yes 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... no configure: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: libpq-fe.h: proceeding with the compiler's result 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 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 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 Enabled 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»' cd . && /bin/bash /«PKGBUILDDIR»/missing --run aclocal-1.9 /«PKGBUILDDIR»/missing: line 46: aclocal-1.9: command not found WARNING: `aclocal-1.9' is missing on your system. You should only need it if you modified `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && /bin/bash /«PKGBUILDDIR»/missing --run automake-1.9 --gnu /«PKGBUILDDIR»/missing: line 46: automake-1.9: command not found WARNING: `automake-1.9' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && /bin/bash /«PKGBUILDDIR»/missing --run autoconf /«PKGBUILDDIR»/missing: line 46: autoconf: command not found WARNING: `autoconf' is missing on your system. You should only need it if you modified `configure.in'. You might want to install the `Autoconf' and `GNU m4' packages. Grab them from any GNU archive site. /bin/bash ./config.status --recheck running CONFIG_SHELL=/bin/bash /bin/bash ./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 build_alias=x86_64-linux-gnu host_alias=x86_64-linux-gnu --no-create --no-recursion 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 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 for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 pcre (Perl Compatible Regular Expressions) support... checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking for main in -lpcre... yes checking for gethostbyname_r... yes checking for library containing clock_gettime... -lrt 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... yes checking ncp/nwcalls.h presence... yes checking for ncp/nwcalls.h... yes checking for main in -lncp... yes checking whether to enable NCP module... yes 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 configure: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: libpq-fe.h: proceeding with the compiler's result checking libpq-fe.h presence... no 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 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 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 Enabled 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 /bin/bash ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/modsrc/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands make[1]: Leaving directory `/«PKGBUILDDIR»' make[1]: Entering directory `/«PKGBUILDDIR»' cd . && /bin/bash /«PKGBUILDDIR»/missing --run autoheader /«PKGBUILDDIR»/missing: line 46: autoheader: command not found WARNING: `autoheader' is missing on your system. You should only need it if you modified `acconfig.h' or `configure.in'. You might want to install the `Autoconf' and `GNU m4' packages. Grab them from any GNU archive site. rm -f stamp-h1 touch config.h.in cd . && /bin/bash ./config.status config.h config.status: creating config.h config.status: config.h is unchanged /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' if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT cvs.o -MD -MP -MF ".deps/cvs.Tpo" -c -o cvs.o cvs.c; \ then mv -f ".deps/cvs.Tpo" ".deps/cvs.Po"; else rm -f ".deps/cvs.Tpo"; exit 1; fi 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: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); ^ 4 warnings generated. if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -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; \ then mv -f ".deps/medusa-trace.Tpo" ".deps/medusa-trace.Po"; else rm -f ".deps/medusa-trace.Tpo"; exit 1; fi x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o cvs.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared cvs.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT ftp.o -MD -MP -MF ".deps/ftp.Tpo" -c -o ftp.o ftp.c; \ then mv -f ".deps/ftp.Tpo" ".deps/ftp.Po"; else rm -f ".deps/ftp.Tpo"; exit 1; fi 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:198:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ ftp.c:259:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ftp.c:259:27: note: place parentheses around the assignment to silence this warning while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ^ ( ) ftp.c:259:27: note: use '==' to turn this assignment into an equality comparison while (bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize)) ^ == ftp.c:328:14: warning: implicit declaration of function 'medusaCheckSocket' is invalid in C99 [-Wimplicit-function-declaration] if ( medusaCheckSocket(hSocket) ) ^ ftp.c:193:18: warning: unused variable 'params' [-Wunused-variable] sConnectParams params; ^ ftp.c:398: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 SSL\r\n"); ^~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ ftp.c:399: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ ftp.c:399: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:406:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ftp.c:413: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, "234 ") != NULL) ^~~~~~~~~~ /usr/include/string.h:342:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ ftp.c:436: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ ftp.c:438: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ ftp.c:438: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:444:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ftp.c:452: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ ftp.c:453: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ ftp.c:454: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ ftp.c:465: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ ftp.c:467: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ ftp.c:467: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:473:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ftp.c:483: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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ ftp.c:483: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ftp.c:483: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:483: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ftp.c:483: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:483: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:483: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ftp.c:483: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: note: passing argument to parameter '__s1' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ ftp.c:490: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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ ftp.c:490: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ftp.c:490: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:490: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ftp.c:490: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:490: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:490: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ftp.c:490: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: note: passing argument to parameter '__s1' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ ftp.c:497: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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ ftp.c:497: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ftp.c:497: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:497: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ftp.c:497: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:497: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ftp.c:497: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ftp.c:497: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: note: passing argument to parameter '__s1' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ ftp.c:508: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ ftp.c:510: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ ftp.c:510: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:516:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] bufReceive = medusaReceiveRaw(hSocket, &nReceiveBufferSize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ftp.c:536:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 51 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o ftp.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared ftp.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT http.o -MD -MP -MF ".deps/http.Tpo" -c -o http.o http.c; \ then mv -f ".deps/http.Tpo" ".deps/http.Po"; else rm -f ".deps/http.Tpo"; exit 1; fi 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:237:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(_psLogin, psCredSet) == FAILURE) ^ http.c:381: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ http.c:385: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:394: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:402:18: 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")) ^~~~~~~~~~ /usr/include/string.h:373:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:407: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: NTLM")) ^~~~~~~~~~ /usr/include/string.h:373:40: 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:40: 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:40: 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:40: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:518: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:533: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:533: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:540: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ http.c:540: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:544: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:555: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:559: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ http.c:564: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ http.c:567: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:614: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ http.c:617: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:626: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:641: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:641: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:641:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate: Digest ") ) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:641:14: note: place parentheses around the assignment to silence this warning if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate: Digest ") ) ^ ( ) http.c:641:14: note: use '==' to turn this assignment into an equality comparison if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate: Digest ") ) ^ == http.c:645: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:645: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:645: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:645:19: note: place parentheses around the assignment to silence this warning else if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate:Digest ") ) ^ ( ) http.c:645:19: note: use '==' to turn this assignment into an equality comparison else if ( szTmp = (char *)strcasestr(bufReceive, "WWW-Authenticate:Digest ") ) ^ == http.c:654: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ http.c:654: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:658: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ http.c:658: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ http.c:666: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:666: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:673: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:673: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:680: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:694: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:694: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:698: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ http.c:698: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:702: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ http.c:713: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:713: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:717: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ http.c:717: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:721: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ http.c:732: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:732: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:736: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ http.c:736: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:740: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ http.c:750: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:40: note: passing argument to parameter '__haystack' here extern char *strcasestr (__const char *__haystack, __const char *__needle) ^ http.c:750: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:754: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ http.c:754: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:758: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ http.c:818: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ http.c:821: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ http.c:824: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ http.c:827: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ http.c:837: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ http.c:842: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ http.c:845: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:586:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ http.c:853:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ http.c:867:7: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(*login, szPassword); ^ 80 warnings generated. if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT ntlm.o -MD -MP -MF ".deps/ntlm.Tpo" -c -o ntlm.o ntlm.c; \ then mv -f ".deps/ntlm.Tpo" ".deps/ntlm.Po"; else rm -f ".deps/ntlm.Tpo"; exit 1; fi if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT http-digest.o -MD -MP -MF ".deps/http-digest.Tpo" -c -o http-digest.o http-digest.c; \ then mv -f ".deps/http-digest.Tpo" ".deps/http-digest.Po"; else rm -f ".deps/http-digest.Tpo"; exit 1; fi http-digest.c:59: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); ^~~ ../../src/modsrc/md5.h:26:38: note: passing argument to parameter 'result' here extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); ^ http-digest.c:68: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); ^~~ ../../src/modsrc/md5.h:26:38: note: passing argument to parameter 'result' here extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); ^ http-digest.c:100: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); ^~~ ../../src/modsrc/md5.h:26:38: note: passing argument to parameter 'result' here extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); ^ http-digest.c:119: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); ^~~~~~~~ ../../src/modsrc/md5.h:26:38: note: passing argument to parameter 'result' here extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); ^ 4 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o http.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared http.o ntlm.o http-digest.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT imap.o -MD -MP -MF ".deps/imap.Tpo" -c -o imap.o imap.c; \ then mv -f ".deps/imap.Tpo" ".deps/imap.Po"; else rm -f ".deps/imap.Tpo"; exit 1; fi 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:230:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ imap.c:297:14: warning: implicit declaration of function 'medusaCheckSocket' is invalid in C99 [-Wimplicit-function-declaration] if ( medusaCheckSocket(hSocket) ) ^ imap.c:223:17: warning: unused variable 'bufSend' [-Wunused-variable] unsigned char bufSend[BUF_SIZE]; ^ imap.c:370: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:375: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:393: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:395: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:395: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:411: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:419: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:420: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:420: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:451: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:453: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:453: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:475: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:480: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:485: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:515: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:520: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:523: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:523: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:504:18: warning: unused variable 'szEncodedAuth' [-Wunused-variable] unsigned char* szEncodedAuth = NULL; ^ imap.c:547: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:549: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:549: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:576: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:576: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:580: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:583: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:586: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:586: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:620: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:622: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:622: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:644: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:647: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:650: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:654: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:654: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:670: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ imap.c:670: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:674: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:685: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:688: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap.c:691: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap.c:693: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:736:5: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(*psLogin, szPassword); ^ imap.c:757: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:763: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:769: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:775: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:781: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:787: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ imap.c:728:5: warning: variable 'nRet' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ imap.c:732:7: note: uninitialized use occurs here if (nRet == FAILURE) ^~~~ imap.c:710:11: note: initialize the variable 'nRet' to silence this warning int nRet; ^ = 0 57 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o imap.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared imap.o ntlm.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT mssql.o -MD -MP -MF ".deps/mssql.Tpo" -c -o mssql.o mssql.c; \ then mv -f ".deps/mssql.Tpo" ".deps/mssql.Po"; else rm -f ".deps/mssql.Tpo"; exit 1; fi 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:120:29: warning: unused variable 'pOptTmp' [-Wunused-variable] char *strtok_ptr, *pOpt, *pOptTmp; ^ mssql.c:120:22: warning: unused variable 'pOpt' [-Wunused-variable] char *strtok_ptr, *pOpt, *pOptTmp; ^ mssql.c:120:9: warning: unused variable 'strtok_ptr' [-Wunused-variable] char *strtok_ptr, *pOpt, *pOptTmp; ^ mssql.c:118:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ mssql.c:154:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ mssql.c:146:9: warning: unused variable 'bufReceive' [-Wunused-variable] char* bufReceive = NULL; ^ mssql.c:298: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:322:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (szTmp = strstr(szTmp, "ServerName;")) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mssql.c:322:20: note: place parentheses around the assignment to silence this warning while (szTmp = strstr(szTmp, "ServerName;")) ^ ( ) mssql.c:322:20: note: use '==' to turn this assignment into an equality comparison while (szTmp = strstr(szTmp, "ServerName;")) ^ == mssql.c:482: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:487: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:493: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:512:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 14 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o mssql.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared mssql.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT mysql.o -MD -MP -MF ".deps/mysql.Tpo" -c -o mysql.o mysql.c; \ then mv -f ".deps/mysql.Tpo" ".deps/mysql.Po"; else rm -f ".deps/mysql.Tpo"; exit 1; fi 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:186:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ mysql.c:431:3: warning: implicit declaration of function 'sha1_reset' is invalid in C99 [-Wimplicit-function-declaration] sha1_reset(&sha1_context); ^ mysql.c:443: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:444:3: warning: implicit declaration of function 'sha1_result' is invalid in C99 [-Wimplicit-function-declaration] sha1_result(&sha1_context, hash_stage1); ^ mysql.c:488: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ mysql.c:510:7: warning: unused variable 'login_len' [-Wunused-variable] int login_len = strlen(szLogin) > 16 ? 16 : strlen(szLogin); ^ mysql.c:567: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ mysql.c:593: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:603: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ mysql.c:631: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ mysql.c:631: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ mysql.c:631: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ mysql.c:638: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ mysql.c:638: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ mysql.c:649: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mysql.c:650: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mysql.c:652: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mysql.c:668: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mysql.c:670: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mysql.c:704: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mysql.c:710: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:460: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:719: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:528: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:728: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:738: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:777: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:506: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:785: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:796: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:838:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 30 warnings generated. if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT sha1.o -MD -MP -MF ".deps/sha1.Tpo" -c -o sha1.o sha1.c; \ then mv -f ".deps/sha1.Tpo" ".deps/sha1.Po"; else rm -f ".deps/sha1.Tpo"; exit 1; fi sha1.c:156:5: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned long)' bzero((char*) context->Message_Block,64); ^ sha1.c:156:5: note: please include the header or explicitly provide a declaration for 'bzero' 1 warning generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o mysql.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared mysql.o medusa-trace.o sha1.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT ncp.o -MD -MP -MF ".deps/ncp.Tpo" -c -o ncp.o ncp.c; \ then mv -f ".deps/ncp.Tpo" ".deps/ncp.Po"; else rm -f ".deps/ncp.Tpo"; exit 1; fi ncp.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); ^ ncp.c:100: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); ^ ncp.c:189:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ ncp.c:412:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 4 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o ncp.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared ncp.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT nntp.o -MD -MP -MF ".deps/nntp.Tpo" -c -o nntp.o nntp.c; \ then mv -f ".deps/nntp.Tpo" ".deps/nntp.Po"; else rm -f ".deps/nntp.Tpo"; exit 1; fi 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: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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:36: 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:36: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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:36: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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:36: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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:36: 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:36: 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:36: 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:36: 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); ^ 29 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o nntp.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared nntp.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT pcanywhere.o -MD -MP -MF ".deps/pcanywhere.Tpo" -c -o pcanywhere.o pcanywhere.c; \ then mv -f ".deps/pcanywhere.Tpo" ".deps/pcanywhere.Po"; else rm -f ".deps/pcanywhere.Tpo"; exit 1; fi 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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ 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:36: 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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:36: 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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:36: 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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:313:7: warning: unused variable 'iRet' [-Wunused-variable] int iRet; ^ 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:36: 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:36: 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:36: 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:36: 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); ^ pcanywhere.c:563:7: warning: unused variable 'nSendBufferSize' [-Wunused-variable] int nSendBufferSize = 0; ^ pcanywhere.c:561:17: warning: unused variable 'bufSend' [-Wunused-variable] unsigned char bufSend[BUF_SIZE]; ^ 36 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o pcanywhere.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared pcanywhere.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT pop3.o -MD -MP -MF ".deps/pop3.Tpo" -c -o pop3.o pop3.c; \ then mv -f ".deps/pop3.Tpo" ".deps/pop3.Po"; else rm -f ".deps/pop3.Tpo"; exit 1; fi 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:216:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ pop3.c:288: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.c:289: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:289: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:306: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:342:14: warning: implicit declaration of function 'medusaCheckSocket' is invalid in C99 [-Wimplicit-function-declaration] if ( medusaCheckSocket(hSocket) ) ^ pop3.c:411: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.c:413: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:413: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:425: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:430: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:432: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:437: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:442: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:406:7: warning: unused variable 'nSendBufferSize' [-Wunused-variable] int nSendBufferSize = 0; ^ pop3.c:470: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.c:472: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.c:474: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:474: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: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, " signing off.")) ^~~~~~~~~~ /usr/include/string.h:342:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:491: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:496: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:504: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.c:506: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:506: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:538: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ pop3.c:539: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ pop3.c:540: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ pop3.c:544: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:544: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:547: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:548: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:550: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.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); ^ pop3.c:524:18: warning: unused variable 'bufReceive' [-Wunused-variable] unsigned char* bufReceive = NULL; ^ pop3.c:529:7: warning: unused variable 'nReceiveBufferSize' [-Wunused-variable] int nReceiveBufferSize = 0; ^ pop3.c:530:7: warning: unused variable 'nRet' [-Wunused-variable] int nRet = SUCCESS; ^ pop3.c:586: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.c:588: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:588: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:601: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:607: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ pop3.c:607: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:609: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:610: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:612: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:612: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:623: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:624: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/string2.h:785:52: note: expanded from macro 'strncat' # define strncat(dest, src, n) __builtin_strncat (dest, src, n) ^ pop3.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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.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); ^ pop3.c:639: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ pop3.c:639: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:641: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:642: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:644: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:644: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:655: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:656: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/string2.h:785:52: note: expanded from macro 'strncat' # define strncat(dest, src, n) __builtin_strncat (dest, src, n) ^ pop3.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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.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); ^ pop3.c:577:7: warning: unused variable 'nSendBufferSize' [-Wunused-variable] int nSendBufferSize = 0; ^ pop3.c:579:7: warning: unused variable 'nRet' [-Wunused-variable] int nRet = SUCCESS; ^ pop3.c:689: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.c:691: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:691: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: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); ^ pop3.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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.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, "%s\r\n", szTmpBuf64); ^~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.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); ^ pop3.c:738: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ pop3.c:738: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:742: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:752: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:755: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ pop3.c:758: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ pop3.c:760: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:807:5: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(*psLogin, szPassword); ^ pop3.c:825: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:839: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:845: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:851: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:857: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ pop3.c:863: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ 88 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o pop3.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared pop3.o ntlm.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT postgres.o -MD -MP -MF ".deps/postgres.Tpo" -c -o postgres.o postgres.c; \ then mv -f ".deps/postgres.Tpo" ".deps/postgres.Po"; else rm -f ".deps/postgres.Tpo"; exit 1; fi 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: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); ^ 4 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o postgres.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared postgres.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT rexec.o -MD -MP -MF ".deps/rexec.Tpo" -c -o rexec.o rexec.c; \ then mv -f ".deps/rexec.Tpo" ".deps/rexec.Po"; else rm -f ".deps/rexec.Tpo"; exit 1; fi 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:93:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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:36: 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:36: 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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ 14 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o rexec.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared rexec.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT rlogin.o -MD -MP -MF ".deps/rlogin.Tpo" -c -o rlogin.o rlogin.c; \ then mv -f ".deps/rlogin.Tpo" ".deps/rlogin.Po"; else rm -f ".deps/rlogin.Tpo"; exit 1; fi 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:92:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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:36: 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:36: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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:36: 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); ^ rlogin.c:219:8: warning: unused variable 'ipaddr_str' [-Wunused-variable] char ipaddr_str[INET_ADDRSTRLEN]; ^ 19 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o rlogin.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared rlogin.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT rsh.o -MD -MP -MF ".deps/rsh.Tpo" -c -o rsh.o rsh.c; \ then mv -f ".deps/rsh.Tpo" ".deps/rsh.Po"; else rm -f ".deps/rsh.Tpo"; exit 1; fi 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:94:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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:36: 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); ^ rsh.c:221:8: warning: unused variable 'ipaddr_str' [-Wunused-variable] char ipaddr_str[INET_ADDRSTRLEN]; ^ 13 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o rsh.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared rsh.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT smbnt.o -MD -MP -MF ".deps/smbnt.Tpo" -c -o smbnt.o smbnt.c; \ then mv -f ".deps/smbnt.Tpo" ".deps/smbnt.Po"; else rm -f ".deps/smbnt.Tpo"; exit 1; fi smbnt.c:194: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:201: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:366:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ smbnt.c:422:13: warning: implicit declaration of function 'NBSSessionRequest' is invalid in C99 [-Wimplicit-function-declaration] if (NBSSessionRequest(hSocket, _psSessionData) < 0) { ^ smbnt.c:428:13: warning: implicit declaration of function 'SMBNegProt' is invalid in C99 [-Wimplicit-function-declaration] if (SMBNegProt(hSocket, _psSessionData) < 0) ^ smbnt.c:357:9: warning: unused variable 'bufReceive' [-Wunused-variable] char *bufReceive = NULL; ^ smbnt.c:358:9: warning: unused variable 'strtok_ptr' [-Wunused-variable] char *strtok_ptr = NULL, *pOpt = NULL, *pOptTmp = NULL; ^ smbnt.c:358:29: warning: unused variable 'pOpt' [-Wunused-variable] char *strtok_ptr = NULL, *pOpt = NULL, *pOptTmp = NULL; ^ smbnt.c:358:43: warning: unused variable 'pOptTmp' [-Wunused-variable] char *strtok_ptr = NULL, *pOpt = NULL, *pOptTmp = NULL; ^ smbnt.c:659: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ smbnt.c:659: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ smbnt.c:722:12: warning: assigning to 'unsigned char *' from 'char [1]' converts between pointers to integer types with different sign [-Wpointer-sign] pass = ""; ^ ~~ smbnt.c:694:17: warning: unused variable 'p21' [-Wunused-variable] unsigned char p21[21]; ^ smbnt.c:695:17: warning: unused variable 'ntlm_response' [-Wunused-variable] unsigned char ntlm_response[24]; ^ smbnt.c:884: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:885: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:887:3: warning: implicit declaration of function 'hmac_md5_final' is invalid in C99 [-Wimplicit-function-declaration] hmac_md5_final(kr_buf, &ctx); ^ smbnt.c:1293: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ smbnt.c:1525: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ smbnt.c:1540: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smbnt.c:1542: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smbnt.c:1285:7: warning: unused variable 'i' [-Wunused-variable] int i, ret; ^ smbnt.c:1436:14: warning: variable 'iByteCount' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] else if (_psSessionData->authLevel == AUTH_NTLMv2) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smbnt.c:1534:26: note: uninitialized use occurs here memcpy(buf + iOffset + iByteCount, szLogin, strlen(szLogin)); ^~~~~~~~~~ smbnt.c:1436:10: note: remove the 'if' if its condition is always true else if (_psSessionData->authLevel == AUTH_NTLMv2) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smbnt.c:1286:17: note: initialize the variable 'iByteCount' to silence this warning int iByteCount, iOffset; ^ = 0 smbnt.c:1436:14: warning: variable 'iOffset' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] else if (_psSessionData->authLevel == AUTH_NTLMv2) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smbnt.c:1534:16: note: uninitialized use occurs here memcpy(buf + iOffset + iByteCount, szLogin, strlen(szLogin)); ^~~~~~~ smbnt.c:1436:10: note: remove the 'if' if its condition is always true else if (_psSessionData->authLevel == AUTH_NTLMv2) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smbnt.c:1286:26: note: initialize the variable 'iOffset' to silence this warning int iByteCount, iOffset; ^ = 0 smbnt.c:1687:5: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), _psSessionData->machine_name); ^ 25 warnings generated. if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT md5.o -MD -MP -MF ".deps/md5.Tpo" -c -o md5.o md5.c; \ then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; exit 1; fi if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT hmacmd5.o -MD -MP -MF ".deps/hmacmd5.Tpo" -c -o hmacmd5.o hmacmd5.c; \ then mv -f ".deps/hmacmd5.Tpo" ".deps/hmacmd5.Po"; else rm -f ".deps/hmacmd5.Tpo"; exit 1; fi x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o smbnt.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared smbnt.o md5.o hmacmd5.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT smtp.o -MD -MP -MF ".deps/smtp.Tpo" -c -o smtp.o smtp.c; \ then mv -f ".deps/smtp.Tpo" ".deps/smtp.Po"; else rm -f ".deps/smtp.Tpo"; exit 1; fi 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:217:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ smtp.c:280:14: warning: implicit declaration of function 'medusaCheckSocket' is invalid in C99 [-Wimplicit-function-declaration] if ( medusaCheckSocket(hSocket) ) ^ smtp.c:363: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smtp.c:365: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:365: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:382: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:390: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smtp.c:391: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:391: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:422: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smtp.c:424: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:424: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:447: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.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 ((strstr(bufReceive,"AUTH=PLAIN") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.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,"AUTH ") != NULL)) ^~~~~~~~~~ /usr/include/string.h:342:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:459: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:464: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:469: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:342:7: warning: unused variable 'iRet' [-Wunused-variable] int iRet; ^ smtp.c:508: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smtp.c:510: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:510: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:529: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ smtp.c:530: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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 + strlen(szLogin) + 1 + strlen(szLogin) + 1, szPassword, strlen(szPassword)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ smtp.c:535: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:535: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:538: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:539: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:541: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smtp.c:544: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:544: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:501:7: warning: unused variable 'nRet' [-Wunused-variable] int nRet = SUCCESS; ^ smtp.c:580: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smtp.c:582: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:582: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:597: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:597: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:597: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ smtp.c:597: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:606: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:607: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:609: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:609: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:623: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smtp.c:626:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] szLoginDomain = szLogin; ^ ~~~~~~~ smtp.c:630: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:631: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:632: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:632: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:632: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: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/string2.h:785:52: note: expanded from macro 'strncat' # define strncat(dest, src, n) __builtin_strncat (dest, src, n) ^ smtp.c:638: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:638: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:652: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:652: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:652: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ smtp.c:652: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:661: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:662: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:664: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:664: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:675: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:676: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/string2.h:785:52: note: expanded from macro 'strncat' # define strncat(dest, src, n) __builtin_strncat (dest, src, n) ^ smtp.c:678: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.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, 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:571:7: warning: unused variable 'nSendBufferSize' [-Wunused-variable] int nSendBufferSize = 0; ^ smtp.c:573:7: warning: unused variable 'nRet' [-Wunused-variable] int nRet = SUCCESS; ^ smtp.c:710: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:713: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:716: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smtp.c:720: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:720: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:737: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:35: note: passing argument to parameter '__s' here extern char *index (__const char *__s, int __c) ^ smtp.c:737: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:741: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:751: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:754: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ smtp.c:757: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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ smtp.c:759: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:799:5: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(*psLogin, szPassword); ^ smtp.c:813: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:820: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:827: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ smtp.c:833: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ 87 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o smtp.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared smtp.o ntlm.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT smtp-vrfy.o -MD -MP -MF ".deps/smtp-vrfy.Tpo" -c -o smtp-vrfy.o smtp-vrfy.c; \ then mv -f ".deps/smtp-vrfy.Tpo" ".deps/smtp-vrfy.Po"; else rm -f ".deps/smtp-vrfy.Tpo"; exit 1; fi 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: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, "EHLO %.250s\r\n", _psSessionData->szEHLO); ^~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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:36: 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:36: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: 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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: 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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: 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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: 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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: 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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: 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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: 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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: 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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: 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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: 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:36: 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); ^ 62 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o smtp-vrfy.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared smtp-vrfy.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT snmp.o -MD -MP -MF ".deps/snmp.Tpo" -c -o snmp.o snmp.c; \ then mv -f ".deps/snmp.Tpo" ".deps/snmp.Po"; else rm -f ".deps/snmp.Tpo"; exit 1; fi 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:243:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ snmp.c:297:9: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(psLogin, psCredSet->pPass); ^ snmp.c:534: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:603: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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:626: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); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ snmp.c:622:9: warning: unused variable 'szPasswordTmp1' [-Wunused-variable] char *szPasswordTmp1 = NULL; ^ snmp.c:623:9: warning: unused variable 'szPasswordTmp2' [-Wunused-variable] char *szPasswordTmp2 = NULL; ^ 10 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o snmp.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared snmp.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT ssh.o -MD -MP -MF ".deps/ssh.Tpo" -c -o ssh.o ssh.c; \ then mv -f ".deps/ssh.Tpo" ".deps/ssh.Po"; else rm -f ".deps/ssh.Tpo"; exit 1; fi ssh.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); ^ ssh.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); ^ ssh.c:228:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ ssh.c:313:19: warning: implicit declaration of function 'addMissedCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (addMissedCredSet(psLogin, psCredSet) == SUCCESS) ^ ssh.c:528:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 5 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o ssh.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared ssh.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT svn.o -MD -MP -MF ".deps/svn.Tpo" -c -o svn.o svn.c; \ then mv -f ".deps/svn.Tpo" ".deps/svn.Po"; else rm -f ".deps/svn.Tpo"; exit 1; fi 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:172:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ svn.c:294: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:315:3: warning: 'svn_client_get_simple_prompt_provider' is deprecated [-Wdeprecated-declarations] svn_client_get_simple_prompt_provider (&provider, svn_prompt_callback, NULL, 0, pool); ^ /usr/include/subversion-1/svn_client.h:103:1: note: 'svn_client_get_simple_prompt_provider' declared here svn_client_get_simple_prompt_provider( ^ svn.c:330: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:4953:1: note: 'svn_client_ls' declared here svn_client_ls(apr_hash_t **dirents, ^ svn.c:365:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 7 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o svn.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared svn.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT telnet.o -MD -MP -MF ".deps/telnet.Tpo" -c -o telnet.o telnet.c; \ then mv -f ".deps/telnet.Tpo" ".deps/telnet.Po"; else rm -f ".deps/telnet.Tpo"; exit 1; fi 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:197:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(_psLogin, psCredSet) == FAILURE) ^ telnet.c:239:9: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(_psLogin, psCredSet->pPass); ^ telnet.c:796: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:792:9: warning: unused variable 'bufReceive' [-Wunused-variable] char* bufReceive = NULL; ^ telnet.c:793:7: warning: unused variable 'nReceiveBufferSize' [-Wunused-variable] int nReceiveBufferSize = 0; ^ telnet.c:839: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:844: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); ^ 9 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o telnet.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared telnet.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT vmauthd.o -MD -MP -MF ".deps/vmauthd.Tpo" -c -o vmauthd.o vmauthd.c; \ then mv -f ".deps/vmauthd.Tpo" ".deps/vmauthd.Po"; else rm -f ".deps/vmauthd.Tpo"; exit 1; fi 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:103:22: warning: unused variable 'pOpt' [-Wunused-variable] char *strtok_ptr, *pOpt, *pOptTmp; ^ vmauthd.c:103:29: warning: unused variable 'pOptTmp' [-Wunused-variable] char *strtok_ptr, *pOpt, *pOptTmp; ^ vmauthd.c:102:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ vmauthd.c:103:9: warning: unused variable 'strtok_ptr' [-Wunused-variable] char *strtok_ptr, *pOpt, *pOptTmp; ^ 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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ vmauthd.c:238:7: warning: unused variable 'iRet' [-Wunused-variable] int iRet; ^ 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ 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:37: 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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: 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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: 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:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: 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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816: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:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818: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:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: 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); ^ 32 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o vmauthd.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared vmauthd.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT vnc.o -MD -MP -MF ".deps/vnc.Tpo" -c -o vnc.o vnc.c; \ then mv -f ".deps/vnc.Tpo" ".deps/vnc.Po"; else rm -f ".deps/vnc.Tpo"; exit 1; fi vnc.c:95: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:102: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:188:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ vnc.c:242:15: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(psLogin, "[NO AUTH REQUIRED]"); ^ vnc.c:483:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (medusaSend(hSocket, pzChallenge, 16, 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); ^ 5 warnings generated. if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT d3des.o -MD -MP -MF ".deps/d3des.Tpo" -c -o d3des.o d3des.c; \ then mv -f ".deps/d3des.Tpo" ".deps/d3des.Po"; else rm -f ".deps/d3des.Tpo"; exit 1; fi x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o vnc.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared vnc.o d3des.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT web-form.o -MD -MP -MF ".deps/web-form.Tpo" -c -o web-form.o web-form.c; \ then mv -f ".deps/web-form.Tpo" ".deps/web-form.Po"; else rm -f ".deps/web-form.Tpo"; exit 1; fi web-form.c:98: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: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); ^ web-form.c:233:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(_psLogin, psCredSet) == FAILURE) ^ web-form.c:275:11: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult(_psLogin, psCredSet->pPass); ^ web-form.c:506:5: warning: variable 'nRet' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ web-form.c:510:7: note: uninitialized use occurs here if (nRet == FAILURE) ^~~~ web-form.c:493:31: note: initialize the variable 'nRet' to silence this warning int nReceiveBufferSize, nRet; ^ = 0 5 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o web-form.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared web-form.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT wrapper.o -MD -MP -MF ".deps/wrapper.Tpo" -c -o wrapper.o wrapper.c; \ then mv -f ".deps/wrapper.Tpo" ".deps/wrapper.Po"; else rm -f ".deps/wrapper.Tpo"; exit 1; fi 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:171: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ wrapper.c:185: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ wrapper.c:219:7: warning: implicit declaration of function 'getNextCredSet' is invalid in C99 [-Wimplicit-function-declaration] if (getNextCredSet(psLogin, psCredSet) == FAILURE) ^ wrapper.c:245: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ wrapper.c:254: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ wrapper.c:267: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ wrapper.c:267:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (szTmp = strstr(_psSessionData->szCmdParam, "%H")) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:267:19: note: place parentheses around the assignment to silence this warning if (szTmp = strstr(_psSessionData->szCmdParam, "%H")) ^ ( ) wrapper.c:267:19: note: use '==' to turn this assignment into an equality comparison if (szTmp = strstr(_psSessionData->szCmdParam, "%H")) ^ == wrapper.c:271: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ wrapper.c:286:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (szTmp = strstr(szCmdTmp, "%U")) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:286:19: note: place parentheses around the assignment to silence this warning if (szTmp = strstr(szCmdTmp, "%U")) ^ ( ) wrapper.c:286:19: note: use '==' to turn this assignment into an equality comparison if (szTmp = strstr(szCmdTmp, "%U")) ^ == wrapper.c:290: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ wrapper.c:291: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ 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 + nCmdPartLength + strlen(psCredSet->psUser->pUser), szTmp + 2, strlen(szTmp) - 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ wrapper.c:305: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:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ wrapper.c:309: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ wrapper.c:313: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ wrapper.c:330: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ wrapper.c:330: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ wrapper.c:331: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ wrapper.c:331: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:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ wrapper.c:332: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/x86_64-linux-gnu/bits/string2.h:761:63: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ wrapper.c:332: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/string2.h:761:52: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ wrapper.c:332: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/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ wrapper.c:333: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/string2.h:785:52: note: expanded from macro 'strncat' # define strncat(dest, src, n) __builtin_strncat (dest, src, n) ^ wrapper.c:334: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/x86_64-linux-gnu/bits/string2.h:785:63: note: expanded from macro 'strncat' # define strncat(dest, src, n) __builtin_strncat (dest, src, n) ^ /usr/include/string.h:399:37: 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] strncat(_psSessionData->szCmdFull, _psSessionData->szCmdParamFull, strlen(_psSessionData->szCmdParamFull)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:785:52: note: expanded from macro 'strncat' # define strncat(dest, src, n) __builtin_strncat (dest, src, n) ^ 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] strncat(_psSessionData->szCmdFull, _psSessionData->szCmdParamFull, strlen(_psSessionData->szCmdParamFull)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:785:58: note: expanded from macro 'strncat' # define strncat(dest, src, n) __builtin_strncat (dest, src, n) ^ 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>&2", 5); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:785:52: note: expanded from macro 'strncat' # define strncat(dest, src, n) __builtin_strncat (dest, src, n) ^ wrapper.c:340:16: warning: implicit declaration of function 'initProcess' is invalid in C99 [-Wimplicit-function-declaration] iRet = initProcess(_psSessionData); ^ wrapper.c:372:16: warning: implicit declaration of function 'closeProcess' is invalid in C99 [-Wimplicit-function-declaration] iRet = closeProcess(_psSessionData); ^ wrapper.c:214:18: warning: unused variable 'params' [-Wunused-variable] sConnectParams params; ^ wrapper.c:449: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:269:46: note: passing argument to parameter '__filename' here extern FILE *fopen (__const char *__restrict __filename, ^ wrapper.c:458: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:34: note: passing argument to parameter '__command' here extern int system (__const char *__command) __wur; ^ wrapper.c:489:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ wrapper.c:580:3: warning: implicit declaration of function 'setPassResult' is invalid in C99 [-Wimplicit-function-declaration] setPassResult((*psLogin), szPassword); ^ 36 warnings generated. x86_64-linux-gnu-gcc -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -L/usr/local/lib -rdynamic -o wrapper.mod -fPIC -lncp -lpq -lssh2 -lsvn_client-1 -shared wrapper.o medusa-trace.o -lcrypto -lrt -lpcre -lpthread -lssl -lcrypto -ldl -lrt -lm make[4]: Leaving directory `/«PKGBUILDDIR»/src/modsrc' make[4]: Entering directory `/«PKGBUILDDIR»/src' if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT listModules.o -MD -MP -MF ".deps/listModules.Tpo" -c -o listModules.o listModules.c; \ then mv -f ".deps/listModules.Tpo" ".deps/listModules.Po"; else rm -f ".deps/listModules.Tpo"; exit 1; fi 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. if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -Wall -g -O2 -g -DDEBUG -fPIC -I/usr/local/include -I/usr/local/ssl/include -I/usr/include/subversion-1 -I/usr/include/postgresql -I/usr/include/pgsql -I/usr/include/afpfs-ng -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -MT medusa.o -MD -MP -MF ".deps/medusa.Tpo" -c -o medusa.o medusa.c; \ then mv -f ".deps/medusa.Tpo" ".deps/medusa.Po"; else rm -f ".deps/medusa.Tpo"; exit 1; fi medusa.c:57:3: warning: implicit declaration of function 'writeVerbose' is invalid in C99 [-Wimplicit-function-declaration] writeVerbose(VB_NONE, ""); ^ medusa.c:138: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:298: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:332:11: warning: implicit declaration of function 'invokeModule' is invalid in C99 [-Wimplicit-function-declaration] ret = invokeModule(_psAudit->pModuleName, NULL, NULL, NULL); ^ medusa.c:101:16: warning: unused variable 'opterr' [-Wunused-variable] extern int opterr; ^ medusa.c:878:9: warning: variable 'pComboTmp' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (_psAudit->pGlobalCombo) ^~~~~~~~~~~~~~~~~~~~~~ medusa.c:891:13: note: uninitialized use occurs here pPass = pComboTmp; ^~~~~~~~~ medusa.c:878:5: note: remove the 'if' if its condition is always true if (_psAudit->pGlobalCombo) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ medusa.c:873:18: note: initialize the variable 'pComboTmp' to silence this warning char *pComboTmp; ^ = NULL medusa.c:904:7: warning: unused variable 'res' [-Wunused-variable] int res; ^ medusa.c:1430:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ medusa.c:1489:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ medusa.c:1566:5: error: non-void function 'startLoginThreadPool' should return a value [-Wreturn-type] return; ^ medusa.c:1576:7: error: non-void function 'startLoginThreadPool' should return a value [-Wreturn-type] return; ^ medusa.c:1618:7: error: non-void function 'startLoginThreadPool' should return a value [-Wreturn-type] return; ^ medusa.c:1654:7: error: non-void function 'startLoginThreadPool' should return a value [-Wreturn-type] return; ^ medusa.c:1682:3: error: non-void function 'startLoginThreadPool' should return a value [-Wreturn-type] return; ^ medusa.c:1748:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (szResumeMap = strstr(_psAudit->pOptResume, szTmp1)) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ medusa.c:1748:28: note: place parentheses around the assignment to silence this warning else if (szResumeMap = strstr(_psAudit->pOptResume, szTmp1)) ^ ( ) medusa.c:1748:28: note: use '==' to turn this assignment into an equality comparison else if (szResumeMap = strstr(_psAudit->pOptResume, szTmp1)) ^ == 10 warnings and 5 errors generated. make[4]: *** [medusa.o] Error 1 make[4]: Leaving directory `/«PKGBUILDDIR»/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/«PKGBUILDDIR»/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/«PKGBUILDDIR»' make[1]: *** [all] Error 2 make: *** [build-stamp] Error 2 make[1]: Leaving directory `/«PKGBUILDDIR»' dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2 ──────────────────────────────────────────────────────────────────────────────── Build finished at 20130131-1902 Finished ──────── E: Build failure (dpkg-buildpackage died) ┌──────────────────────────────────────────────────────────────────────────────┐ │ Cleanup │ └──────────────────────────────────────────────────────────────────────────────┘ Purging /«BUILDDIR» Not cleaning session: cloned chroot in use ┌──────────────────────────────────────────────────────────────────────────────┐ │ Summary │ └──────────────────────────────────────────────────────────────────────────────┘ Architecture: amd64 Build-Space: 5928 Build-Time: 28 Distribution: unstable Fail-Stage: build Install-Time: 10 Job: medusa_2.0-3.1 Package: medusa Package-Time: 63 Source-Version: 2.0-3.1 Space: 5928 Status: attempted Version: 2.0-3.1 ──────────────────────────────────────────────────────────────────────────────── Finished at 20130131-1902 Build needed 00:01:03, 5928k disc space DC-Status: Failed 65.024911s