I: pbuilder: network access will be disabled during build I: Current time: Sun Jul 26 16:54:44 +14 2020 I: pbuilder-time-stamp: 1595732084 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [socks4-server_4.3.beta2-20.dsc] I: copying [./socks4-server_4.3.beta2.orig.tar.gz] I: copying [./socks4-server_4.3.beta2-20.diff.gz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error gpgv: Signature made Sat Sep 3 07:55:44 2016 +14 gpgv: using RSA key BA9C78061DDD8C9B gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./socks4-server_4.3.beta2-20.dsc dpkg-source: info: extracting socks4-server in socks4-server-4.3.beta2 dpkg-source: info: unpacking socks4-server_4.3.beta2.orig.tar.gz dpkg-source: info: applying socks4-server_4.3.beta2-20.diff.gz dpkg-source: info: upstream files that have been modified: socks4-server-4.3.beta2/Makefile socks4-server-4.3.beta2/doc/sockd.8 socks4-server-4.3.beta2/include/socks.h socks4-server-4.3.beta2/lib/Makefile socks4-server-4.3.beta2/lib/Rconnect.c socks4-server-4.3.beta2/lib/Rconnect.c,v socks4-server-4.3.beta2/libident/id_open.c socks4-server-4.3.beta2/libident/id_open.c,v socks4-server-4.3.beta2/mkfc/Makefile socks4-server-4.3.beta2/rfinger/Makefile socks4-server-4.3.beta2/rfinger/finger.c socks4-server-4.3.beta2/rftp/Makefile socks4-server-4.3.beta2/rftp/cmds.c socks4-server-4.3.beta2/rftp/domacro.c socks4-server-4.3.beta2/rftp/ftp.c socks4-server-4.3.beta2/rftp/ftp_var.h socks4-server-4.3.beta2/rftp/glob.c socks4-server-4.3.beta2/rftp/ruserpass.c socks4-server-4.3.beta2/rtelnet/Config.local socks4-server-4.3.beta2/rtelnet/Makefile socks4-server-4.3.beta2/rtelnet/libtelnet/Makefile socks4-server-4.3.beta2/rtelnet/telnet/Makefile socks4-server-4.3.beta2/rtelnet/telnet/commands.c socks4-server-4.3.beta2/rtelnet/telnet/externs.h socks4-server-4.3.beta2/rtelnet/telnet/sys_bsd.c socks4-server-4.3.beta2/runsocks/Makefile socks4-server-4.3.beta2/runsocks/README.runsocks socks4-server-4.3.beta2/runsocks/accept.c socks4-server-4.3.beta2/runsocks/bind.c socks4-server-4.3.beta2/runsocks/connect.c socks4-server-4.3.beta2/runsocks/gethostbyname.c socks4-server-4.3.beta2/runsocks/listen.c socks4-server-4.3.beta2/runsocks/runsocks socks4-server-4.3.beta2/runsocks/wrap.c socks4-server-4.3.beta2/runsocks/wrap.h socks4-server-4.3.beta2/sockd/Makefile I: using fakeroot in build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/4334/tmp/hooks/D01_modify_environment starting debug: Running on wbq0. I: Changing host+domainname to test build reproducibility I: Adding a custom variable just for the fun of it... I: Changing /bin/sh to bash Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' I: Setting pbuilder2's login shell to /bin/bash I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other I: user script /srv/workspace/pbuilder/4334/tmp/hooks/D01_modify_environment finished I: user script /srv/workspace/pbuilder/4334/tmp/hooks/D02_print_environment starting I: set BASH=/bin/sh BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_LINENO=([0]="12" [1]="0") BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") BASH_VERSION='5.0.3(1)-release' BUILDDIR=/build BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' BUILDUSERNAME=pbuilder2 BUILD_ARCH=armhf DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4' DIRSTACK=() DISTRIBUTION= EUID=0 FUNCNAME=([0]="Echo" [1]="main") GROUPS=() HOME=/root HOSTNAME=i-capture-the-hostname HOSTTYPE=arm HOST_ARCH=armhf IFS=' ' INVOCATION_ID=6716fb094f3641eab2fe55cb52e16b2f LANG=C LANGUAGE=it_CH:it LC_ALL=C MACHTYPE=arm-unknown-linux-gnueabihf MAIL=/var/mail/root OPTERR=1 OPTIND=1 OSTYPE=linux-gnueabihf PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path PBCURRENTCOMMANDLINEOPERATION=build PBUILDER_OPERATION=build PBUILDER_PKGDATADIR=/usr/share/pbuilder PBUILDER_PKGLIBDIR=/usr/lib/pbuilder PBUILDER_SYSCONFDIR=/etc PIPESTATUS=([0]="0") POSIXLY_CORRECT=y PPID=4334 PS4='+ ' PWD=/ SHELL=/bin/bash SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix SHLVL=3 SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.ceYfWENTp4/pbuilderrc_9AUq --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.ceYfWENTp4/b2 --logfile b2/build.log socks4-server_4.3.beta2-20.dsc' SUDO_GID=115 SUDO_UID=111 SUDO_USER=jenkins TERM=unknown TZ=/usr/share/zoneinfo/Etc/GMT-14 UID=0 USER=root _='I: set' http_proxy=http://10.0.0.15:8000/ I: uname -a Linux i-capture-the-hostname 4.19.0-9-armmp #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) armv7l GNU/Linux I: ls -l /bin total 3328 -rwxr-xr-x 1 root root 767656 Apr 18 2019 bash -rwxr-xr-x 3 root root 26052 Jul 11 2019 bunzip2 -rwxr-xr-x 3 root root 26052 Jul 11 2019 bzcat lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep -rwxr-xr-x 3 root root 26052 Jul 11 2019 bzip2 -rwxr-xr-x 1 root root 9636 Jul 11 2019 bzip2recover lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore -rwxr-xr-x 1 root root 22432 Mar 1 2019 cat -rwxr-xr-x 1 root root 38868 Mar 1 2019 chgrp -rwxr-xr-x 1 root root 38836 Mar 1 2019 chmod -rwxr-xr-x 1 root root 42972 Mar 1 2019 chown -rwxr-xr-x 1 root root 88376 Mar 1 2019 cp -rwxr-xr-x 1 root root 75516 Jan 18 2019 dash -rwxr-xr-x 1 root root 71648 Mar 1 2019 date -rwxr-xr-x 1 root root 51212 Mar 1 2019 dd -rwxr-xr-x 1 root root 55672 Mar 1 2019 df -rwxr-xr-x 1 root root 88444 Mar 1 2019 dir -rwxr-xr-x 1 root root 54872 Jan 10 2019 dmesg lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname -rwxr-xr-x 1 root root 22364 Mar 1 2019 echo -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep -rwxr-xr-x 1 root root 18260 Mar 1 2019 false -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep -rwxr-xr-x 1 root root 47356 Jan 10 2019 findmnt -rwsr-xr-x 1 root root 21980 Apr 23 09:38 fusermount -rwxr-xr-x 1 root root 124508 Jan 8 2019 grep -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe -rwxr-xr-x 1 root root 64232 Jan 6 2019 gzip -rwxr-xr-x 1 root root 13784 Sep 27 2018 hostname -rwxr-xr-x 1 root root 43044 Mar 1 2019 ln -rwxr-xr-x 1 root root 34932 Jul 27 2018 login -rwxr-xr-x 1 root root 88444 Mar 1 2019 ls -rwxr-xr-x 1 root root 67036 Jan 10 2019 lsblk -rwxr-xr-x 1 root root 47168 Mar 1 2019 mkdir -rwxr-xr-x 1 root root 43040 Mar 1 2019 mknod -rwxr-xr-x 1 root root 26552 Mar 1 2019 mktemp -rwxr-xr-x 1 root root 26024 Jan 10 2019 more -rwsr-xr-x 1 root root 34268 Jan 10 2019 mount -rwxr-xr-x 1 root root 9688 Jan 10 2019 mountpoint -rwxr-xr-x 1 root root 84284 Mar 1 2019 mv lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 -rwxr-xr-x 1 root root 22416 Mar 1 2019 pwd lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash -rwxr-xr-x 1 root root 26504 Mar 1 2019 readlink -rwxr-xr-x 1 root root 42968 Mar 1 2019 rm -rwxr-xr-x 1 root root 26496 Mar 1 2019 rmdir -rwxr-xr-x 1 root root 14136 Jan 22 2019 run-parts -rwxr-xr-x 1 root root 76012 Dec 23 2018 sed lrwxrwxrwx 1 root root 4 Jul 26 16:55 sh -> bash lrwxrwxrwx 1 root root 4 Jul 24 22:27 sh.distrib -> dash -rwxr-xr-x 1 root root 22384 Mar 1 2019 sleep -rwxr-xr-x 1 root root 51124 Mar 1 2019 stty -rwsr-xr-x 1 root root 42472 Jan 10 2019 su -rwxr-xr-x 1 root root 22392 Mar 1 2019 sync -rwxr-xr-x 1 root root 283324 Apr 24 2019 tar -rwxr-xr-x 1 root root 9808 Jan 22 2019 tempfile -rwxr-xr-x 1 root root 63464 Mar 1 2019 touch -rwxr-xr-x 1 root root 18260 Mar 1 2019 true -rwxr-xr-x 1 root root 9636 Apr 23 09:38 ulockmgr_server -rwsr-xr-x 1 root root 21976 Jan 10 2019 umount -rwxr-xr-x 1 root root 22380 Mar 1 2019 uname -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress -rwxr-xr-x 1 root root 88444 Mar 1 2019 vdir -rwxr-xr-x 1 root root 21980 Jan 10 2019 wdctl -rwxr-xr-x 1 root root 946 Jan 22 2019 which lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew I: user script /srv/workspace/pbuilder/4334/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: armhf Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: debhelper (>= 4.2.0), libident-dev, libncurses5-dev dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 18932 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on debhelper (>= 4.2.0); however: Package debhelper is not installed. pbuilder-satisfydepends-dummy depends on libident-dev; however: Package libident-dev is not installed. pbuilder-satisfydepends-dummy depends on libncurses5-dev; however: Package libncurses5-dev is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdmainutils{a} debhelper{a} dh-autoreconf{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libbsd0{a} libcroco3{a} libelf1{a} libfile-stripnondeterminism-perl{a} libglib2.0-0{a} libicu63{a} libident{a} libident-dev{a} libmagic-mgc{a} libmagic1{a} libncurses-dev{a} libncurses5-dev{a} libncurses6{a} libpipeline1{a} libsigsegv2{a} libtool{a} libuchardet0{a} libxml2{a} m4{a} man-db{a} po-debconf{a} sensible-utils{a} The following packages are RECOMMENDED but will NOT be installed: curl libarchive-cpio-perl libglib2.0-data libgpm2 libltdl-dev libmail-sendmail-perl lynx shared-mime-info wget xdg-user-dirs 0 packages upgraded, 37 newly installed, 0 to remove and 0 not upgraded. Need to get 18.5 MB of archives. After unpacking 65.2 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian buster/main armhf libbsd0 armhf 0.9.1-2 [103 kB] Get: 2 http://deb.debian.org/debian buster/main armhf bsdmainutils armhf 11.1.2+b1 [186 kB] Get: 3 http://deb.debian.org/debian buster/main armhf libuchardet0 armhf 0.0.6-3 [62.2 kB] Get: 4 http://deb.debian.org/debian buster/main armhf groff-base armhf 1.22.4-3 [828 kB] Get: 5 http://deb.debian.org/debian buster/main armhf libpipeline1 armhf 1.5.1-2 [26.8 kB] Get: 6 http://deb.debian.org/debian buster/main armhf man-db armhf 2.8.5-2 [1240 kB] Get: 7 http://deb.debian.org/debian buster/main armhf sensible-utils all 0.0.12 [15.8 kB] Get: 8 http://deb.debian.org/debian buster/main armhf libmagic-mgc armhf 1:5.35-4+deb10u1 [242 kB] Get: 9 http://deb.debian.org/debian buster/main armhf libmagic1 armhf 1:5.35-4+deb10u1 [110 kB] Get: 10 http://deb.debian.org/debian buster/main armhf file armhf 1:5.35-4+deb10u1 [65.5 kB] Get: 11 http://deb.debian.org/debian buster/main armhf gettext-base armhf 0.19.8.1-9 [118 kB] Get: 12 http://deb.debian.org/debian buster/main armhf libsigsegv2 armhf 2.12-2 [32.1 kB] Get: 13 http://deb.debian.org/debian buster/main armhf m4 armhf 1.4.18-2 [190 kB] Get: 14 http://deb.debian.org/debian buster/main armhf autoconf all 2.69-11 [341 kB] Get: 15 http://deb.debian.org/debian buster/main armhf autotools-dev all 20180224.1 [77.0 kB] Get: 16 http://deb.debian.org/debian buster/main armhf automake all 1:1.16.1-4 [771 kB] Get: 17 http://deb.debian.org/debian buster/main armhf autopoint all 0.19.8.1-9 [434 kB] Get: 18 http://deb.debian.org/debian buster/main armhf libtool all 2.4.6-9 [547 kB] Get: 19 http://deb.debian.org/debian buster/main armhf dh-autoreconf all 19 [16.9 kB] Get: 20 http://deb.debian.org/debian buster/main armhf libarchive-zip-perl all 1.64-1 [96.8 kB] Get: 21 http://deb.debian.org/debian buster/main armhf libfile-stripnondeterminism-perl all 1.1.2-1 [19.8 kB] Get: 22 http://deb.debian.org/debian buster/main armhf dh-strip-nondeterminism all 1.1.2-1 [13.0 kB] Get: 23 http://deb.debian.org/debian buster/main armhf libelf1 armhf 0.176-1.1 [158 kB] Get: 24 http://deb.debian.org/debian buster/main armhf dwz armhf 0.12-3 [72.0 kB] Get: 25 http://deb.debian.org/debian buster/main armhf libglib2.0-0 armhf 2.58.3-2+deb10u2 [1101 kB] Get: 26 http://deb.debian.org/debian buster/main armhf libicu63 armhf 63.1-6+deb10u1 [8005 kB] Get: 27 http://deb.debian.org/debian buster/main armhf libxml2 armhf 2.9.4+dfsg1-7+b3 [595 kB] Get: 28 http://deb.debian.org/debian buster/main armhf libcroco3 armhf 0.6.12-3 [133 kB] Get: 29 http://deb.debian.org/debian buster/main armhf libncurses6 armhf 6.1+20181013-2+deb10u2 [79.8 kB] Get: 30 http://deb.debian.org/debian buster/main armhf gettext armhf 0.19.8.1-9 [1242 kB] Get: 31 http://deb.debian.org/debian buster/main armhf intltool-debian all 0.35.0+20060710.5 [26.8 kB] Get: 32 http://deb.debian.org/debian buster/main armhf po-debconf all 1.0.21 [248 kB] Get: 33 http://deb.debian.org/debian buster/main armhf debhelper all 12.1.1 [1016 kB] Get: 34 http://deb.debian.org/debian buster/main armhf libident armhf 0.22-3.1 [11.5 kB] Get: 35 http://deb.debian.org/debian buster/main armhf libident-dev armhf 0.22-3.1 [7856 B] Get: 36 http://deb.debian.org/debian buster/main armhf libncurses-dev armhf 6.1+20181013-2+deb10u2 [295 kB] Get: 37 http://deb.debian.org/debian buster/main armhf libncurses5-dev armhf 6.1+20181013-2+deb10u2 [948 B] Fetched 18.5 MB in 2s (10.9 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:armhf. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 18932 files and directories currently installed.) Preparing to unpack .../00-libbsd0_0.9.1-2_armhf.deb ... Unpacking libbsd0:armhf (0.9.1-2) ... Selecting previously unselected package bsdmainutils. Preparing to unpack .../01-bsdmainutils_11.1.2+b1_armhf.deb ... Unpacking bsdmainutils (11.1.2+b1) ... Selecting previously unselected package libuchardet0:armhf. Preparing to unpack .../02-libuchardet0_0.0.6-3_armhf.deb ... Unpacking libuchardet0:armhf (0.0.6-3) ... Selecting previously unselected package groff-base. Preparing to unpack .../03-groff-base_1.22.4-3_armhf.deb ... Unpacking groff-base (1.22.4-3) ... Selecting previously unselected package libpipeline1:armhf. Preparing to unpack .../04-libpipeline1_1.5.1-2_armhf.deb ... Unpacking libpipeline1:armhf (1.5.1-2) ... Selecting previously unselected package man-db. Preparing to unpack .../05-man-db_2.8.5-2_armhf.deb ... Unpacking man-db (2.8.5-2) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../06-sensible-utils_0.0.12_all.deb ... Unpacking sensible-utils (0.0.12) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../07-libmagic-mgc_1%3a5.35-4+deb10u1_armhf.deb ... Unpacking libmagic-mgc (1:5.35-4+deb10u1) ... Selecting previously unselected package libmagic1:armhf. Preparing to unpack .../08-libmagic1_1%3a5.35-4+deb10u1_armhf.deb ... Unpacking libmagic1:armhf (1:5.35-4+deb10u1) ... Selecting previously unselected package file. Preparing to unpack .../09-file_1%3a5.35-4+deb10u1_armhf.deb ... Unpacking file (1:5.35-4+deb10u1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../10-gettext-base_0.19.8.1-9_armhf.deb ... Unpacking gettext-base (0.19.8.1-9) ... Selecting previously unselected package libsigsegv2:armhf. Preparing to unpack .../11-libsigsegv2_2.12-2_armhf.deb ... Unpacking libsigsegv2:armhf (2.12-2) ... Selecting previously unselected package m4. Preparing to unpack .../12-m4_1.4.18-2_armhf.deb ... Unpacking m4 (1.4.18-2) ... Selecting previously unselected package autoconf. Preparing to unpack .../13-autoconf_2.69-11_all.deb ... Unpacking autoconf (2.69-11) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../14-autotools-dev_20180224.1_all.deb ... Unpacking autotools-dev (20180224.1) ... Selecting previously unselected package automake. Preparing to unpack .../15-automake_1%3a1.16.1-4_all.deb ... Unpacking automake (1:1.16.1-4) ... Selecting previously unselected package autopoint. Preparing to unpack .../16-autopoint_0.19.8.1-9_all.deb ... Unpacking autopoint (0.19.8.1-9) ... Selecting previously unselected package libtool. Preparing to unpack .../17-libtool_2.4.6-9_all.deb ... Unpacking libtool (2.4.6-9) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../18-dh-autoreconf_19_all.deb ... Unpacking dh-autoreconf (19) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../19-libarchive-zip-perl_1.64-1_all.deb ... Unpacking libarchive-zip-perl (1.64-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../20-libfile-stripnondeterminism-perl_1.1.2-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.1.2-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../21-dh-strip-nondeterminism_1.1.2-1_all.deb ... Unpacking dh-strip-nondeterminism (1.1.2-1) ... Selecting previously unselected package libelf1:armhf. Preparing to unpack .../22-libelf1_0.176-1.1_armhf.deb ... Unpacking libelf1:armhf (0.176-1.1) ... Selecting previously unselected package dwz. Preparing to unpack .../23-dwz_0.12-3_armhf.deb ... Unpacking dwz (0.12-3) ... Selecting previously unselected package libglib2.0-0:armhf. Preparing to unpack .../24-libglib2.0-0_2.58.3-2+deb10u2_armhf.deb ... Unpacking libglib2.0-0:armhf (2.58.3-2+deb10u2) ... Selecting previously unselected package libicu63:armhf. Preparing to unpack .../25-libicu63_63.1-6+deb10u1_armhf.deb ... Unpacking libicu63:armhf (63.1-6+deb10u1) ... Selecting previously unselected package libxml2:armhf. Preparing to unpack .../26-libxml2_2.9.4+dfsg1-7+b3_armhf.deb ... Unpacking libxml2:armhf (2.9.4+dfsg1-7+b3) ... Selecting previously unselected package libcroco3:armhf. Preparing to unpack .../27-libcroco3_0.6.12-3_armhf.deb ... Unpacking libcroco3:armhf (0.6.12-3) ... Selecting previously unselected package libncurses6:armhf. Preparing to unpack .../28-libncurses6_6.1+20181013-2+deb10u2_armhf.deb ... Unpacking libncurses6:armhf (6.1+20181013-2+deb10u2) ... Selecting previously unselected package gettext. Preparing to unpack .../29-gettext_0.19.8.1-9_armhf.deb ... Unpacking gettext (0.19.8.1-9) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../30-intltool-debian_0.35.0+20060710.5_all.deb ... Unpacking intltool-debian (0.35.0+20060710.5) ... Selecting previously unselected package po-debconf. Preparing to unpack .../31-po-debconf_1.0.21_all.deb ... Unpacking po-debconf (1.0.21) ... Selecting previously unselected package debhelper. Preparing to unpack .../32-debhelper_12.1.1_all.deb ... Unpacking debhelper (12.1.1) ... Selecting previously unselected package libident. Preparing to unpack .../33-libident_0.22-3.1_armhf.deb ... Unpacking libident (0.22-3.1) ... Selecting previously unselected package libident-dev. Preparing to unpack .../34-libident-dev_0.22-3.1_armhf.deb ... Unpacking libident-dev (0.22-3.1) ... Selecting previously unselected package libncurses-dev:armhf. Preparing to unpack .../35-libncurses-dev_6.1+20181013-2+deb10u2_armhf.deb ... Unpacking libncurses-dev:armhf (6.1+20181013-2+deb10u2) ... Selecting previously unselected package libncurses5-dev:armhf. Preparing to unpack .../36-libncurses5-dev_6.1+20181013-2+deb10u2_armhf.deb ... Unpacking libncurses5-dev:armhf (6.1+20181013-2+deb10u2) ... Setting up libpipeline1:armhf (1.5.1-2) ... Setting up libmagic-mgc (1:5.35-4+deb10u1) ... Setting up libarchive-zip-perl (1.64-1) ... Setting up libglib2.0-0:armhf (2.58.3-2+deb10u2) ... No schema files found: doing nothing. Setting up libmagic1:armhf (1:5.35-4+deb10u1) ... Setting up gettext-base (0.19.8.1-9) ... Setting up file (1:5.35-4+deb10u1) ... Setting up libicu63:armhf (63.1-6+deb10u1) ... Setting up autotools-dev (20180224.1) ... Setting up libncurses6:armhf (6.1+20181013-2+deb10u2) ... Setting up libsigsegv2:armhf (2.12-2) ... Setting up autopoint (0.19.8.1-9) ... Setting up sensible-utils (0.0.12) ... Setting up libuchardet0:armhf (0.0.6-3) ... Setting up libbsd0:armhf (0.9.1-2) ... Setting up libelf1:armhf (0.176-1.1) ... Setting up libxml2:armhf (2.9.4+dfsg1-7+b3) ... Setting up libident (0.22-3.1) ... Setting up libfile-stripnondeterminism-perl (1.1.2-1) ... Setting up libncurses-dev:armhf (6.1+20181013-2+deb10u2) ... Setting up libtool (2.4.6-9) ... Setting up m4 (1.4.18-2) ... Setting up bsdmainutils (11.1.2+b1) ... 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 libcroco3:armhf (0.6.12-3) ... Setting up libident-dev (0.22-3.1) ... Setting up autoconf (2.69-11) ... Setting up dwz (0.12-3) ... Setting up groff-base (1.22.4-3) ... Setting up libncurses5-dev:armhf (6.1+20181013-2+deb10u2) ... Setting up automake (1:1.16.1-4) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up gettext (0.19.8.1-9) ... Setting up man-db (2.8.5-2) ... Not building database; man-db/auto-update is not 'true'. Setting up intltool-debian (0.35.0+20060710.5) ... Setting up po-debconf (1.0.21) ... Setting up debhelper (12.1.1) ... Setting up dh-autoreconf (19) ... Setting up dh-strip-nondeterminism (1.1.2-1) ... Processing triggers for libc-bin (2.28-10) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps Reading package lists... Building dependency tree... Reading state information... fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package I: Running cd /build/socks4-server-4.3.beta2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package socks4-server dpkg-buildpackage: info: source version 4.3.beta2-20 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Aurelien Jarno dpkg-source --before-build . dpkg-buildpackage: info: host architecture armhf fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp install-stamp make clean make[1]: Entering directory '/build/socks4-server-4.3.beta2' for i in lib libident sockd rfinger rftp rtelnet runsocks mkfc; do \ ( cd $i ; make clean); done make[2]: Entering directory '/build/socks4-server-4.3.beta2/lib' /build/socks4-server-4.3.beta2/lib rm -f *.o *.lo libsocks.a libsocks.so* core make[2]: Leaving directory '/build/socks4-server-4.3.beta2/lib' make[2]: Entering directory '/build/socks4-server-4.3.beta2/libident' /build/socks4-server-4.3.beta2/libident rm -f libident.a *~ core *.o \#* make[2]: Leaving directory '/build/socks4-server-4.3.beta2/libident' make[2]: Entering directory '/build/socks4-server-4.3.beta2/sockd' /build/socks4-server-4.3.beta2/sockd rm -f *.o libsockd.a sockd rsockd core make[2]: Leaving directory '/build/socks4-server-4.3.beta2/sockd' make[2]: Entering directory '/build/socks4-server-4.3.beta2/rfinger' /build/socks4-server-4.3.beta2/rfinger rm -f finger.o rwhois rfinger core make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rfinger' make[2]: Entering directory '/build/socks4-server-4.3.beta2/rftp' /build/socks4-server-4.3.beta2/rftp rm -f cmds.o cmdtab.o ftp.o glob.o main.o ruserpass.o domacro.o core rftp make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rftp' make[2]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet' /build/socks4-server-4.3.beta2/rtelnet rm -f rtelnet cd libtelnet; make -f Makefile.generic clean make[3]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' rm -f *.o libtelnet.a core a.out make[3]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' cd telnet; make -f Makefile.generic clean make[3]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' rm -f authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o utilities.o core errs l.errs ../rtelnet make[3]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet' make[2]: Entering directory '/build/socks4-server-4.3.beta2/runsocks' rm -f *.o *.so make[2]: Leaving directory '/build/socks4-server-4.3.beta2/runsocks' make[2]: Entering directory '/build/socks4-server-4.3.beta2/mkfc' /build/socks4-server-4.3.beta2/mkfc rm -rf make_socksfc make_sockdfc make_sockdfr dump_socksfc dump_sockdfc dump_sockdfr *.o core make[2]: Leaving directory '/build/socks4-server-4.3.beta2/mkfc' make[1]: Leaving directory '/build/socks4-server-4.3.beta2' rm -f `find . -name "*~"` rm -rf debian/socks4-server debian/libsocks4 debian/socks4-clients `find debian/* -type d` debian/files* core rm -f debian/*substvars dh_clean dh_clean: Compatibility levels before 9 are deprecated (level 5 in use) debian/rules build dh_testdir make make[1]: Entering directory '/build/socks4-server-4.3.beta2' (cd lib; make CC="gcc" GETPASS="getpass.o" \ STRDUP="" OPTIMIZE="-g" \ OTHER_CFLAGS="-DLINUX " \ RANLIB="ranlib") make[2]: Entering directory '/build/socks4-server-4.3.beta2/lib' /build/socks4-server-4.3.beta2/lib gcc -I../include -g -DLINUX -c -o Rconnect.o Rconnect.c Rconnect.c: In function 'SOCKSinit': Rconnect.c:124:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ Rconnect.c:106:5: note: declared here int SOCKSinit(Progname) ^~~~~~~~~ Rconnect.c:144:2: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] gethostname(socks_src_name, sizeof(socks_src_name)); ^~~~~~~~~~~ gethostbyname Rconnect.c:145:6: warning: implicit declaration of function 'socks_host'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] if (socks_host(socks_src_name, &socks_srcsh) < 0) { ^~~~~~~~~~ socks_cmd Rconnect.c:150:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ Rconnect.c:150:3: warning: incompatible implicit declaration of built-in function 'exit' Rconnect.c:150:3: note: include '' or provide a declaration of 'exit' Rconnect.c:37:1: +#include Rconnect.c:150:3: exit(1); ^~~~ Rconnect.c:157:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ Rconnect.c:157:3: note: include '' or provide a declaration of 'exit' Rconnect.c:165:25: warning: implicit declaration of function 'geteuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] if ((pw = getpwuid(uid=geteuid())) == NULL) { ^~~~~~~ getpwuid Rconnect.c:170:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ Rconnect.c:170:3: note: include '' or provide a declaration of 'exit' Rconnect.c:260:10: warning: implicit declaration of function 'socks_rdfz'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_rdfz(SOCKS_FC, &scfAddr, &Nscf, &cfStrings, socks_useSyslog); ^~~~~~~~~~ socks_cmd Rconnect.c:262:10: warning: implicit declaration of function 'socks_rdconf'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_rdconf(SOCKS_CONF, &scfAddr, &Nscf, socks_useSyslog); ^~~~~~~~~~~~ socks_cmd Rconnect.c: In function 'socks_connect_sockd': Rconnect.c:283:7: warning: implicit declaration of function 'socks_GetQuad'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] if (socks_GetQuad(socks_server, &socks_nsin.sin_addr) != -1) { ^~~~~~~~~~~~~ socks_cmd Rconnect.c:298:9: warning: implicit declaration of function 'dup2' [-Wimplicit-function-declaration] if (dup2(new_sock, sock) < 0) { ^~~~ Rconnect.c:299:6: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(new_sock); ^~~~~ pclose Rconnect.c: In function 'send_name': Rconnect.c:353:11: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if((n = write(s, p, i)) <= 0) { ^~~~~ fwrite Rconnect.c: In function 'socksC_proto': Rconnect.c:371:13: warning: implicit declaration of function 'socks_SendDst'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] if ((sta = socks_SendDst(s, dst)) < 0) { ^~~~~~~~~~~~~ socks_cmd Rconnect.c:397:13: warning: implicit declaration of function 'socks_GetDst'; did you mean 'socket'? [-Wimplicit-function-declaration] if ((sta = socks_GetDst(s, dst)) < 0) { ^~~~~~~~~~~~ socket Rconnect.c: In function 'quit_C_proto': Rconnect.c:409:2: warning: incompatible implicit declaration of built-in function 'exit' exit(SOCKS_FAIL); ^~~~ Rconnect.c:409:2: note: include '' or provide a declaration of 'exit' Rconnect.c: In function 'do_C_proto': Rconnect.c:420:2: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] alarm(CLIENT_CONN_TIMEOUT); ^~~~~ Rconnect.c:427:3: warning: incompatible implicit declaration of built-in function 'exit' exit(SOCKS_FAIL); ^~~~ Rconnect.c:427:3: note: include '' or provide a declaration of 'exit' Rconnect.c:432:3: warning: incompatible implicit declaration of built-in function 'exit' exit(dst.cmd); ^~~~ Rconnect.c:432:3: note: include '' or provide a declaration of 'exit' Rconnect.c:434:2: warning: incompatible implicit declaration of built-in function 'exit' exit(SOCKS_RESULT); ^~~~ Rconnect.c:434:2: note: include '' or provide a declaration of 'exit' Rconnect.c: In function 'Rconnect': Rconnect.c:465:7: warning: implicit declaration of function 'socks_IPtohost'; did you mean 'socksC_proto'? [-Wimplicit-function-declaration] if (socks_IPtohost(&sin->sin_addr, &socks_dstsh) < 0) { ^~~~~~~~~~~~~~ socksC_proto Rconnect.c:470:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ Rconnect.c:470:4: note: include '' or provide a declaration of 'exit' Rconnect.c:538:18: warning: implicit declaration of function 'socks_ckcf'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_direct = socks_ckcf(&socks_srcsh, &socks_dstsh, scfAddr, Nscf, socks_useSyslog); ^~~~~~~~~~ socks_cmd Rconnect.c:581:22: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^~~~ gcc -I../include -g -DLINUX -c -o SendGetDst.o SendGetDst.c SendGetDst.c: In function 'socks_SendDst': SendGetDst.c:32:2: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(&dst->port, c+2, sizeof(dst->port)); ^~~~~ SendGetDst.c:32:2: warning: incompatible implicit declaration of built-in function 'bcopy' SendGetDst.c:52:11: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] if((n = write(s, p, i)) > 0) { ^~~~~ SendGetDst.c: In function 'socks_GetDst': SendGetDst.c:95:11: warning: implicit declaration of function 'read'; did you mean 'recv'? [-Wimplicit-function-declaration] if((n = read(s, p, i)) > 0) { ^~~~ recv SendGetDst.c:110:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(c+2, &dst->port, sizeof(dst->port)); ^~~~~ gcc -I../include -g -DLINUX -c -o porttoserv.o porttoserv.c porttoserv.c: In function 'socks_porttoserv': porttoserv.c:17:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(name, serv->s_name, namelen); ^~~~~~~ porttoserv.c:17:3: warning: incompatible implicit declaration of built-in function 'strncpy' porttoserv.c:17:3: note: include '' or provide a declaration of 'strncpy' porttoserv.c:7:1: +#include porttoserv.c:17:3: strncpy(name, serv->s_name, namelen); ^~~~~~~ porttoserv.c:19:3: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(name, "%u", port); ^~~~~~~ porttoserv.c:19:3: warning: incompatible implicit declaration of built-in function 'sprintf' porttoserv.c:19:3: note: include '' or provide a declaration of 'sprintf' porttoserv.c:7:1: +#include porttoserv.c:19:3: sprintf(name, "%u", port); ^~~~~~~ gcc -I../include -g -DLINUX -c -o utils.o utils.c utils.c: In function 'socks_GetAddr': utils.c:80:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(*domain); ^~~~ utils.c:80:3: warning: incompatible implicit declaration of built-in function 'free' utils.c:80:3: note: include '' or provide a declaration of 'free' utils.c:18:1: +#include utils.c:80:3: free(*domain); ^~~~ utils.c: In function 'socks_GetPort': utils.c:103:9: warning: implicit declaration of function 'atol'; did you mean 'htonl'? [-Wimplicit-function-declaration] return atol(name); ^~~~ htonl utils.c: In function 'socks_IPtohost': utils.c:119:4: warning: incompatible implicit declaration of built-in function 'free' free(shp->dmname[i]); ^~~~ utils.c:119:4: note: include '' or provide a declaration of 'free' utils.c:141:2: warning: incompatible implicit declaration of built-in function 'free' free(name); ^~~~ utils.c:141:2: note: include '' or provide a declaration of 'free' utils.c: In function 'socks_host': utils.c:193:4: warning: incompatible implicit declaration of built-in function 'free' free(shp->dmname[i]); ^~~~ utils.c:193:4: note: include '' or provide a declaration of 'free' gcc -I../include -g -DLINUX -c -o Rbind.o Rbind.c Rbind.c:48:1: warning: return type defaults to 'int' [-Wimplicit-int] Rbind(sock, sin, size) ^~~~~ Rbind.c:151:1: warning: return type defaults to 'int' [-Wimplicit-int] Rlisten(s, n) ^~~~~~~ Rbind.c:163:1: warning: return type defaults to 'int' [-Wimplicit-int] Rgetsockname(sock, sin, size) ^~~~~~~~~~~~ Rbind.c:181:1: warning: return type defaults to 'int' [-Wimplicit-int] Raccept(sock, sin, size) ^~~~~~~ Rbind.c: In function 'Raccept': Rbind.c:197:32: warning: implicit declaration of function 'socks_GetDst'; did you mean 'socks_ckcf'? [-Wimplicit-function-declaration] if (FD_ISSET(sock, &fds) && (socks_GetDst(sock, &dst) >= 0)) { ^~~~~~~~~~~~ socks_ckcf Rbind.c:201:11: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] return(dup(sock)); ^~~ gcc -I../include -g -DLINUX -c -o Rgethostbyname.o Rgethostbyname.c Rgethostbyname.c: In function 'Rgethostbyname': Rgethostbyname.c:111:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(hr->h_name); ^~~~ Rgethostbyname.c:111:3: warning: incompatible implicit declaration of built-in function 'free' Rgethostbyname.c:111:3: note: include '' or provide a declaration of 'free' Rgethostbyname.c:19:1: +#include Rgethostbyname.c:111:3: free(hr->h_name); ^~~~ Rgethostbyname.c:126:3: warning: incompatible implicit declaration of built-in function 'free' free(hr->h_name); ^~~~ Rgethostbyname.c:126:3: note: include '' or provide a declaration of 'free' Rgethostbyname.c:145:25: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ((halist = (char *)malloc(cl)) == NULL) { ^~~~~~ Rgethostbyname.c:145:25: warning: incompatible implicit declaration of built-in function 'malloc' Rgethostbyname.c:145:25: note: include '' or provide a declaration of 'malloc' Rgethostbyname.c:154:26: warning: incompatible implicit declaration of built-in function 'malloc' if (((harray = (char **)malloc(naliases * sizeof(iplist))) == NULL) || ^~~~~~ Rgethostbyname.c:154:26: note: include '' or provide a declaration of 'malloc' Rgethostbyname.c:186:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ Rgethostbyname.c:186:2: warning: incompatible implicit declaration of built-in function 'exit' Rgethostbyname.c:186:2: note: include '' or provide a declaration of 'exit' gcc -I../include -g -DLINUX -c -o Rselect.o Rselect.c gcc -I../include -g -DLINUX -c -o null_syslog.o null_syslog.c null_syslog.c:22:1: warning: return type defaults to 'int' [-Wimplicit-int] socks_0openlog(ident, log_opt, fac) ^~~~~~~~~~~~~~ null_syslog.c:30:1: warning: return type defaults to 'int' [-Wimplicit-int] socks_0closelog() ^~~~~~~~~~~~~~~ null_syslog.c:35:9: warning: return type defaults to 'int' [-Wimplicit-int] VARARGS(socks_0syslog, int, prio) ^~~~~~~~~~~~~ null_syslog.c:12:32: note: in definition of macro 'VARARGS' #define VARARGS(func,type,arg) func(type arg, ...) ^~~~ gcc -I../include -g -DLINUX -c -o shell_cmd.o shell_cmd.c shell_cmd.c: In function 'socks_shell_cmd': shell_cmd.c:68:26: warning: implicit declaration of function 'getpid'; did you mean 'fgetpos'? [-Wimplicit-function-declaration] int daemon_pid = getpid(); ^~~~~~ fgetpos shell_cmd.c:71:9: warning: implicit declaration of function 'strpbrk' [-Wimplicit-function-declaration] if (strpbrk(cmd, alpha_num) == NULL) { ^~~~~~~ shell_cmd.c:71:9: warning: incompatible implicit declaration of built-in function 'strpbrk' shell_cmd.c:71:9: note: include '' or provide a declaration of 'strpbrk' shell_cmd.c:33:1: +#include shell_cmd.c:71:9: if (strpbrk(cmd, alpha_num) == NULL) { ^~~~~~~ shell_cmd.c:81:25: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^~~~ shell_cmd.c:89:21: warning: implicit declaration of function 'wait'; did you mean 'exit'? [-Wimplicit-function-declaration] while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid) ^~~~ exit shell_cmd.c: In function 'do_child': shell_cmd.c:110:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] (void) close(tmp_fd); ^~~~~ pclose shell_cmd.c:114:9: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] if (open("/dev/null", 2) != 0) { ^~~~ popen shell_cmd.c:116:16: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] } else if (dup(0) != 1 || dup(0) != 2) { ^~~ shell_cmd.c:119:9: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration] (void) execl("/bin/sh", "sh", "-c", command, (char *) 0); ^~~~~ shell_cmd.c:119:9: warning: incompatible implicit declaration of built-in function 'execl' shell_cmd.c: In function 'percent_x': shell_cmd.c:206:22: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] expansion_len = strlen(expansion); ^~~~~~ shell_cmd.c:206:22: warning: incompatible implicit declaration of built-in function 'strlen' shell_cmd.c:206:22: note: include '' or provide a declaration of 'strlen' gcc -I../include -g -DLINUX -c -o socks_ckcf.o socks_ckcf.c socks_ckcf.c: In function 'socks_ckcf': socks_ckcf.c:48:7: warning: implicit declaration of function 'socks_ckadr'; did you mean 'socks_ckcf'? [-Wimplicit-function-declaration] if (socks_ckadr(dstshp, cp->ddomain, &cp->daddr, &cp->dmask) && ^~~~~~~~~~~ socks_ckcf socks_ckcf.c:49:7: warning: implicit declaration of function 'socks_ckusr'; did you mean 'socks_ckcf'? [-Wimplicit-function-declaration] socks_ckusr(cp->userlist, srcshp->user, useSyslog) && ^~~~~~~~~~~ socks_ckcf socks_ckcf.c:50:7: warning: implicit declaration of function 'socks_ckprt'; did you mean 'socks_ckcf'? [-Wimplicit-function-declaration] socks_ckprt(cp->tst, dst_sin_port, cp->dport)) ^~~~~~~~~~~ socks_ckcf socks_ckcf.c:60:3: warning: implicit declaration of function 'socks_shell_cmd'; did you mean 'socks_check_addr'? [-Wimplicit-function-declaration] socks_shell_cmd(cp->cmdp, srcshp, dstshp); ^~~~~~~~~~~~~~~ socks_check_addr gcc -I../include -g -DLINUX -c -o socks_rdconf.o socks_rdconf.c socks_rdconf.c: In function 'socks_rdconf': socks_rdconf.c:39:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ socks_rdconf.c:39:3: warning: incompatible implicit declaration of built-in function 'exit' socks_rdconf.c:39:3: note: include '' or provide a declaration of 'exit' socks_rdconf.c:11:1: +#include socks_rdconf.c:39:3: exit(1); ^~~~ socks_rdconf.c:44:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(cp->userlist); ^~~~ socks_rdconf.c:44:4: warning: incompatible implicit declaration of built-in function 'free' socks_rdconf.c:44:4: note: include '' or provide a declaration of 'free' socks_rdconf.c:46:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->serverlist); ^~~~ socks_rdconf.c:46:4: note: include '' or provide a declaration of 'free' socks_rdconf.c:48:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->cmdp); ^~~~ socks_rdconf.c:48:4: note: include '' or provide a declaration of 'free' socks_rdconf.c:50:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->ddomain); ^~~~ socks_rdconf.c:50:4: note: include '' or provide a declaration of 'free' socks_rdconf.c:53:3: warning: incompatible implicit declaration of built-in function 'free' free(*cfAddrPtr); ^~~~ socks_rdconf.c:53:3: note: include '' or provide a declaration of 'free' socks_rdconf.c:56:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) malloc( maxcf * sizeof(struct config)); ^~~~~~ socks_rdconf.c:56:29: warning: incompatible implicit declaration of built-in function 'malloc' socks_rdconf.c:56:29: note: include '' or provide a declaration of 'malloc' socks_rdconf.c:62:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:62:3: note: include '' or provide a declaration of 'exit' socks_rdconf.c:84:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:84:6: note: include '' or provide a declaration of 'exit' socks_rdconf.c:94:3: warning: implicit declaration of function 'socks_mkargs'; did you mean 'sockatmark'? [-Wimplicit-function-declaration] socks_mkargs(buf, &argc, argv, 10); ^~~~~~~~~~~~ sockatmark socks_rdconf.c:126:7: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:126:7: note: include '' or provide a declaration of 'exit' socks_rdconf.c:138:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:138:5: note: include '' or provide a declaration of 'exit' socks_rdconf.c:162:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:162:6: note: include '' or provide a declaration of 'exit' socks_rdconf.c:175:7: warning: implicit declaration of function 'socks_GetAddr'; did you mean 'socketpair'? [-Wimplicit-function-declaration] if (socks_GetAddr(argv[next_arg++], &cp->daddr, &cp->ddomain) == -1) { ^~~~~~~~~~~~~ socketpair socks_rdconf.c:183:7: warning: implicit declaration of function 'socks_GetQuad' [-Wimplicit-function-declaration] if (socks_GetQuad(argv[next_arg++], &cp->dmask) == -1) { ^~~~~~~~~~~~~ socks_rdconf.c:214:14: warning: implicit declaration of function 'socks_GetPort'; did you mean 'socks_rdconf'? [-Wimplicit-function-declaration] if (((p = socks_GetPort(argv[next_arg+1])) < 0) || ^~~~~~~~~~~~~ socks_rdconf socks_rdconf.c:231:31: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) realloc(cfAddr, maxcf * sizeof(struct config)); ^~~~~~~ socks_rdconf.c:231:31: warning: incompatible implicit declaration of built-in function 'realloc' socks_rdconf.c:231:31: note: include '' or provide a declaration of 'realloc' socks_rdconf.c:237:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:237:5: note: include '' or provide a declaration of 'exit' socks_rdconf.c:251:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:251:3: note: include '' or provide a declaration of 'exit' socks_rdconf.c:254:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:254:3: note: include '' or provide a declaration of 'exit' socks_rdconf.c:256:30: warning: incompatible implicit declaration of built-in function 'realloc' cfAddr = (struct config *) realloc(cfAddr, Ncf * sizeof(struct config)); ^~~~~~~ socks_rdconf.c:256:30: note: include '' or provide a declaration of 'realloc' gcc -I../include -g -DLINUX -c -o socks_rdfz.o socks_rdfz.c socks_rdfz.c: In function 'socks_rdfz': socks_rdfz.c:31:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ socks_rdfz.c:31:3: warning: incompatible implicit declaration of built-in function 'exit' socks_rdfz.c:31:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:11:1: +#include socks_rdfz.c:31:3: exit(1); ^~~~ socks_rdfz.c:34:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(*cfAddrPtr); ^~~~ socks_rdfz.c:34:3: warning: incompatible implicit declaration of built-in function 'free' socks_rdfz.c:34:3: note: include '' or provide a declaration of 'free' socks_rdfz.c:36:3: warning: incompatible implicit declaration of built-in function 'free' free(*cfstrings); ^~~~ socks_rdfz.c:36:3: note: include '' or provide a declaration of 'free' socks_rdfz.c:38:6: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] if (read(fd, &Ncf, sizeof(Ncf)) != sizeof(Ncf)) { ^~~~ fread socks_rdfz.c:43:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:43:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:51:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:51:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:54:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) malloc(Ncf * (sizeof(struct config))); ^~~~~~ socks_rdfz.c:54:29: warning: incompatible implicit declaration of built-in function 'malloc' socks_rdfz.c:54:29: note: include '' or provide a declaration of 'malloc' socks_rdfz.c:60:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:60:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:67:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:67:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:72:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(fd); ^~~~~ pclose socks_rdfz.c:80:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:80:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:88:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:88:3: note: include '' or provide a declaration of 'exit' gcc -I../include -g -DLINUX -c -o socks_wrfz.o socks_wrfz.c socks_wrfz.c: In function 'socks_wrfz': socks_wrfz.c:40:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ((stringarea = (char *)malloc(stringsize)) == NULL) { ^~~~~~ socks_wrfz.c:40:29: warning: incompatible implicit declaration of built-in function 'malloc' socks_wrfz.c:40:29: note: include '' or provide a declaration of 'malloc' socks_wrfz.c:11:1: +#include socks_wrfz.c:40:29: if ((stringarea = (char *)malloc(stringsize)) == NULL) { ^~~~~~ socks_wrfz.c:45:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ socks_wrfz.c:45:4: warning: incompatible implicit declaration of built-in function 'exit' socks_wrfz.c:45:4: note: include '' or provide a declaration of 'exit' socks_wrfz.c:83:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:83:3: note: include '' or provide a declaration of 'exit' socks_wrfz.c:85:6: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(fd, &Nconf, sizeof(Nconf)) != sizeof(Nconf)) { ^~~~~ fwrite socks_wrfz.c:90:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:90:3: note: include '' or provide a declaration of 'exit' socks_wrfz.c:97:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:97:3: note: include '' or provide a declaration of 'exit' socks_wrfz.c:104:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:104:3: note: include '' or provide a declaration of 'exit' socks_wrfz.c:111:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:111:3: note: include '' or provide a declaration of 'exit' gcc -I../include -g -DLINUX -c -o socks_dumpcf.o socks_dumpcf.c gcc -I../include -g -DLINUX -c -o sockd_dumpcf.o sockd_dumpcf.c gcc -I../include -g -DLINUX -c -o sockd_dumprt.o sockd_dumprt.c gcc -I../include -g -DLINUX -c -o sockd_rdconf.o sockd_rdconf.c sockd_rdconf.c: In function 'sockd_rdconf': sockd_rdconf.c:39:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ sockd_rdconf.c:39:3: warning: incompatible implicit declaration of built-in function 'exit' sockd_rdconf.c:39:3: note: include '' or provide a declaration of 'exit' sockd_rdconf.c:11:1: +#include sockd_rdconf.c:39:3: exit(1); ^~~~ sockd_rdconf.c:44:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(cp->userlist); ^~~~ sockd_rdconf.c:44:4: warning: incompatible implicit declaration of built-in function 'free' sockd_rdconf.c:44:4: note: include '' or provide a declaration of 'free' sockd_rdconf.c:46:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->cmdp); ^~~~ sockd_rdconf.c:46:4: note: include '' or provide a declaration of 'free' sockd_rdconf.c:48:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->sdomain); ^~~~ sockd_rdconf.c:48:4: note: include '' or provide a declaration of 'free' sockd_rdconf.c:50:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->ddomain); ^~~~ sockd_rdconf.c:50:4: note: include '' or provide a declaration of 'free' sockd_rdconf.c:53:3: warning: incompatible implicit declaration of built-in function 'free' free(*cfAddrPtr); ^~~~ sockd_rdconf.c:53:3: note: include '' or provide a declaration of 'free' sockd_rdconf.c:55:3: warning: incompatible implicit declaration of built-in function 'free' free(*no_identd_cmd); ^~~~ sockd_rdconf.c:55:3: note: include '' or provide a declaration of 'free' sockd_rdconf.c:59:3: warning: incompatible implicit declaration of built-in function 'free' free(*bad_id_cmd); ^~~~ sockd_rdconf.c:59:3: note: include '' or provide a declaration of 'free' sockd_rdconf.c:64:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) malloc( maxcf * sizeof(struct config)); ^~~~~~ sockd_rdconf.c:64:29: warning: incompatible implicit declaration of built-in function 'malloc' sockd_rdconf.c:64:29: note: include '' or provide a declaration of 'malloc' sockd_rdconf.c:107:3: warning: implicit declaration of function 'socks_mkargs'; did you mean 'sockatmark'? [-Wimplicit-function-declaration] socks_mkargs(buf, &argc, argv, 10); ^~~~~~~~~~~~ sockatmark sockd_rdconf.c:116:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdconf.c:116:4: note: include '' or provide a declaration of 'exit' sockd_rdconf.c:175:7: warning: implicit declaration of function 'socks_GetAddr'; did you mean 'socketpair'? [-Wimplicit-function-declaration] if (socks_GetAddr(argv[next_arg++], &cp->saddr, &cp->sdomain) == -1){ ^~~~~~~~~~~~~ socketpair sockd_rdconf.c:178:7: warning: implicit declaration of function 'socks_GetQuad' [-Wimplicit-function-declaration] if (socks_GetQuad(argv[next_arg++], &cp->smask) == -1) { ^~~~~~~~~~~~~ sockd_rdconf.c:232:14: warning: implicit declaration of function 'socks_GetPort' [-Wimplicit-function-declaration] if (((p = socks_GetPort(argv[next_arg+1])) < 0) || ^~~~~~~~~~~~~ sockd_rdconf.c:250:31: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) realloc(cfAddr, maxcf * sizeof(struct config)); ^~~~~~~ sockd_rdconf.c:250:31: warning: incompatible implicit declaration of built-in function 'realloc' sockd_rdconf.c:250:31: note: include '' or provide a declaration of 'realloc' sockd_rdconf.c:264:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdconf.c:264:3: note: include '' or provide a declaration of 'exit' sockd_rdconf.c:267:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdconf.c:267:3: note: include '' or provide a declaration of 'exit' sockd_rdconf.c:269:30: warning: incompatible implicit declaration of built-in function 'realloc' cfAddr = (struct config *) realloc(cfAddr, Ncf * sizeof(struct config)); ^~~~~~~ sockd_rdconf.c:269:30: note: include '' or provide a declaration of 'realloc' sockd_rdconf.c:279:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdconf.c:279:2: note: include '' or provide a declaration of 'exit' gcc -I../include -g -DLINUX -c -o sockd_rdroute.o sockd_rdroute.c sockd_rdroute.c: In function 'sockd_rdroute': sockd_rdroute.c:38:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ sockd_rdroute.c:38:3: warning: incompatible implicit declaration of built-in function 'exit' sockd_rdroute.c:38:3: note: include '' or provide a declaration of 'exit' sockd_rdroute.c:12:1: +#include sockd_rdroute.c:38:3: exit(1); ^~~~ sockd_rdroute.c:43:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(cp->ddomain); ^~~~ sockd_rdroute.c:43:4: warning: incompatible implicit declaration of built-in function 'free' sockd_rdroute.c:43:4: note: include '' or provide a declaration of 'free' sockd_rdroute.c:46:3: warning: incompatible implicit declaration of built-in function 'free' free(*rtAddrPtr); ^~~~ sockd_rdroute.c:46:3: note: include '' or provide a declaration of 'free' sockd_rdroute.c:49:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] rtAddr = (struct config *) malloc( maxrt * sizeof(struct config)); ^~~~~~ sockd_rdroute.c:49:29: warning: incompatible implicit declaration of built-in function 'malloc' sockd_rdroute.c:49:29: note: include '' or provide a declaration of 'malloc' sockd_rdroute.c:78:3: warning: implicit declaration of function 'socks_mkargs'; did you mean 'sockatmark'? [-Wimplicit-function-declaration] socks_mkargs(buf, &argc, argv, 10); ^~~~~~~~~~~~ sockatmark sockd_rdroute.c:87:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdroute.c:87:4: note: include '' or provide a declaration of 'exit' sockd_rdroute.c:90:7: warning: implicit declaration of function 'socks_GetQuad' [-Wimplicit-function-declaration] if (socks_GetQuad(argv[0], &cp->saddr) == -1) { ^~~~~~~~~~~~~ sockd_rdroute.c:98:7: warning: implicit declaration of function 'socks_GetAddr'; did you mean 'socketpair'? [-Wimplicit-function-declaration] if (socks_GetAddr(argv[1], &cp->daddr, &cp->ddomain) == -1){ ^~~~~~~~~~~~~ socketpair sockd_rdroute.c:113:31: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] rtAddr = (struct config *) realloc(rtAddr, maxrt * sizeof(struct config)); ^~~~~~~ sockd_rdroute.c:113:31: warning: incompatible implicit declaration of built-in function 'realloc' sockd_rdroute.c:113:31: note: include '' or provide a declaration of 'realloc' sockd_rdroute.c:127:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdroute.c:127:3: note: include '' or provide a declaration of 'exit' sockd_rdroute.c:130:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdroute.c:130:3: note: include '' or provide a declaration of 'exit' sockd_rdroute.c:132:30: warning: incompatible implicit declaration of built-in function 'realloc' rtAddr = (struct config *) realloc(rtAddr, Nrt * sizeof(struct config)); ^~~~~~~ sockd_rdroute.c:132:30: note: include '' or provide a declaration of 'realloc' sockd_rdroute.c:142:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdroute.c:142:2: note: include '' or provide a declaration of 'exit' gcc -I../include -g -DLINUX -c -o getpass.o getpass.c getpass.c: In function 'getpass': getpass.c:94:2: warning: 'sigblock' is deprecated [-Wdeprecated-declarations] omask = sigblock(sigmask(SIGINT)); ^~~~~ In file included from /usr/include/arm-linux-gnueabihf/sys/signal.h:1, from getpass.c:44: /usr/include/signal.h:170:12: note: declared here extern int sigblock (int __mask) __THROW __attribute_deprecated__; ^~~~~~~~ getpass.c:109:8: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] (void)write(fileno(outfp), "\n", 1); ^~~~~ fwrite getpass.c:124:2: warning: 'sigsetmask' is deprecated [-Wdeprecated-declarations] (void)sigsetmask(omask); ^ In file included from /usr/include/arm-linux-gnueabihf/sys/signal.h:1, from getpass.c:44: /usr/include/signal.h:173:12: note: declared here extern int sigsetmask (int __mask) __THROW __attribute_deprecated__; ^~~~~~~~~~ rm -f libsocks.a ar rc libsocks.a Rconnect.o SendGetDst.o porttoserv.o utils.o Rbind.o Rgethostbyname.o Rselect.o null_syslog.o shell_cmd.o socks_ckcf.o socks_rdconf.o socks_rdfz.o socks_wrfz.o socks_dumpcf.o sockd_dumpcf.o sockd_dumprt.o sockd_rdconf.o sockd_rdroute.o getpass.o ranlib libsocks.a gcc -fPIC -I../include -g -DLINUX -c -o Rconnect.lo Rconnect.c Rconnect.c: In function 'SOCKSinit': Rconnect.c:124:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ Rconnect.c:106:5: note: declared here int SOCKSinit(Progname) ^~~~~~~~~ Rconnect.c:144:2: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] gethostname(socks_src_name, sizeof(socks_src_name)); ^~~~~~~~~~~ gethostbyname Rconnect.c:145:6: warning: implicit declaration of function 'socks_host'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] if (socks_host(socks_src_name, &socks_srcsh) < 0) { ^~~~~~~~~~ socks_cmd Rconnect.c:150:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ Rconnect.c:150:3: warning: incompatible implicit declaration of built-in function 'exit' Rconnect.c:150:3: note: include '' or provide a declaration of 'exit' Rconnect.c:37:1: +#include Rconnect.c:150:3: exit(1); ^~~~ Rconnect.c:157:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ Rconnect.c:157:3: note: include '' or provide a declaration of 'exit' Rconnect.c:165:25: warning: implicit declaration of function 'geteuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] if ((pw = getpwuid(uid=geteuid())) == NULL) { ^~~~~~~ getpwuid Rconnect.c:170:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ Rconnect.c:170:3: note: include '' or provide a declaration of 'exit' Rconnect.c:260:10: warning: implicit declaration of function 'socks_rdfz'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_rdfz(SOCKS_FC, &scfAddr, &Nscf, &cfStrings, socks_useSyslog); ^~~~~~~~~~ socks_cmd Rconnect.c:262:10: warning: implicit declaration of function 'socks_rdconf'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_rdconf(SOCKS_CONF, &scfAddr, &Nscf, socks_useSyslog); ^~~~~~~~~~~~ socks_cmd Rconnect.c: In function 'socks_connect_sockd': Rconnect.c:283:7: warning: implicit declaration of function 'socks_GetQuad'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] if (socks_GetQuad(socks_server, &socks_nsin.sin_addr) != -1) { ^~~~~~~~~~~~~ socks_cmd Rconnect.c:298:9: warning: implicit declaration of function 'dup2' [-Wimplicit-function-declaration] if (dup2(new_sock, sock) < 0) { ^~~~ Rconnect.c:299:6: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(new_sock); ^~~~~ pclose Rconnect.c: In function 'send_name': Rconnect.c:353:11: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if((n = write(s, p, i)) <= 0) { ^~~~~ fwrite Rconnect.c: In function 'socksC_proto': Rconnect.c:371:13: warning: implicit declaration of function 'socks_SendDst'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] if ((sta = socks_SendDst(s, dst)) < 0) { ^~~~~~~~~~~~~ socks_cmd Rconnect.c:397:13: warning: implicit declaration of function 'socks_GetDst'; did you mean 'socket'? [-Wimplicit-function-declaration] if ((sta = socks_GetDst(s, dst)) < 0) { ^~~~~~~~~~~~ socket Rconnect.c: In function 'quit_C_proto': Rconnect.c:409:2: warning: incompatible implicit declaration of built-in function 'exit' exit(SOCKS_FAIL); ^~~~ Rconnect.c:409:2: note: include '' or provide a declaration of 'exit' Rconnect.c: In function 'do_C_proto': Rconnect.c:420:2: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] alarm(CLIENT_CONN_TIMEOUT); ^~~~~ Rconnect.c:427:3: warning: incompatible implicit declaration of built-in function 'exit' exit(SOCKS_FAIL); ^~~~ Rconnect.c:427:3: note: include '' or provide a declaration of 'exit' Rconnect.c:432:3: warning: incompatible implicit declaration of built-in function 'exit' exit(dst.cmd); ^~~~ Rconnect.c:432:3: note: include '' or provide a declaration of 'exit' Rconnect.c:434:2: warning: incompatible implicit declaration of built-in function 'exit' exit(SOCKS_RESULT); ^~~~ Rconnect.c:434:2: note: include '' or provide a declaration of 'exit' Rconnect.c: In function 'Rconnect': Rconnect.c:465:7: warning: implicit declaration of function 'socks_IPtohost'; did you mean 'socksC_proto'? [-Wimplicit-function-declaration] if (socks_IPtohost(&sin->sin_addr, &socks_dstsh) < 0) { ^~~~~~~~~~~~~~ socksC_proto Rconnect.c:470:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ Rconnect.c:470:4: note: include '' or provide a declaration of 'exit' Rconnect.c:538:18: warning: implicit declaration of function 'socks_ckcf'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_direct = socks_ckcf(&socks_srcsh, &socks_dstsh, scfAddr, Nscf, socks_useSyslog); ^~~~~~~~~~ socks_cmd Rconnect.c:581:22: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^~~~ gcc -fPIC -I../include -g -DLINUX -c -o SendGetDst.lo SendGetDst.c SendGetDst.c: In function 'socks_SendDst': SendGetDst.c:32:2: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(&dst->port, c+2, sizeof(dst->port)); ^~~~~ SendGetDst.c:32:2: warning: incompatible implicit declaration of built-in function 'bcopy' SendGetDst.c:52:11: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] if((n = write(s, p, i)) > 0) { ^~~~~ SendGetDst.c: In function 'socks_GetDst': SendGetDst.c:95:11: warning: implicit declaration of function 'read'; did you mean 'recv'? [-Wimplicit-function-declaration] if((n = read(s, p, i)) > 0) { ^~~~ recv SendGetDst.c:110:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(c+2, &dst->port, sizeof(dst->port)); ^~~~~ gcc -fPIC -I../include -g -DLINUX -c -o porttoserv.lo porttoserv.c porttoserv.c: In function 'socks_porttoserv': porttoserv.c:17:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(name, serv->s_name, namelen); ^~~~~~~ porttoserv.c:17:3: warning: incompatible implicit declaration of built-in function 'strncpy' porttoserv.c:17:3: note: include '' or provide a declaration of 'strncpy' porttoserv.c:7:1: +#include porttoserv.c:17:3: strncpy(name, serv->s_name, namelen); ^~~~~~~ porttoserv.c:19:3: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(name, "%u", port); ^~~~~~~ porttoserv.c:19:3: warning: incompatible implicit declaration of built-in function 'sprintf' porttoserv.c:19:3: note: include '' or provide a declaration of 'sprintf' porttoserv.c:7:1: +#include porttoserv.c:19:3: sprintf(name, "%u", port); ^~~~~~~ gcc -fPIC -I../include -g -DLINUX -c -o utils.lo utils.c utils.c: In function 'socks_GetAddr': utils.c:80:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(*domain); ^~~~ utils.c:80:3: warning: incompatible implicit declaration of built-in function 'free' utils.c:80:3: note: include '' or provide a declaration of 'free' utils.c:18:1: +#include utils.c:80:3: free(*domain); ^~~~ utils.c: In function 'socks_GetPort': utils.c:103:9: warning: implicit declaration of function 'atol'; did you mean 'htonl'? [-Wimplicit-function-declaration] return atol(name); ^~~~ htonl utils.c: In function 'socks_IPtohost': utils.c:119:4: warning: incompatible implicit declaration of built-in function 'free' free(shp->dmname[i]); ^~~~ utils.c:119:4: note: include '' or provide a declaration of 'free' utils.c:141:2: warning: incompatible implicit declaration of built-in function 'free' free(name); ^~~~ utils.c:141:2: note: include '' or provide a declaration of 'free' utils.c: In function 'socks_host': utils.c:193:4: warning: incompatible implicit declaration of built-in function 'free' free(shp->dmname[i]); ^~~~ utils.c:193:4: note: include '' or provide a declaration of 'free' gcc -fPIC -I../include -g -DLINUX -c -o Rbind.lo Rbind.c Rbind.c:48:1: warning: return type defaults to 'int' [-Wimplicit-int] Rbind(sock, sin, size) ^~~~~ Rbind.c:151:1: warning: return type defaults to 'int' [-Wimplicit-int] Rlisten(s, n) ^~~~~~~ Rbind.c:163:1: warning: return type defaults to 'int' [-Wimplicit-int] Rgetsockname(sock, sin, size) ^~~~~~~~~~~~ Rbind.c:181:1: warning: return type defaults to 'int' [-Wimplicit-int] Raccept(sock, sin, size) ^~~~~~~ Rbind.c: In function 'Raccept': Rbind.c:197:32: warning: implicit declaration of function 'socks_GetDst'; did you mean 'socks_ckcf'? [-Wimplicit-function-declaration] if (FD_ISSET(sock, &fds) && (socks_GetDst(sock, &dst) >= 0)) { ^~~~~~~~~~~~ socks_ckcf Rbind.c:201:11: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] return(dup(sock)); ^~~ gcc -fPIC -I../include -g -DLINUX -c -o Rgethostbyname.lo Rgethostbyname.c Rgethostbyname.c: In function 'Rgethostbyname': Rgethostbyname.c:111:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(hr->h_name); ^~~~ Rgethostbyname.c:111:3: warning: incompatible implicit declaration of built-in function 'free' Rgethostbyname.c:111:3: note: include '' or provide a declaration of 'free' Rgethostbyname.c:19:1: +#include Rgethostbyname.c:111:3: free(hr->h_name); ^~~~ Rgethostbyname.c:126:3: warning: incompatible implicit declaration of built-in function 'free' free(hr->h_name); ^~~~ Rgethostbyname.c:126:3: note: include '' or provide a declaration of 'free' Rgethostbyname.c:145:25: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ((halist = (char *)malloc(cl)) == NULL) { ^~~~~~ Rgethostbyname.c:145:25: warning: incompatible implicit declaration of built-in function 'malloc' Rgethostbyname.c:145:25: note: include '' or provide a declaration of 'malloc' Rgethostbyname.c:154:26: warning: incompatible implicit declaration of built-in function 'malloc' if (((harray = (char **)malloc(naliases * sizeof(iplist))) == NULL) || ^~~~~~ Rgethostbyname.c:154:26: note: include '' or provide a declaration of 'malloc' Rgethostbyname.c:186:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ Rgethostbyname.c:186:2: warning: incompatible implicit declaration of built-in function 'exit' Rgethostbyname.c:186:2: note: include '' or provide a declaration of 'exit' gcc -fPIC -I../include -g -DLINUX -c -o Rselect.lo Rselect.c gcc -fPIC -I../include -g -DLINUX -c -o null_syslog.lo null_syslog.c null_syslog.c:22:1: warning: return type defaults to 'int' [-Wimplicit-int] socks_0openlog(ident, log_opt, fac) ^~~~~~~~~~~~~~ null_syslog.c:30:1: warning: return type defaults to 'int' [-Wimplicit-int] socks_0closelog() ^~~~~~~~~~~~~~~ null_syslog.c:35:9: warning: return type defaults to 'int' [-Wimplicit-int] VARARGS(socks_0syslog, int, prio) ^~~~~~~~~~~~~ null_syslog.c:12:32: note: in definition of macro 'VARARGS' #define VARARGS(func,type,arg) func(type arg, ...) ^~~~ gcc -fPIC -I../include -g -DLINUX -c -o shell_cmd.lo shell_cmd.c shell_cmd.c: In function 'socks_shell_cmd': shell_cmd.c:68:26: warning: implicit declaration of function 'getpid'; did you mean 'fgetpos'? [-Wimplicit-function-declaration] int daemon_pid = getpid(); ^~~~~~ fgetpos shell_cmd.c:71:9: warning: implicit declaration of function 'strpbrk' [-Wimplicit-function-declaration] if (strpbrk(cmd, alpha_num) == NULL) { ^~~~~~~ shell_cmd.c:71:9: warning: incompatible implicit declaration of built-in function 'strpbrk' shell_cmd.c:71:9: note: include '' or provide a declaration of 'strpbrk' shell_cmd.c:33:1: +#include shell_cmd.c:71:9: if (strpbrk(cmd, alpha_num) == NULL) { ^~~~~~~ shell_cmd.c:81:25: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^~~~ shell_cmd.c:89:21: warning: implicit declaration of function 'wait'; did you mean 'exit'? [-Wimplicit-function-declaration] while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid) ^~~~ exit shell_cmd.c: In function 'do_child': shell_cmd.c:110:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] (void) close(tmp_fd); ^~~~~ pclose shell_cmd.c:114:9: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] if (open("/dev/null", 2) != 0) { ^~~~ popen shell_cmd.c:116:16: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] } else if (dup(0) != 1 || dup(0) != 2) { ^~~ shell_cmd.c:119:9: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration] (void) execl("/bin/sh", "sh", "-c", command, (char *) 0); ^~~~~ shell_cmd.c:119:9: warning: incompatible implicit declaration of built-in function 'execl' shell_cmd.c: In function 'percent_x': shell_cmd.c:206:22: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] expansion_len = strlen(expansion); ^~~~~~ shell_cmd.c:206:22: warning: incompatible implicit declaration of built-in function 'strlen' shell_cmd.c:206:22: note: include '' or provide a declaration of 'strlen' gcc -fPIC -I../include -g -DLINUX -c -o socks_ckcf.lo socks_ckcf.c socks_ckcf.c: In function 'socks_ckcf': socks_ckcf.c:48:7: warning: implicit declaration of function 'socks_ckadr'; did you mean 'socks_ckcf'? [-Wimplicit-function-declaration] if (socks_ckadr(dstshp, cp->ddomain, &cp->daddr, &cp->dmask) && ^~~~~~~~~~~ socks_ckcf socks_ckcf.c:49:7: warning: implicit declaration of function 'socks_ckusr'; did you mean 'socks_ckcf'? [-Wimplicit-function-declaration] socks_ckusr(cp->userlist, srcshp->user, useSyslog) && ^~~~~~~~~~~ socks_ckcf socks_ckcf.c:50:7: warning: implicit declaration of function 'socks_ckprt'; did you mean 'socks_ckcf'? [-Wimplicit-function-declaration] socks_ckprt(cp->tst, dst_sin_port, cp->dport)) ^~~~~~~~~~~ socks_ckcf socks_ckcf.c:60:3: warning: implicit declaration of function 'socks_shell_cmd'; did you mean 'socks_check_addr'? [-Wimplicit-function-declaration] socks_shell_cmd(cp->cmdp, srcshp, dstshp); ^~~~~~~~~~~~~~~ socks_check_addr gcc -fPIC -I../include -g -DLINUX -c -o socks_rdconf.lo socks_rdconf.c socks_rdconf.c: In function 'socks_rdconf': socks_rdconf.c:39:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ socks_rdconf.c:39:3: warning: incompatible implicit declaration of built-in function 'exit' socks_rdconf.c:39:3: note: include '' or provide a declaration of 'exit' socks_rdconf.c:11:1: +#include socks_rdconf.c:39:3: exit(1); ^~~~ socks_rdconf.c:44:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(cp->userlist); ^~~~ socks_rdconf.c:44:4: warning: incompatible implicit declaration of built-in function 'free' socks_rdconf.c:44:4: note: include '' or provide a declaration of 'free' socks_rdconf.c:46:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->serverlist); ^~~~ socks_rdconf.c:46:4: note: include '' or provide a declaration of 'free' socks_rdconf.c:48:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->cmdp); ^~~~ socks_rdconf.c:48:4: note: include '' or provide a declaration of 'free' socks_rdconf.c:50:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->ddomain); ^~~~ socks_rdconf.c:50:4: note: include '' or provide a declaration of 'free' socks_rdconf.c:53:3: warning: incompatible implicit declaration of built-in function 'free' free(*cfAddrPtr); ^~~~ socks_rdconf.c:53:3: note: include '' or provide a declaration of 'free' socks_rdconf.c:56:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) malloc( maxcf * sizeof(struct config)); ^~~~~~ socks_rdconf.c:56:29: warning: incompatible implicit declaration of built-in function 'malloc' socks_rdconf.c:56:29: note: include '' or provide a declaration of 'malloc' socks_rdconf.c:62:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:62:3: note: include '' or provide a declaration of 'exit' socks_rdconf.c:84:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:84:6: note: include '' or provide a declaration of 'exit' socks_rdconf.c:94:3: warning: implicit declaration of function 'socks_mkargs'; did you mean 'sockatmark'? [-Wimplicit-function-declaration] socks_mkargs(buf, &argc, argv, 10); ^~~~~~~~~~~~ sockatmark socks_rdconf.c:126:7: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:126:7: note: include '' or provide a declaration of 'exit' socks_rdconf.c:138:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:138:5: note: include '' or provide a declaration of 'exit' socks_rdconf.c:162:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:162:6: note: include '' or provide a declaration of 'exit' socks_rdconf.c:175:7: warning: implicit declaration of function 'socks_GetAddr'; did you mean 'socketpair'? [-Wimplicit-function-declaration] if (socks_GetAddr(argv[next_arg++], &cp->daddr, &cp->ddomain) == -1) { ^~~~~~~~~~~~~ socketpair socks_rdconf.c:183:7: warning: implicit declaration of function 'socks_GetQuad' [-Wimplicit-function-declaration] if (socks_GetQuad(argv[next_arg++], &cp->dmask) == -1) { ^~~~~~~~~~~~~ socks_rdconf.c:214:14: warning: implicit declaration of function 'socks_GetPort'; did you mean 'socks_rdconf'? [-Wimplicit-function-declaration] if (((p = socks_GetPort(argv[next_arg+1])) < 0) || ^~~~~~~~~~~~~ socks_rdconf socks_rdconf.c:231:31: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) realloc(cfAddr, maxcf * sizeof(struct config)); ^~~~~~~ socks_rdconf.c:231:31: warning: incompatible implicit declaration of built-in function 'realloc' socks_rdconf.c:231:31: note: include '' or provide a declaration of 'realloc' socks_rdconf.c:237:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:237:5: note: include '' or provide a declaration of 'exit' socks_rdconf.c:251:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:251:3: note: include '' or provide a declaration of 'exit' socks_rdconf.c:254:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdconf.c:254:3: note: include '' or provide a declaration of 'exit' socks_rdconf.c:256:30: warning: incompatible implicit declaration of built-in function 'realloc' cfAddr = (struct config *) realloc(cfAddr, Ncf * sizeof(struct config)); ^~~~~~~ socks_rdconf.c:256:30: note: include '' or provide a declaration of 'realloc' gcc -fPIC -I../include -g -DLINUX -c -o socks_rdfz.lo socks_rdfz.c socks_rdfz.c: In function 'socks_rdfz': socks_rdfz.c:31:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ socks_rdfz.c:31:3: warning: incompatible implicit declaration of built-in function 'exit' socks_rdfz.c:31:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:11:1: +#include socks_rdfz.c:31:3: exit(1); ^~~~ socks_rdfz.c:34:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(*cfAddrPtr); ^~~~ socks_rdfz.c:34:3: warning: incompatible implicit declaration of built-in function 'free' socks_rdfz.c:34:3: note: include '' or provide a declaration of 'free' socks_rdfz.c:36:3: warning: incompatible implicit declaration of built-in function 'free' free(*cfstrings); ^~~~ socks_rdfz.c:36:3: note: include '' or provide a declaration of 'free' socks_rdfz.c:38:6: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] if (read(fd, &Ncf, sizeof(Ncf)) != sizeof(Ncf)) { ^~~~ fread socks_rdfz.c:43:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:43:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:51:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:51:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:54:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) malloc(Ncf * (sizeof(struct config))); ^~~~~~ socks_rdfz.c:54:29: warning: incompatible implicit declaration of built-in function 'malloc' socks_rdfz.c:54:29: note: include '' or provide a declaration of 'malloc' socks_rdfz.c:60:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:60:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:67:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:67:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:72:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(fd); ^~~~~ pclose socks_rdfz.c:80:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:80:3: note: include '' or provide a declaration of 'exit' socks_rdfz.c:88:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_rdfz.c:88:3: note: include '' or provide a declaration of 'exit' gcc -fPIC -I../include -g -DLINUX -c -o socks_wrfz.lo socks_wrfz.c socks_wrfz.c: In function 'socks_wrfz': socks_wrfz.c:40:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ((stringarea = (char *)malloc(stringsize)) == NULL) { ^~~~~~ socks_wrfz.c:40:29: warning: incompatible implicit declaration of built-in function 'malloc' socks_wrfz.c:40:29: note: include '' or provide a declaration of 'malloc' socks_wrfz.c:11:1: +#include socks_wrfz.c:40:29: if ((stringarea = (char *)malloc(stringsize)) == NULL) { ^~~~~~ socks_wrfz.c:45:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ socks_wrfz.c:45:4: warning: incompatible implicit declaration of built-in function 'exit' socks_wrfz.c:45:4: note: include '' or provide a declaration of 'exit' socks_wrfz.c:83:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:83:3: note: include '' or provide a declaration of 'exit' socks_wrfz.c:85:6: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(fd, &Nconf, sizeof(Nconf)) != sizeof(Nconf)) { ^~~~~ fwrite socks_wrfz.c:90:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:90:3: note: include '' or provide a declaration of 'exit' socks_wrfz.c:97:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:97:3: note: include '' or provide a declaration of 'exit' socks_wrfz.c:104:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:104:3: note: include '' or provide a declaration of 'exit' socks_wrfz.c:111:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ socks_wrfz.c:111:3: note: include '' or provide a declaration of 'exit' gcc -fPIC -I../include -g -DLINUX -c -o socks_dumpcf.lo socks_dumpcf.c gcc -fPIC -I../include -g -DLINUX -c -o sockd_dumpcf.lo sockd_dumpcf.c gcc -fPIC -I../include -g -DLINUX -c -o sockd_dumprt.lo sockd_dumprt.c gcc -fPIC -I../include -g -DLINUX -c -o sockd_rdconf.lo sockd_rdconf.c sockd_rdconf.c: In function 'sockd_rdconf': sockd_rdconf.c:39:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ sockd_rdconf.c:39:3: warning: incompatible implicit declaration of built-in function 'exit' sockd_rdconf.c:39:3: note: include '' or provide a declaration of 'exit' sockd_rdconf.c:11:1: +#include sockd_rdconf.c:39:3: exit(1); ^~~~ sockd_rdconf.c:44:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(cp->userlist); ^~~~ sockd_rdconf.c:44:4: warning: incompatible implicit declaration of built-in function 'free' sockd_rdconf.c:44:4: note: include '' or provide a declaration of 'free' sockd_rdconf.c:46:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->cmdp); ^~~~ sockd_rdconf.c:46:4: note: include '' or provide a declaration of 'free' sockd_rdconf.c:48:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->sdomain); ^~~~ sockd_rdconf.c:48:4: note: include '' or provide a declaration of 'free' sockd_rdconf.c:50:4: warning: incompatible implicit declaration of built-in function 'free' free(cp->ddomain); ^~~~ sockd_rdconf.c:50:4: note: include '' or provide a declaration of 'free' sockd_rdconf.c:53:3: warning: incompatible implicit declaration of built-in function 'free' free(*cfAddrPtr); ^~~~ sockd_rdconf.c:53:3: note: include '' or provide a declaration of 'free' sockd_rdconf.c:55:3: warning: incompatible implicit declaration of built-in function 'free' free(*no_identd_cmd); ^~~~ sockd_rdconf.c:55:3: note: include '' or provide a declaration of 'free' sockd_rdconf.c:59:3: warning: incompatible implicit declaration of built-in function 'free' free(*bad_id_cmd); ^~~~ sockd_rdconf.c:59:3: note: include '' or provide a declaration of 'free' sockd_rdconf.c:64:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) malloc( maxcf * sizeof(struct config)); ^~~~~~ sockd_rdconf.c:64:29: warning: incompatible implicit declaration of built-in function 'malloc' sockd_rdconf.c:64:29: note: include '' or provide a declaration of 'malloc' sockd_rdconf.c:107:3: warning: implicit declaration of function 'socks_mkargs'; did you mean 'sockatmark'? [-Wimplicit-function-declaration] socks_mkargs(buf, &argc, argv, 10); ^~~~~~~~~~~~ sockatmark sockd_rdconf.c:116:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdconf.c:116:4: note: include '' or provide a declaration of 'exit' sockd_rdconf.c:175:7: warning: implicit declaration of function 'socks_GetAddr'; did you mean 'socketpair'? [-Wimplicit-function-declaration] if (socks_GetAddr(argv[next_arg++], &cp->saddr, &cp->sdomain) == -1){ ^~~~~~~~~~~~~ socketpair sockd_rdconf.c:178:7: warning: implicit declaration of function 'socks_GetQuad' [-Wimplicit-function-declaration] if (socks_GetQuad(argv[next_arg++], &cp->smask) == -1) { ^~~~~~~~~~~~~ sockd_rdconf.c:232:14: warning: implicit declaration of function 'socks_GetPort' [-Wimplicit-function-declaration] if (((p = socks_GetPort(argv[next_arg+1])) < 0) || ^~~~~~~~~~~~~ sockd_rdconf.c:250:31: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] cfAddr = (struct config *) realloc(cfAddr, maxcf * sizeof(struct config)); ^~~~~~~ sockd_rdconf.c:250:31: warning: incompatible implicit declaration of built-in function 'realloc' sockd_rdconf.c:250:31: note: include '' or provide a declaration of 'realloc' sockd_rdconf.c:264:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdconf.c:264:3: note: include '' or provide a declaration of 'exit' sockd_rdconf.c:267:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdconf.c:267:3: note: include '' or provide a declaration of 'exit' sockd_rdconf.c:269:30: warning: incompatible implicit declaration of built-in function 'realloc' cfAddr = (struct config *) realloc(cfAddr, Ncf * sizeof(struct config)); ^~~~~~~ sockd_rdconf.c:269:30: note: include '' or provide a declaration of 'realloc' sockd_rdconf.c:279:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdconf.c:279:2: note: include '' or provide a declaration of 'exit' gcc -fPIC -I../include -g -DLINUX -c -o sockd_rdroute.lo sockd_rdroute.c sockd_rdroute.c: In function 'sockd_rdroute': sockd_rdroute.c:38:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ sockd_rdroute.c:38:3: warning: incompatible implicit declaration of built-in function 'exit' sockd_rdroute.c:38:3: note: include '' or provide a declaration of 'exit' sockd_rdroute.c:12:1: +#include sockd_rdroute.c:38:3: exit(1); ^~~~ sockd_rdroute.c:43:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(cp->ddomain); ^~~~ sockd_rdroute.c:43:4: warning: incompatible implicit declaration of built-in function 'free' sockd_rdroute.c:43:4: note: include '' or provide a declaration of 'free' sockd_rdroute.c:46:3: warning: incompatible implicit declaration of built-in function 'free' free(*rtAddrPtr); ^~~~ sockd_rdroute.c:46:3: note: include '' or provide a declaration of 'free' sockd_rdroute.c:49:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] rtAddr = (struct config *) malloc( maxrt * sizeof(struct config)); ^~~~~~ sockd_rdroute.c:49:29: warning: incompatible implicit declaration of built-in function 'malloc' sockd_rdroute.c:49:29: note: include '' or provide a declaration of 'malloc' sockd_rdroute.c:78:3: warning: implicit declaration of function 'socks_mkargs'; did you mean 'sockatmark'? [-Wimplicit-function-declaration] socks_mkargs(buf, &argc, argv, 10); ^~~~~~~~~~~~ sockatmark sockd_rdroute.c:87:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdroute.c:87:4: note: include '' or provide a declaration of 'exit' sockd_rdroute.c:90:7: warning: implicit declaration of function 'socks_GetQuad' [-Wimplicit-function-declaration] if (socks_GetQuad(argv[0], &cp->saddr) == -1) { ^~~~~~~~~~~~~ sockd_rdroute.c:98:7: warning: implicit declaration of function 'socks_GetAddr'; did you mean 'socketpair'? [-Wimplicit-function-declaration] if (socks_GetAddr(argv[1], &cp->daddr, &cp->ddomain) == -1){ ^~~~~~~~~~~~~ socketpair sockd_rdroute.c:113:31: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] rtAddr = (struct config *) realloc(rtAddr, maxrt * sizeof(struct config)); ^~~~~~~ sockd_rdroute.c:113:31: warning: incompatible implicit declaration of built-in function 'realloc' sockd_rdroute.c:113:31: note: include '' or provide a declaration of 'realloc' sockd_rdroute.c:127:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdroute.c:127:3: note: include '' or provide a declaration of 'exit' sockd_rdroute.c:130:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdroute.c:130:3: note: include '' or provide a declaration of 'exit' sockd_rdroute.c:132:30: warning: incompatible implicit declaration of built-in function 'realloc' rtAddr = (struct config *) realloc(rtAddr, Nrt * sizeof(struct config)); ^~~~~~~ sockd_rdroute.c:132:30: note: include '' or provide a declaration of 'realloc' sockd_rdroute.c:142:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd_rdroute.c:142:2: note: include '' or provide a declaration of 'exit' gcc -fPIC -I../include -g -DLINUX -c -o getpass.lo getpass.c getpass.c: In function 'getpass': getpass.c:94:2: warning: 'sigblock' is deprecated [-Wdeprecated-declarations] omask = sigblock(sigmask(SIGINT)); ^~~~~ In file included from /usr/include/arm-linux-gnueabihf/sys/signal.h:1, from getpass.c:44: /usr/include/signal.h:170:12: note: declared here extern int sigblock (int __mask) __THROW __attribute_deprecated__; ^~~~~~~~ getpass.c:109:8: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] (void)write(fileno(outfp), "\n", 1); ^~~~~ fwrite getpass.c:124:2: warning: 'sigsetmask' is deprecated [-Wdeprecated-declarations] (void)sigsetmask(omask); ^ In file included from /usr/include/arm-linux-gnueabihf/sys/signal.h:1, from getpass.c:44: /usr/include/signal.h:173:12: note: declared here extern int sigsetmask (int __mask) __THROW __attribute_deprecated__; ^~~~~~~~~~ rm -f libsocks.so.4.3 gcc -shared -o libsocks.so.4.3 -Wl,-soname,libsocks.so.4 -Wl,--whole-archive Rconnect.lo SendGetDst.lo porttoserv.lo utils.lo Rbind.lo Rgethostbyname.lo Rselect.lo null_syslog.lo shell_cmd.lo socks_ckcf.lo socks_rdconf.lo socks_rdfz.lo socks_wrfz.lo socks_dumpcf.lo sockd_dumpcf.lo sockd_dumprt.lo sockd_rdconf.lo sockd_rdroute.lo getpass.lo -Wl,--no-whole-archive -lc ln -sf libsocks.so.4.3 libsocks.so.4 ln -sf libsocks.so.4.3 libsocks.so make[2]: Leaving directory '/build/socks4-server-4.3.beta2/lib' (cd mkfc; make CC="gcc" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ RESOLV_LIB="" \ OPTIMIZE="-g" OTHER_CFLAGS="-DLINUX " ) make[2]: Entering directory '/build/socks4-server-4.3.beta2/mkfc' /build/socks4-server-4.3.beta2/mkfc gcc -I../include -g -DLINUX -c -o make_socksfc.o make_socksfc.c make_socksfc.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ make_socksfc.c: In function 'main': make_socksfc.c:21:6: warning: implicit declaration of function 'socks_rdconf' [-Wimplicit-function-declaration] if (socks_rdconf(infile, &confAddr, &Nconf, useSyslog) == -1) { ^~~~~~~~~~~~ make_socksfc.c:23:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ make_socksfc.c:23:3: warning: incompatible implicit declaration of built-in function 'exit' make_socksfc.c:23:3: note: include '' or provide a declaration of 'exit' make_socksfc.c:6:1: +#include make_socksfc.c:23:3: exit(1); ^~~~ make_socksfc.c:25:2: warning: implicit declaration of function 'socks_wrfz' [-Wimplicit-function-declaration] socks_wrfz(outfile, confAddr, Nconf, useSyslog); ^~~~~~~~~~ gcc -I../include -g -DLINUX -o make_socksfc make_socksfc.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks gcc -I../include -g -DLINUX -c -o make_sockdfc.o make_sockdfc.c make_sockdfc.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ make_sockdfc.c: In function 'main': make_sockdfc.c:22:6: warning: implicit declaration of function 'sockd_rdconf' [-Wimplicit-function-declaration] if (sockd_rdconf(infile, &confAddr, &Nconf, &ptr1, &ptr2, useSyslog) == -1) { ^~~~~~~~~~~~ make_sockdfc.c:24:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ make_sockdfc.c:24:3: warning: incompatible implicit declaration of built-in function 'exit' make_sockdfc.c:24:3: note: include '' or provide a declaration of 'exit' make_sockdfc.c:6:1: +#include make_sockdfc.c:24:3: exit(1); ^~~~ make_sockdfc.c:26:2: warning: implicit declaration of function 'socks_wrfz' [-Wimplicit-function-declaration] socks_wrfz(outfile, confAddr, Nconf, useSyslog); ^~~~~~~~~~ gcc -I../include -g -DLINUX -o make_sockdfc make_sockdfc.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks gcc -I../include -g -DLINUX -c -o make_sockdfr.o make_sockdfr.c make_sockdfr.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ make_sockdfr.c: In function 'main': make_sockdfr.c:21:6: warning: implicit declaration of function 'sockd_rdroute' [-Wimplicit-function-declaration] if (sockd_rdroute(infile, &confAddr, &Nconf, useSyslog) == -1) { ^~~~~~~~~~~~~ make_sockdfr.c:23:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ make_sockdfr.c:23:3: warning: incompatible implicit declaration of built-in function 'exit' make_sockdfr.c:23:3: note: include '' or provide a declaration of 'exit' make_sockdfr.c:6:1: +#include make_sockdfr.c:23:3: exit(1); ^~~~ make_sockdfr.c:25:2: warning: implicit declaration of function 'socks_wrfz' [-Wimplicit-function-declaration] socks_wrfz(outfile, confAddr, Nconf, useSyslog); ^~~~~~~~~~ gcc -I../include -g -DLINUX -o make_sockdfr make_sockdfr.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks gcc -I../include -g -DLINUX -c -o dump_socksfc.o dump_socksfc.c dump_socksfc.c:12:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ dump_socksfc.c: In function 'main': dump_socksfc.c:24:2: warning: implicit declaration of function 'socks_rdfz' [-Wimplicit-function-declaration] socks_rdfz(file, &cfAddr, &Ncf, &cfstrings, useSyslog); ^~~~~~~~~~ dump_socksfc.c:25:2: warning: implicit declaration of function 'socks_dumpcf' [-Wimplicit-function-declaration] socks_dumpcf(cfAddr, Ncf, useSyslog); ^~~~~~~~~~~~ gcc -I../include -g -DLINUX -o dump_socksfc dump_socksfc.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks gcc -I../include -g -DLINUX -c -o dump_sockdfc.o dump_sockdfc.c dump_sockdfc.c:12:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ dump_sockdfc.c: In function 'main': dump_sockdfc.c:24:2: warning: implicit declaration of function 'socks_rdfz' [-Wimplicit-function-declaration] socks_rdfz(file, &cfAddr, &Ncf, &cfstrings, useSyslog); ^~~~~~~~~~ dump_sockdfc.c:25:2: warning: implicit declaration of function 'sockd_dumpcf' [-Wimplicit-function-declaration] sockd_dumpcf(cfAddr, Ncf, useSyslog); ^~~~~~~~~~~~ gcc -I../include -g -DLINUX -o dump_sockdfc dump_sockdfc.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks gcc -I../include -g -DLINUX -c -o dump_sockdfr.o dump_sockdfr.c dump_sockdfr.c:12:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ dump_sockdfr.c: In function 'main': dump_sockdfr.c:24:2: warning: implicit declaration of function 'socks_rdfz' [-Wimplicit-function-declaration] socks_rdfz(file, &rtAddr, &Nrt, &rtstrings, useSyslog); ^~~~~~~~~~ dump_sockdfr.c:25:2: warning: implicit declaration of function 'sockd_dumprt'; did you mean 'sockatmark'? [-Wimplicit-function-declaration] sockd_dumprt(rtAddr, Nrt, useSyslog); ^~~~~~~~~~~~ sockatmark gcc -I../include -g -DLINUX -o dump_sockdfr dump_sockdfr.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks make[2]: Leaving directory '/build/socks4-server-4.3.beta2/mkfc' (cd sockd; make CC="gcc" RESOLV_LIB="" \ OPTIMIZE="-g" RANLIB="ranlib" \ SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ IDENT_LIB="-lident" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/sockd' /build/socks4-server-4.3.beta2/sockd gcc -I../include -g -DLINUX -c -o sockd_ckcf.o sockd_ckcf.c sockd_ckcf.c: In function 'sockd_ckcf': sockd_ckcf.c:41:7: warning: implicit declaration of function 'socks_ckadr'; did you mean 'sockd_ckcf'? [-Wimplicit-function-declaration] if (socks_ckadr(srcshp, cp->sdomain, &cp->saddr, &cp->smask) && ^~~~~~~~~~~ sockd_ckcf sockd_ckcf.c:43:7: warning: implicit declaration of function 'socks_ckusr'; did you mean 'sockd_ckcf'? [-Wimplicit-function-declaration] socks_ckusr(cp->userlist, srcshp->user, useSyslog) && ^~~~~~~~~~~ sockd_ckcf sockd_ckcf.c:44:7: warning: implicit declaration of function 'socks_ckprt'; did you mean 'sockd_ckcf'? [-Wimplicit-function-declaration] socks_ckprt(cp->tst, dst_sin_port, cp->dport)) ^~~~~~~~~~~ sockd_ckcf sockd_ckcf.c:61:4: warning: implicit declaration of function 'socks_shell_cmd' [-Wimplicit-function-declaration] socks_shell_cmd(cp->cmdp, srcshp, dstshp); ^~~~~~~~~~~~~~~ gcc -I../include -g -DLINUX -c -o sockd_ckrt.o sockd_ckrt.c sockd_ckrt.c: In function 'sockd_ckrt': sockd_ckrt.c:19:7: warning: implicit declaration of function 'socks_ckadr'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] if (socks_ckadr(dstshp, cp->ddomain, &cp->daddr, &cp->dmask) == 1) { ^~~~~~~~~~~ sockd_ckrt sockd_ckrt.c:24:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ sockd_ckrt.c:24:2: warning: incompatible implicit declaration of built-in function 'exit' sockd_ckrt.c:24:2: note: include '' or provide a declaration of 'exit' sockd_ckrt.c:8:1: +#include sockd_ckrt.c:24:2: exit(1); ^~~~ gcc -I../include -g -DLINUX -c -o sockd_getspcmd.o sockd_getspcmd.c sockd_getspcmd.c: In function 'sockd_getspcmd': sockd_getspcmd.c:30:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ sockd_getspcmd.c:10:5: note: declared here int sockd_getspcmd(cfAddr, Ncf, no_identd_cmd, bad_id_cmd) ^~~~~~~~~~~~~~ sockd_getspcmd.c:35:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ sockd_getspcmd.c:10:5: note: declared here int sockd_getspcmd(cfAddr, Ncf, no_identd_cmd, bad_id_cmd) ^~~~~~~~~~~~~~ gcc -I../include -g -DLINUX -c -o sockd_fail.o sockd_fail.c sockd_fail.c: In function 'sockd_fail': sockd_fail.c:15:2: warning: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration] socks_SendDst(in, ndst); ^~~~~~~~~~~~~ sockd_fail.c:16:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ sockd_fail.c:16:2: warning: incompatible implicit declaration of built-in function 'exit' sockd_fail.c:16:2: note: include '' or provide a declaration of 'exit' sockd_fail.c:6:1: +#include sockd_fail.c:16:2: exit(1); ^~~~ gcc -I../include -g -DLINUX -c -o setproctitle.o setproctitle.c setproctitle.c:22:1: warning: return type defaults to 'int' [-Wimplicit-int] socks_setproctitle(buf, Argv, LastArgv) ^~~~~~~~~~~~~~~~~~ gcc -I../include -g -DLINUX -c -o DoConnect.o DoConnect.c DoConnect.c: In function 'DoConnect': DoConnect.c:35:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] bzero((char *)&sin, sizeof(sin)); ^~~~~ DoConnect.c:35:2: warning: incompatible implicit declaration of built-in function 'bzero' DoConnect.c:57:3: warning: implicit declaration of function 'close'; did you mean 'closelog'? [-Wimplicit-function-declaration] close(out); ^~~~~ closelog DoConnect.c:66:2: warning: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration] socks_SendDst(in, &ndst); ^~~~~~~~~~~~~ gcc -I../include -g -DLINUX -c -o DoNewBind.o DoNewBind.c DoNewBind.c: In function 'DoNewBind': DoNewBind.c:50:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] bzero((char *)&sin, sizeof(sin)); ^~~~~ DoNewBind.c:50:2: warning: incompatible implicit declaration of built-in function 'bzero' DoNewBind.c:108:2: warning: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration] socks_SendDst(in, &ndst); ^~~~~~~~~~~~~ DoNewBind.c:122:2: warning: implicit declaration of function 'close'; did you mean 'closelog'? [-Wimplicit-function-declaration] close(out); ^~~~~ closelog DoNewBind.c:133:4: warning: implicit declaration of function 'socks_IPtohost'; did you mean 'socks_porttoserv'? [-Wimplicit-function-declaration] socks_IPtohost(&sin.sin_addr, dstshp); ^~~~~~~~~~~~~~ socks_porttoserv DoNewBind.c:139:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ DoNewBind.c:139:4: warning: incompatible implicit declaration of built-in function 'exit' DoNewBind.c:139:4: note: include '' or provide a declaration of 'exit' DoNewBind.c:8:1: +#include DoNewBind.c:139:4: exit(1); ^~~~ gcc -I../include -g -DLINUX -DSOCKSIFIED_SOCKD -c -o RDoConnect.o DoConnect.c DoConnect.c: In function 'RDoConnect': DoConnect.c:35:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] bzero((char *)&sin, sizeof(sin)); ^~~~~ DoConnect.c:35:2: warning: incompatible implicit declaration of built-in function 'bzero' DoConnect.c:52:11: warning: implicit declaration of function 'Rconnect'; did you mean 'connect'? [-Wimplicit-function-declaration] cstat = Rconnect(out, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)); ^~~~~~~~ connect DoConnect.c:57:3: warning: implicit declaration of function 'close'; did you mean 'closelog'? [-Wimplicit-function-declaration] close(out); ^~~~~ closelog DoConnect.c:66:2: warning: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration] socks_SendDst(in, &ndst); ^~~~~~~~~~~~~ gcc -I../include -g -DLINUX -DSOCKSIFIED_SOCKD -c -o RDoNewBind.o DoNewBind.c DoNewBind.c: In function 'RDoNewBind': DoNewBind.c:50:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] bzero((char *)&sin, sizeof(sin)); ^~~~~ DoNewBind.c:50:2: warning: incompatible implicit declaration of built-in function 'bzero' DoNewBind.c:76:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(socks_srcsh.user, srcshp->user); ^~~~~~ DoNewBind.c:76:2: warning: incompatible implicit declaration of built-in function 'strcpy' DoNewBind.c:76:2: note: include '' or provide a declaration of 'strcpy' DoNewBind.c:8:1: +#include DoNewBind.c:76:2: strcpy(socks_srcsh.user, srcshp->user); ^~~~~~ DoNewBind.c:80:6: warning: implicit declaration of function 'Rbind'; did you mean 'bind'? [-Wimplicit-function-declaration] if (Rbind(out, (struct sockaddr *)&sin, sizeof(sin)) < 0) ^~~~~ bind DoNewBind.c:82:6: warning: implicit declaration of function 'Rgetsockname'; did you mean 'getsockname'? [-Wimplicit-function-declaration] if (Rgetsockname(out, (struct sockaddr *)&sin, &len) < 0) ^~~~~~~~~~~~ getsockname DoNewBind.c:101:6: warning: implicit declaration of function 'Rlisten'; did you mean 'listen'? [-Wimplicit-function-declaration] if (Rlisten(out, 1) < 0) ^~~~~~~ listen DoNewBind.c:108:2: warning: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration] socks_SendDst(in, &ndst); ^~~~~~~~~~~~~ DoNewBind.c:112:13: warning: implicit declaration of function 'Raccept'; did you mean 'accept'? [-Wimplicit-function-declaration] if ((new = Raccept(out, (struct sockaddr *)&sin, &len)) < 0) ^~~~~~~ accept DoNewBind.c:122:2: warning: implicit declaration of function 'close'; did you mean 'closelog'? [-Wimplicit-function-declaration] close(out); ^~~~~ closelog rm -f libsockd.a ar rc libsockd.a sockd_ckcf.o sockd_ckrt.o sockd_getspcmd.o sockd_fail.o setproctitle.o DoConnect.o DoNewBind.o RDoConnect.o RDoNewBind.o ranlib libsockd.a gcc -I../include -g -DLINUX -c -o sockd.o sockd.c sockd.c: In function 'readConfig': sockd.c:84:3: warning: implicit declaration of function 'socks_rdfz'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_rdfz(SOCKD_FC, &cfAddr, &Ncf, &cfStrings, useSyslog); ^~~~~~~~~~ socks_cmd sockd.c:85:3: warning: implicit declaration of function 'sockd_getspcmd'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] sockd_getspcmd(cfAddr, Ncf, &no_identd_cmd, &bad_id_cmd); ^~~~~~~~~~~~~~ socks_cmd sockd.c:88:3: warning: implicit declaration of function 'sockd_rdconf'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] sockd_rdconf(SOCKD_CONF, &cfAddr, &Ncf, &no_identd_cmd, &bad_id_cmd, useSyslog); ^~~~~~~~~~~~ sockd_ckrt sockd.c:95:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ sockd.c:95:3: warning: incompatible implicit declaration of built-in function 'exit' sockd.c:95:3: note: include '' or provide a declaration of 'exit' sockd.c:29:1: +#include #define IDENTD_TIMEOUT 15 /* 15 seconds */ sockd.c:95:3: exit(1); ^~~~ sockd.c:105:10: warning: implicit declaration of function 'sockd_rdroute'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] sockd_rdroute(SOCKD_ROUTE_FILE, &rtAddr, &Nrt, useSyslog); ^~~~~~~~~~~~~ sockd_ckrt sockd.c:112:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:112:3: note: include '' or provide a declaration of 'exit' sockd.c: In function 'die': sockd.c:163:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:163:2: note: include '' or provide a declaration of 'exit' sockd.c: At top level: sockd.c:178:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ sockd.c: In function 'main': sockd.c:293:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:293:3: note: include '' or provide a declaration of 'exit' sockd.c:347:6: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] if (gethostname(name, sizeof(name)) < 0) { ^~~~~~~~~~~ gethostbyname sockd.c:349:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:349:3: note: include '' or provide a declaration of 'exit' sockd.c:353:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:353:3: note: include '' or provide a declaration of 'exit' sockd.c:419:7: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] in = dup(0); ^~~ sockd.c:424:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:424:3: note: include '' or provide a declaration of 'exit' sockd.c:430:6: warning: implicit declaration of function 'socks_IPtohost' [-Wimplicit-function-declaration] if (socks_IPtohost(&from.sin_addr, &srcsh) < 0) { ^~~~~~~~~~~~~~ sockd.c:432:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:432:3: note: include '' or provide a declaration of 'exit' sockd.c:436:6: warning: implicit declaration of function 'socks_GetDst'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] if (socks_GetDst(in, &dst) < 0) { ^~~~~~~~~~~~ sockd_ckrt sockd.c:438:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:438:3: note: include '' or provide a declaration of 'exit' sockd.c:444:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:444:3: note: include '' or provide a declaration of 'exit' sockd.c:456:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:456:3: note: include '' or provide a declaration of 'exit' sockd.c:464:9: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while (read(in, &c, 1) == 1) ^~~~ fread sockd.c:477:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:477:4: note: include '' or provide a declaration of 'exit' sockd.c:492:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:492:4: note: include '' or provide a declaration of 'exit' sockd.c:497:6: warning: implicit declaration of function 'socks_host'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] if(socks_host(name, &dstsh) < 0) { ^~~~~~~~~~ sockd_ckrt sockd.c:499:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:499:4: note: include '' or provide a declaration of 'exit' sockd.c:507:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:507:4: note: include '' or provide a declaration of 'exit' sockd.c:514:11: warning: implicit declaration of function 'sockd_ckcf'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] permit = sockd_ckcf(&srcsh, &dstsh, use_identd, in, cfAddr, Ncf, no_identd_cmd, bad_id_cmd, useSyslog); ^~~~~~~~~~ sockd_ckrt sockd.c:541:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:541:3: note: include '' or provide a declaration of 'exit' sockd.c:548:3: warning: implicit declaration of function 'socks_SendDst'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_SendDst(in, &dst); ^~~~~~~~~~~~~ socks_cmd sockd.c:549:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:549:3: note: include '' or provide a declaration of 'exit' sockd.c:555:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:555:3: note: include '' or provide a declaration of 'exit' sockd.c:559:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:559:3: note: include '' or provide a declaration of 'exit' sockd.c:576:2: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] alarm(60*2); ^~~~~ sockd.c:630:10: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(out, netbuf, n) < 0) { ^~~~~ fwrite gcc -I../include -g -DLINUX -o sockd sockd.o libsockd.a -L/build/socks4-server-4.3.beta2/lib/ -lsocks -lident gcc -I../include -g -DLINUX -DSOCKSIFIED_SOCKD -c -o rsockd.o sockd.c sockd.c: In function 'readConfig': sockd.c:84:3: warning: implicit declaration of function 'socks_rdfz'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_rdfz(SOCKD_FC, &cfAddr, &Ncf, &cfStrings, useSyslog); ^~~~~~~~~~ socks_cmd sockd.c:85:3: warning: implicit declaration of function 'sockd_getspcmd'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] sockd_getspcmd(cfAddr, Ncf, &no_identd_cmd, &bad_id_cmd); ^~~~~~~~~~~~~~ socks_cmd sockd.c:88:3: warning: implicit declaration of function 'sockd_rdconf'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] sockd_rdconf(SOCKD_CONF, &cfAddr, &Ncf, &no_identd_cmd, &bad_id_cmd, useSyslog); ^~~~~~~~~~~~ sockd_ckrt sockd.c:95:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ sockd.c:95:3: warning: incompatible implicit declaration of built-in function 'exit' sockd.c:95:3: note: include '' or provide a declaration of 'exit' sockd.c:29:1: +#include #define IDENTD_TIMEOUT 15 /* 15 seconds */ sockd.c:95:3: exit(1); ^~~~ sockd.c:105:10: warning: implicit declaration of function 'sockd_rdroute'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] sockd_rdroute(SOCKD_ROUTE_FILE, &rtAddr, &Nrt, useSyslog); ^~~~~~~~~~~~~ sockd_ckrt sockd.c:112:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:112:3: note: include '' or provide a declaration of 'exit' sockd.c: In function 'die': sockd.c:163:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:163:2: note: include '' or provide a declaration of 'exit' sockd.c: At top level: sockd.c:178:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ sockd.c: In function 'main': sockd.c:293:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:293:3: note: include '' or provide a declaration of 'exit' sockd.c:347:6: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] if (gethostname(name, sizeof(name)) < 0) { ^~~~~~~~~~~ gethostbyname sockd.c:349:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:349:3: note: include '' or provide a declaration of 'exit' sockd.c:353:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:353:3: note: include '' or provide a declaration of 'exit' sockd.c:419:7: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] in = dup(0); ^~~ sockd.c:424:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:424:3: note: include '' or provide a declaration of 'exit' sockd.c:430:6: warning: implicit declaration of function 'socks_IPtohost' [-Wimplicit-function-declaration] if (socks_IPtohost(&from.sin_addr, &srcsh) < 0) { ^~~~~~~~~~~~~~ sockd.c:432:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:432:3: note: include '' or provide a declaration of 'exit' sockd.c:436:6: warning: implicit declaration of function 'socks_GetDst'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] if (socks_GetDst(in, &dst) < 0) { ^~~~~~~~~~~~ sockd_ckrt sockd.c:438:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:438:3: note: include '' or provide a declaration of 'exit' sockd.c:444:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:444:3: note: include '' or provide a declaration of 'exit' sockd.c:456:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:456:3: note: include '' or provide a declaration of 'exit' sockd.c:464:9: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while (read(in, &c, 1) == 1) ^~~~ fread sockd.c:477:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:477:4: note: include '' or provide a declaration of 'exit' sockd.c:492:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:492:4: note: include '' or provide a declaration of 'exit' sockd.c:497:6: warning: implicit declaration of function 'socks_host'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] if(socks_host(name, &dstsh) < 0) { ^~~~~~~~~~ sockd_ckrt sockd.c:499:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:499:4: note: include '' or provide a declaration of 'exit' sockd.c:514:11: warning: implicit declaration of function 'sockd_ckcf'; did you mean 'sockd_ckrt'? [-Wimplicit-function-declaration] permit = sockd_ckcf(&srcsh, &dstsh, use_identd, in, cfAddr, Ncf, no_identd_cmd, bad_id_cmd, useSyslog); ^~~~~~~~~~ sockd_ckrt sockd.c:541:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:541:3: note: include '' or provide a declaration of 'exit' sockd.c:548:3: warning: implicit declaration of function 'socks_SendDst'; did you mean 'socks_cmd'? [-Wimplicit-function-declaration] socks_SendDst(in, &dst); ^~~~~~~~~~~~~ socks_cmd sockd.c:549:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:549:3: note: include '' or provide a declaration of 'exit' sockd.c:555:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:555:3: note: include '' or provide a declaration of 'exit' sockd.c:559:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:559:3: note: include '' or provide a declaration of 'exit' sockd.c:576:2: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] alarm(60*2); ^~~~~ sockd.c:587:9: warning: implicit declaration of function 'RDoConnect'; did you mean 'DoConnect'? [-Wimplicit-function-declaration] out = RDoConnect(in, &dstsh, log_msg); ^~~~~~~~~~ DoConnect sockd.c:594:9: warning: implicit declaration of function 'RDoNewBind'; did you mean 'DoNewBind'? [-Wimplicit-function-declaration] out = RDoNewBind(in, &srcsh, &dstsh, rtAddr, Nrt, myaddr, log_msg); ^~~~~~~~~~ DoNewBind sockd.c:630:10: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(out, netbuf, n) < 0) { ^~~~~ fwrite gcc -I../include -g -DLINUX -o rsockd rsockd.o libsockd.a -L/build/socks4-server-4.3.beta2/lib/ -lsocks -lident make[2]: Leaving directory '/build/socks4-server-4.3.beta2/sockd' (cd rfinger; make CC="gcc" WHOIS_SERVER=-DWHOIS_SERVER\'=\"rs.internic.net\"\' \ OPTIMIZE="-g" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" \ RESOLV_LIB="" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/rfinger' /build/socks4-server-4.3.beta2/rfinger gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -c -o finger.o finger.c finger.c: In function 'main': finger.c:49:2: warning: implicit declaration of function 'SOCKSinit'; did you mean 'SOCKS_FC'? [-Wimplicit-function-declaration] SOCKSinit(Progname); ^~~~~~~~~ SOCKS_FC finger.c:67:3: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(cp, " "); ^~~~~~ finger.c:67:3: warning: incompatible implicit declaration of built-in function 'strcat' finger.c:67:3: note: include '' or provide a declaration of 'strcat' finger.c:16:1: +#include finger.c:67:3: strcat(cp, " "); ^~~~~~ finger.c:69:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(argv[i], "-l")) { ^~~~~~ finger.c:71:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] cp += strlen(argv[i]); ^~~~~~ finger.c:71:9: warning: incompatible implicit declaration of built-in function 'strlen' finger.c:71:9: note: include '' or provide a declaration of 'strlen' finger.c:84:3: warning: implicit declaration of function 'execvp' [-Wimplicit-function-declaration] execvp(cp, argv); ^~~~~~ finger.c:86:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ finger.c:86:3: warning: incompatible implicit declaration of built-in function 'exit' finger.c:86:3: note: include '' or provide a declaration of 'exit' finger.c:16:1: +#include finger.c:86:3: exit(1); ^~~~ finger.c:94:12: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] if ((v = atoi(service)) == 0) { ^~~~ finger.c:97:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:97:4: note: include '' or provide a declaration of 'exit' finger.c:108:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:108:4: note: include '' or provide a declaration of 'exit' finger.c:116:4: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(*hp->h_addr_list, &(dstaddr[i].s_addr), hp->h_length); ^~~~~ finger.c:116:4: warning: incompatible implicit declaration of built-in function 'bcopy' finger.c:125:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:125:3: note: include '' or provide a declaration of 'exit' finger.c:128:20: warning: passing argument 2 of 'Rconnect' from incompatible pointer type [-Wincompatible-pointer-types] while (connect(s, &sin, sizeof(sin)) < 0) { ^~~~ In file included from finger.c:4: /usr/include/arm-linux-gnueabihf/sys/socket.h:126:52: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_in *' extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); ^ finger.c:135:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:135:3: note: include '' or provide a declaration of 'exit' finger.c:140:2: warning: incompatible implicit declaration of built-in function 'strcat' strcat(cp, "\r\n"); ^~~~~~ finger.c:140:2: note: include '' or provide a declaration of 'strcat' finger.c:142:6: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(s,cp,strlen(cp)) < 0) { ^~~~~ fwrite finger.c:142:17: warning: incompatible implicit declaration of built-in function 'strlen' if (write(s,cp,strlen(cp)) < 0) { ^~~~~~ finger.c:142:17: note: include '' or provide a declaration of 'strlen' finger.c:147:14: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while ((n = read(s, buf, sizeof(buf) - 1)) > 0) { ^~~~ fread finger.c:151:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(s); ^~~~~ pclose gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -o rfinger finger.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks gcc -DWHOIS_SERVER'="rs.internic.net"' -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -o rwhois finger.c -L/build/socks4-server-4.3.beta2/lib/ -lsocks finger.c: In function 'main': finger.c:49:2: warning: implicit declaration of function 'SOCKSinit'; did you mean 'SOCKS_FC'? [-Wimplicit-function-declaration] SOCKSinit(Progname); ^~~~~~~~~ SOCKS_FC finger.c:60:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ finger.c:60:4: warning: incompatible implicit declaration of built-in function 'exit' finger.c:60:4: note: include '' or provide a declaration of 'exit' finger.c:16:1: +#include finger.c:60:4: exit(1); ^~~~ finger.c:67:3: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(cp, " "); ^~~~~~ finger.c:67:3: warning: incompatible implicit declaration of built-in function 'strcat' finger.c:67:3: note: include '' or provide a declaration of 'strcat' finger.c:16:1: +#include finger.c:67:3: strcat(cp, " "); ^~~~~~ finger.c:69:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(argv[i], "-l")) { ^~~~~~ finger.c:71:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] cp += strlen(argv[i]); ^~~~~~ finger.c:71:9: warning: incompatible implicit declaration of built-in function 'strlen' finger.c:71:9: note: include '' or provide a declaration of 'strlen' finger.c:94:12: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] if ((v = atoi(service)) == 0) { ^~~~ finger.c:97:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:97:4: note: include '' or provide a declaration of 'exit' finger.c:108:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:108:4: note: include '' or provide a declaration of 'exit' finger.c:116:4: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(*hp->h_addr_list, &(dstaddr[i].s_addr), hp->h_length); ^~~~~ finger.c:116:4: warning: incompatible implicit declaration of built-in function 'bcopy' finger.c:125:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:125:3: note: include '' or provide a declaration of 'exit' finger.c:128:20: warning: passing argument 2 of 'Rconnect' from incompatible pointer type [-Wincompatible-pointer-types] while (connect(s, &sin, sizeof(sin)) < 0) { ^~~~ In file included from finger.c:4: /usr/include/arm-linux-gnueabihf/sys/socket.h:126:52: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_in *' extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); ^ finger.c:135:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:135:3: note: include '' or provide a declaration of 'exit' finger.c:140:2: warning: incompatible implicit declaration of built-in function 'strcat' strcat(cp, "\r\n"); ^~~~~~ finger.c:140:2: note: include '' or provide a declaration of 'strcat' finger.c:142:6: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(s,cp,strlen(cp)) < 0) { ^~~~~ fwrite finger.c:142:17: warning: incompatible implicit declaration of built-in function 'strlen' if (write(s,cp,strlen(cp)) < 0) { ^~~~~~ finger.c:142:17: note: include '' or provide a declaration of 'strlen' finger.c:147:14: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while ((n = read(s, buf, sizeof(buf) - 1)) > 0) { ^~~~ fread finger.c:151:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(s); ^~~~~ pclose make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rfinger' (cd rftp; make CC="gcc" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ OPTIMIZE="-g" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" \ RESOLV_LIB="" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/rftp' /build/socks4-server-4.3.beta2/rftp gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -c -o cmds.o cmds.c cmds.c:96:1: warning: return type defaults to 'int' [-Wimplicit-int] another(pargc, pargv, prompt) ^~~~~~~ cmds.c: In function 'another': cmds.c:101:12: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] int len = strlen(line), ret; ^~~~~~ cmds.c:101:12: warning: incompatible implicit declaration of built-in function 'strlen' cmds.c:101:12: note: include '' or provide a declaration of 'strlen' cmds.c:74:1: +#include cmds.c:101:12: int len = strlen(line), ret; ^~~~~~ cmds.c:115:2: warning: implicit declaration of function 'makeargv' [-Wimplicit-function-declaration] makeargv(); ^~~~~~~~ cmds.c: At top level: cmds.c:126:1: warning: return type defaults to 'int' [-Wimplicit-int] setpeer(argc, argv) ^~~~~~~ cmds.c: In function 'setpeer': cmds.c:137:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:126:1: note: declared here setpeer(argc, argv) ^~~~~~~ cmds.c:144:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:126:1: note: declared here setpeer(argc, argv) ^~~~~~~ cmds.c:151:10: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] port = atoi(argv[2]); ^~~~ cmds.c:156:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:126:1: note: declared here setpeer(argc, argv) ^~~~~~~ cmds.c:168:10: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] (void) strcpy(typename, "ascii"), type = TYPE_A; ^~~~~~ cmds.c:168:10: warning: incompatible implicit declaration of built-in function 'strcpy' cmds.c:168:10: note: include '' or provide a declaration of 'strcpy' cmds.c:175:11: warning: implicit declaration of function 'login' [-Wimplicit-function-declaration] (void) login(argv[1]); ^~~~~ cmds.c:185:7: warning: implicit declaration of function 'command'; did you mean 'howmany'? [-Wimplicit-function-declaration] if (command("SYST") == COMPLETE && overbose) { ^~~~~~~ howmany cmds.c:202:8: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (!strncmp(reply_string, "215 UNIX Type: L8", 17)) { ^~~~~~~ cmds.c: At top level: cmds.c:250:1: warning: return type defaults to 'int' [-Wimplicit-int] settype(argc, argv) ^~~~~~~ cmds.c: In function 'settype': cmds.c:268:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:250:1: note: declared here settype(argc, argv) ^~~~~~~ cmds.c:273:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:250:1: note: declared here settype(argc, argv) ^~~~~~~ cmds.c:276:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(argv[1], p->t_name) == 0) ^~~~~~ cmds.c:281:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:250:1: note: declared here settype(argc, argv) ^~~~~~~ cmds.c:288:10: warning: incompatible implicit declaration of built-in function 'strcpy' (void) strcpy(typename, p->t_name); ^~~~~~ cmds.c:288:10: note: include '' or provide a declaration of 'strcpy' cmds.c: At top level: cmds.c:298:1: warning: return type defaults to 'int' [-Wimplicit-int] changetype(newtype, show) ^~~~~~~~~~ cmds.c: In function 'changetype': cmds.c:307:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:298:1: note: declared here changetype(newtype, show) ^~~~~~~~~~ cmds.c:315:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:298:1: note: declared here changetype(newtype, show) ^~~~~~~~~~ cmds.c: At top level: cmds.c:336:1: warning: return type defaults to 'int' [-Wimplicit-int] setbinary() ^~~~~~~~~ cmds.c:346:1: warning: return type defaults to 'int' [-Wimplicit-int] setascii() ^~~~~~~~ cmds.c:356:1: warning: return type defaults to 'int' [-Wimplicit-int] settenex() ^~~~~~~~ cmds.c:366:1: warning: return type defaults to 'int' [-Wimplicit-int] setmode(argc, argv) ^~~~~~~ cmds.c:379:1: warning: return type defaults to 'int' [-Wimplicit-int] setform(argc, argv) ^~~~~~~ cmds.c:392:1: warning: return type defaults to 'int' [-Wimplicit-int] setstruct(argc, argv) ^~~~~~~~~ cmds.c:404:1: warning: return type defaults to 'int' [-Wimplicit-int] put(argc, argv) ^~~ cmds.c: In function 'put': cmds.c:423:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:404:1: note: declared here put(argc, argv) ^~~ cmds.c:427:7: warning: implicit declaration of function 'globulize' [-Wimplicit-function-declaration] if (!globulize(&argv[1])) { ^~~~~~~~~ cmds.c:429:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:404:1: note: declared here put(argc, argv) ^~~ cmds.c:445:2: warning: implicit declaration of function 'sendrequest'; did you mean 'endservent'? [-Wimplicit-function-declaration] sendrequest(cmd, argv[1], argv[2], ^~~~~~~~~~~ endservent cmds.c: At top level: cmds.c:452:1: warning: return type defaults to 'int' [-Wimplicit-int] mput(argc, argv) ^~~~ cmds.c: In function 'mput': cmds.c:466:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:452:1: note: declared here mput(argc, argv) ^~~~ cmds.c:480:17: warning: implicit declaration of function 'confirm' [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], cp)) { ^~~~~~~ cmds.c:519:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:452:1: note: declared here mput(argc, argv) ^~~~ cmds.c:545:5: warning: implicit declaration of function 'blkfree' [-Wimplicit-function-declaration] blkfree(gargs); ^~~~~~~ cmds.c:546:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free((char *)gargs); ^~~~ cmds.c:546:5: warning: incompatible implicit declaration of built-in function 'free' cmds.c:546:5: note: include '' or provide a declaration of 'free' cmds.c:74:1: +#include cmds.c:546:5: free((char *)gargs); ^~~~ cmds.c:568:4: warning: incompatible implicit declaration of built-in function 'free' free((char *)gargs); ^~~~ cmds.c:568:4: note: include '' or provide a declaration of 'free' cmds.c: At top level: cmds.c:575:1: warning: return type defaults to 'int' [-Wimplicit-int] reget(argc, argv) ^~~~~ cmds.c: In function 'reget': cmds.c:579:9: warning: implicit declaration of function 'getit'; did you mean 'getw'? [-Wimplicit-function-declaration] (void) getit(argc, argv, 1, "r+w"); ^~~~~ getw cmds.c: At top level: cmds.c:582:1: warning: return type defaults to 'int' [-Wimplicit-int] get(argc, argv) ^~~ cmds.c:592:1: warning: return type defaults to 'int' [-Wimplicit-int] getit(argc, argv, restartit, mode) ^~~~~ cmds.c: In function 'getit': cmds.c:592:1: warning: type of 'restartit' defaults to 'int' [-Wimplicit-int] cmds.c:697:2: warning: implicit declaration of function 'recvrequest' [-Wimplicit-function-declaration] recvrequest("RETR", argv[2], argv[1], mode, ^~~~~~~~~~~ cmds.c: At top level: cmds.c:727:1: warning: return type defaults to 'int' [-Wimplicit-int] mget(argc, argv) ^~~~ cmds.c: In function 'mget': cmds.c:740:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:727:1: note: declared here mget(argc, argv) ^~~~ cmds.c: In function 'remglob': cmds.c:824:10: warning: incompatible implicit declaration of built-in function 'strcpy' (void) strcpy(temp, _PATH_TMP); ^~~~~~ cmds.c:824:10: note: include '' or provide a declaration of 'strcpy' cmds.c:825:10: warning: implicit declaration of function 'mktemp'; did you mean 'mktime'? [-Wimplicit-function-declaration] (void) mktemp(temp); ^~~~~~ mktime cmds.c:829:4: warning: implicit declaration of function 'pswitch' [-Wimplicit-function-declaration] pswitch(!proxy); ^~~~~~~ cmds.c:838:10: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] (void) unlink(temp); ^~~~~~ unix cmds.c: At top level: cmds.c:865:1: warning: return type defaults to 'int' [-Wimplicit-int] status(argc, argv) ^~~~~~ cmds.c:920:1: warning: return type defaults to 'int' [-Wimplicit-int] setbell() ^~~~~~~ cmds.c:932:1: warning: return type defaults to 'int' [-Wimplicit-int] settrace() ^~~~~~~~ cmds.c:944:1: warning: return type defaults to 'int' [-Wimplicit-int] sethash() ^~~~~~~ cmds.c:959:1: warning: return type defaults to 'int' [-Wimplicit-int] setverbose() ^~~~~~~~~~ cmds.c:971:1: warning: return type defaults to 'int' [-Wimplicit-int] setport() ^~~~~~~ cmds.c:984:1: warning: return type defaults to 'int' [-Wimplicit-int] setprompt() ^~~~~~~~~ cmds.c:997:1: warning: return type defaults to 'int' [-Wimplicit-int] setglob() ^~~~~~~ cmds.c:1010:1: warning: return type defaults to 'int' [-Wimplicit-int] setdebug(argc, argv) ^~~~~~~~ cmds.c: In function 'setdebug': cmds.c:1021:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1010:1: note: declared here setdebug(argc, argv) ^~~~~~~~ cmds.c: At top level: cmds.c:1038:1: warning: return type defaults to 'int' [-Wimplicit-int] cd(argc, argv) ^~ cmds.c: In function 'cd': cmds.c:1046:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1038:1: note: declared here cd(argc, argv) ^~ cmds.c: At top level: cmds.c:1059:1: warning: return type defaults to 'int' [-Wimplicit-int] lcd(argc, argv) ^~~ cmds.c: In function 'lcd': cmds.c:1073:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1059:1: note: declared here lcd(argc, argv) ^~~ cmds.c:1077:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1059:1: note: declared here lcd(argc, argv) ^~~ cmds.c:1079:6: warning: implicit declaration of function 'chdir'; did you mean 'mkdir'? [-Wimplicit-function-declaration] if (chdir(argv[1]) < 0) { ^~~~~ mkdir cmds.c:1082:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1059:1: note: declared here lcd(argc, argv) ^~~ cmds.c: At top level: cmds.c:1095:1: warning: return type defaults to 'int' [-Wimplicit-int] delete(argc, argv) ^~~~~~ cmds.c: In function 'delete': cmds.c:1103:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1095:1: note: declared here delete(argc, argv) ^~~~~~ cmds.c: At top level: cmds.c:1111:1: warning: return type defaults to 'int' [-Wimplicit-int] mdelete(argc, argv) ^~~~~~~ cmds.c: In function 'mdelete': cmds.c:1124:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1111:1: note: declared here mdelete(argc, argv) ^~~~~~~ cmds.c: At top level: cmds.c:1154:1: warning: return type defaults to 'int' [-Wimplicit-int] renamefile(argc, argv) ^~~~~~~~~~ cmds.c: In function 'renamefile': cmds.c:1165:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1154:1: note: declared here renamefile(argc, argv) ^~~~~~~~~~ cmds.c: At top level: cmds.c:1175:1: warning: return type defaults to 'int' [-Wimplicit-int] ls(argc, argv) ^~ cmds.c: In function 'ls': cmds.c:1188:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1175:1: note: declared here ls(argc, argv) ^~ cmds.c:1193:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1175:1: note: declared here ls(argc, argv) ^~ cmds.c:1198:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1175:1: note: declared here ls(argc, argv) ^~ cmds.c: At top level: cmds.c:1207:1: warning: return type defaults to 'int' [-Wimplicit-int] mls(argc, argv) ^~~ cmds.c: In function 'mls': cmds.c:1223:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1207:1: note: declared here mls(argc, argv) ^~~ cmds.c:1231:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1207:1: note: declared here mls(argc, argv) ^~~ cmds.c: At top level: cmds.c:1258:1: warning: return type defaults to 'int' [-Wimplicit-int] shell(argc, argv) ^~~~~ cmds.c: In function 'shell': cmds.c:1273:13: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] if ((pid = fork()) == 0) { ^~~~ cmds.c:1275:11: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] (void) close(pid); ^~~~~ pclose cmds.c:1284:10: warning: incompatible implicit declaration of built-in function 'strcpy' (void) strcpy(shellnam,"-"); ^~~~~~ cmds.c:1284:10: note: include '' or provide a declaration of 'strcpy' cmds.c:1285:10: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] (void) strcat(shellnam, ++namep); ^~~~~~ cmds.c:1285:10: warning: incompatible implicit declaration of built-in function 'strcat' cmds.c:1285:10: note: include '' or provide a declaration of 'strcat' cmds.c:1293:4: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration] execl(shell,shellnam,"-c",altarg,(char *)0); ^~~~~ cmds.c:1293:4: warning: incompatible implicit declaration of built-in function 'execl' cmds.c:1296:4: warning: incompatible implicit declaration of built-in function 'execl' execl(shell,shellnam,(char *)0); ^~~~~ cmds.c:1300:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ cmds.c:1300:3: warning: incompatible implicit declaration of built-in function 'exit' cmds.c:1300:3: note: include '' or provide a declaration of 'exit' cmds.c: At top level: cmds.c:1323:1: warning: return type defaults to 'int' [-Wimplicit-int] user(argc, argv) ^~~~ cmds.c: In function 'user': cmds.c:1343:10: warning: incompatible implicit declaration of built-in function 'strlen' acct[strlen(acct) - 1] = '\0'; ^~~~~~ cmds.c:1343:10: note: include '' or provide a declaration of 'strlen' cmds.c:1355:9: warning: incompatible implicit declaration of built-in function 'strlen' acct[strlen(acct) - 1] = '\0'; ^~~~~~ cmds.c:1355:9: note: include '' or provide a declaration of 'strlen' cmds.c: At top level: cmds.c:1375:1: warning: return type defaults to 'int' [-Wimplicit-int] pwd() ^~~ cmds.c:1393:1: warning: return type defaults to 'int' [-Wimplicit-int] makedir(argc, argv) ^~~~~~~ cmds.c: In function 'makedir': cmds.c:1401:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1393:1: note: declared here makedir(argc, argv) ^~~~~~~ cmds.c: At top level: cmds.c:1413:1: warning: return type defaults to 'int' [-Wimplicit-int] removedir(argc, argv) ^~~~~~~~~ cmds.c: In function 'removedir': cmds.c:1421:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1413:1: note: declared here removedir(argc, argv) ^~~~~~~~~ cmds.c: At top level: cmds.c:1433:1: warning: return type defaults to 'int' [-Wimplicit-int] quote(argc, argv) ^~~~~ cmds.c: In function 'quote': cmds.c:1441:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1433:1: note: declared here quote(argc, argv) ^~~~~ cmds.c:1443:2: warning: implicit declaration of function 'quote1'; did you mean 'quote'? [-Wimplicit-function-declaration] quote1("", argc, argv); ^~~~~~ quote cmds.c: At top level: cmds.c:1451:1: warning: return type defaults to 'int' [-Wimplicit-int] site(argc, argv) ^~~~ cmds.c: In function 'site': cmds.c:1459:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1451:1: note: declared here site(argc, argv) ^~~~ cmds.c: At top level: cmds.c:1468:1: warning: return type defaults to 'int' [-Wimplicit-int] quote1(initial, argc, argv) ^~~~~~ cmds.c: In function 'quote1': cmds.c:1476:9: warning: incompatible implicit declaration of built-in function 'strcpy' (void) strcpy(buf, initial); ^~~~~~ cmds.c:1476:9: note: include '' or provide a declaration of 'strcpy' cmds.c:1478:9: warning: incompatible implicit declaration of built-in function 'strlen' len = strlen(buf); ^~~~~~ cmds.c:1478:9: note: include '' or provide a declaration of 'strlen' cmds.c:1486:10: warning: implicit declaration of function 'getreply'; did you mean 'setbell'? [-Wimplicit-function-declaration] while (getreply(0) == PRELIM); ^~~~~~~~ setbell cmds.c: At top level: cmds.c:1490:1: warning: return type defaults to 'int' [-Wimplicit-int] do_chmod(argc, argv) ^~~~~~~~ cmds.c: In function 'do_chmod': cmds.c:1501:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1490:1: note: declared here do_chmod(argc, argv) ^~~~~~~~ cmds.c: At top level: cmds.c:1506:1: warning: return type defaults to 'int' [-Wimplicit-int] do_umask(argc, argv) ^~~~~~~~ cmds.c:1517:1: warning: return type defaults to 'int' [-Wimplicit-int] idle(argc, argv) ^~~~ cmds.c:1531:1: warning: return type defaults to 'int' [-Wimplicit-int] rmthelp(argc, argv) ^~~~~~~ cmds.c:1546:1: warning: return type defaults to 'int' [-Wimplicit-int] quit() ^~~~ cmds.c: In function 'quit': cmds.c:1550:3: warning: implicit declaration of function 'disconnect'; did you mean 'Rconnect'? [-Wimplicit-function-declaration] disconnect(); ^~~~~~~~~~ Rconnect cmds.c:1555:2: warning: incompatible implicit declaration of built-in function 'exit' exit(0); ^~~~ cmds.c:1555:2: note: include '' or provide a declaration of 'exit' cmds.c: At top level: cmds.c:1561:1: warning: return type defaults to 'int' [-Wimplicit-int] disconnect() ^~~~~~~~~~ cmds.c: In function 'disconnect': cmds.c:1567:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1561:1: note: declared here disconnect() ^~~~~~~~~~ cmds.c: At top level: cmds.c:1580:1: warning: return type defaults to 'int' [-Wimplicit-int] confirm(cmd, file) ^~~~~~~ cmds.c:1594:1: warning: return type defaults to 'int' [-Wimplicit-int] fatal(msg) ^~~~~ cmds.c: In function 'fatal': cmds.c:1599:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ cmds.c:1599:2: note: include '' or provide a declaration of 'exit' cmds.c: At top level: cmds.c:1608:1: warning: return type defaults to 'int' [-Wimplicit-int] globulize(cpp) ^~~~~~~~~ cmds.c: In function 'globulize': cmds.c:1620:4: warning: incompatible implicit declaration of built-in function 'free' free((char *)globbed); ^~~~ cmds.c:1620:4: note: include '' or provide a declaration of 'free' cmds.c:1629:4: warning: incompatible implicit declaration of built-in function 'free' free((char *)globbed); ^~~~ cmds.c:1629:4: note: include '' or provide a declaration of 'free' cmds.c: At top level: cmds.c:1635:1: warning: return type defaults to 'int' [-Wimplicit-int] account(argc,argv) ^~~~~~~ cmds.c: In function 'account': cmds.c:1644:10: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] (void) strncpy(acct,*argv,49); ^~~~~~~ cmds.c:1644:10: warning: incompatible implicit declaration of built-in function 'strncpy' cmds.c:1644:10: note: include '' or provide a declaration of 'strncpy' cmds.c:1649:11: warning: implicit declaration of function 'strncat' [-Wimplicit-function-declaration] (void) strncat(acct,*argv, 49-strlen(acct)); ^~~~~~~ cmds.c:1649:11: warning: incompatible implicit declaration of built-in function 'strncat' cmds.c:1649:11: note: include '' or provide a declaration of 'strncat' cmds.c:1649:34: warning: incompatible implicit declaration of built-in function 'strlen' (void) strncat(acct,*argv, 49-strlen(acct)); ^~~~~~ cmds.c:1649:34: note: include '' or provide a declaration of 'strlen' cmds.c: At top level: cmds.c:1679:1: warning: return type defaults to 'int' [-Wimplicit-int] doproxy(argc,argv) ^~~~~~~ cmds.c: In function 'doproxy': cmds.c:1693:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1679:1: note: declared here doproxy(argc,argv) ^~~~~~~ cmds.c:1700:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1679:1: note: declared here doproxy(argc,argv) ^~~~~~~ cmds.c:1706:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1679:1: note: declared here doproxy(argc,argv) ^~~~~~~ cmds.c:1712:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1679:1: note: declared here doproxy(argc,argv) ^~~~~~~ cmds.c:1716:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1679:1: note: declared here doproxy(argc,argv) ^~~~~~~ cmds.c:1726:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1679:1: note: declared here doproxy(argc,argv) ^~~~~~~ cmds.c: At top level: cmds.c:1739:1: warning: return type defaults to 'int' [-Wimplicit-int] setcase() ^~~~~~~ cmds.c:1746:1: warning: return type defaults to 'int' [-Wimplicit-int] setcr() ^~~~~ cmds.c:1753:1: warning: return type defaults to 'int' [-Wimplicit-int] setntrans(argc,argv) ^~~~~~~~~ cmds.c: In function 'setntrans': cmds.c:1761:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1753:1: note: declared here setntrans(argc,argv) ^~~~~~~~~ cmds.c:1765:9: warning: incompatible implicit declaration of built-in function 'strncpy' (void) strncpy(ntin, argv[1], 16); ^~~~~~~ cmds.c:1765:9: note: include '' or provide a declaration of 'strncpy' cmds.c:1769:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1753:1: note: declared here setntrans(argc,argv) ^~~~~~~~~ cmds.c: At top level: cmds.c:1803:1: warning: return type defaults to 'int' [-Wimplicit-int] setnmap(argc, argv) ^~~~~~~ cmds.c: In function 'setnmap': cmds.c:1813:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1803:1: note: declared here setnmap(argc, argv) ^~~~~~~ cmds.c:1818:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:1803:1: note: declared here setnmap(argc, argv) ^~~~~~~ cmds.c:1829:9: warning: incompatible implicit declaration of built-in function 'strncpy' (void) strncpy(mapin, altarg, MAXPATHLEN - 1); ^~~~~~~ cmds.c:1829:9: note: include '' or provide a declaration of 'strncpy' cmds.c: At top level: cmds.c:2004:1: warning: return type defaults to 'int' [-Wimplicit-int] setsunique() ^~~~~~~~~~ cmds.c:2011:1: warning: return type defaults to 'int' [-Wimplicit-int] setrunique() ^~~~~~~~~~ cmds.c:2019:1: warning: return type defaults to 'int' [-Wimplicit-int] cdup() ^~~~ cmds.c:2029:1: warning: return type defaults to 'int' [-Wimplicit-int] restart(argc, argv) ^~~~~~~ cmds.c:2044:1: warning: return type defaults to 'int' [-Wimplicit-int] syst() ^~~~ cmds.c:2049:1: warning: return type defaults to 'int' [-Wimplicit-int] macdef(argc, argv) ^~~~~~ cmds.c: In function 'macdef': cmds.c:2059:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:2049:1: note: declared here macdef(argc, argv) ^~~~~~ cmds.c:2064:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:2049:1: note: declared here macdef(argc, argv) ^~~~~~ cmds.c:2069:9: warning: incompatible implicit declaration of built-in function 'strncpy' (void) strncpy(macros[macnum].mac_name, argv[1], 8); ^~~~~~~ cmds.c:2069:9: note: include '' or provide a declaration of 'strncpy' cmds.c:2081:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:2049:1: note: declared here macdef(argc, argv) ^~~~~~ cmds.c:2087:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:2049:1: note: declared here macdef(argc, argv) ^~~~~~ cmds.c:2092:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:2049:1: note: declared here macdef(argc, argv) ^~~~~~ cmds.c:2104:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:2049:1: note: declared here macdef(argc, argv) ^~~~~~ cmds.c: At top level: cmds.c:2112:1: warning: return type defaults to 'int' [-Wimplicit-int] sizecmd(argc, argv) ^~~~~~~ cmds.c: In function 'sizecmd': cmds.c:2120:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:2112:1: note: declared here sizecmd(argc, argv) ^~~~~~~ cmds.c: At top level: cmds.c:2128:1: warning: return type defaults to 'int' [-Wimplicit-int] modtime(argc, argv) ^~~~~~~ cmds.c: In function 'modtime': cmds.c:2137:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ cmds.c:2128:1: note: declared here modtime(argc, argv) ^~~~~~~ cmds.c: At top level: cmds.c:2157:1: warning: return type defaults to 'int' [-Wimplicit-int] rmtstatus(argc, argv) ^~~~~~~~~ cmds.c:2167:1: warning: return type defaults to 'int' [-Wimplicit-int] newer(argc, argv) ^~~~~ gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -c -o cmdtab.o cmdtab.c gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -c -o ftp.o ftp.c ftp.c: In function 'hookup': ftp.c:158:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] bzero((char *)&hisctladdr, sizeof (hisctladdr)); ^~~~~ ftp.c:158:2: warning: incompatible implicit declaration of built-in function 'bzero' ftp.c:162:10: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] (void) strncpy(hostnamebuf, host, sizeof(hostnamebuf)); ^~~~~~~ ftp.c:162:10: warning: incompatible implicit declaration of built-in function 'strncpy' ftp.c:162:10: note: include '' or provide a declaration of 'strncpy' ftp.c:73:1: +#include ftp.c:162:10: (void) strncpy(hostnamebuf, host, sizeof(hostnamebuf)); ^~~~~~~ ftp.c:172:3: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(hp->h_addr_list[0], ^~~~~ ftp.c:172:3: warning: incompatible implicit declaration of built-in function 'bcopy' ftp.c:174:10: warning: incompatible implicit declaration of built-in function 'strncpy' (void) strncpy(hostnamebuf, hp->h_name, sizeof(hostnamebuf)); ^~~~~~~ ftp.c:174:10: note: include '' or provide a declaration of 'strncpy' ftp.c:194:4: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(hp->h_addr_list[0], ^~~~~ ftp.c:198:11: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] (void) close(s); ^~~~~ pclose ftp.c:239:6: warning: implicit declaration of function 'getreply'; did you mean 'getdelim'? [-Wimplicit-function-declaration] if (getreply(0) > 2) { /* read startup message from server */ ^~~~~~~~ getdelim ftp.c: At top level: ftp.c:271:1: warning: return type defaults to 'int' [-Wimplicit-int] login(host) ^~~~~ ftp.c: In function 'login': ftp.c:279:6: warning: implicit declaration of function 'ruserpass'; did you mean 'getpass'? [-Wimplicit-function-declaration] if (ruserpass(host, &user, &pass, &acct) < 0) { ^~~~~~~~~ getpass ftp.c:297:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] tmp[strlen(tmp) - 1] = '\0'; ^~~~~~ ftp.c:297:7: warning: incompatible implicit declaration of built-in function 'strlen' ftp.c:297:7: note: include '' or provide a declaration of 'strlen' ftp.c:306:8: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(user, "anonymous") == 0) { ^~~~~~ ftp.c:309:9: warning: incompatible implicit declaration of built-in function 'strlen' tmp[strlen(tmp) - 1] = '\0'; ^~~~~~ ftp.c:309:9: note: include '' or provide a declaration of 'strlen' ftp.c:331:11: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] (void) strcpy(line, "$init"); ^~~~~~ ftp.c:331:11: warning: incompatible implicit declaration of built-in function 'strcpy' ftp.c:331:11: note: include '' or provide a declaration of 'strcpy' ftp.c:332:4: warning: implicit declaration of function 'makeargv'; did you mean 'va_arg'? [-Wimplicit-function-declaration] makeargv(); ^~~~~~~~ va_arg ftp.c:333:4: warning: implicit declaration of function 'domacro' [-Wimplicit-function-declaration] domacro(margc, margv); ^~~~~~~ ftp.c: In function 'command': ftp.c:377:7: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (strncmp("PASS ", fmt, 5) == 0) ^~~~~~~ ftp.c: At top level: ftp.c:414:1: warning: return type defaults to 'int' [-Wimplicit-int] getreply(expecteof) ^~~~~~~~ ftp.c:517:1: warning: return type defaults to 'int' [-Wimplicit-int] empty(mask, sec) ^~~~~ ftp.c: In function 'empty': ftp.c:525:20: warning: passing argument 2 of 'Rselect' from incompatible pointer type [-Wincompatible-pointer-types] return(select(32, mask, (struct fd_set *) 0, (struct fd_set *) 0, &t)); ^~~~ In file included from /usr/include/arm-linux-gnueabihf/sys/types.h:196, from /usr/include/arm-linux-gnueabihf/sys/param.h:25, from ftp.c:39: /usr/include/arm-linux-gnueabihf/sys/select.h:101:51: note: expected 'fd_set * restrict' {aka 'struct * restrict'} but argument is of type 'struct fd_set *' extern int select (int __nfds, fd_set *__restrict __readfds, ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ftp.c:525:26: warning: passing argument 3 of 'Rselect' from incompatible pointer type [-Wincompatible-pointer-types] return(select(32, mask, (struct fd_set *) 0, (struct fd_set *) 0, &t)); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/arm-linux-gnueabihf/sys/types.h:196, from /usr/include/arm-linux-gnueabihf/sys/param.h:25, from ftp.c:39: /usr/include/arm-linux-gnueabihf/sys/select.h:102:25: note: expected 'fd_set * restrict' {aka 'struct * restrict'} but argument is of type 'struct fd_set *' fd_set *__restrict __writefds, ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ftp.c:525:47: warning: passing argument 4 of 'Rselect' from incompatible pointer type [-Wincompatible-pointer-types] return(select(32, mask, (struct fd_set *) 0, (struct fd_set *) 0, &t)); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/arm-linux-gnueabihf/sys/types.h:196, from /usr/include/arm-linux-gnueabihf/sys/param.h:25, from ftp.c:39: /usr/include/arm-linux-gnueabihf/sys/select.h:103:25: note: expected 'fd_set * restrict' {aka 'struct * restrict'} but argument is of type 'struct fd_set *' fd_set *__restrict __exceptfds, ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ftp.c: At top level: ftp.c:543:1: warning: return type defaults to 'int' [-Wimplicit-int] sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c: In function 'sendrequest': ftp.c:564:3: warning: implicit declaration of function 'proxtrans' [-Wimplicit-function-declaration] proxtrans(cmd, local, remote); ^~~~~~~~~ ftp.c:565:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:568:3: warning: implicit declaration of function 'changetype' [-Wimplicit-function-declaration] changetype(type, 0); ^~~~~~~~~~ ftp.c:586:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:599:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:609:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:618:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:621:6: warning: implicit declaration of function 'initconn'; did you mean 'dataconn'? [-Wimplicit-function-declaration] if (initconn()) { ^~~~~~~~ dataconn ftp.c:628:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:641:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:648:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:660:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:669:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:681:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while ((c = read(fileno(fin), buf, sizeof (buf))) > 0) { ^~~~ fread ftp.c:684:14: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if ((d = write(fileno(dout), bufp, c)) <= 0) ^~~~~ fwrite ftp.c:758:3: warning: implicit declaration of function 'ptransfer' [-Wimplicit-function-declaration] ptransfer("sent", bytes, &start, &stop); ^~~~~~~~~ ftp.c:760:2: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c:768:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:543:1: note: declared here sendrequest(cmd, local, remote, printnames) ^~~~~~~~~~~ ftp.c: At top level: ftp.c:802:1: warning: return type defaults to 'int' [-Wimplicit-int] recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c: In function 'recvrequest': ftp.c:802:1: warning: type of 'printnames' defaults to 'int' [-Wimplicit-int] ftp.c:818:8: warning: conflicting types for built-in function 'malloc' [-Wbuiltin-declaration-mismatch] char *malloc(); ^~~~~~ ftp.c:829:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:846:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:850:7: warning: implicit declaration of function 'access'; did you mean 'accept'? [-Wimplicit-function-declaration] if (access(local, 2) < 0) { ^~~~~~ accept ftp.c:858:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:870:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:879:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:885:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:891:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:902:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:908:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:912:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:917:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:950:11: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] (void) free(buf); ^~~~ ftp.c:950:11: warning: incompatible implicit declaration of built-in function 'free' ftp.c:950:11: note: include '' or provide a declaration of 'free' ftp.c:413:1: +#include ftp.c:950:11: (void) free(buf); ^~~~ ftp.c:982:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:1044:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:1108:2: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:1120:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:802:1: note: declared here recvrequest(cmd, local, remote, lmode, printnames) ^~~~~~~~~~~ ftp.c:1123:2: warning: implicit declaration of function 'abort_remote'; did you mean 'abortrecv'? [-Wimplicit-function-declaration] abort_remote(din); ^~~~~~~~~~~~ abortrecv ftp.c: At top level: ftp.c:1148:1: warning: return type defaults to 'int' [-Wimplicit-int] initconn() ^~~~~~~~ ftp.c:1285:1: warning: return type defaults to 'int' [-Wimplicit-int] ptransfer(direction, bytes, t0, t1) ^~~~~~~~~ ftp.c: In function 'ptransfer': ftp.c:1294:3: warning: implicit declaration of function 'tvsub' [-Wimplicit-function-declaration] tvsub(&td, t1, t0); ^~~~~ ftp.c: At top level: ftp.c:1313:1: warning: return type defaults to 'int' [-Wimplicit-int] tvsub(tdiff, t1, t0) ^~~~~ ftp.c:1331:1: warning: return type defaults to 'int' [-Wimplicit-int] pswitch(flag) ^~~~~~~ ftp.c: In function 'pswitch': ftp.c:1362:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:1331:1: note: declared here pswitch(flag) ^~~~~~~ ftp.c:1368:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:1331:1: note: declared here pswitch(flag) ^~~~~~~ ftp.c:1376:10: warning: incompatible implicit declaration of built-in function 'strncpy' (void) strncpy(ip->name, hostname, sizeof(ip->name) - 1); ^~~~~~~ ftp.c:1376:10: note: include '' or provide a declaration of 'strncpy' ftp.c:1377:12: warning: incompatible implicit declaration of built-in function 'strlen' ip->name[strlen(ip->name)] = '\0'; ^~~~~~ ftp.c:1377:12: note: include '' or provide a declaration of 'strlen' ftp.c:1403:9: warning: incompatible implicit declaration of built-in function 'strncpy' (void) strncpy(ip->nti, ntin, 16); ^~~~~~~ ftp.c:1403:9: note: include '' or provide a declaration of 'strncpy' ftp.c:1404:12: warning: incompatible implicit declaration of built-in function 'strlen' (ip->nti)[strlen(ip->nti)] = '\0'; ^~~~~~ ftp.c:1404:12: note: include '' or provide a declaration of 'strlen' ftp.c:1405:9: warning: incompatible implicit declaration of built-in function 'strcpy' (void) strcpy(ntin, op->nti); ^~~~~~ ftp.c:1405:9: note: include '' or provide a declaration of 'strcpy' ftp.c: At top level: ftp.c:1438:1: warning: return type defaults to 'int' [-Wimplicit-int] proxtrans(cmd, local, remote) ^~~~~~~~~ ftp.c: In function 'proxtrans': ftp.c:1462:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:1438:1: note: declared here proxtrans(cmd, local, remote) ^~~~~~~~~ ftp.c:1469:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:1438:1: note: declared here proxtrans(cmd, local, remote) ^~~~~~~~~ ftp.c:1475:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:1438:1: note: declared here proxtrans(cmd, local, remote) ^~~~~~~~~ ftp.c:1483:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:1438:1: note: declared here proxtrans(cmd, local, remote) ^~~~~~~~~ ftp.c:1485:2: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] sleep(2); ^~~~~ ftp.c:1498:2: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:1438:1: note: declared here proxtrans(cmd, local, remote) ^~~~~~~~~ ftp.c:1516:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:1438:1: note: declared here proxtrans(cmd, local, remote) ^~~~~~~~~ ftp.c:1530:4: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ftp.c:1438:1: note: declared here proxtrans(cmd, local, remote) ^~~~~~~~~ ftp.c: At top level: ftp.c:1558:1: warning: return type defaults to 'int' [-Wimplicit-int] reset() ^~~~~ ftp.c: In function 'gunique': ftp.c:1595:9: warning: incompatible implicit declaration of built-in function 'strcpy' (void) strcpy(new, local); ^~~~~~ ftp.c:1595:9: note: include '' or provide a declaration of 'strcpy' ftp.c:1596:13: warning: incompatible implicit declaration of built-in function 'strlen' cp = new + strlen(new); ^~~~~~ ftp.c:1596:13: note: include '' or provide a declaration of 'strlen' ftp.c: At top level: ftp.c:1623:1: warning: return type defaults to 'int' [-Wimplicit-int] abort_remote(din) ^~~~~~~~~~~~ gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -c -o glob.o glob.c glob.c: In function 'ftpglob': glob.c:121:3: warning: implicit declaration of function 'blkfree'; did you mean 'free'? [-Wimplicit-function-declaration] blkfree(gargv), gargv = 0; ^~~~~~~ free glob.c: In function 'expand': glob.c:188:14: warning: implicit declaration of function 'letter'; did you mean 'listen'? [-Wimplicit-function-declaration] for (cs++; letter(*cs) || digit(*cs) || *cs == '-';) ^~~~~~ listen glob.c:188:29: warning: implicit declaration of function 'digit'; did you mean 'ginit'? [-Wimplicit-function-declaration] for (cs++; letter(*cs) || digit(*cs) || *cs == '-';) ^~~~~ ginit glob.c:193:9: warning: implicit declaration of function 'gethdir'; did you mean 'matchdir'? [-Wimplicit-function-declaration] if (gethdir(gpath + 1)) ^~~~~~~ matchdir glob.c:201:10: warning: implicit declaration of function 'any' [-Wimplicit-function-declaration] while (!any(*cs, globchars)) { ^~~ glob.c: At top level: glob.c:456:1: warning: return type defaults to 'int' [-Wimplicit-int] Gmatch(s, p) ^~~~~~ glob.c:575:1: warning: return type defaults to 'int' [-Wimplicit-int] tglob(c) ^~~~~ glob.c:593:1: warning: return type defaults to 'int' [-Wimplicit-int] letter(c) ^~~~~~ glob.c:600:1: warning: return type defaults to 'int' [-Wimplicit-int] digit(c) ^~~~~ glob.c:607:1: warning: return type defaults to 'int' [-Wimplicit-int] any(c, s) ^~~ glob.c:617:1: warning: return type defaults to 'int' [-Wimplicit-int] blklen(av) ^~~~~~ glob.c:639:1: warning: return type defaults to 'int' [-Wimplicit-int] blkfree(av0) ^~~~~~~ glob.c: In function 'strspl': glob.c:664:3: warning: implicit declaration of function 'fatal'; did you mean 'atol'? [-Wimplicit-function-declaration] fatal("Out of memory"); ^~~~~ atol glob.c: At top level: glob.c:698:1: warning: return type defaults to 'int' [-Wimplicit-int] gethdir(home) ^~~~~~~ gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -c -o main.o main.c main.c:66:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main.c: In function 'main': main.c:66:1: warning: type of 'argc' defaults to 'int' [-Wimplicit-int] main.c:75:2: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration] SOCKSinit(argv[0]); ^~~~~~~~~ main.c:83:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ main.c:83:3: warning: incompatible implicit declaration of built-in function 'exit' main.c:83:3: note: include '' or provide a declaration of 'exit' main.c:60:1: +#include main.c:83:3: exit(1); ^~~~ main.c:124:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ main.c:124:5: note: include '' or provide a declaration of 'exit' main.c:128:13: warning: implicit declaration of function 'isatty'; did you mean 'isset'? [-Wimplicit-function-declaration] fromatty = isatty(fileno(stdin)); ^~~~~~ isset main.c:146:10: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] (void) strcpy(home, pw->pw_dir); ^~~~~~ main.c:146:10: warning: incompatible implicit declaration of built-in function 'strcpy' main.c:146:10: note: include '' or provide a declaration of 'strcpy' main.c:60:1: +#include main.c:146:10: (void) strcpy(home, pw->pw_dir); ^~~~~~ main.c:150:4: warning: incompatible implicit declaration of built-in function 'exit' exit(0); ^~~~ main.c:150:4: note: include '' or provide a declaration of 'exit' main.c:153:3: warning: implicit declaration of function 'setpeer'; did you mean 'lostpeer'? [-Wimplicit-function-declaration] setpeer(argc + 1, argv - 1); ^~~~~~~ lostpeer main.c:161:3: warning: implicit declaration of function 'cmdscanner' [-Wimplicit-function-declaration] cmdscanner(top); ^~~~~~~~~~ main.c: In function 'lostpeer': main.c:187:11: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] (void) close(data); ^~~~~ pclose main.c:192:2: warning: implicit declaration of function 'pswitch' [-Wimplicit-function-declaration] pswitch(1); ^~~~~~~ main.c: At top level: main.c:225:1: warning: return type defaults to 'int' [-Wimplicit-int] cmdscanner(top) ^~~~~~~~~~ main.c: In function 'cmdscanner': main.c:241:4: warning: implicit declaration of function 'quit' [-Wimplicit-function-declaration] quit(); ^~~~ main.c:242:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] l = strlen(line); ^~~~~~ main.c:242:7: warning: incompatible implicit declaration of built-in function 'strlen' main.c:242:7: note: include '' or provide a declaration of 'strlen' main.c:255:3: warning: implicit declaration of function 'makeargv' [-Wimplicit-function-declaration] makeargv(); ^~~~~~~~ main.c: At top level: main.c:318:1: warning: return type defaults to 'int' [-Wimplicit-int] makeargv() ^~~~~~~~ main.c:461:1: warning: return type defaults to 'int' [-Wimplicit-int] help(argc, argv) ^~~~ main.c: In function 'help': main.c:475:14: warning: incompatible implicit declaration of built-in function 'strlen' int len = strlen(c->c_name); ^~~~~~ main.c:475:14: note: include '' or provide a declaration of 'strlen' main.c:492:20: warning: incompatible implicit declaration of built-in function 'strlen' for (k=0; k < strlen(c->c_name); k++) { ^~~~~~ main.c:492:20: note: include '' or provide a declaration of 'strlen' main.c:500:9: warning: incompatible implicit declaration of built-in function 'strlen' w = strlen(c->c_name); ^~~~~~ main.c:500:9: note: include '' or provide a declaration of 'strlen' main.c:507:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ main.c:461:1: note: declared here help(argc, argv) ^~~~ gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -c -o ruserpass.o ruserpass.c ruserpass.c:54:20: warning: conflicting types for built-in function 'malloc' [-Wbuiltin-declaration-mismatch] char *renvlook(), *malloc(), *index(), *getenv(), *getpass(), *getlogin(); ^~~~~~ ruserpass.c:85:1: warning: return type defaults to 'int' [-Wimplicit-int] ruserpass(host, aname, apass, aacct) ^~~~~~~~~ ruserpass.c: In function 'ruserpass': ruserpass.c:103:6: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] if (gethostname(myname, sizeof(myname)) < 0) ^~~~~~~~~~~ gethostbyname ruserpass.c:123:8: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration] if (strcasecmp(host, tokval) == 0) ^~~~~~~~~~ ruserpass.c:129:8: warning: implicit declaration of function 'strncasecmp' [-Wimplicit-function-declaration] strncasecmp(hostname, tokval, tmp-hostname) == 0 && ^~~~~~~~~~~ ruserpass.c:145:33: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] *aname = malloc((unsigned) strlen(tokval) + 1); ^~~~~~ ruserpass.c:145:33: warning: incompatible implicit declaration of built-in function 'strlen' ruserpass.c:145:33: note: include '' or provide a declaration of 'strlen' ruserpass.c:45:1: +#include ruserpass.c:145:33: *aname = malloc((unsigned) strlen(tokval) + 1); ^~~~~~ ruserpass.c:148:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(*aname, tokval)) ^~~~~~ ruserpass.c:161:32: warning: incompatible implicit declaration of built-in function 'strlen' *apass = malloc((unsigned) strlen(tokval) + 1); ^~~~~~ ruserpass.c:161:32: note: include '' or provide a declaration of 'strlen' ruserpass.c:173:32: warning: incompatible implicit declaration of built-in function 'strlen' *aacct = malloc((unsigned) strlen(tokval) + 1); ^~~~~~ ruserpass.c:173:32: note: include '' or provide a declaration of 'strlen' ruserpass.c: At top level: ruserpass.c:251:1: warning: return type defaults to 'int' [-Wimplicit-int] token() ^~~~~ gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -c -o domacro.o domacro.c domacro.c:52:1: warning: return type defaults to 'int' [-Wimplicit-int] domacro(argc, argv) ^~~~~~~ domacro.c: In function 'domacro': domacro.c:64:19: warning: implicit declaration of function 'another' [-Wimplicit-function-declaration] if (argc < 2 && !another(&argc, &argv, "macro name")) { ^~~~~~~ domacro.c:67:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ domacro.c:52:1: note: declared here domacro(argc, argv) ^~~~~~~ domacro.c:70:8: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (!strncmp(argv[1], macros[i].mac_name, 9)) { ^~~~~~~ domacro.c:77:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ domacro.c:52:1: note: declared here domacro(argc, argv) ^~~~~~~ domacro.c:79:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] (void) strcpy(line2, line); ^~~~~~ domacro.c:79:9: warning: incompatible implicit declaration of built-in function 'strcpy' domacro.c:79:9: note: include '' or provide a declaration of 'strcpy' domacro.c:44:1: +#include #ifdef LINUX domacro.c:79:9: (void) strcpy(line2, line); ^~~~~~ domacro.c:101:13: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] cp2 += strlen(argv[j+1]); ^~~~~~ domacro.c:101:13: warning: incompatible implicit declaration of built-in function 'strlen' domacro.c:101:13: note: include '' or provide a declaration of 'strlen' domacro.c:110:16: warning: incompatible implicit declaration of built-in function 'strlen' cp2 += strlen(argv[count]); ^~~~~~ domacro.c:110:16: note: include '' or provide a declaration of 'strlen' domacro.c:124:3: warning: implicit declaration of function 'makeargv' [-Wimplicit-function-declaration] makeargv(); ^~~~~~~~ gcc -I../include -g -DLINUX -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -o rftp cmds.o cmdtab.o ftp.o glob.o main.o ruserpass.o domacro.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks /usr/bin/ld: cmds.o: in function `lcd': /build/socks4-server-4.3.beta2/rftp/cmds.c:1087: warning: the `getwd' function is dangerous and should not be used. /usr/bin/ld: cmds.o: in function `remglob': /build/socks4-server-4.3.beta2/rftp/cmds.c:825: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rftp' (cd rtelnet; make CC="gcc" OS="linux" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ OPTIMIZE="-g" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" \ RESOLV_LIB="" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet' /build/socks4-server-4.3.beta2/rtelnet cd libtelnet; make linux CC="gcc" OTHER_CFLAGS="-DLINUX " SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" SOCKS_LIB_DEP=/build/socks4-server-4.3.beta2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-g" make[3]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' make -f ../Config.local WHAT= CC=gcc OPTIMIZE=-g SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname SOCKS_LIB_DEP=/build/socks4-server-4.3.beta2/lib/libsocks.a SOCKS_LIB=-L/build/socks4-server-4.3.beta2/lib/ -lsocks RESOLV_LIB= linux make[4]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' make -f Makefile.generic \ LIBS="-L/build/socks4-server-4.3.beta2/lib/ -lsocks ../libtelnet/libtelnet.a \ -lncurses" \ DEST=/usr/ucb \ DEFINES="-DLINUX \ -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname \ -DDIAGNOSTICS -DKLUDGELINEMODE" \ INCLUDES="-I.. -I../../include" \ LIB_OBJ="getent.o" \ LIB_SRC="getent.c" \ AR=ar ARFLAGS=rc RANLIB=ranlib \ LIBEXEC=/usr/etc/in.telnetd \ CC="gcc" LCCFLAGS="-g" make[5]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' gcc -g -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -I.. -I../../include -c -o auth.o auth.c gcc -g -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -I.. -I../../include -c -o encrypt.o encrypt.c gcc -g -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -I.. -I../../include -c -o genget.o genget.c gcc -g -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -I.. -I../../include -c -o misc.o misc.c misc.c: In function 'auth_encrypt_init': misc.c:63:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(UserNameRequested); ^~~~ misc.c:63:3: warning: incompatible implicit declaration of built-in function 'free' misc.c:63:3: note: include '' or provide a declaration of 'free' misc.c:44:1: +#include misc.c:63:3: free(UserNameRequested); ^~~~ misc.c: In function 'auth_encrypt_user': misc.c:75:3: warning: incompatible implicit declaration of built-in function 'free' free(UserNameRequested); ^~~~ misc.c:75:3: note: include '' or provide a declaration of 'free' misc.c: In function 'printd': misc.c:93:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] printf(" %02x", *data); ^~~~~~ misc.c:93:3: warning: incompatible implicit declaration of built-in function 'printf' misc.c:93:3: note: include '' or provide a declaration of 'printf' misc.c:44:1: +#include misc.c:93:3: printf(" %02x", *data); ^~~~~~ gcc -g -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -I.. -I../../include -c -o enc_des.o enc_des.c gcc -g -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -I.. -I../../include -c -o getent.o getent.c getent.c:44:1: warning: return type defaults to 'int' [-Wimplicit-int] getent(cp, name) ^~~~~~ rm -f libtelnet.a ar rc libtelnet.a auth.o encrypt.o genget.o misc.o enc_des.o getent.o ranlib libtelnet.a make[5]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' make[4]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' make[3]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' cd telnet; make linux CC="gcc" OTHER_CFLAGS="-DLINUX " SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" SOCKS_LIB_DEP=/build/socks4-server-4.3.beta2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-g" make[3]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make -f ../Config.local WHAT= CC=gcc OPTIMIZE=-g SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname SOCKS_LIB_DEP=/build/socks4-server-4.3.beta2/lib/libsocks.a SOCKS_LIB=-L/build/socks4-server-4.3.beta2/lib/ -lsocks RESOLV_LIB= linux make[4]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make -f Makefile.generic \ LIBS="-L/build/socks4-server-4.3.beta2/lib/ -lsocks ../libtelnet/libtelnet.a \ -lncurses" \ DEST=/usr/ucb \ DEFINES="-DLINUX \ -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname \ -DDIAGNOSTICS -DKLUDGELINEMODE" \ INCLUDES="-I.. -I../../include" \ LIB_OBJ="getent.o" \ LIB_SRC="getent.c" \ AR=ar ARFLAGS=rc RANLIB=ranlib \ LIBEXEC=/usr/etc/in.telnetd \ CC="gcc" LCCFLAGS="-g" make[5]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' gcc -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -c -o authenc.o authenc.c gcc -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -c -o commands.o commands.c commands.c:196:1: warning: return type defaults to 'int' [-Wimplicit-int] call(intrtn_t routine, ...) ^~~~ commands.c:227:1: warning: return type defaults to 'int' [-Wimplicit-int] special(s) ^~~~~~~ commands.c: In function 'sendcmd': commands.c:417:13: warning: implicit declaration of function 'quit' [-Wimplicit-function-declaration] (void) quit(); ^~~~ commands.c: In function 'send_docmd': commands.c:452:12: warning: implicit declaration of function 'send_tncmd'; did you mean 'send_docmd'? [-Wimplicit-function-declaration] return(send_tncmd(send_do, "do", name)); ^~~~~~~~~~ send_docmd commands.c: In function 'togdebug': commands.c:557:3: warning: implicit declaration of function 'SetSockOpt'; did you mean 'setsockopt'? [-Wimplicit-function-declaration] (SetSockOpt(net, SOL_SOCKET, SO_DEBUG, debug)) < 0) { ^~~~~~~~~~ setsockopt commands.c: In function 'togbinary': commands.c:617:6: warning: implicit declaration of function 'tel_leave_binary'; did you mean 'tel_enter_binary'? [-Wimplicit-function-declaration] tel_leave_binary(3); ^~~~~~~~~~~~~~~~ tel_enter_binary commands.c: In function 'setmode': commands.c:1179:1: warning: type of 'bit' defaults to 'int' [-Wimplicit-int] setmode(bit) ^~~~~~~ commands.c: In function 'clearmode': commands.c:1185:1: warning: type of 'bit' defaults to 'int' [-Wimplicit-int] clearmode(bit) ^~~~~~~~~ commands.c: In function 'display': commands.c:1335:6: warning: implicit declaration of function 'optionstatus'; did you mean 'get_status'? [-Wimplicit-function-declaration] /*@*/optionstatus(); ^~~~~~~~~~~~ get_status commands.c: In function 'suspend': commands.c:1396:8: warning: implicit declaration of function 'TerminalWindowSize'; did you mean 'TerminalNewMode'? [-Wimplicit-function-declaration] err = TerminalWindowSize(&oldrows, &oldcols); ^~~~~~~~~~~~~~~~~~ TerminalNewMode commands.c: In function 'shell': commands.c:1455:12: warning: implicit declaration of function 'wait'; did you mean 'write'? [-Wimplicit-function-declaration] (void)wait((int *)0); /* Wait for the shell to complete */ ^~~~ write commands.c: At top level: commands.c:1463:1: warning: return type defaults to 'int' [-Wimplicit-int] bye(argc, argv) ^~~ commands.c: In function 'bye': commands.c:1472:9: warning: implicit declaration of function 'NetClose'; did you mean 'setmode'? [-Wimplicit-function-declaration] (void) NetClose(net); ^~~~~~~~ setmode commands.c: At top level: commands.c:1492:1: warning: return type defaults to 'int' [-Wimplicit-int] quit() ^~~~ commands.c: In function 'quit': commands.c:1495:2: warning: implicit declaration of function 'Exit'; did you mean 'quit'? [-Wimplicit-function-declaration] Exit(0); ^~~~ quit commands.c: In function 'logout': commands.c:1504:9: warning: implicit declaration of function 'netflush'; did you mean 'tcflush'? [-Wimplicit-function-declaration] (void) netflush(); ^~~~~~~~ tcflush commands.c: At top level: commands.c:1558:1: warning: return type defaults to 'int' [-Wimplicit-int] slccmd(argc, argv) ^~~~~~ commands.c:1647:1: warning: return type defaults to 'int' [-Wimplicit-int] env_cmd(argc, argv) ^~~~~~~ commands.c: In function 'env_default': commands.c:1858:3: warning: 'return' with no value, in function returning non-void return; ^~~~~~ commands.c:1851:1: note: declared here env_default(init) ^~~~~~~~~~~ commands.c: At top level: commands.c:1992:1: warning: return type defaults to 'int' [-Wimplicit-int] status(argc, argv) ^~~~~~ commands.c: In function 'status': commands.c:1999:17: warning: implicit declaration of function 'getconnmode'; did you mean 'setconnmode'? [-Wimplicit-function-declaration] int mode = getconnmode(); ^~~~~~~~~~~ setconnmode commands.c: In function 'tn': commands.c:2198:17: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] sin.sin_port = atoi(portp); ^~~~ commands.c:2282:5: warning: implicit declaration of function 'cmdrc' [-Wimplicit-function-declaration] cmdrc(hostp, hostname); ^~~~~ commands.c:2303:5: warning: implicit declaration of function 'ExitString' [-Wimplicit-function-declaration] ExitString("Connection closed by foreign host.\n",1); ^~~~~~~~~~ commands.c: At top level: commands.c:2476:1: warning: return type defaults to 'int' [-Wimplicit-int] help(argc, argv) ^~~~ commands.c:2508:1: warning: return type defaults to 'int' [-Wimplicit-int] cmdrc(m1, m2) ^~~~~ commands.c: In function 'cmdrc': commands.c:2519:2: warning: 'return' with no value, in function returning non-void return; ^~~~~~ commands.c:2508:1: note: declared here cmdrc(m1, m2) ^~~~~ commands.c:2535:2: warning: 'return' with no value, in function returning non-void return; ^~~~~~ commands.c:2508:1: note: declared here cmdrc(m1, m2) ^~~~~ gcc -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -c -o main.o main.c main.c: In function 'tninit': main.c:42:5: warning: implicit declaration of function 'init_terminal' [-Wimplicit-function-declaration] init_terminal(); ^~~~~~~~~~~~~ main.c:44:5: warning: implicit declaration of function 'init_network' [-Wimplicit-function-declaration] init_network(); ^~~~~~~~~~~~ main.c:46:5: warning: implicit declaration of function 'init_telnet'; did you mean 'telnet'? [-Wimplicit-function-declaration] init_telnet(); ^~~~~~~~~~~ telnet main.c:48:5: warning: implicit declaration of function 'init_sys'; did you mean 'init_3270'? [-Wimplicit-function-declaration] init_sys(); ^~~~~~~~ init_3270 main.c: In function 'usage': main.c:78:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ main.c:78:2: warning: incompatible implicit declaration of built-in function 'exit' main.c:78:2: note: include '' or provide a declaration of 'exit' main.c:35:1: +#include main.c:78:2: exit(1); ^~~~ main.c: At top level: main.c:86:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main.c: In function 'main': main.c:100:2: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration] SOCKSinit(argv[0]); ^~~~~~~~~ main.c:119:15: warning: implicit declaration of function 'getopt'; did you mean 'getw'? [-Wimplicit-function-declaration] while ((ch = getopt(argc, argv, "8EKLS:X:ade:k:l:n:rt:x")) != EOF) { ^~~~~~ getw main.c:167:4: warning: implicit declaration of function 'set_escape_char' [-Wimplicit-function-declaration] set_escape_char(optarg); ^~~~~~~~~~~~~~~ main.c:248:4: warning: implicit declaration of function 'Exit' [-Wimplicit-function-declaration] Exit(0); ^~~~ main.c:249:7: warning: implicit declaration of function 'tn' [-Wimplicit-function-declaration] if (tn(argp - args, args) == 1) ^~ gcc -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -c -o network.o network.c network.c: In function 'init_network': network.c:52:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ network.c:52:2: warning: incompatible implicit declaration of built-in function 'exit' network.c:52:2: note: include '' or provide a declaration of 'exit' network.c:40:1: +#include network.c:52:2: exit(1); ^~~~ network.c:55:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ network.c:55:2: note: include '' or provide a declaration of 'exit' network.c: In function 'stilloob': network.c:81:9: warning: implicit declaration of function 'quit' [-Wimplicit-function-declaration] (void) quit(); ^~~~ network.c: In function 'netflush': network.c:121:7: warning: implicit declaration of function 'ring_at_mark'; did you mean 'ring_mark'? [-Wimplicit-function-declaration] if (!ring_at_mark(&netoring)) { ^~~~~~~~~~~~ ring_mark network.c:139:12: warning: implicit declaration of function 'NetClose'; did you mean 'netflush'? [-Wimplicit-function-declaration] (void)NetClose(net); ^~~~~~~~ netflush gcc -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -c -o ring.o ring.c ring.c:88:5: warning: return type defaults to 'int' [-Wimplicit-int] ring_init(ring, buffer, count) ^~~~~~~~~ ring.c: In function 'ring_init': ring.c:93:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] memset((char *)ring, 0, sizeof *ring); ^~~~~~ ring.c:93:5: warning: incompatible implicit declaration of built-in function 'memset' ring.c:93:5: note: include '' or provide a declaration of 'memset' ring.c:50:1: +#include ring.c:93:5: memset((char *)ring, 0, sizeof *ring); ^~~~~~ ring.c: In function 'ring_supply_data': ring.c:271:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(ring->supply, buffer, i); ^~~~~~ ring.c:271:2: warning: incompatible implicit declaration of built-in function 'memcpy' ring.c:271:2: note: include '' or provide a declaration of 'memcpy' gcc -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -c -o sys_bsd.o sys_bsd.c sys_bsd.c: In function 'TerminalWrite': sys_bsd.c:143:12: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] return write(tout, buf, n); ^~~~~ fwrite sys_bsd.c: In function 'TerminalRead': sys_bsd.c:151:12: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] return read(tin, buf, n); ^~~~ fread sys_bsd.c: In function 'TerminalSpecialChars': sys_bsd.c:205:6: warning: implicit declaration of function 'sendabort'; did you mean 'sendbrk'? [-Wimplicit-function-declaration] sendabort(); ^~~~~~~~~ sendbrk sys_bsd.c:209:6: warning: implicit declaration of function 'sendeof'; did you mean 'sendto'? [-Wimplicit-function-declaration] sendeof(); ^~~~~~~ sendto sys_bsd.c:214:2: warning: implicit declaration of function 'sendsusp'; did you mean 'sendmsg'? [-Wimplicit-function-declaration] sendsusp(); ^~~~~~~~ sendmsg sys_bsd.c: In function 'TerminalNewMode': sys_bsd.c:441:11: warning: implicit declaration of function 'ttyflush'; did you mean 'tcflush'? [-Wimplicit-function-declaration] old = ttyflush(SYNCHing|flushout); ^~~~~~~~ tcflush sys_bsd.c: In function 'NetClose': sys_bsd.c:800:12: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] return close(fd); ^~~~~ pclose sys_bsd.c: In function 'susp': sys_bsd.c:896:40: warning: implicit declaration of function 'rlogin_susp' [-Wimplicit-function-declaration] if ((rlogin != _POSIX_VDISABLE) && rlogin_susp()) ^~~~~~~~~~~ sys_bsd.c: In function 'sys_telnet_init': sys_bsd.c:957:9: warning: implicit declaration of function 'SetSockOpt'; did you mean 'setsockopt'? [-Wimplicit-function-declaration] if (SetSockOpt(net, SOL_SOCKET, SO_OOBINLINE, 1) == -1) { ^~~~~~~~~~ setsockopt sys_bsd.c: In function 'process_rings': sys_bsd.c:975:1: warning: type of 'netin' defaults to 'int' [-Wimplicit-int] process_rings(netin, netout, netex, ttyin, ttyout, poll) ^~~~~~~~~~~~~ sys_bsd.c:975:1: warning: type of 'netout' defaults to 'int' [-Wimplicit-int] sys_bsd.c:975:1: warning: type of 'netex' defaults to 'int' [-Wimplicit-int] sys_bsd.c:975:1: warning: type of 'ttyin' defaults to 'int' [-Wimplicit-int] sys_bsd.c:975:1: warning: type of 'ttyout' defaults to 'int' [-Wimplicit-int] sys_bsd.c:1044:6: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] sleep(5); ^~~~~ sys_bsd.c:1181:54: warning: implicit declaration of function 'isatty' [-Wimplicit-function-declaration] if ((c == 0) && MODE_LOCAL_CHARS(globalmode) && isatty(tin)) { ^~~~~~ sys_bsd.c:1199:17: warning: implicit declaration of function 'netflush'; did you mean 'tcflush'? [-Wimplicit-function-declaration] returnValue |= netflush(); ^~~~~~~~ tcflush gcc -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -c -o telnet.o telnet.c telnet.c: In function 'init_telnet': telnet.c:154:5: warning: implicit declaration of function 'env_init'; did you mean 'env_opt'? [-Wimplicit-function-declaration] env_init(); ^~~~~~~~ env_opt telnet.c: In function 'mklist': telnet.c:590:18: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] argv = (char **)malloc((n+3)*sizeof(char *)); ^~~~~~ telnet.c:590:18: warning: incompatible implicit declaration of built-in function 'malloc' telnet.c:590:18: note: include '' or provide a declaration of 'malloc' telnet.c:44:1: +#include telnet.c:590:18: argv = (char **)malloc((n+3)*sizeof(char *)); ^~~~~~ telnet.c:614:13: warning: implicit declaration of function 'is_unique' [-Wimplicit-function-declaration] else if (is_unique(cp2, argv+1, argvp)) ^~~~~~~~~ telnet.c: In function 'gettermname': telnet.c:725:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(tnamep); ^~~~ telnet.c:725:4: warning: incompatible implicit declaration of built-in function 'free' telnet.c:725:4: note: include '' or provide a declaration of 'free' telnet.c:727:6: warning: implicit declaration of function 'setupterm'; did you mean 'setneturg'? [-Wimplicit-function-declaration] (setupterm(tname, 1, &err) == 0)) { ^~~~~~~~~ setneturg telnet.c: In function 'suboption': telnet.c:785:3: warning: implicit declaration of function 'ExitString' [-Wimplicit-function-declaration] ExitString("No room in buffer for terminal type.\n", 1); ^~~~~~~~~~ telnet.c:800:6: warning: implicit declaration of function 'TerminalSpeeds'; did you mean 'TerminalNewMode'? [-Wimplicit-function-declaration] TerminalSpeeds(&ispeed, &ospeed); ^~~~~~~~~~~~~~ TerminalNewMode telnet.c: In function 'slc_export': telnet.c:1190:5: warning: implicit declaration of function 'TerminalDefaultChars'; did you mean 'TerminalSaveState'? [-Wimplicit-function-declaration] TerminalDefaultChars(); ^~~~~~~~~~~~~~~~~~~~ TerminalSaveState telnet.c: In function 'env_opt_start': telnet.c:1419:32: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] opt_reply = (unsigned char *)realloc(opt_reply, OPT_REPLY_SIZE); ^~~~~~~ telnet.c:1419:32: warning: incompatible implicit declaration of built-in function 'realloc' telnet.c:1419:32: note: include '' or provide a declaration of 'realloc' telnet.c:1421:32: warning: incompatible implicit declaration of built-in function 'malloc' opt_reply = (unsigned char *)malloc(OPT_REPLY_SIZE); ^~~~~~ telnet.c:1421:32: note: include '' or provide a declaration of 'malloc' telnet.c: In function 'env_opt_add': telnet.c:1465:32: warning: incompatible implicit declaration of built-in function 'realloc' opt_reply = (unsigned char *)realloc(opt_reply, len); ^~~~~~~ telnet.c:1465:32: note: include '' or provide a declaration of 'realloc' telnet.c: In function 'env_opt_end': telnet.c:1514:3: warning: incompatible implicit declaration of built-in function 'free' free(opt_reply); ^~~~ telnet.c:1514:3: note: include '' or provide a declaration of 'free' telnet.c: In function 'telrcv': telnet.c:1645:10: warning: implicit declaration of function 'ttyflush'; did you mean 'tcflush'? [-Wimplicit-function-declaration] (void) ttyflush(1); ^~~~~~~~ tcflush telnet.c:1646:14: warning: implicit declaration of function 'stilloob'; did you mean 'ftello'? [-Wimplicit-function-declaration] SYNCHing = stilloob(); ^~~~~~~~ ftello telnet.c: In function 'telsnd': telnet.c:1890:10: warning: implicit declaration of function 'TerminalSpecialChars'; did you mean 'TerminalSaveState'? [-Wimplicit-function-declaration] if (TerminalSpecialChars(sc) == 0) { ^~~~~~~~~~~~~~~~~~~~ TerminalSaveState telnet.c: In function 'Scheduler': telnet.c:1993:19: warning: implicit declaration of function 'process_rings' [-Wimplicit-function-declaration] returnValue = process_rings(netin, netout, netex, ttyin, ttyout, !block); ^~~~~~~~~~~~~ telnet.c: In function 'sendnaws': telnet.c:2380:9: warning: implicit declaration of function 'TerminalWindowSize'; did you mean 'TerminalNewMode'? [-Wimplicit-function-declaration] if (TerminalWindowSize(&rows, &cols) == 0) { /* Failed */ ^~~~~~~~~~~~~~~~~~ TerminalNewMode gcc -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -c -o terminal.o terminal.c terminal.c: In function 'init_terminal': terminal.c:81:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ terminal.c:81:2: warning: incompatible implicit declaration of built-in function 'exit' terminal.c:81:2: note: include '' or provide a declaration of 'exit' terminal.c:31:1: +#include terminal.c:81:2: exit(1); ^~~~ terminal.c:84:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ terminal.c:84:2: note: include '' or provide a declaration of 'exit' terminal.c:86:17: warning: implicit declaration of function 'TerminalAutoFlush' [-Wimplicit-function-declaration] autoflush = TerminalAutoFlush(); ^~~~~~~~~~~~~~~~~ terminal.c: In function 'ttyflush': terminal.c:113:10: warning: implicit declaration of function 'TerminalWrite'; did you mean 'TerminalNewMode'? [-Wimplicit-function-declaration] n = TerminalWrite(ttyoring.consume, n); ^~~~~~~~~~~~~ TerminalNewMode gcc -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE -c -o utilities.o utilities.c utilities.c: In function 'SetSockOpt': utilities.c:84:12: warning: implicit declaration of function 'setsockopt'; did you mean 'SetSockOpt'? [-Wimplicit-function-declaration] return setsockopt(fd, level, option, ^~~~~~~~~~ SetSockOpt utilities.c: In function 'Dump': utilities.c:130:12: warning: type defaults to 'int' in declaration of 'pettydump' [-Wimplicit-int] extern pettydump; ^~~~~~~~~ utilities.c: In function 'EmptyTerminal': utilities.c:765:13: warning: implicit declaration of function 'ttyflush'; did you mean 'tcflush'? [-Wimplicit-function-declaration] (void) ttyflush(0); ^~~~~~~~ tcflush utilities.c: In function 'SetForExit': utilities.c:785:8: warning: implicit declaration of function 'telrcv'; did you mean 'telnet'? [-Wimplicit-function-declaration] (void)telrcv(); /* Process any incoming data */ ^~~~~~ telnet utilities.c: In function 'Exit': utilities.c:807:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(returnCode); ^~~~ utilities.c:807:5: warning: incompatible implicit declaration of built-in function 'exit' utilities.c:807:5: note: include '' or provide a declaration of 'exit' utilities.c:49:1: +#include utilities.c:807:5: exit(returnCode); ^~~~ utilities.c: In function 'ExitString': utilities.c:817:5: warning: incompatible implicit declaration of built-in function 'exit' exit(returnCode); ^~~~ utilities.c:817:5: note: include '' or provide a declaration of 'exit' gcc -o ../rtelnet -g -I.. -I../../include -DLINUX -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname -DDIAGNOSTICS -DKLUDGELINEMODE authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o utilities.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks ../libtelnet/libtelnet.a -lncurses make[5]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make[4]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make[3]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet' (cd runsocks; make CC="gcc" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ OPTIMIZE="-g" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" \ RESOLV_LIB="" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/runsocks' gcc -fPIC -DLINUX -c wrap.c wrap.c: In function 'doinit': wrap.c:61:13: warning: implicit declaration of function 'getpid'; did you mean 'getenv'? [-Wimplicit-function-declaration] pid = getpid(); ^~~~~~ getenv wrap.c:66:15: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] procfile, strerror(errno)); ^~~~~~~~ perror wrap.c:74:4: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration] SOCKSinit(cmd); ^~~~~~~~~ gcc -fPIC -DLINUX -c connect.c In file included from connect.c:6: connect.c: In function '_RLD_connect': wrap.h:14:5: warning: implicit declaration of function 'GetOriginalFunc' [-Wimplicit-function-declaration] GetOriginalFunc(&func, (name), (flags)); \ ^~~~~~~~~~~~~~~ connect.c:10:3: note: in expansion of macro 'GETFUNC' GETFUNC("connect", TRY_LIBC, -1, (int (*)(int sockfd, __const struct sockaddr *serv_addr, socklen_t addrlen )), (sockfd, serv_addr, addrlen), int); ^~~~~~~ connect.c: In function 'connect': wrap.h:5:23: warning: implicit declaration of function 'Rconnect'; did you mean 'connect'? [-Wimplicit-function-declaration] #define LIBPREFIX(x) R ## x ^ connect.c:26:13: note: in expansion of macro 'LIBPREFIX' ret = LIBPREFIX(connect)(sockfd, serv_addr, addrlen); ^~~~~~~~~ gcc -fPIC -DLINUX -c bind.c In file included from bind.c:6: bind.c: In function '_RLD_bind': wrap.h:14:5: warning: implicit declaration of function 'GetOriginalFunc' [-Wimplicit-function-declaration] GetOriginalFunc(&func, (name), (flags)); \ ^~~~~~~~~~~~~~~ bind.c:10:3: note: in expansion of macro 'GETFUNC' GETFUNC("bind", TRY_LIBC, -1, (int (*)(int sockfd, __const struct sockaddr *my_addr, socklen_t addrlen )), (sockfd, my_addr, addrlen), int); ^~~~~~~ bind.c: In function 'bind': wrap.h:5:23: warning: implicit declaration of function 'Rbind'; did you mean 'bind'? [-Wimplicit-function-declaration] #define LIBPREFIX(x) R ## x ^ bind.c:24:11: note: in expansion of macro 'LIBPREFIX' ret = LIBPREFIX(bind)(sockfd, my_addr, addrlen); ^~~~~~~~~ gcc -fPIC -DLINUX -c accept.c In file included from accept.c:6: accept.c: In function '_RLD_accept': wrap.h:14:5: warning: implicit declaration of function 'GetOriginalFunc' [-Wimplicit-function-declaration] GetOriginalFunc(&func, (name), (flags)); \ ^~~~~~~~~~~~~~~ accept.c:10:3: note: in expansion of macro 'GETFUNC' GETFUNC("accept", TRY_LIBC, -1, (int (*)(int sockfd, struct sockaddr *addr, socklen_t *addrlen )), (sockfd, addr, addrlen), int); ^~~~~~~ accept.c: In function 'accept': wrap.h:5:23: warning: implicit declaration of function 'Raccept'; did you mean 'accept'? [-Wimplicit-function-declaration] #define LIBPREFIX(x) R ## x ^ accept.c:22:11: note: in expansion of macro 'LIBPREFIX' ret = LIBPREFIX(accept)(sockfd, addr, addrlen); ^~~~~~~~~ gcc -fPIC -DLINUX -c listen.c In file included from listen.c:6: listen.c: In function '_RLD_listen': wrap.h:14:5: warning: implicit declaration of function 'GetOriginalFunc' [-Wimplicit-function-declaration] GetOriginalFunc(&func, (name), (flags)); \ ^~~~~~~~~~~~~~~ listen.c:10:3: note: in expansion of macro 'GETFUNC' GETFUNC("listen", TRY_LIBC, -1, (int (*)(int sockfd, unsigned int backlog )), (sockfd, backlog), int); ^~~~~~~ listen.c: In function 'listen': wrap.h:5:23: warning: implicit declaration of function 'Rlisten'; did you mean 'listen'? [-Wimplicit-function-declaration] #define LIBPREFIX(x) R ## x ^ listen.c:22:11: note: in expansion of macro 'LIBPREFIX' ret = LIBPREFIX(listen)(sockfd, backlog); ^~~~~~~~~ gcc -fPIC -DLINUX -c gethostbyname.c In file included from gethostbyname.c:6: gethostbyname.c: In function '_RLD_gethostbyname': wrap.h:14:5: warning: implicit declaration of function 'GetOriginalFunc' [-Wimplicit-function-declaration] GetOriginalFunc(&func, (name), (flags)); \ ^~~~~~~~~~~~~~~ gethostbyname.c:10:3: note: in expansion of macro 'GETFUNC' GETFUNC("gethostbyname", TRY_LIBC, -1, (int (*)(int sockfd, unsigned int backlog )), (sockfd, backlog), int); ^~~~~~~ gethostbyname.c: In function 'gethostbyname': wrap.h:5:23: warning: implicit declaration of function 'Rgethostbyname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] #define LIBPREFIX(x) R ## x ^ gethostbyname.c:22:11: note: in expansion of macro 'LIBPREFIX' ret = LIBPREFIX(gethostbyname)(sockfd, backlog); ^~~~~~~~~ gcc -o libsockspl.so -fPIC -nostdlib -shared wrap.o connect.o bind.o accept.o listen.o gethostbyname.o -L/build/socks4-server-4.3.beta2/lib/ -lsocks -ldl -lc make[2]: Leaving directory '/build/socks4-server-4.3.beta2/runsocks' make[1]: Leaving directory '/build/socks4-server-4.3.beta2' touch build-stamp fakeroot debian/rules binary dh_installdirs dh_installdirs: Compatibility levels before 9 are deprecated (level 5 in use) make install.server install.mkfc DESTDIR=`pwd`/debian/socks4-server make[1]: Entering directory '/build/socks4-server-4.3.beta2' (cd lib; make CC="gcc" GETPASS="getpass.o" \ STRDUP="" OPTIMIZE="-g" \ OTHER_CFLAGS="-DLINUX " \ RANLIB="ranlib") make[2]: Entering directory '/build/socks4-server-4.3.beta2/lib' /build/socks4-server-4.3.beta2/lib make[2]: Leaving directory '/build/socks4-server-4.3.beta2/lib' (cd sockd; make CC="gcc" RESOLV_LIB="" \ OPTIMIZE="-g" RANLIB="ranlib" \ SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ IDENT_LIB="-lident" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/sockd' /build/socks4-server-4.3.beta2/sockd make[2]: Leaving directory '/build/socks4-server-4.3.beta2/sockd' (cd sockd; make INSTALL="install" MAN_DEST_DIR="/build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man" \ SERVER_BIN_DIR="/build/socks4-server-4.3.beta2/debian/socks4-server/usr/sbin" install install.man) make[2]: Entering directory '/build/socks4-server-4.3.beta2/sockd' /build/socks4-server-4.3.beta2/sockd install -m 111 sockd /build/socks4-server-4.3.beta2/debian/socks4-server/usr/sbin install -m 444 ../doc/sockd.8 /build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man/man8 install -m 444 ../doc/sockd.conf.5 /build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man/man5 install -m 444 ../doc/sockd.route.5 /build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man/man5 make[2]: Leaving directory '/build/socks4-server-4.3.beta2/sockd' (cd mkfc; make CC="gcc" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ RESOLV_LIB="" \ OPTIMIZE="-g" OTHER_CFLAGS="-DLINUX " ) make[2]: Entering directory '/build/socks4-server-4.3.beta2/mkfc' /build/socks4-server-4.3.beta2/mkfc make[2]: Leaving directory '/build/socks4-server-4.3.beta2/mkfc' (cd mkfc; make INSTALL="install" \ MKFC_DIR="/build/socks4-server-4.3.beta2/debian/socks4-server/usr/sbin" install) make[2]: Entering directory '/build/socks4-server-4.3.beta2/mkfc' /build/socks4-server-4.3.beta2/mkfc for i in make_socksfc make_sockdfc make_sockdfr dump_socksfc dump_sockdfc dump_sockdfr; do \ install -m 100 $i /build/socks4-server-4.3.beta2/debian/socks4-server/usr/sbin ;\ done make[2]: Leaving directory '/build/socks4-server-4.3.beta2/mkfc' make[1]: Leaving directory '/build/socks4-server-4.3.beta2' install -m 755 sockd/rsockd `pwd`/debian/socks4-server/usr/sbin/ install -m 644 debian/sockd.conf `pwd`/debian/socks4-server/etc/ install -m 644 debian/sockd.route `pwd`/debian/socks4-server/etc/ make install.clients DESTDIR=`pwd`/debian/socks4-server make[1]: Entering directory '/build/socks4-server-4.3.beta2' (cd lib; make CC="gcc" GETPASS="getpass.o" \ STRDUP="" OPTIMIZE="-g" \ OTHER_CFLAGS="-DLINUX " \ RANLIB="ranlib") make[2]: Entering directory '/build/socks4-server-4.3.beta2/lib' /build/socks4-server-4.3.beta2/lib make[2]: Leaving directory '/build/socks4-server-4.3.beta2/lib' (cd rfinger; make CC="gcc" WHOIS_SERVER=-DWHOIS_SERVER\'=\"rs.internic.net\"\' \ OPTIMIZE="-g" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" \ RESOLV_LIB="" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/rfinger' /build/socks4-server-4.3.beta2/rfinger make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rfinger' (cd rftp; make CC="gcc" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ OPTIMIZE="-g" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" \ RESOLV_LIB="" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/rftp' /build/socks4-server-4.3.beta2/rftp make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rftp' (cd rtelnet; make CC="gcc" OS="linux" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ OPTIMIZE="-g" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" \ RESOLV_LIB="" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet' /build/socks4-server-4.3.beta2/rtelnet cd libtelnet; make linux CC="gcc" OTHER_CFLAGS="-DLINUX " SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" SOCKS_LIB_DEP=/build/socks4-server-4.3.beta2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-g" make[3]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' make -f ../Config.local WHAT= CC=gcc OPTIMIZE=-g SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname SOCKS_LIB_DEP=/build/socks4-server-4.3.beta2/lib/libsocks.a SOCKS_LIB=-L/build/socks4-server-4.3.beta2/lib/ -lsocks RESOLV_LIB= linux make[4]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' make -f Makefile.generic \ LIBS="-L/build/socks4-server-4.3.beta2/lib/ -lsocks ../libtelnet/libtelnet.a \ -lncurses" \ DEST=/build/socks4-server-4.3.beta2/debian/socks4-server/usr/ucb \ DEFINES="-DLINUX \ -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname \ -DDIAGNOSTICS -DKLUDGELINEMODE" \ INCLUDES="-I.. -I../../include" \ LIB_OBJ="getent.o" \ LIB_SRC="getent.c" \ AR=ar ARFLAGS=rc RANLIB=ranlib \ LIBEXEC=/build/socks4-server-4.3.beta2/debian/socks4-server/usr/etc/in.telnetd \ CC="gcc" LCCFLAGS="-g" make[5]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' make[5]: 'libtelnet.a' is up to date. make[5]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' make[4]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' make[3]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/libtelnet' cd telnet; make linux CC="gcc" OTHER_CFLAGS="-DLINUX " SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" SOCKS_LIB_DEP=/build/socks4-server-4.3.beta2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-g" make[3]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make -f ../Config.local WHAT= CC=gcc OPTIMIZE=-g SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname SOCKS_LIB_DEP=/build/socks4-server-4.3.beta2/lib/libsocks.a SOCKS_LIB=-L/build/socks4-server-4.3.beta2/lib/ -lsocks RESOLV_LIB= linux make[4]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make -f Makefile.generic \ LIBS="-L/build/socks4-server-4.3.beta2/lib/ -lsocks ../libtelnet/libtelnet.a \ -lncurses" \ DEST=/build/socks4-server-4.3.beta2/debian/socks4-server/usr/ucb \ DEFINES="-DLINUX \ -DUSE_TERMIO -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname \ -DDIAGNOSTICS -DKLUDGELINEMODE" \ INCLUDES="-I.. -I../../include" \ LIB_OBJ="getent.o" \ LIB_SRC="getent.c" \ AR=ar ARFLAGS=rc RANLIB=ranlib \ LIBEXEC=/build/socks4-server-4.3.beta2/debian/socks4-server/usr/etc/in.telnetd \ CC="gcc" LCCFLAGS="-g" make[5]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make[4]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make[3]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet/telnet' make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet' (cd runsocks; make CC="gcc" SOCKS_LIB="-L/build/socks4-server-4.3.beta2/lib/ -lsocks" \ SOCKS_LIB_DEP="/build/socks4-server-4.3.beta2/lib/libsocks.a" \ OPTIMIZE="-g" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Dbind=Rbind -Dselect=Rselect -Dgethostbyname=Rgethostbyname" \ RESOLV_LIB="" \ OTHER_CFLAGS="-DLINUX ") make[2]: Entering directory '/build/socks4-server-4.3.beta2/runsocks' make[2]: 'libsockspl.so' is up to date. make[2]: Leaving directory '/build/socks4-server-4.3.beta2/runsocks' (cd doc; make INSTALL="install" MAN_DEST_DIR="/build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man" \ install) make[2]: Entering directory '/build/socks4-server-4.3.beta2/doc' for i in *.1; do \ install -m 444 $i /build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man/man1 ;\ done for i in *.5; do \ install -m 444 $i /build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man/man5 ;\ done for i in *.8; do \ install -m 444 $i /build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man/man8 ;\ done make[2]: Leaving directory '/build/socks4-server-4.3.beta2/doc' for i in rfinger rftp rtelnet runsocks; do \ (cd $i ; make INSTALL="install" \ CLIENTS_BIN_DIR="/build/socks4-server-4.3.beta2/debian/socks4-server/usr/bin" \ LIB_DEST_DIR="/build/socks4-server-4.3.beta2/debian/socks4-server/usr/lib" \ install); done make[2]: Entering directory '/build/socks4-server-4.3.beta2/rfinger' /build/socks4-server-4.3.beta2/rfinger install -m 111 rfinger /build/socks4-server-4.3.beta2/debian/socks4-server/usr/bin install -m 111 rwhois /build/socks4-server-4.3.beta2/debian/socks4-server/usr/bin make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rfinger' make[2]: Entering directory '/build/socks4-server-4.3.beta2/rftp' /build/socks4-server-4.3.beta2/rftp install -m 111 rftp /build/socks4-server-4.3.beta2/debian/socks4-server/usr/bin make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rftp' make[2]: Entering directory '/build/socks4-server-4.3.beta2/rtelnet' /build/socks4-server-4.3.beta2/rtelnet install -s -o bin -g bin -m 111 rtelnet /build/socks4-server-4.3.beta2/debian/socks4-server/usr/bin make[2]: Leaving directory '/build/socks4-server-4.3.beta2/rtelnet' make[2]: Entering directory '/build/socks4-server-4.3.beta2/runsocks' mkdir -p /build/socks4-server-4.3.beta2/debian/socks4-server/usr/lib/socks4/ install libsockspl.so /build/socks4-server-4.3.beta2/debian/socks4-server/usr/lib/socks4// install runsocks /build/socks4-server-4.3.beta2/debian/socks4-server/usr/bin/ make[2]: Leaving directory '/build/socks4-server-4.3.beta2/runsocks' make[1]: Leaving directory '/build/socks4-server-4.3.beta2' install -m 644 debian/socks.conf `pwd`/debian/socks4-server/etc/ cd debian/socks4-clients/usr/share/man/man1 && ln -s ../man7/undocumented.7.gz runsocks.1.gz make install.lib DESTDIR=`pwd`/debian/socks4-server make[1]: Entering directory '/build/socks4-server-4.3.beta2' (cd lib; make CC="gcc" GETPASS="getpass.o" \ STRDUP="" OPTIMIZE="-g" \ OTHER_CFLAGS="-DLINUX " \ RANLIB="ranlib") make[2]: Entering directory '/build/socks4-server-4.3.beta2/lib' /build/socks4-server-4.3.beta2/lib make[2]: Leaving directory '/build/socks4-server-4.3.beta2/lib' (cd lib; make INSTALL="install" LIB_DEST_DIR="/build/socks4-server-4.3.beta2/debian/socks4-server/usr/lib" install) make[2]: Entering directory '/build/socks4-server-4.3.beta2/lib' /build/socks4-server-4.3.beta2/lib if [ -d /build/socks4-server-4.3.beta2/debian/socks4-server/usr/lib ]; then \ (install -m 644 libsocks.a /build/socks4-server-4.3.beta2/debian/socks4-server/usr/lib; \ -t /build/socks4-server-4.3.beta2/debian/socks4-server/usr/lib/libsocks.a); fi /bin/sh: line 2: -t: command not found make[2]: [Makefile:45: install] Error 127 (ignored) make[2]: Leaving directory '/build/socks4-server-4.3.beta2/lib' make[1]: Leaving directory '/build/socks4-server-4.3.beta2' install -m 644 lib/libsocks.so.4.3 `pwd`/debian/socks4-server/usr/lib/ ln -s libsocks.so.4.3 debian/socks4-server/usr/lib/libsocks.so.4 ln -s libsocks.so.4.3 debian/socks4-server/usr/lib/libsocks.so make install.man DESTDIR=`pwd`/debian/socks4-server make[1]: Entering directory '/build/socks4-server-4.3.beta2' (cd doc; make INSTALL="install" MAN_DEST_DIR="/build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man" \ install) make[2]: Entering directory '/build/socks4-server-4.3.beta2/doc' for i in *.1; do \ install -m 444 $i /build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man/man1 ;\ done for i in *.5; do \ install -m 444 $i /build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man/man5 ;\ done for i in *.8; do \ install -m 444 $i /build/socks4-server-4.3.beta2/debian/socks4-server/usr/share/man/man8 ;\ done make[2]: Leaving directory '/build/socks4-server-4.3.beta2/doc' make[1]: Leaving directory '/build/socks4-server-4.3.beta2' touch install-stamp dh_testdir dh_testroot dh_movefiles --sourcedir=debian/socks4-server dh_movefiles: Compatibility levels before 9 are deprecated (level 5 in use) rmdir debian/socks4-server/usr/bin rmdir debian/socks4-server/usr/share/man/man1 rmdir debian/socks4-server/usr/lib/socks4 rmdir debian/socks4-server/usr/lib install -m 644 debian/libsocks4.lintian debian/libsocks4/usr/share/lintian/overrides/libsocks4 dh_installchangelogs CHANGES dh_installdocs runsocks/README.runsocks dh_installdocs: Compatibility levels before 9 are deprecated (level 5 in use) dh_installexamples dh_installexamples: Compatibility levels before 9 are deprecated (level 5 in use) dh_installmenu dh_installcron dh_installman dh_installman: Compatibility levels before 9 are deprecated (level 5 in use) dh_strip dh_strip: Compatibility levels before 9 are deprecated (level 5 in use) dh_strip: Compatibility levels before 9 are deprecated (level 5 in use) dh_strip: Compatibility levels before 9 are deprecated (level 5 in use) dh_link dh_compress dh_compress: Compatibility levels before 9 are deprecated (level 5 in use) dh_compress: Compatibility levels before 9 are deprecated (level 5 in use) dh_compress: Compatibility levels before 9 are deprecated (level 5 in use) dh_fixperms dh_makeshlibs dh_makeshlibs: Compatibility levels before 9 are deprecated (level 5 in use) dh_installdeb dh_installdeb: Compatibility levels before 9 are deprecated (level 5 in use) dh_shlibdeps dh_shlibdeps: Compatibility levels before 9 are deprecated (level 5 in use) dh_shlibdeps: Compatibility levels before 9 are deprecated (level 5 in use) dh_shlibdeps: Compatibility levels before 9 are deprecated (level 5 in use) dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/socks4-clients/usr/bin/rtelnet was not linked against libncurses.so.6 (it uses none of the library's symbols) dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package 'socks4-server' in '../socks4-server_4.3.beta2-20_armhf.deb'. dpkg-deb: building package 'socks4-clients' in '../socks4-clients_4.3.beta2-20_armhf.deb'. dpkg-deb: building package 'libsocks4' in '../libsocks4_4.3.beta2-20_armhf.deb'. dpkg-deb: building package 'socks4-server-dbgsym' in '../socks4-server-dbgsym_4.3.beta2-20_armhf.deb'. dpkg-deb: building package 'libsocks4-dbgsym' in '../libsocks4-dbgsym_4.3.beta2-20_armhf.deb'. dpkg-deb: building package 'socks4-clients-dbgsym' in '../socks4-clients-dbgsym_4.3.beta2-20_armhf.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../socks4-server_4.3.beta2-20_armhf.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration I: user script /srv/workspace/pbuilder/4334/tmp/hooks/B01_cleanup starting I: user script /srv/workspace/pbuilder/4334/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env I: removing directory /srv/workspace/pbuilder/4334 and its subdirectories I: Current time: Sun Jul 26 16:57:10 +14 2020 I: pbuilder-time-stamp: 1595732230