Diff of the two buildlogs: -- --- b1/build.log 2023-05-18 00:39:37.325701749 +0000 +++ b2/build.log 2023-05-18 00:47:17.681558409 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed May 17 11:22:31 -12 2023 -I: pbuilder-time-stamp: 1684365751 +I: Current time: Thu May 18 14:40:06 +14 2023 +I: pbuilder-time-stamp: 1684370406 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./libtorrent_0.13.8.orig.tar.gz] I: copying [./libtorrent_0.13.8-2.debian.tar.xz] I: Extracting source -gpgv: Signature made Sat Dec 28 21:05:23 2019 -12 +gpgv: Signature made Sun Dec 29 23:05:23 2019 +14 gpgv: using RSA key FD2F2DC58470E303F77975A34A00F348AF74DD02 gpgv: issuer "noodles@earth.li" gpgv: Can't check signature: No public key @@ -26,135 +26,167 @@ dpkg-source: info: unpacking libtorrent_0.13.8-2.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/12336/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/6611/tmp/hooks/D01_modify_environment starting +debug: Running on jtx1a. +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 +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 18 14:40 /bin/sh -> /bin/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/6611/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/6611/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='bookworm' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.15(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=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='5014c9a874fc4b559fe85a9a4753039b' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='12336' - PS1='# ' - PS2='> ' + INVOCATION_ID=3f4c03ba21d04262b63ec9fc4fc75d89 + 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=6611 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Q1pgtDuD/pbuilderrc_f0gQ --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Q1pgtDuD/b1 --logfile b1/build.log libtorrent_0.13.8-2.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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/r-b-build.Q1pgtDuD/pbuilderrc_sHBc --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Q1pgtDuD/b2 --logfile b2/build.log --extrapackages usrmerge libtorrent_0.13.8-2.dsc' + SUDO_GID=114 + SUDO_UID=108 + 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:3142/ I: uname -a - Linux cbxi4a 5.10.0-23-armmp #1 SMP Debian 5.10.179-1 (2023-05-12) armv7l GNU/Linux + Linux i-capture-the-hostname 5.10.0-23-arm64 #1 SMP Debian 5.10.179-1 (2023-05-12) aarch64 GNU/Linux I: ls -l /bin total 5072 - -rwxr-xr-x 1 root root 838488 Apr 23 09:24 bash - -rwxr-xr-x 3 root root 67144 Sep 18 2022 bunzip2 - -rwxr-xr-x 3 root root 67144 Sep 18 2022 bzcat - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Sep 18 2022 bzdiff - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Sep 18 2022 bzgrep - -rwxr-xr-x 3 root root 67144 Sep 18 2022 bzip2 - -rwxr-xr-x 1 root root 67112 Sep 18 2022 bzip2recover - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Sep 18 2022 bzmore - -rwxr-xr-x 1 root root 67632 Sep 20 2022 cat - -rwxr-xr-x 1 root root 67676 Sep 20 2022 chgrp - -rwxr-xr-x 1 root root 67644 Sep 20 2022 chmod - -rwxr-xr-x 1 root root 67684 Sep 20 2022 chown - -rwxr-xr-x 1 root root 133532 Sep 20 2022 cp - -rwxr-xr-x 1 root root 132868 Jan 5 01:20 dash - -rwxr-xr-x 1 root root 133220 Sep 20 2022 date - -rwxr-xr-x 1 root root 67732 Sep 20 2022 dd - -rwxr-xr-x 1 root root 68104 Sep 20 2022 df - -rwxr-xr-x 1 root root 133632 Sep 20 2022 dir - -rwxr-xr-x 1 root root 59128 Mar 22 21:02 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 01:33 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 01:33 domainname -> hostname - -rwxr-xr-x 1 root root 67560 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 02:43 egrep - -rwxr-xr-x 1 root root 67548 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 02:43 fgrep - -rwxr-xr-x 1 root root 55748 Mar 22 21:02 findmnt - -rwsr-xr-x 1 root root 26208 Mar 22 20:15 fusermount - -rwxr-xr-x 1 root root 128608 Jan 24 02:43 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 64220 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 67032 Dec 19 01:33 hostname - -rwxr-xr-x 1 root root 67720 Sep 20 2022 ln - -rwxr-xr-x 1 root root 35132 Mar 22 21:51 login - -rwxr-xr-x 1 root root 133632 Sep 20 2022 ls - -rwxr-xr-x 1 root root 136808 Mar 22 21:02 lsblk - -rwxr-xr-x 1 root root 67800 Sep 20 2022 mkdir - -rwxr-xr-x 1 root root 67764 Sep 20 2022 mknod - -rwxr-xr-x 1 root root 67596 Sep 20 2022 mktemp - -rwxr-xr-x 1 root root 38504 Mar 22 21:02 more - -rwsr-xr-x 1 root root 38496 Mar 22 21:02 mount - -rwxr-xr-x 1 root root 9824 Mar 22 21:02 mountpoint - -rwxr-xr-x 1 root root 133532 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 01:33 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 18:25 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 67608 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Apr 23 09:24 rbash -> bash - -rwxr-xr-x 1 root root 67600 Sep 20 2022 readlink - -rwxr-xr-x 1 root root 67672 Sep 20 2022 rm - -rwxr-xr-x 1 root root 67600 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 67400 Nov 2 2022 run-parts - -rwxr-xr-x 1 root root 133372 Jan 5 07:55 sed - lrwxrwxrwx 1 root root 4 Jan 5 01:20 sh -> dash - -rwxr-xr-x 1 root root 67584 Sep 20 2022 sleep - -rwxr-xr-x 1 root root 67644 Sep 20 2022 stty - -rwsr-xr-x 1 root root 50800 Mar 22 21:02 su - -rwxr-xr-x 1 root root 67584 Sep 20 2022 sync - -rwxr-xr-x 1 root root 336764 Apr 6 02:25 tar - -rwxr-xr-x 1 root root 67144 Nov 2 2022 tempfile - -rwxr-xr-x 1 root root 133224 Sep 20 2022 touch - -rwxr-xr-x 1 root root 67548 Sep 20 2022 true - -rwxr-xr-x 1 root root 9768 Mar 22 20:15 ulockmgr_server - -rwsr-xr-x 1 root root 22108 Mar 22 21:02 umount - -rwxr-xr-x 1 root root 67572 Sep 20 2022 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 133632 Sep 20 2022 vdir - -rwxr-xr-x 1 root root 42608 Mar 22 21:02 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 01:33 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 6460 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8103 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/12336/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 838488 Apr 24 11:24 bash + -rwxr-xr-x 3 root root 67144 Sep 19 2022 bunzip2 + -rwxr-xr-x 3 root root 67144 Sep 19 2022 bzcat + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4893 Nov 28 2021 bzexe + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep + -rwxr-xr-x 3 root root 67144 Sep 19 2022 bzip2 + -rwxr-xr-x 1 root root 67112 Sep 19 2022 bzip2recover + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore + -rwxr-xr-x 1 root root 67632 Sep 21 2022 cat + -rwxr-xr-x 1 root root 67676 Sep 21 2022 chgrp + -rwxr-xr-x 1 root root 67644 Sep 21 2022 chmod + -rwxr-xr-x 1 root root 67684 Sep 21 2022 chown + -rwxr-xr-x 1 root root 133532 Sep 21 2022 cp + -rwxr-xr-x 1 root root 132868 Jan 6 03:20 dash + -rwxr-xr-x 1 root root 133220 Sep 21 2022 date + -rwxr-xr-x 1 root root 67732 Sep 21 2022 dd + -rwxr-xr-x 1 root root 68104 Sep 21 2022 df + -rwxr-xr-x 1 root root 133632 Sep 21 2022 dir + -rwxr-xr-x 1 root root 59128 Mar 23 23:02 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 03:33 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 03:33 domainname -> hostname + -rwxr-xr-x 1 root root 67560 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 04:43 egrep + -rwxr-xr-x 1 root root 67548 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 04:43 fgrep + -rwxr-xr-x 1 root root 55748 Mar 23 23:02 findmnt + -rwsr-xr-x 1 root root 26208 Mar 23 22:15 fusermount + -rwxr-xr-x 1 root root 128608 Jan 25 04:43 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 64220 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 67032 Dec 20 03:33 hostname + -rwxr-xr-x 1 root root 67720 Sep 21 2022 ln + -rwxr-xr-x 1 root root 35132 Mar 23 23:51 login + -rwxr-xr-x 1 root root 133632 Sep 21 2022 ls + -rwxr-xr-x 1 root root 136808 Mar 23 23:02 lsblk + -rwxr-xr-x 1 root root 67800 Sep 21 2022 mkdir + -rwxr-xr-x 1 root root 67764 Sep 21 2022 mknod + -rwxr-xr-x 1 root root 67596 Sep 21 2022 mktemp + -rwxr-xr-x 1 root root 38504 Mar 23 23:02 more + -rwsr-xr-x 1 root root 38496 Mar 23 23:02 mount + -rwxr-xr-x 1 root root 9824 Mar 23 23:02 mountpoint + -rwxr-xr-x 1 root root 133532 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 03:33 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 20:25 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 67608 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Apr 24 11:24 rbash -> bash + -rwxr-xr-x 1 root root 67600 Sep 21 2022 readlink + -rwxr-xr-x 1 root root 67672 Sep 21 2022 rm + -rwxr-xr-x 1 root root 67600 Sep 21 2022 rmdir + -rwxr-xr-x 1 root root 67400 Nov 3 2022 run-parts + -rwxr-xr-x 1 root root 133372 Jan 6 09:55 sed + lrwxrwxrwx 1 root root 9 May 18 14:40 sh -> /bin/bash + -rwxr-xr-x 1 root root 67584 Sep 21 2022 sleep + -rwxr-xr-x 1 root root 67644 Sep 21 2022 stty + -rwsr-xr-x 1 root root 50800 Mar 23 23:02 su + -rwxr-xr-x 1 root root 67584 Sep 21 2022 sync + -rwxr-xr-x 1 root root 336764 Apr 7 04:25 tar + -rwxr-xr-x 1 root root 67144 Nov 3 2022 tempfile + -rwxr-xr-x 1 root root 133224 Sep 21 2022 touch + -rwxr-xr-x 1 root root 67548 Sep 21 2022 true + -rwxr-xr-x 1 root root 9768 Mar 23 22:15 ulockmgr_server + -rwsr-xr-x 1 root root 22108 Mar 23 23:02 umount + -rwxr-xr-x 1 root root 67572 Sep 21 2022 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 133632 Sep 21 2022 vdir + -rwxr-xr-x 1 root root 42608 Mar 23 23:02 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 03:33 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/6611/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -251,7 +283,7 @@ Get: 47 http://deb.debian.org/debian bookworm/main armhf libsigc++-2.0-dev armhf 2.12.0-1 [73.3 kB] Get: 48 http://deb.debian.org/debian bookworm/main armhf libssl-dev armhf 3.0.8-1 [2132 kB] Get: 49 http://deb.debian.org/debian bookworm/main armhf zlib1g-dev armhf 1:1.2.13.dfsg-1 [902 kB] -Fetched 23.2 MB in 6s (3998 kB/s) +Fetched 23.2 MB in 6s (4067 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (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 ... 19329 files and directories currently installed.) @@ -461,8 +493,19 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/libtorrent-0.13.8/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../libtorrent_0.13.8-2_source.changes +I: user script /srv/workspace/pbuilder/6611/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +removed '/etc/unsupported-skip-usrmerge-conversion' +The system has been successfully converted. +I: user script /srv/workspace/pbuilder/6611/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/libtorrent-0.13.8/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../libtorrent_0.13.8-2_source.changes dpkg-buildpackage: info: source package libtorrent dpkg-buildpackage: info: source version 0.13.8-2 dpkg-buildpackage: info: source distribution unstable @@ -683,10 +726,10 @@ checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes -checking for a sed that does not truncate output... /bin/sed -checking for grep that handles long lines and -e... /bin/grep -checking for egrep... /bin/grep -E -checking for fgrep... /bin/grep -F +checking for a sed that does not truncate output... /usr/bin/sed +checking for grep that handles long lines and -e... /usr/bin/grep +checking for egrep... /usr/bin/grep -E +checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B @@ -709,8 +752,8 @@ checking for mawk... mawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no -checking for a working dd... /bin/dd -checking how to truncate binary pipes... /bin/dd bs=4096 count=1 +checking for a working dd... /usr/bin/dd +checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes @@ -740,7 +783,7 @@ checking whether to build static libraries... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes -checking for a race-free mkdir -p... /bin/mkdir -p +checking for a race-free mkdir -p... /usr/bin/mkdir -p checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes @@ -830,7 +873,7 @@ config.status: executing depfiles commands make[1]: Leaving directory '/build/libtorrent-0.13.8' dh_auto_build - make -j3 + make -j4 make[1]: Entering directory '/build/libtorrent-0.13.8' make all-recursive make[2]: Entering directory '/build/libtorrent-0.13.8' @@ -840,12 +883,14 @@ make[4]: Entering directory '/build/libtorrent-0.13.8/src/torrent' Making all in data make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/data' -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o block.lo block.cc -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o block_list.lo block_list.cc -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_utils.lo chunk_utils.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c block.cc -fPIC -DPIC -o .libs/block.o -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c chunk_utils.cc -fPIC -DPIC -o .libs/chunk_utils.o +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o block.lo block.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o block_list.lo block_list.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_utils.lo chunk_utils.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_data.lo download_data.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c block_list.cc -fPIC -DPIC -o .libs/block_list.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c download_data.cc -fPIC -DPIC -o .libs/download_data.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c chunk_utils.cc -fPIC -DPIC -o .libs/chunk_utils.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c block.cc -fPIC -DPIC -o .libs/block.o In file included from block.cc:41: ../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -921,6 +966,84 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from ./../../torrent/utils/ranges.h:44, + from download_data.h:45, + from download_data.cc:41: +../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 174 | struct less2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from ./../../torrent/exceptions.h:47, + from download_data.cc:39: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 213 | struct greater2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 273 | struct invert : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 279 | struct on_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 299 | struct on2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 320 | struct mem_ptr_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 341 | struct mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 352 | struct const_mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 395 | struct call_delete : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 408 | class bind1st_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 433 | class bind2nd_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 551 | class mem_fun2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from block_list.cc:42: block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] @@ -1042,7 +1165,7 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_data.lo download_data.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file.lo file.cc In file included from ./../../download/available_list.h:45, from ./../../download/download_main.h:48: ./../../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] @@ -1051,7 +1174,7 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c download_data.cc -fPIC -DPIC -o .libs/download_data.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c file.cc -fPIC -DPIC -o .libs/file.o In file included from ./../../protocol/peer_chunks.h:41, from ./../../protocol/peer_connection_base.h:48, from block.cc:44: @@ -1098,6 +1221,20 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file_list.lo file_list.cc +block.cc: In destructor 'torrent::Block::~Block()': +block.cc:56:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw internal_error("Block dtor with 'm_state != STATE_INCOMPLETE && m_state != STATE_COMPLETED'"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +block.cc:56:5: note: in C++11 destructors default to 'noexcept' +block.cc:60:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 60 | throw internal_error("Block dtor with 'm_state == STATE_COMPLETED && m_leader == NULL'"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +block.cc:60:7: note: in C++11 destructors default to 'noexcept' +block.cc:75:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 75 | throw internal_error("Block::clear() m_stalled != 0."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +block.cc:75:5: note: in C++11 destructors default to 'noexcept' In file included from chunk_utils.cc:49: ./../../data/chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': ./../../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -1112,19 +1249,7 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -block.cc: In destructor 'torrent::Block::~Block()': -block.cc:56:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw internal_error("Block dtor with 'm_state != STATE_INCOMPLETE && m_state != STATE_COMPLETED'"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -block.cc:56:5: note: in C++11 destructors default to 'noexcept' -block.cc:60:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 60 | throw internal_error("Block dtor with 'm_state == STATE_COMPLETED && m_leader == NULL'"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -block.cc:60:7: note: in C++11 destructors default to 'noexcept' -block.cc:75:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 75 | throw internal_error("Block::clear() m_stalled != 0."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -block.cc:75:5: note: in C++11 destructors default to 'noexcept' +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c file_list.cc -fPIC -DPIC -o .libs/file_list.o ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../../rak/priority_queue_default.h:113:18: required from here ../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -1144,89 +1269,6 @@ /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -In file included from ./../../torrent/utils/ranges.h:44, - from download_data.h:45, - from download_data.cc:41: -../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 174 | struct less2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from ./../../torrent/exceptions.h:47, - from download_data.cc:39: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 213 | struct greater2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 273 | struct invert : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 279 | struct on_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 299 | struct on2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 320 | struct mem_ptr_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 341 | struct mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 352 | struct const_mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 395 | struct call_delete : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 408 | class bind1st_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 433 | class bind2nd_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 551 | class mem_fun2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file.lo file.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c file.cc -fPIC -DPIC -o .libs/file.o -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file_list.lo file_list.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c file_list.cc -fPIC -DPIC -o .libs/file_list.o -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file_list_iterator.lo file_list_iterator.cc In file included from ../../../rak/priority_queue_default.h:42, from ./../../globals.h:41, from file.cc:48: @@ -1244,12 +1286,12 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c file_list_iterator.cc -fPIC -DPIC -o .libs/file_list_iterator.o file.cc: In destructor 'torrent::File::~File()': file.cc:80:5: warning: 'throw' will always call 'terminate' [-Wterminate] 80 | throw internal_error("File::~File() called on an open file."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.cc:80:5: note: in C++11 destructors default to 'noexcept' +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file_list_iterator.lo file_list_iterator.cc ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../../rak/priority_queue_default.h:113:18: required from here ../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -1260,6 +1302,7 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c file_list_iterator.cc -fPIC -DPIC -o .libs/file_list_iterator.o In file included from file_list.cc:50: ../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -1335,7 +1378,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file_manager.lo file_manager.cc In file included from file_list.cc:52: ./../../data/chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': ./../../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -1351,7 +1393,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c file_manager.cc -fPIC -DPIC -o .libs/file_manager.o In file included from file_list.cc:61: file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -1366,6 +1407,7 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file_manager.lo file_manager.cc In file included from ../../../rak/priority_queue_default.h:42, from ./../../manager.h:42, from file_list.cc:63: @@ -1384,6 +1426,7 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c file_manager.cc -fPIC -DPIC -o .libs/file_manager.o file_list.cc: In member function 'torrent::Chunk* torrent::FileList::create_chunk(uint64_t, uint32_t, int)': file_list.cc:607:8: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 607 | std::auto_ptr chunk(new Chunk); @@ -1424,6 +1467,14 @@ /usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ +../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../../rak/priority_queue_default.h:113:18: required from here +../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./../../torrent/utils/ranges.h:44, from ./../../torrent/data/download_data.h:45, from ./../../torrent/data/file_list.h:46, @@ -1518,16 +1569,10 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../../rak/priority_queue_default.h:113:18: required from here -../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file_utils.lo file_utils.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o file_utils.lo file_utils.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c file_utils.cc -fPIC -DPIC -o .libs/file_utils.o +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o transfer_list.lo transfer_list.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c transfer_list.cc -fPIC -DPIC -o .libs/transfer_list.o In file included from ../../../rak/priority_queue_default.h:42, from ./../../manager.h:42, from file_manager.cc:46: @@ -1562,17 +1607,12 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from ./../../torrent/utils/ranges.h:44, - from ./../../torrent/data/download_data.h:45, - from ./../../torrent/data/file_list.h:46, - from file_utils.h:41, - from file_utils.cc:43: +In file included from transfer_list.cc:42: ../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from ./../exceptions.h:47, - from file_utils.cc:41: +In file included from /usr/include/c++/12/functional:49, + from transfer_list.cc:40: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -1630,40 +1670,23 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o transfer_list.lo transfer_list.cc ../../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function { | ^~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -../../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 551 | class mem_fun2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -./../../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': -./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here - 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) - | ^~~~~~~ -./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c transfer_list.cc -fPIC -DPIC -o .libs/transfer_list.o -In file included from transfer_list.cc:42: +In file included from ./../../torrent/utils/ranges.h:44, + from ./../../torrent/data/download_data.h:45, + from ./../../torrent/data/file_list.h:46, + from file_utils.h:41, + from file_utils.cc:43: ../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from transfer_list.cc:40: +In file included from /usr/include/c++/12/string:48, + from ./../exceptions.h:47, + from file_utils.cc:41: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -1673,12 +1696,18 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +../../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 551 | class mem_fun2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function { | ^~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function { | ^~~~~~~~~~~~~~ @@ -1733,6 +1762,20 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +./../../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': +./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here + 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) + | ^~~~~~~ +./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from transfer_list.cc:45: ./../../data/chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': ./../../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -1825,18 +1868,20 @@ /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentdata.la block.lo block_list.lo chunk_utils.lo download_data.lo file.lo file_list.lo file_list_iterator.lo file_manager.lo file_utils.lo transfer_list.lo -lcppunit -lz -lcrypto +/bin/sh ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentdata.la block.lo block_list.lo chunk_utils.lo download_data.lo file.lo file_list.lo file_list_iterator.lo file_manager.lo file_utils.lo transfer_list.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_torrentdata.a .libs/block.o .libs/block_list.o .libs/chunk_utils.o .libs/download_data.o .libs/file.o .libs/file_list.o .libs/file_list_iterator.o .libs/file_manager.o .libs/file_utils.o .libs/transfer_list.o libtool: link: ranlib .libs/libsub_torrentdata.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentdata.la" && ln -s "../libsub_torrentdata.la" "libsub_torrentdata.la" ) make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/data' Making all in download make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/download' -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o choke_group.lo choke_group.cc -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o choke_queue.lo choke_queue.cc -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_manager.lo download_manager.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c choke_group.cc -fPIC -DPIC -o .libs/choke_group.o +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o choke_group.lo choke_group.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o choke_queue.lo choke_queue.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_manager.lo download_manager.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o resource_manager.lo resource_manager.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c resource_manager.cc -fPIC -DPIC -o .libs/resource_manager.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c download_manager.cc -fPIC -DPIC -o .libs/download_manager.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c choke_group.cc -fPIC -DPIC -o .libs/choke_group.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c choke_queue.cc -fPIC -DPIC -o .libs/choke_queue.o In file included from download_manager.cc:39: ../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] @@ -1988,6 +2033,81 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from resource_manager.cc:44: +../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 174 | struct less2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49, + from resource_manager.cc:40: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 213 | struct greater2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 273 | struct invert : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 279 | struct on_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 299 | struct on2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 320 | struct mem_ptr_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 341 | struct mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 352 | struct const_mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 395 | struct call_delete : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 408 | class bind1st_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 433 | class bind2nd_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 551 | class mem_fun2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ../../../rak/priority_queue_default.h:42, from ./../../globals.h:41, from ./../../download/download_main.h:43, @@ -2102,6 +2222,33 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../../../rak/priority_queue_default.h:42, + from ./../../globals.h:41, + from ./../../download/download_main.h:43, + from resource_manager.cc:49: +../../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/algorithm:60, + from resource_manager.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ./../../download/available_list.h:45, + from ./../../download/download_main.h:48: +./../../net/address_list.h: At global scope: +./../../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ In file included from ./../../download/available_list.h:45, from ./../../download/download_main.h:48: ./../../net/address_list.h: At global scope: @@ -2120,6 +2267,19 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +In file included from ./../../protocol/peer_chunks.h:41, + from ./../../protocol/peer_connection_base.h:48, + from choke_queue.cc:46: +../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': +../../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] + 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:64, + from /usr/include/c++/12/algorithm:60, + from choke_queue.cc:39: +/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here + 185 | struct pair + | ^~~~ In file included from ./../../download/download_main.h:52: ./../../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -2135,19 +2295,24 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from ./../../protocol/peer_chunks.h:41, - from ./../../protocol/peer_connection_base.h:48, - from choke_queue.cc:46: -../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': -../../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] - 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:64, - from /usr/include/c++/12/algorithm:60, - from choke_queue.cc:39: -/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here - 185 | struct pair - | ^~~~ +In file included from ./../../protocol/request_list.h:42, + from ./../../protocol/peer_connection_base.h:50: +./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': +./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' +./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +In file included from ./../../globals.h:41, + from ./../../protocol/request_list.h:46: +../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/download_main.h:52: ./../../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -2196,17 +2361,6 @@ /usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ -In file included from ./../../protocol/request_list.h:42, - from ./../../protocol/peer_connection_base.h:50: -./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': -./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' -./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' download_manager.cc: In member function 'torrent::DownloadManager::iterator torrent::DownloadManager::find_chunk_list(torrent::ChunkList*)': download_manager.cc:93:66: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::ChunkList*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 93 | return std::find_if(begin(), end(), rak::equal(cl, std::mem_fun(&DownloadWrapper::chunk_list))); @@ -2240,13 +2394,21 @@ /usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ -In file included from ./../../globals.h:41, - from ./../../protocol/request_list.h:46: -../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ./../../download/download_main.h:52: +./../../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': +./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here + 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) + | ^~~~~~~ +./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../../rak/priority_queue_default.h:113:18: required from here ../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -2263,134 +2425,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -choke_queue.cc: In destructor 'torrent::choke_queue::~choke_queue()': -choke_queue.cc:76:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 76 | throw internal_error("choke_queue::~choke_queue() called but m_currentlyUnchoked != 0."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -choke_queue.cc:76:5: note: in C++11 destructors default to 'noexcept' -choke_queue.cc:79:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 79 | throw internal_error("choke_queue::~choke_queue() called but m_currentlyQueued != 0."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -choke_queue.cc:79:5: note: in C++11 destructors default to 'noexcept' -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o resource_manager.lo resource_manager.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c resource_manager.cc -fPIC -DPIC -o .libs/resource_manager.o -In file included from resource_manager.cc:44: -../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 174 | struct less2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from resource_manager.cc:40: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 213 | struct greater2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 273 | struct invert : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 279 | struct on_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 299 | struct on2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 320 | struct mem_ptr_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 341 | struct mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 352 | struct const_mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 395 | struct call_delete : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 408 | class bind1st_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 433 | class bind2nd_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 551 | class mem_fun2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from ../../../rak/priority_queue_default.h:42, - from ./../../globals.h:41, - from ./../../download/download_main.h:43, - from resource_manager.cc:49: -../../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/algorithm:60, - from resource_manager.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ./../../download/available_list.h:45, - from ./../../download/download_main.h:48: -./../../net/address_list.h: At global scope: -./../../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -In file included from ./../../download/download_main.h:52: -./../../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': -./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here - 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) - | ^~~~~~~ -./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from ./../../protocol/peer_chunks.h:41, from ./../../protocol/peer_connection_base.h:48, from resource_manager.cc:50: @@ -2402,6 +2436,15 @@ /usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 185 | struct pair | ^~~~ +choke_queue.cc: In destructor 'torrent::choke_queue::~choke_queue()': +choke_queue.cc:76:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 76 | throw internal_error("choke_queue::~choke_queue() called but m_currentlyUnchoked != 0."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +choke_queue.cc:76:5: note: in C++11 destructors default to 'noexcept' +choke_queue.cc:79:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 79 | throw internal_error("choke_queue::~choke_queue() called but m_currentlyQueued != 0."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +choke_queue.cc:79:5: note: in C++11 destructors default to 'noexcept' In file included from ./../../protocol/request_list.h:42, from ./../../protocol/peer_connection_base.h:50: ./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': @@ -2430,30 +2473,32 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentdownload.la choke_group.lo choke_queue.lo download_manager.lo resource_manager.lo -lcppunit -lz -lcrypto +/bin/sh ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentdownload.la choke_group.lo choke_queue.lo download_manager.lo resource_manager.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_torrentdownload.a .libs/choke_group.o .libs/choke_queue.o .libs/download_manager.o .libs/resource_manager.o libtool: link: ranlib .libs/libsub_torrentdownload.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentdownload.la" && ln -s "../libsub_torrentdownload.la" "libsub_torrentdownload.la" ) make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/download' Making all in net make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/net' -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_address_key.lo socket_address_key.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_address_key.lo socket_address_key.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_address_key.cc -fPIC -DPIC -o .libs/socket_address_key.o -/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentnet.la socket_address_key.lo -lcppunit -lz -lcrypto +/bin/sh ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentnet.la socket_address_key.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_torrentnet.a .libs/socket_address_key.o libtool: link: ranlib .libs/libsub_torrentnet.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentnet.la" && ln -s "../libsub_torrentnet.la" "libsub_torrentnet.la" ) make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/net' Making all in peer make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/peer' -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o client_info.lo client_info.cc -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o client_list.lo client_list.cc -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o connection_list.lo connection_list.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c client_info.cc -fPIC -DPIC -o .libs/client_info.o +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o client_info.lo client_info.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o client_list.lo client_list.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o connection_list.lo connection_list.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer.lo peer.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c connection_list.cc -fPIC -DPIC -o .libs/connection_list.o -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c client_list.cc -fPIC -DPIC -o .libs/client_list.o -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer.lo peer.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer.cc -fPIC -DPIC -o .libs/peer.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c client_list.cc -fPIC -DPIC -o .libs/client_list.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c client_info.cc -fPIC -DPIC -o .libs/client_info.o +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_info.lo peer_info.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer_info.cc -fPIC -DPIC -o .libs/peer_info.o In file included from connection_list.cc:40: ../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -2553,11 +2598,6 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/download_main.h:41, from peer.cc:41: ../../../rak/functional.h: At global scope: @@ -2652,6 +2692,11 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/available_list.h:45, from ./../../download/download_main.h:48: ./../../net/address_list.h: At global scope: @@ -2670,6 +2715,17 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +In file included from ./../../protocol/extensions.h:48, + from peer_info.cc:42: +./../../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from ../../../rak/socket_address.h:51, + from peer_info.cc:40: +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ In file included from ./../../download/download_main.h:52: ./../../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -2701,6 +2757,28 @@ 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../../protocol/peer_chunks.h:41, + from peer.cc:42: +../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': +../../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] + 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:64: +/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here + 185 | struct pair + | ^~~~ +In file included from ./../../protocol/peer_chunks.h:41, + from ./../../protocol/peer_connection_base.h:48, + from peer_info.cc:43: +../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': +../../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] + 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:64, + from /usr/include/c++/12/string:50: +/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here + 185 | struct pair + | ^~~~ +In file included from ./../../protocol/peer_chunks.h:41, from ./../../protocol/peer_connection_base.h:48, from connection_list.cc:45: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': @@ -2722,16 +2800,29 @@ 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' -In file included from ./../../protocol/peer_chunks.h:41, - from peer.cc:42: -../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': -../../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] - 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:64: -/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here - 185 | struct pair - | ^~~~ +In file included from ./../../protocol/request_list.h:42, + from ./../../protocol/peer_connection_base.h:50: +./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': +./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' +./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +In file included from ./../../globals.h:41, + from ./../../protocol/request_list.h:46: +../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +peer_info.cc: In destructor 'torrent::PeerInfo::~PeerInfo()': +peer_info.cc:78:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 78 | throw internal_error("PeerInfo::~PeerInfo() peer is blocked."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +peer_info.cc:78:5: note: in C++11 destructors default to 'noexcept' ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../../rak/priority_queue_default.h:113:18: required from here ../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -2752,9 +2843,7 @@ client_list.cc:134:17: warning: 'char* __builtin_strncpy(char*, const char*, unsigned int)' specified bound 2 equals destination size [-Wstringop-truncation] 134 | std::strncpy(clientInfo.mutable_key(), key, ClientInfo::max_key_size); | ^ -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_info.lo peer_info.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer_info.cc -fPIC -DPIC -o .libs/peer_info.o -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_list.lo peer_list.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_list.lo peer_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer_list.cc -fPIC -DPIC -o .libs/peer_list.o In file included from peer_list.cc:43: ../../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] @@ -2831,52 +2920,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ./../../protocol/extensions.h:48, - from peer_info.cc:42: -./../../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from ../../../rak/socket_address.h:51, - from peer_info.cc:40: -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -In file included from ./../../protocol/peer_chunks.h:41, - from ./../../protocol/peer_connection_base.h:48, - from peer_info.cc:43: -../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': -../../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] - 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:64, - from /usr/include/c++/12/string:50: -/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here - 185 | struct pair - | ^~~~ -In file included from ./../../protocol/request_list.h:42, - from ./../../protocol/peer_connection_base.h:50: -./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': -./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' -./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' -In file included from ./../../globals.h:41, - from ./../../protocol/request_list.h:46: -../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -peer_info.cc: In destructor 'torrent::PeerInfo::~PeerInfo()': -peer_info.cc:78:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 78 | throw internal_error("PeerInfo::~PeerInfo() peer is blocked."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -peer_info.cc:78:5: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/available_list.h:45, from peer_list.cc:46: ./../../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] @@ -2925,18 +2968,20 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentpeer.la client_info.lo client_list.lo connection_list.lo peer.lo peer_info.lo peer_list.lo -lcppunit -lz -lcrypto +/bin/sh ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentpeer.la client_info.lo client_list.lo connection_list.lo peer.lo peer_info.lo peer_list.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_torrentpeer.a .libs/client_info.o .libs/client_list.o .libs/connection_list.o .libs/peer.o .libs/peer_info.o .libs/peer_list.o libtool: link: ranlib .libs/libsub_torrentpeer.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentpeer.la" && ln -s "../libsub_torrentpeer.la" "libsub_torrentpeer.la" ) make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/peer' Making all in utils make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/utils' -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o directory_events.lo directory_events.cc -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o log.lo log.cc -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o log_buffer.lo log_buffer.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c log.cc -fPIC -DPIC -o .libs/log.o +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o directory_events.lo directory_events.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o log.lo log.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o log_buffer.lo log_buffer.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o net.lo net.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c directory_events.cc -fPIC -DPIC -o .libs/directory_events.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c net.cc -fPIC -DPIC -o .libs/net.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c log.cc -fPIC -DPIC -o .libs/log.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c log_buffer.cc -fPIC -DPIC -o .libs/log_buffer.o In file included from ../../../rak/priority_queue_default.h:42, from ./../../globals.h:41, @@ -2950,11 +2995,6 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../../rak/priority_queue_default.h:42, from ./../../globals.h:41, from log.cc:44: @@ -2968,16 +3008,11 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../../rak/priority_queue_default.h:113:18: required from here -../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/string:48: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ +../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../../rak/priority_queue_default.h:42, from ./../../manager.h:42, from directory_events.cc:53: @@ -3000,10 +3035,22 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../../rak/priority_queue_default.h:113:18: required from here +../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/string:48: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o option_strings.lo option_strings.cc directory_events.cc: In member function 'virtual void torrent::directory_events::event_read()': directory_events.cc:143:14: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 143 | if (result < sizeof(struct inotify_event)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c option_strings.cc -fPIC -DPIC -o .libs/option_strings.o ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../../rak/priority_queue_default.h:113:18: required from here ../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -3043,7 +3090,6 @@ /usr/include/c++/12/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o net.lo net.cc ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../../rak/priority_queue_default.h:113:18: required from here ../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -3052,11 +3098,10 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c net.cc -fPIC -DPIC -o .libs/net.o -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o option_strings.lo option_strings.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c option_strings.cc -fPIC -DPIC -o .libs/option_strings.o -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o resume.lo resume.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o resume.lo resume.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c resume.cc -fPIC -DPIC -o .libs/resume.o +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o signal_bitfield.lo signal_bitfield.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c signal_bitfield.cc -fPIC -DPIC -o .libs/signal_bitfield.o In file included from ./../../torrent/utils/ranges.h:44, from ./../../torrent/data/download_data.h:45, from ./../data/file_list.h:46, @@ -3173,13 +3218,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from /usr/include/c++/12/vector:70, - from /usr/include/c++/12/functional:62, - from option_strings.cc:40: -/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]': -/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 - 439 | vector<_Tp, _Alloc>:: - | ^~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../../rak/priority_queue_default.h:113:18: required from here ../../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -3188,6 +3226,15 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from /usr/include/c++/12/vector:70, + from /usr/include/c++/12/functional:62, + from option_strings.cc:40: +/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]': +/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 + 439 | vector<_Tp, _Alloc>:: + | ^~~~~~~~~~~~~~~~~~~ +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o thread_base.lo thread_base.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c thread_base.cc -fPIC -DPIC -o .libs/thread_base.o In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'torrent::Object torrent::option_list_strings(option_enum)' at option_strings.cc:299:23: @@ -3200,13 +3247,9 @@ /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o signal_bitfield.lo signal_bitfield.cc -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o thread_base.lo thread_base.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c signal_bitfield.cc -fPIC -DPIC -o .libs/signal_bitfield.o -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c thread_base.cc -fPIC -DPIC -o .libs/thread_base.o -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o thread_interrupt.lo thread_interrupt.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o thread_interrupt.lo thread_interrupt.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c thread_interrupt.cc -fPIC -DPIC -o .libs/thread_interrupt.o -/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o uri_parser.lo uri_parser.cc +/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o uri_parser.lo uri_parser.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c uri_parser.cc -fPIC -DPIC -o .libs/uri_parser.o In file included from /usr/include/c++/12/vector:70, from ./../../torrent/utils/log.h:42, @@ -3279,18 +3322,20 @@ /usr/include/c++/12/bits/vector.tcc:164:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 164 | _M_realloc_insert(begin() + (__position - cbegin()), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentutils.la directory_events.lo log.lo log_buffer.lo net.lo option_strings.lo resume.lo signal_bitfield.lo thread_base.lo thread_interrupt.lo uri_parser.lo -lcppunit -lz -lcrypto +/bin/sh ../../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrentutils.la directory_events.lo log.lo log_buffer.lo net.lo option_strings.lo resume.lo signal_bitfield.lo thread_base.lo thread_interrupt.lo uri_parser.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_torrentutils.a .libs/directory_events.o .libs/log.o .libs/log_buffer.o .libs/net.o .libs/option_strings.o .libs/resume.o .libs/signal_bitfield.o .libs/thread_base.o .libs/thread_interrupt.o .libs/uri_parser.o libtool: link: ranlib .libs/libsub_torrentutils.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentutils.la" && ln -s "../libsub_torrentutils.la" "libsub_torrentutils.la" ) make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/utils' make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o bitfield.lo bitfield.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_manager.lo chunk_manager.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o connection_manager.lo connection_manager.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c bitfield.cc -fPIC -DPIC -o .libs/bitfield.o -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c connection_manager.cc -fPIC -DPIC -o .libs/connection_manager.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o bitfield.lo bitfield.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_manager.lo chunk_manager.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o connection_manager.lo connection_manager.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_manager.lo dht_manager.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c chunk_manager.cc -fPIC -DPIC -o .libs/chunk_manager.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c connection_manager.cc -fPIC -DPIC -o .libs/connection_manager.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c bitfield.cc -fPIC -DPIC -o .libs/bitfield.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_manager.cc -fPIC -DPIC -o .libs/dht_manager.o In file included from bitfield.cc:41: ../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { @@ -3319,6 +3364,18 @@ 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, + from ./../manager.h:42, + from dht_manager.cc:43: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from ./../torrent/exceptions.h:47, + from dht_manager.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from chunk_manager.cc:48: ../../rak/priority_queue.h: At global scope: @@ -3334,6 +3391,11 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' chunk_manager.cc: In destructor 'torrent::ChunkManager::~ChunkManager()': chunk_manager.cc:78:5: warning: 'throw' will always call 'terminate' [-Wterminate] 78 | throw internal_error("ChunkManager::~ChunkManager() m_memoryUsage != 0 || m_memoryBlockCount != 0."); @@ -3375,26 +3437,49 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_manager.lo dht_manager.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_manager.cc -fPIC -DPIC -o .libs/dht_manager.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download.lo download.cc +In file included from ./../dht/dht_tracker.h:45, + from ./../dht/dht_hash_map.h:51, + from ./../dht/dht_router.h:48, + from dht_manager.cc:44: +./../net/address_list.h: At global scope: +./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48: +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +./../dht/dht_hash_map.h:148:42: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 148 | struct hashstring_ptr_less : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download.lo download.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c download.cc -fPIC -DPIC -o .libs/download.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o error.lo error.cc +In file included from ./../dht/dht_server.h:50, + from ./../dht/dht_router.h:49: +./../dht/dht_transaction.h:73:41: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 73 | struct dht_compare_closer : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o error.lo error.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c error.cc -fPIC -DPIC -o .libs/error.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o exceptions.lo exceptions.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o exceptions.lo exceptions.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c exceptions.cc -fPIC -DPIC -o .libs/exceptions.o -In file included from ../../rak/priority_queue_default.h:42, - from ./../manager.h:42, - from dht_manager.cc:43: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from ./../torrent/exceptions.h:47, - from dht_manager.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_string.lo hash_string.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_string.cc -fPIC -DPIC -o .libs/hash_string.o In file included from data/block.h:42, from download.cc:43: ./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': @@ -3406,11 +3491,7 @@ 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o http.lo http.cc In file included from ./../data/chunk_list.h:44, from download.cc:45: ./../data/chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': @@ -3430,32 +3511,7 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from ./../dht/dht_tracker.h:45, - from ./../dht/dht_hash_map.h:51, - from ./../dht/dht_router.h:48, - from dht_manager.cc:44: -./../net/address_list.h: At global scope: -./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -./../dht/dht_hash_map.h:148:42: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 148 | struct hashstring_ptr_less : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from ./../dht/dht_server.h:50, - from ./../dht/dht_router.h:49: -./../dht/dht_transaction.h:73:41: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 73 | struct dht_compare_closer : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c http.cc -fPIC -DPIC -o .libs/http.o In file included from ./../data/hash_torrent.h:43, from download.cc:47: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': @@ -3463,15 +3519,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from ./../download/chunk_selector.h:41, from download.cc:49: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': @@ -3483,10 +3530,8 @@ /usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 185 | struct pair | ^~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_string.lo hash_string.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_string.cc -fPIC -DPIC -o .libs/hash_string.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o http.lo http.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c http.cc -fPIC -DPIC -o .libs/http.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o object.lo object.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c object.cc -fPIC -DPIC -o .libs/object.o In file included from http.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -3567,12 +3612,7 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o object.lo object.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c object.cc -fPIC -DPIC -o .libs/object.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o object_static_map.lo object_static_map.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c object_static_map.cc -fPIC -DPIC -o .libs/object_static_map.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o object_stream.lo object_stream.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c object_stream.cc -fPIC -DPIC -o .libs/object_stream.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o object_static_map.lo object_static_map.cc In file included from object.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -3648,6 +3688,9 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c object_static_map.cc -fPIC -DPIC -o .libs/object_static_map.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o object_stream.lo object_stream.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c object_stream.cc -fPIC -DPIC -o .libs/object_stream.o In file included from object_static_map.cc:39: ../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { @@ -3657,8 +3700,7 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o path.lo path.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c path.cc -fPIC -DPIC -o .libs/path.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o path.lo path.cc In file included from object_stream.cc:44: ../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { @@ -3673,14 +3715,17 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o poll_epoll.lo poll_epoll.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c path.cc -fPIC -DPIC -o .libs/path.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o poll_epoll.lo poll_epoll.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c poll_epoll.cc -fPIC -DPIC -o .libs/poll_epoll.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o poll_kqueue.lo poll_kqueue.cc In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c poll_kqueue.cc -fPIC -DPIC -o .libs/poll_kqueue.o In file included from object.cc:43: In copy constructor 'torrent::Object::Object(const torrent::Object&)', inlined from 'void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = torrent::Object; _Args = {torrent::Object}; _Tp = torrent::Object]' at /usr/include/c++/12/bits/new_allocator.h:175:4, @@ -3701,8 +3746,10 @@ /usr/include/c++/12/bits/vector.tcc:366:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 366 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o poll_kqueue.lo poll_kqueue.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c poll_kqueue.cc -fPIC -DPIC -o .libs/poll_kqueue.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o poll_select.lo poll_select.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c poll_select.cc -fPIC -DPIC -o .libs/poll_select.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o rate.lo rate.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c rate.cc -fPIC -DPIC -o .libs/rate.o In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from ../../rak/algorithm.h:41: @@ -3710,26 +3757,6 @@ /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]': -/usr/include/c++/12/bits/vector.tcc:350:5: note: parameter passing for argument of type 'std::vector::const_iterator' changed in GCC 7.1 - 350 | vector<_Tp, _Alloc>:: - | ^~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/vector.tcc:366:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 - 366 | _M_realloc_insert(begin() + __n, std::move(__v)); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/vector:64: -In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]', - inlined from 'void torrent::object_read_bencode(std::istream*, Object*, uint32_t)' at object_stream.cc:151:59: -/usr/include/c++/12/bits/stl_vector.h:1389:30: note: parameter passing for argument of type 'std::vector::const_iterator' changed in GCC 7.1 - 1389 | { return _M_insert_rval(__position, std::move(__x)); } - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]', - inlined from 'const char* torrent::object_read_bencode_c(const char*, const char*, Object*, uint32_t)' at object_stream.cc:242:59: -/usr/include/c++/12/bits/stl_vector.h:1389:30: note: parameter passing for argument of type 'std::vector::const_iterator' changed in GCC 7.1 - 1389 | { return _M_insert_rval(__position, std::move(__x)); } - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o poll_select.lo poll_select.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c poll_select.cc -fPIC -DPIC -o .libs/poll_select.o In file included from poll_kqueue.cc:50: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -3806,9 +3833,25 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o rate.lo rate.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c rate.cc -fPIC -DPIC -o .libs/rate.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o throttle.lo throttle.cc +/usr/include/c++/12/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]': +/usr/include/c++/12/bits/vector.tcc:350:5: note: parameter passing for argument of type 'std::vector::const_iterator' changed in GCC 7.1 + 350 | vector<_Tp, _Alloc>:: + | ^~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/vector.tcc:366:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 + 366 | _M_realloc_insert(begin() + __n, std::move(__v)); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/vector:64: +In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]', + inlined from 'void torrent::object_read_bencode(std::istream*, Object*, uint32_t)' at object_stream.cc:151:59: +/usr/include/c++/12/bits/stl_vector.h:1389:30: note: parameter passing for argument of type 'std::vector::const_iterator' changed in GCC 7.1 + 1389 | { return _M_insert_rval(__position, std::move(__x)); } + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o throttle.lo throttle.cc +In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]', + inlined from 'const char* torrent::object_read_bencode_c(const char*, const char*, Object*, uint32_t)' at object_stream.cc:242:59: +/usr/include/c++/12/bits/stl_vector.h:1389:30: note: parameter passing for argument of type 'std::vector::const_iterator' changed in GCC 7.1 + 1389 | { return _M_insert_rval(__position, std::move(__x)); } + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c throttle.cc -fPIC -DPIC -o .libs/throttle.o In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, @@ -3852,18 +3895,6 @@ /usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../net/throttle_internal.h:41, - from throttle.cc:41: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/vector:60, - from ./../net/throttle_internal.h:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); @@ -3879,11 +3910,27 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent.lo torrent.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c torrent.cc -fPIC -DPIC -o .libs/torrent.o +In file included from ../../rak/priority_queue_default.h:42, + from ./../net/throttle_internal.h:41, + from throttle.cc:41: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/vector:60, + from ./../net/throttle_internal.h:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker.lo tracker.cc ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c tracker.cc -fPIC -DPIC -o .libs/tracker.o ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -3895,12 +3942,10 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent.lo torrent.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c torrent.cc -fPIC -DPIC -o .libs/torrent.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker.lo tracker.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_controller.lo tracker_controller.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c tracker.cc -fPIC -DPIC -o .libs/tracker.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_controller.lo tracker_controller.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c tracker_controller.cc -fPIC -DPIC -o .libs/tracker_controller.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_list.lo tracker_list.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c tracker_list.cc -fPIC -DPIC -o .libs/tracker_list.o In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from tracker.cc:42: @@ -3930,59 +3975,12 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from tracker_controller.cc:45: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from exceptions.h:47, - from tracker_controller.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/string:48: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_list.lo tracker_list.cc -In file included from ../../rak/priority_queue_default.h:42, - from ./../manager.h:42, - from torrent.cc:50: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from ../../rak/socket_address.h:51, - from ../../rak/address_info.h:47, - from torrent.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c tracker_list.cc -fPIC -DPIC -o .libs/tracker_list.o -In file included from ./../protocol/handshake_manager.h:43, - from torrent.cc:52: -../../rak/functional.h: At global scope: +In file included from tracker_list.cc:40: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: +In file included from /usr/include/c++/12/functional:49, + from tracker_list.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -4052,12 +4050,47 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from tracker_list.cc:40: +In file included from ../../rak/priority_queue_default.h:42, + from ./../manager.h:42, + from torrent.cc:50: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from ../../rak/socket_address.h:51, + from ../../rak/address_info.h:47, + from torrent.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../../rak/priority_queue_default.h:42, + from tracker_controller.cc:45: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from exceptions.h:47, + from tracker_controller.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ./../protocol/handshake_manager.h:43, + from torrent.cc:52: +../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from tracker_list.cc:39: +In file included from /usr/include/c++/12/string:48: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -4132,7 +4165,8 @@ ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/string:48: /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ @@ -4163,6 +4197,15 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ tracker_list.cc: In member function 'bool torrent::TrackerList::has_active() const': tracker_list.cc:70:51: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 70 | return std::find_if(begin(), end(), std::mem_fun(&Tracker::is_busy)) != end(); @@ -4242,7 +4285,7 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrent.la bitfield.lo chunk_manager.lo connection_manager.lo dht_manager.lo download.lo error.lo exceptions.lo hash_string.lo http.lo object.lo object_static_map.lo object_stream.lo path.lo poll_epoll.lo poll_kqueue.lo poll_select.lo rate.lo throttle.lo torrent.lo tracker.lo tracker_controller.lo tracker_list.lo -lcppunit -lz -lcrypto +/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_torrent.la bitfield.lo chunk_manager.lo connection_manager.lo dht_manager.lo download.lo error.lo exceptions.lo hash_string.lo http.lo object.lo object_static_map.lo object_stream.lo path.lo poll_epoll.lo poll_kqueue.lo poll_select.lo rate.lo throttle.lo torrent.lo tracker.lo tracker_controller.lo tracker_list.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_torrent.a .libs/bitfield.o .libs/chunk_manager.o .libs/connection_manager.o .libs/dht_manager.o .libs/download.o .libs/error.o .libs/exceptions.o .libs/hash_string.o .libs/http.o .libs/object.o .libs/object_static_map.o .libs/object_stream.o .libs/path.o .libs/poll_epoll.o .libs/poll_kqueue.o .libs/poll_select.o .libs/rate.o .libs/throttle.o .libs/torrent.o .libs/tracker.o .libs/tracker_controller.o .libs/tracker_list.o libtool: link: ranlib .libs/libsub_torrent.a libtool: link: ( cd ".libs" && rm -f "libsub_torrent.la" && ln -s "../libsub_torrent.la" "libsub_torrent.la" ) @@ -4250,12 +4293,14 @@ make[4]: Leaving directory '/build/libtorrent-0.13.8/src/torrent' Making all in data make[4]: Entering directory '/build/libtorrent-0.13.8/src/data' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk.lo chunk.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_list.lo chunk_list.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_part.lo chunk_part.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c chunk.cc -fPIC -DPIC -o .libs/chunk.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk.lo chunk.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_list.lo chunk_list.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_part.lo chunk_part.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_check_queue.lo hash_check_queue.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_check_queue.cc -fPIC -DPIC -o .libs/hash_check_queue.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c chunk_list.cc -fPIC -DPIC -o .libs/chunk_list.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c chunk_part.cc -fPIC -DPIC -o .libs/chunk_part.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c chunk.cc -fPIC -DPIC -o .libs/chunk.o In file included from chunk_list.cc:42: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -4331,43 +4376,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from chunk_list.h:44, - from chunk_list.cc:50: -chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': -chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1413:5: note: declared here - 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) - | ^~~~~~~~~~~ -chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_check_queue.lo hash_check_queue.cc -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from chunk_list.cc:52: -../../rak/priority_queue.h: At global scope: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_construct.h:61, - from /usr/include/c++/12/bits/alloc_traits.h:33, - from /usr/include/c++/12/ext/alloc_traits.h:34, - from /usr/include/c++/12/unordered_map:41, - from /usr/include/c++/12/functional:61: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from chunk.cc:47: chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -4405,6 +4413,23 @@ /usr/include/c++/12/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_chunk.lo hash_chunk.cc +In file included from chunk_list.h:44, + from chunk_list.cc:50: +chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': +chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1413:5: note: declared here + 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) + | ^~~~~~~~~~~ +chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ chunk.cc: In member function 'std::vector::iterator torrent::Chunk::at_position(uint32_t)': chunk.cc:98:76: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 98 | iterator itr = std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::is_contained), pos)); @@ -4418,7 +4443,27 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_check_queue.cc -fPIC -DPIC -o .libs/hash_check_queue.o +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from chunk_list.cc:52: +../../rak/priority_queue.h: At global scope: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_construct.h:61, + from /usr/include/c++/12/bits/alloc_traits.h:33, + from /usr/include/c++/12/ext/alloc_traits.h:34, + from /usr/include/c++/12/unordered_map:41, + from /usr/include/c++/12/functional:61: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_chunk.cc -fPIC -DPIC -o .libs/hash_chunk.o chunk_list.cc: In member function 'void torrent::ChunkList::clear()': chunk_list.cc:117:52: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = torrent::Chunk*; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 117 | if (std::find_if(begin(), end(), std::mem_fun_ref(&ChunkListNode::chunk)) != end()) @@ -4515,8 +4560,10 @@ /usr/include/c++/12/bits/vector.tcc:366:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 366 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_chunk.lo hash_chunk.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_chunk.cc -fPIC -DPIC -o .libs/hash_chunk.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_queue.lo hash_queue.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_queue_node.lo hash_queue_node.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_queue.cc -fPIC -DPIC -o .libs/hash_queue.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_queue_node.cc -fPIC -DPIC -o .libs/hash_queue_node.o In file included from /usr/include/c++/12/functional:64: /usr/include/c++/12/bits/stl_algo.h: In function '_IIter std::find_if(_IIter, _IIter, _Predicate) [with _IIter = __gnu_cxx::__normal_iterator >; _Predicate = const_mem_fun_ref_t]': /usr/include/c++/12/bits/stl_algo.h:3868:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 @@ -4533,15 +4580,11 @@ chunk_list.cc:126:19: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 126 | if (std::find_if(begin(), end(), std::mem_fun_ref(&ChunkListNode::blocking)) != end()) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_queue.lo hash_queue.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_queue.cc -fPIC -DPIC -o .libs/hash_queue.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_queue_node.lo hash_queue_node.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_queue_node.cc -fPIC -DPIC -o .libs/hash_queue_node.o hash_chunk.cc: In member function 'uint32_t torrent::HashChunk::perform_part(std::vector::iterator, uint32_t)': hash_chunk.cc:89:1: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 89 | HashChunk::perform_part(Chunk::iterator itr, uint32_t length) { | ^~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_torrent.lo hash_torrent.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o hash_torrent.lo hash_torrent.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c hash_torrent.cc -fPIC -DPIC -o .libs/hash_torrent.o In file included from hash_queue.cc:42: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] @@ -4618,6 +4661,7 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o memory_chunk.lo memory_chunk.cc In file included from ./../globals.h:41, from hash_queue.cc:54: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': @@ -4625,6 +4669,9 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c memory_chunk.cc -fPIC -DPIC -o .libs/memory_chunk.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_file.lo socket_file.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_file.cc -fPIC -DPIC -o .libs/socket_file.o In file included from ./../data/chunk_list.h:44, from hash_torrent.cc:41: ./../data/chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': @@ -4643,7 +4690,10 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o memory_chunk.lo memory_chunk.cc +socket_file.cc:51: warning: "_GNU_SOURCE" redefined + 51 | #define _GNU_SOURCE + | +: note: this is the location of the previous definition In file included from ./../torrent/utils/ranges.h:44, from ./../torrent/data/download_data.h:45, from hash_torrent.cc:43: @@ -4735,7 +4785,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c memory_chunk.cc -fPIC -DPIC -o .libs/memory_chunk.o ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -4744,25 +4793,21 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_file.lo socket_file.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_file.cc -fPIC -DPIC -o .libs/socket_file.o -socket_file.cc:51: warning: "_GNU_SOURCE" redefined - 51 | #define _GNU_SOURCE - | -: note: this is the location of the previous definition -/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_data.la chunk.lo chunk_list.lo chunk_part.lo hash_check_queue.lo hash_chunk.lo hash_queue.lo hash_queue_node.lo hash_torrent.lo memory_chunk.lo socket_file.lo -lcppunit -lz -lcrypto +/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_data.la chunk.lo chunk_list.lo chunk_part.lo hash_check_queue.lo hash_chunk.lo hash_queue.lo hash_queue_node.lo hash_torrent.lo memory_chunk.lo socket_file.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_data.a .libs/chunk.o .libs/chunk_list.o .libs/chunk_part.o .libs/hash_check_queue.o .libs/hash_chunk.o .libs/hash_queue.o .libs/hash_queue_node.o .libs/hash_torrent.o .libs/memory_chunk.o .libs/socket_file.o libtool: link: ranlib .libs/libsub_data.a libtool: link: ( cd ".libs" && rm -f "libsub_data.la" && ln -s "../libsub_data.la" "libsub_data.la" ) make[4]: Leaving directory '/build/libtorrent-0.13.8/src/data' Making all in dht make[4]: Entering directory '/build/libtorrent-0.13.8/src/dht' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_bucket.lo dht_bucket.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_node.lo dht_node.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_router.lo dht_router.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_bucket.lo dht_bucket.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_node.lo dht_node.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_router.lo dht_router.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_server.lo dht_server.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_bucket.cc -fPIC -DPIC -o .libs/dht_bucket.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_node.cc -fPIC -DPIC -o .libs/dht_node.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_server.cc -fPIC -DPIC -o .libs/dht_server.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_router.cc -fPIC -DPIC -o .libs/dht_router.o -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_bucket.cc -fPIC -DPIC -o .libs/dht_bucket.o In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from dht_node.cc:38: @@ -4780,6 +4825,21 @@ | ^~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, + from dht_server.cc:38: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_construct.h:61, + from /usr/include/c++/12/bits/alloc_traits.h:33, + from /usr/include/c++/12/ext/alloc_traits.h:34, + from /usr/include/c++/12/unordered_map:41, + from /usr/include/c++/12/functional:61, + from ../../rak/priority_queue_default.h:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, from dht_router.cc:38: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { @@ -4798,6 +4858,11 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from dht_bucket.h:42, @@ -4815,68 +4880,13 @@ ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -dht_bucket.cc: In member function 'void torrent::DhtBucket::remove_node(torrent::DhtNode*)': -dht_bucket.cc:78:59: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = torrent::DhtNode*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 78 | iterator itr = std::find_if(begin(), end(), std::bind2nd(std::equal_to(), n)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/string:48: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -dht_bucket.cc: In member function 'void torrent::DhtBucket::count()': -dht_bucket.cc:94:54: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::DhtNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 94 | m_good = std::count_if(begin(), end(), std::mem_fun(&DhtNode::is_good)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -dht_bucket.cc:95:53: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::DhtNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 95 | m_bad = std::count_if(begin(), end(), std::mem_fun(&DhtNode::is_bad)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -dht_bucket.cc: In member function 'torrent::DhtBucket* torrent::DhtBucket::split(const torrent::HashString&)': -dht_bucket.cc:168:76: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = bool; _Tp = torrent::DhtNode; _Arg = const torrent::DhtBucket*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 168 | iterator split = std::partition(begin(), end(), std::bind2nd(std::mem_fun(&DhtNode::is_in_range), this)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here - 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) - | ^~~~~~~ -dht_bucket.cc:168:63: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = torrent::DhtBucket*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 168 | iterator split = std::partition(begin(), end(), std::bind2nd(std::mem_fun(&DhtNode::is_in_range), this)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -dht_bucket.cc:170:72: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = torrent::DhtBucket*; _Tp = torrent::DhtNode; _Arg = torrent::DhtBucket*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 170 | std::for_each(other->begin(), other->end(), std::bind2nd(std::mem_fun(&DhtNode::set_bucket), other)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here - 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) - | ^~~~~~~ -dht_bucket.cc:170:59: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = torrent::DhtBucket*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 170 | std::for_each(other->begin(), other->end(), std::bind2nd(std::mem_fun(&DhtNode::set_bucket), other)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In file included from dht_router.cc:41: +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from dht_server.cc:42: ../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -4951,58 +4961,62 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from dht_node.cc:44: -./../net/address_list.h: At global scope: -./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49: -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: +dht_bucket.cc: In member function 'void torrent::DhtBucket::remove_node(torrent::DhtNode*)': +dht_bucket.cc:78:59: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = torrent::DhtNode*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 78 | iterator itr = std::find_if(begin(), end(), std::bind2nd(std::equal_to(), n)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/string:48: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +dht_bucket.cc: In member function 'void torrent::DhtBucket::count()': +dht_bucket.cc:94:54: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::DhtNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 94 | m_good = std::count_if(begin(), end(), std::mem_fun(&DhtNode::is_good)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ +dht_bucket.cc:95:53: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::DhtNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 95 | m_bad = std::count_if(begin(), end(), std::mem_fun(&DhtNode::is_bad)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ +dht_bucket.cc: In member function 'torrent::DhtBucket* torrent::DhtBucket::split(const torrent::HashString&)': +dht_bucket.cc:168:76: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = bool; _Tp = torrent::DhtNode; _Arg = const torrent::DhtBucket*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 168 | iterator split = std::partition(begin(), end(), std::bind2nd(std::mem_fun(&DhtNode::is_in_range), this)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here + 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) + | ^~~~~~~ +dht_bucket.cc:168:63: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = torrent::DhtBucket*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 168 | iterator split = std::partition(begin(), end(), std::bind2nd(std::mem_fun(&DhtNode::is_in_range), this)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +dht_bucket.cc:170:72: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = torrent::DhtBucket*; _Tp = torrent::DhtNode; _Arg = torrent::DhtBucket*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 170 | std::for_each(other->begin(), other->end(), std::bind2nd(std::mem_fun(&DhtNode::set_bucket), other)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here + 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) + | ^~~~~~~ +dht_bucket.cc:170:59: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = torrent::DhtBucket*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 170 | std::for_each(other->begin(), other->end(), std::bind2nd(std::mem_fun(&DhtNode::set_bucket), other)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_server.lo dht_server.cc ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_server.cc -fPIC -DPIC -o .libs/dht_server.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_tracker.lo dht_tracker.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_tracker.cc -fPIC -DPIC -o .libs/dht_tracker.o -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from dht_server.cc:38: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_construct.h:61, - from /usr/include/c++/12/bits/alloc_traits.h:33, - from /usr/include/c++/12/ext/alloc_traits.h:34, - from /usr/include/c++/12/unordered_map:41, - from /usr/include/c++/12/functional:61, - from ../../rak/priority_queue_default.h:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from dht_server.cc:42: +In file included from dht_router.cc:41: ../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -5077,6 +5091,24 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from dht_node.cc:44: +./../net/address_list.h: At global scope: +./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49: +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./../tracker/tracker_dht.h:40, from dht_server.cc:53: ./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] @@ -5101,6 +5133,28 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_tracker.lo dht_tracker.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_tracker.cc -fPIC -DPIC -o .libs/dht_tracker.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_transaction.lo dht_transaction.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_transaction.cc -fPIC -DPIC -o .libs/dht_transaction.o In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from dht_tracker.h:40, @@ -5119,15 +5173,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from dht_tracker.h:45: ./../net/address_list.h: At global scope: ./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] @@ -5159,34 +5204,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o dht_transaction.lo dht_transaction.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c dht_transaction.cc -fPIC -DPIC -o .libs/dht_transaction.o -In file included from /usr/include/c++/12/vector:70, - from /usr/include/c++/12/functional:62: -/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const torrent::Object&}; _Tp = torrent::Object; _Alloc = std::allocator]': -/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 - 439 | vector<_Tp, _Alloc>:: - | ^~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]': -/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 -In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, const value_type&) [with _Tp = torrent::Object; _Alloc = std::allocator]', - inlined from 'torrent::Object& torrent::Object::insert_back(const torrent::Object&)' at ./../torrent/object.h:227:118, - inlined from 'torrent::Object* torrent::DhtRouter::store_cache(torrent::Object*) const' at dht_router.cc:366:53: -/usr/include/c++/12/bits/vector.tcc:164:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 - 164 | _M_realloc_insert(begin() + (__position - cbegin()), __x); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', - inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, - inlined from 'torrent::Object* torrent::DhtRouter::store_cache(torrent::Object*) const' at dht_router.cc:367:21: -/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 - 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', - inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, - inlined from 'torrent::Object* torrent::DhtRouter::store_cache(torrent::Object*) const' at dht_router.cc:368:21: -/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 - 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./../tracker/tracker_dht.h:40, from dht_transaction.cc:41: ./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] @@ -5245,6 +5262,14 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from /usr/include/c++/12/vector:70, + from /usr/include/c++/12/functional:62: +/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const torrent::Object&}; _Tp = torrent::Object; _Alloc = std::allocator]': +/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 + 439 | vector<_Tp, _Alloc>:: + | ^~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]': +/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/12/map:60, from ./../torrent/object.h:41, from dht_server.cc:47: @@ -5260,32 +5285,39 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 926 | std::forward<_Pair>(__x)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_dht.la dht_bucket.lo dht_node.lo dht_router.lo dht_server.lo dht_tracker.lo dht_transaction.lo -lcppunit -lz -lcrypto +In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, const value_type&) [with _Tp = torrent::Object; _Alloc = std::allocator]', + inlined from 'torrent::Object& torrent::Object::insert_back(const torrent::Object&)' at ./../torrent/object.h:227:118, + inlined from 'torrent::Object* torrent::DhtRouter::store_cache(torrent::Object*) const' at dht_router.cc:366:53: +/usr/include/c++/12/bits/vector.tcc:164:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 + 164 | _M_realloc_insert(begin() + (__position - cbegin()), __x); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', + inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, + inlined from 'torrent::Object* torrent::DhtRouter::store_cache(torrent::Object*) const' at dht_router.cc:367:21: +/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 + 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', + inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, + inlined from 'torrent::Object* torrent::DhtRouter::store_cache(torrent::Object*) const' at dht_router.cc:368:21: +/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 + 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_dht.la dht_bucket.lo dht_node.lo dht_router.lo dht_server.lo dht_tracker.lo dht_transaction.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_dht.a .libs/dht_bucket.o .libs/dht_node.o .libs/dht_router.o .libs/dht_server.o .libs/dht_tracker.o .libs/dht_transaction.o libtool: link: ranlib .libs/libsub_dht.a libtool: link: ( cd ".libs" && rm -f "libsub_dht.la" && ln -s "../libsub_dht.la" "libsub_dht.la" ) make[4]: Leaving directory '/build/libtorrent-0.13.8/src/dht' Making all in download make[4]: Entering directory '/build/libtorrent-0.13.8/src/download' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o available_list.lo available_list.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_selector.lo chunk_selector.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_statistics.lo chunk_statistics.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c available_list.cc -fPIC -DPIC -o .libs/available_list.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o available_list.lo available_list.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_selector.lo chunk_selector.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o chunk_statistics.lo chunk_statistics.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o delegator.lo delegator.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c chunk_selector.cc -fPIC -DPIC -o .libs/chunk_selector.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c chunk_statistics.cc -fPIC -DPIC -o .libs/chunk_statistics.o -In file included from ./../protocol/peer_chunks.h:41, - from chunk_statistics.cc:41: -../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': -../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] - 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:64, - from /usr/include/c++/12/string:50, - from ./../torrent/exceptions.h:47, - from chunk_statistics.cc:39: -/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here - 185 | struct pair - | ^~~~ +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c available_list.cc -fPIC -DPIC -o .libs/available_list.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c delegator.cc -fPIC -DPIC -o .libs/delegator.o In file included from chunk_selector.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -5355,12 +5387,48 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +In file included from ./../protocol/peer_chunks.h:41, + from chunk_statistics.cc:41: +../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': +../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] + 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:64, + from /usr/include/c++/12/string:50, + from ./../torrent/exceptions.h:47, + from chunk_statistics.cc:39: +/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here + 185 | struct pair + | ^~~~ ../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from ./../torrent/data/block.h:42, + from delegator.cc:46: +./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': +./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' +./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +In file included from ./../protocol/peer_chunks.h:41, + from delegator.cc:49: +../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': +../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] + 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:64, + from /usr/include/c++/12/algorithm:60, + from delegator.cc:41: +/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here + 185 | struct pair + | ^~~~ In file included from ./../protocol/peer_chunks.h:41, from chunk_selector.cc:43: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': @@ -5388,35 +5456,12 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o delegator.lo delegator.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c delegator.cc -fPIC -DPIC -o .libs/delegator.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_constructor.lo download_constructor.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_constructor.lo download_constructor.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c download_constructor.cc -fPIC -DPIC -o .libs/download_constructor.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_main.lo download_main.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_main.lo download_main.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c download_main.cc -fPIC -DPIC -o .libs/download_main.o -In file included from ./../torrent/data/block.h:42, - from delegator.cc:46: -./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': -./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' -./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' -In file included from ./../protocol/peer_chunks.h:41, - from delegator.cc:49: -../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': -../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] - 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:64, - from /usr/include/c++/12/algorithm:60, - from delegator.cc:41: -/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here - 185 | struct pair - | ^~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_wrapper.lo download_wrapper.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c download_wrapper.cc -fPIC -DPIC -o .libs/download_wrapper.o In file included from download_constructor.cc:42: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -5510,6 +5555,29 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from ./../data/chunk_list.h:44, + from download_wrapper.cc:43: +./../data/chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': +./../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from /usr/include/c++/12/bits/locale_classes.h:40, + from /usr/include/c++/12/bits/ios_base.h:41, + from /usr/include/c++/12/streambuf:41, + from /usr/include/c++/12/bits/streambuf_iterator.h:35, + from /usr/include/c++/12/iterator:66, + from download_wrapper.cc:39: +/usr/include/c++/12/bits/stl_function.h:1413:5: note: declared here + 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) + | ^~~~~~~~~~~ +./../data/chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from ./../download/download_main.h:43, @@ -5531,17 +5599,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o download_wrapper.lo download_wrapper.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c download_wrapper.cc -fPIC -DPIC -o .libs/download_wrapper.o -In file included from ./../download/available_list.h:45, - from ./../download/download_main.h:48: -./../net/address_list.h: At global scope: -./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ In file included from ./../protocol/extensions.h:48, from download_main.cc:43: ./../net/address_list.h: At global scope: @@ -5551,6 +5608,13 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +In file included from ./../data/hash_torrent.h:43, + from download_wrapper.cc:45: +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../protocol/handshake_manager.h:43, from download_main.cc:44: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] @@ -5642,6 +5706,15 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ./../download/available_list.h:45, + from ./../download/download_main.h:48: +./../net/address_list.h: At global scope: +./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ In file included from ./../download/download_main.h:52: ./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -5653,10 +5726,32 @@ ./../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from ./../protocol/peer_chunks.h:41, + from ./../protocol/peer_connection_base.h:48, + from download_main.cc:46: +../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': +../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] + 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:64, + from /usr/include/c++/12/string:50: +/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here + 185 | struct pair + | ^~~~ +In file included from ./../protocol/request_list.h:42, + from ./../protocol/peer_connection_base.h:50: +./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': +./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' +./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from ./../download/download_main.h:52: ./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -5668,19 +5763,13 @@ ./../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -download_constructor.cc: At global scope: -download_constructor.cc:77:17: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 77 | public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ In file included from ./../protocol/peer_chunks.h:41, from ./../protocol/peer_connection_base.h:48, - from download_main.cc:46: + from download_wrapper.cc:47: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); @@ -5690,6 +5779,24 @@ /usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 185 | struct pair | ^~~~ +In file included from ./../protocol/request_list.h:42, + from ./../protocol/peer_connection_base.h:50: +./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': +./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' +./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +download_constructor.cc: At global scope: +download_constructor.cc:77:17: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 77 | public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ download_constructor.cc: In member function 'void torrent::DownloadConstructor::parse_tracker(const torrent::Object&)': download_constructor.cc:195:82: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Object]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 195 | std::find_if(announce_list->begin(), announce_list->end(), std::mem_fun_ref(&Object::is_list)) != announce_list->end()) @@ -5710,17 +5817,6 @@ /usr/include/c++/12/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ -In file included from ./../protocol/request_list.h:42, - from ./../protocol/peer_connection_base.h:50: -./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': -./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' -./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -5729,29 +5825,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from ./../data/chunk_list.h:44, - from download_wrapper.cc:43: -./../data/chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': -./../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/c++/12/bits/locale_classes.h:40, - from /usr/include/c++/12/bits/ios_base.h:41, - from /usr/include/c++/12/streambuf:41, - from /usr/include/c++/12/bits/streambuf_iterator.h:35, - from /usr/include/c++/12/iterator:66, - from download_wrapper.cc:39: -/usr/include/c++/12/bits/stl_function.h:1413:5: note: declared here - 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) - | ^~~~~~~~~~~ -./../data/chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ download_main.cc: In destructor 'torrent::DownloadMain::~DownloadMain()': download_main.cc:134:5: warning: 'throw' will always call 'terminate' [-Wterminate] 134 | throw internal_error("DownloadMain::~DownloadMain(): m_taskTrackerRequest is queued."); @@ -5769,36 +5842,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from ./../data/hash_torrent.h:43, - from download_wrapper.cc:45: -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ./../protocol/peer_chunks.h:41, - from ./../protocol/peer_connection_base.h:48, - from download_wrapper.cc:47: -../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': -../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] - 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:64, - from /usr/include/c++/12/string:50: -/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here - 185 | struct pair - | ^~~~ -In file included from ./../protocol/request_list.h:42, - from ./../protocol/peer_connection_base.h:50: -./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': -./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' -./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const torrent::Object&}; _Tp = torrent::Object; _Alloc = std::allocator]': @@ -5817,19 +5860,21 @@ /usr/include/c++/12/bits/vector.tcc:164:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 164 | _M_realloc_insert(begin() + (__position - cbegin()), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_download.la available_list.lo chunk_selector.lo chunk_statistics.lo delegator.lo download_constructor.lo download_main.lo download_wrapper.lo -lcppunit -lz -lcrypto +/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_download.la available_list.lo chunk_selector.lo chunk_statistics.lo delegator.lo download_constructor.lo download_main.lo download_wrapper.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_download.a .libs/available_list.o .libs/chunk_selector.o .libs/chunk_statistics.o .libs/delegator.o .libs/download_constructor.o .libs/download_main.o .libs/download_wrapper.o libtool: link: ranlib .libs/libsub_download.a libtool: link: ( cd ".libs" && rm -f "libsub_download.la" && ln -s "../libsub_download.la" "libsub_download.la" ) make[4]: Leaving directory '/build/libtorrent-0.13.8/src/download' Making all in net make[4]: Entering directory '/build/libtorrent-0.13.8/src/net' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o address_list.lo address_list.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o local_addr.lo local_addr.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o listen.lo listen.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o address_list.lo address_list.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o local_addr.lo local_addr.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o listen.lo listen.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_base.lo socket_base.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_base.cc -fPIC -DPIC -o .libs/socket_base.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c local_addr.cc -fPIC -DPIC -o .libs/local_addr.o -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c listen.cc -fPIC -DPIC -o .libs/listen.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c address_list.cc -fPIC -DPIC -o .libs/address_list.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c listen.cc -fPIC -DPIC -o .libs/listen.o In file included from address_list.cc:40: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -5905,31 +5950,15 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_base.lo socket_base.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_base.cc -fPIC -DPIC -o .libs/socket_base.o -In file included from address_list.cc:42: -address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -address_list.cc: In member function 'void torrent::AddressList::parse_address_normal(const torrent::Object::list_type&)': -address_list.cc:67:57: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = const torrent::Object&; _Result = rak::socket_address]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] - 67 | std::for_each(b.begin(), b.end(), rak::on(std::ptr_fun(&AddressList::parse_address), AddressList::add_address(this))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here - 1126 | ptr_fun(_Result (*__x)(_Arg)) - | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../manager.h:42, - from listen.cc:53: + from socket_base.cc:45: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/12/string:45, - from ../../rak/socket_address.h:51, - from listen.cc:44: + from ./../torrent/exceptions.h:47, + from socket_base.cc:43: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -5938,27 +5967,16 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/string:48: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_datagram.lo socket_datagram.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_datagram.cc -fPIC -DPIC -o .libs/socket_datagram.o +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_datagram.lo socket_datagram.cc In file included from ../../rak/priority_queue_default.h:42, from ./../manager.h:42, - from socket_base.cc:45: + from listen.cc:53: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/12/string:45, - from ./../torrent/exceptions.h:47, - from socket_base.cc:43: + from ../../rak/socket_address.h:51, + from listen.cc:44: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -5972,6 +5990,31 @@ 54 | throw internal_error("SocketBase::~SocketBase() called but m_fd is still valid"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ socket_base.cc:54:5: note: in C++11 destructors default to 'noexcept' +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_datagram.cc -fPIC -DPIC -o .libs/socket_datagram.o +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/string:48: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +In file included from address_list.cc:42: +address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +address_list.cc: In member function 'void torrent::AddressList::parse_address_normal(const torrent::Object::list_type&)': +address_list.cc:67:57: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = const torrent::Object&; _Result = rak::socket_address]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] + 67 | std::for_each(b.begin(), b.end(), rak::on(std::ptr_fun(&AddressList::parse_address), AddressList::add_address(this))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here + 1126 | ptr_fun(_Result (*__x)(_Arg)) + | ^~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -5982,13 +6025,16 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_fd.lo socket_fd.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_fd.lo socket_fd.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_fd.cc -fPIC -DPIC -o .libs/socket_fd.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_set.lo socket_set.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_set.lo socket_set.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_set.cc -fPIC -DPIC -o .libs/socket_set.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_stream.lo socket_stream.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o socket_stream.lo socket_stream.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c socket_stream.cc -fPIC -DPIC -o .libs/socket_stream.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o throttle_internal.lo throttle_internal.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o throttle_internal.lo throttle_internal.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o throttle_list.lo throttle_list.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c throttle_internal.cc -fPIC -DPIC -o .libs/throttle_internal.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c throttle_list.cc -fPIC -DPIC -o .libs/throttle_list.o socket_set.cc: In member function 'void torrent::SocketSet::prepare()': socket_set.cc:70:42: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = torrent::SocketSet; _Arg = unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 70 | std::bind1st(std::mem_fun(&SocketSet::_replace_with_last), this)); @@ -6005,9 +6051,6 @@ /usr/include/c++/12/backward/binders.h:136:5: note: declared here 136 | bind1st(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c throttle_internal.cc -fPIC -DPIC -o .libs/throttle_internal.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o throttle_list.lo throttle_list.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c throttle_list.cc -fPIC -DPIC -o .libs/throttle_list.o In file included from throttle_internal.cc:39: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -6101,6 +6144,22 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +throttle_list.cc: In member function 'void torrent::ThrottleList::disable()': +throttle_list.cc:115:45: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::ThrottleNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 115 | std::for_each(begin(), end(), std::mem_fun(&ThrottleNode::clear_quota)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from ./../torrent/exceptions.h:47, + from throttle_list.cc:41: +/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here + 1371 | mem_fun(_Ret (_Tp::*__f)()) + | ^~~~~~~ +throttle_list.cc:116:51: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::ThrottleNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 116 | std::for_each(m_splitActive, end(), std::mem_fun(&ThrottleNode::activate)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here + 1371 | mem_fun(_Ret (_Tp::*__f)()) + | ^~~~~~~ throttle_internal.cc: In member function 'void torrent::ThrottleInternal::enable()': throttle_internal.cc:78:69: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::ThrottleInternal]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 78 | std::for_each(m_slaveList.begin(), m_slaveList.end(), std::mem_fun(&ThrottleInternal::enable)); @@ -6124,35 +6183,21 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -throttle_list.cc: In member function 'void torrent::ThrottleList::disable()': -throttle_list.cc:115:45: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::ThrottleNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 115 | std::for_each(begin(), end(), std::mem_fun(&ThrottleNode::clear_quota)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from ./../torrent/exceptions.h:47, - from throttle_list.cc:41: -/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here - 1371 | mem_fun(_Ret (_Tp::*__f)()) - | ^~~~~~~ -throttle_list.cc:116:51: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::ThrottleNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 116 | std::for_each(m_splitActive, end(), std::mem_fun(&ThrottleNode::activate)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here - 1371 | mem_fun(_Ret (_Tp::*__f)()) - | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_net.la address_list.lo local_addr.lo listen.lo socket_base.lo socket_datagram.lo socket_fd.lo socket_set.lo socket_stream.lo throttle_internal.lo throttle_list.lo -lcppunit -lz -lcrypto +/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_net.la address_list.lo local_addr.lo listen.lo socket_base.lo socket_datagram.lo socket_fd.lo socket_set.lo socket_stream.lo throttle_internal.lo throttle_list.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_net.a .libs/address_list.o .libs/local_addr.o .libs/listen.o .libs/socket_base.o .libs/socket_datagram.o .libs/socket_fd.o .libs/socket_set.o .libs/socket_stream.o .libs/throttle_internal.o .libs/throttle_list.o libtool: link: ranlib .libs/libsub_net.a libtool: link: ( cd ".libs" && rm -f "libsub_net.la" && ln -s "../libsub_net.la" "libsub_net.la" ) make[4]: Leaving directory '/build/libtorrent-0.13.8/src/net' Making all in protocol make[4]: Entering directory '/build/libtorrent-0.13.8/src/protocol' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o extensions.lo extensions.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o handshake.lo handshake.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o handshake_encryption.lo handshake_encryption.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o extensions.lo extensions.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o handshake.lo handshake.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o handshake_encryption.lo handshake_encryption.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o handshake_manager.lo handshake_manager.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c extensions.cc -fPIC -DPIC -o .libs/extensions.o -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c handshake_encryption.cc -fPIC -DPIC -o .libs/handshake_encryption.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c handshake.cc -fPIC -DPIC -o .libs/handshake.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c handshake_manager.cc -fPIC -DPIC -o .libs/handshake_manager.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c handshake_encryption.cc -fPIC -DPIC -o .libs/handshake_encryption.o In file included from ./../download/download_main.h:41, from handshake.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] @@ -6241,11 +6286,83 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ./../download/download_main.h:41, + from handshake_manager.cc:43: +../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 174 | struct less2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from ../../rak/socket_address.h:51, + from handshake_manager.cc:39: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 213 | struct greater2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 273 | struct invert : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 279 | struct on_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 299 | struct on2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 320 | struct mem_ptr_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 341 | struct mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 352 | struct const_mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 395 | struct call_delete : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 408 | class bind1st_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 433 | class bind2nd_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 551 | class mem_fun2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ./../download/available_list.h:45, from extensions.cc:44: ./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] @@ -6257,15 +6374,26 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -In file included from ./../download/available_list.h:45, - from ./../download/download_main.h:48: -./../net/address_list.h: At global scope: -./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from ./../download/download_main.h:43: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../download/download_main.h:41, from extensions.cc:45: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] @@ -6356,7 +6484,41 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o handshake_manager.lo handshake_manager.cc +In file included from ./../download/available_list.h:45, + from ./../download/download_main.h:48: +./../net/address_list.h: At global scope: +./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +In file included from ./../download/available_list.h:45, + from ./../download/download_main.h:48: +./../net/address_list.h: At global scope: +./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o initial_seed.lo initial_seed.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c initial_seed.cc -fPIC -DPIC -o .libs/initial_seed.o +In file included from ./../download/download_main.h:52: +./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': +./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here + 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) + | ^~~~~~~ +./../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./../download/download_main.h:52: ./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -6372,7 +6534,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c handshake_manager.cc -fPIC -DPIC -o .libs/handshake_manager.o In file included from ./../download/download_main.h:52: ./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -6410,6 +6571,29 @@ 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +In file included from peer_chunks.h:41, + from peer_connection_base.h:48, + from handshake_manager.cc:51: +../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': +../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] + 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:64, + from /usr/include/c++/12/string:50: +/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here + 185 | struct pair + | ^~~~ +In file included from request_list.h:42, + from peer_connection_base.h:50: +./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': +./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' +./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' handshake.cc: In destructor 'virtual torrent::Handshake::~Handshake()': handshake.cc:108:5: warning: 'throw' will always call 'terminate' [-Wterminate] 108 | throw internal_error("Handshake m_taskTimeout bork bork bork."); @@ -6435,14 +6619,23 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./../download/download_main.h:41, - from handshake_manager.cc:43: + from initial_seed.h:40, + from initial_seed.cc:45: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/string:48, - from ../../rak/socket_address.h:51, - from handshake_manager.cc:39: + from ./../torrent/download/choke_group.h:40, + from initial_seed.cc:41: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -6553,7 +6746,8 @@ | ^~~~~~~ In file included from peer_chunks.h:41, from peer_connection_base.h:48, - from handshake_manager.cc:51: + from peer_connection_leech.h:40, + from initial_seed.cc:46: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); @@ -6574,6 +6768,7 @@ 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_connection_base.lo peer_connection_base.cc ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -6582,9 +6777,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o initial_seed.lo initial_seed.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_connection_base.lo peer_connection_base.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c initial_seed.cc -fPIC -DPIC -o .libs/initial_seed.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer_connection_base.cc -fPIC -DPIC -o .libs/peer_connection_base.o In file included from peer_connection_base.cc:44: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] @@ -6661,101 +6853,12 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_connection_leech.lo peer_connection_leech.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_connection_leech.lo peer_connection_leech.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_connection_metadata.lo peer_connection_metadata.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer_connection_leech.cc -fPIC -DPIC -o .libs/peer_connection_leech.o -In file included from ./../download/download_main.h:41, - from initial_seed.h:40, - from initial_seed.cc:45: -../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 174 | struct less2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from ./../torrent/download/choke_group.h:40, - from initial_seed.cc:41: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 213 | struct greater2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 273 | struct invert : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 279 | struct on_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 299 | struct on2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 320 | struct mem_ptr_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 341 | struct mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 352 | struct const_mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 395 | struct call_delete : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 408 | class bind1st_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 433 | class bind2nd_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 551 | class mem_fun2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from ./../download/download_main.h:43: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_factory.lo peer_factory.cc +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer_connection_metadata.cc -fPIC -DPIC -o .libs/peer_connection_metadata.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer_factory.cc -fPIC -DPIC -o .libs/peer_factory.o In file included from ./../data/chunk_iterator.h:40, from peer_connection_base.cc:47: ./../data/chunk.h: In member function 'std::vector::iterator torrent::Chunk::find_address(void*)': @@ -6783,15 +6886,6 @@ /usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 185 | struct pair | ^~~~ -In file included from ./../download/available_list.h:45, - from ./../download/download_main.h:48: -./../net/address_list.h: At global scope: -./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from ./../download/download_main.h:43, @@ -6813,31 +6907,20 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ./../download/download_main.h:52: -./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': -./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here - 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) - | ^~~~~~~ -./../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In file included from peer_chunks.h:41, - from peer_connection_base.h:48, - from peer_connection_leech.h:40, - from initial_seed.cc:46: +In file included from ./../download/chunk_selector.h:41, + from peer_connection_metadata.cc:43: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/bits/stl_algobase.h:64, - from /usr/include/c++/12/string:50: + from /usr/include/c++/12/string:50, + from /usr/include/c++/12/bits/locale_classes.h:40, + from /usr/include/c++/12/bits/ios_base.h:41, + from /usr/include/c++/12/ios:42, + from /usr/include/c++/12/istream:38, + from /usr/include/c++/12/sstream:38, + from peer_connection_metadata.cc:40: /usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 185 | struct pair | ^~~~ @@ -6850,17 +6933,6 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -In file included from request_list.h:42, - from peer_connection_base.h:50: -./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': -./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' -./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from peer_connection_leech.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -6941,144 +7013,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In file included from ./../download/download_main.h:52: -./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': -./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here - 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) - | ^~~~~~~ -./../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In file included from ./../torrent/data/block.h:42, - from peer_connection_base.cc:54: -./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': -./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' -./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' -In file included from ./../download/chunk_selector.h:41, - from peer_connection_leech.cc:45: -../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': -../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] - 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:64, - from /usr/include/c++/12/string:50: -/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here - 185 | struct pair - | ^~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from ./../download/download_main.h:43, - from peer_connection_leech.cc:47: -../../rak/priority_queue.h: At global scope: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In file included from ./../download/available_list.h:45, - from ./../download/download_main.h:48: -./../net/address_list.h: At global scope: -./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_connection_metadata.lo peer_connection_metadata.cc -In file included from ./../download/download_main.h:52: -./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': -./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here - 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) - | ^~~~~~~ -./../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer_connection_metadata.cc -fPIC -DPIC -o .libs/peer_connection_metadata.o -In file included from request_list.h:42, - from peer_connection_base.h:50, - from peer_connection_leech.h:40, - from peer_connection_leech.cc:58: -./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': -./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' -./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In file included from ./../download/chunk_selector.h:41, - from peer_connection_metadata.cc:43: -../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': -../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] - 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:64, - from /usr/include/c++/12/string:50, - from /usr/include/c++/12/bits/locale_classes.h:40, - from /usr/include/c++/12/bits/ios_base.h:41, - from /usr/include/c++/12/ios:42, - from /usr/include/c++/12/istream:38, - from /usr/include/c++/12/sstream:38, - from peer_connection_metadata.cc:40: -/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here - 185 | struct pair - | ^~~~ -In member function 'torrent::Chunk::data_type torrent::ChunkIterator::data()', - inlined from 'bool torrent::PeerConnectionBase::down_chunk()' at peer_connection_base.cc:554:20: -./../data/chunk_iterator.h:80:45: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 - 80 | Chunk::data_type data = m_chunk->at_memory(m_first, m_iterator); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from ./../torrent/utils/ranges.h:44, from ./../torrent/data/download_data.h:45, from ./../download/chunk_selector.h:44: @@ -7156,6 +7090,20 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from ./../download/download_main.h:52: +./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': +./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here + 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) + | ^~~~~~~ +./../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from ./../download/download_main.h:43, @@ -7167,16 +7115,49 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -In member function 'torrent::Chunk::data_type torrent::ChunkIterator::data()', - inlined from 'bool torrent::PeerConnectionBase::up_chunk()' at peer_connection_base.cc:794:22: -./../data/chunk_iterator.h:80:45: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 - 80 | Chunk::data_type data = m_chunk->at_memory(m_first, m_iterator); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ./../torrent/data/block.h:42, + from peer_connection_base.cc:54: +./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': +./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' +./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +In file included from peer_chunks.h:41, + from peer_connection_base.h:48, + from peer_connection_leech.h:40, + from peer_factory.cc:40: +../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': +../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] + 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:64, + from /usr/include/c++/12/string:50, + from ./../torrent/exceptions.h:47, + from ./../net/socket_stream.h:43, + from peer_connection_base.h:41: +/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here + 185 | struct pair + | ^~~~ +In file included from ./../download/chunk_selector.h:41, + from peer_connection_leech.cc:45: +../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': +../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] + 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:64, + from /usr/include/c++/12/string:50: +/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here + 185 | struct pair + | ^~~~ In file included from ./../download/available_list.h:45, from ./../download/download_main.h:48: ./../net/address_list.h: At global scope: @@ -7186,6 +7167,49 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +In file included from request_list.h:42, + from peer_connection_base.h:50: +./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': +./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' +./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from ./../download/download_main.h:43, + from peer_connection_leech.cc:47: +../../rak/priority_queue.h: At global scope: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from ./../globals.h:41, + from request_list.h:46: +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./../download/download_main.h:52: ./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -7201,6 +7225,15 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from ./../download/available_list.h:45, + from ./../download/download_main.h:48: +./../net/address_list.h: At global scope: +./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ In file included from request_list.h:42, from peer_connection_base.h:50, from peer_connection_metadata.h:40, @@ -7214,6 +7247,21 @@ 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +In file included from ./../download/download_main.h:52: +./../torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': +./../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1401:5: note: declared here + 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) + | ^~~~~~~ +./../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -7222,10 +7270,29 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o peer_factory.lo peer_factory.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c peer_factory.cc -fPIC -DPIC -o .libs/peer_factory.o -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o request_list.lo request_list.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o request_list.lo request_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c request_list.cc -fPIC -DPIC -o .libs/request_list.o +In file included from request_list.h:42, + from peer_connection_base.h:50, + from peer_connection_leech.h:40, + from peer_connection_leech.cc:58: +./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': +./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' +./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from request_list.cc:42: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -7301,40 +7368,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from peer_chunks.h:41, - from peer_connection_base.h:48, - from peer_connection_leech.h:40, - from peer_factory.cc:40: -../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': -../../rak/partial_queue.h:140:14: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] - 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:64, - from /usr/include/c++/12/string:50, - from ./../torrent/exceptions.h:47, - from ./../net/socket_stream.h:43, - from peer_connection_base.h:41: -/usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here - 185 | struct pair - | ^~~~ -In file included from request_list.h:42, - from peer_connection_base.h:50: -./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': -./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' -./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' -In file included from ./../globals.h:41, - from request_list.h:46: -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../torrent/data/block.h:42, from request_list.cc:44: ./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': @@ -7358,6 +7391,11 @@ /usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 185 | struct pair | ^~~~ +In member function 'torrent::Chunk::data_type torrent::ChunkIterator::data()', + inlined from 'bool torrent::PeerConnectionBase::down_chunk()' at peer_connection_base.cc:554:20: +./../data/chunk_iterator.h:80:45: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 + 80 | Chunk::data_type data = m_chunk->at_memory(m_first, m_iterator); + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from request_list.h:46, @@ -7388,6 +7426,11 @@ request_list.cc:144:70: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = torrent::BlockTransfer*; _Result = void]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 144 | queue_bucket_for_all_in_queue(m_queues, bucket_queued, std::ptr_fun(&Block::stalled)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ +In member function 'torrent::Chunk::data_type torrent::ChunkIterator::data()', + inlined from 'bool torrent::PeerConnectionBase::up_chunk()' at peer_connection_base.cc:794:22: +./../data/chunk_iterator.h:80:45: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 + 80 | Chunk::data_type data = m_chunk->at_memory(m_first, m_iterator); + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ @@ -7430,16 +7473,16 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_protocol.la extensions.lo handshake.lo handshake_encryption.lo handshake_manager.lo initial_seed.lo peer_connection_base.lo peer_connection_leech.lo peer_connection_metadata.lo peer_factory.lo request_list.lo -lcppunit -lz -lcrypto +/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_protocol.la extensions.lo handshake.lo handshake_encryption.lo handshake_manager.lo initial_seed.lo peer_connection_base.lo peer_connection_leech.lo peer_connection_metadata.lo peer_factory.lo request_list.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_protocol.a .libs/extensions.o .libs/handshake.o .libs/handshake_encryption.o .libs/handshake_manager.o .libs/initial_seed.o .libs/peer_connection_base.o .libs/peer_connection_leech.o .libs/peer_connection_metadata.o .libs/peer_factory.o .libs/request_list.o libtool: link: ranlib .libs/libsub_protocol.a libtool: link: ( cd ".libs" && rm -f "libsub_protocol.la" && ln -s "../libsub_protocol.la" "libsub_protocol.la" ) make[4]: Leaving directory '/build/libtorrent-0.13.8/src/protocol' Making all in tracker make[4]: Entering directory '/build/libtorrent-0.13.8/src/tracker' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_dht.lo tracker_dht.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_http.lo tracker_http.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_udp.lo tracker_udp.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_dht.lo tracker_dht.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_http.lo tracker_http.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker_udp.lo tracker_udp.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c tracker_http.cc -fPIC -DPIC -o .libs/tracker_http.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c tracker_udp.cc -fPIC -DPIC -o .libs/tracker_udp.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c tracker_dht.cc -fPIC -DPIC -o .libs/tracker_dht.o @@ -7603,6 +7646,13 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from tracker_http.cc:46: +./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 62 | struct add_address : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -7612,13 +7662,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from tracker_http.cc:46: -./../net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 62 | struct add_address : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from tracker_http.cc:59: @@ -7643,19 +7686,19 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_tracker.la tracker_dht.lo tracker_http.lo tracker_udp.lo -lcppunit -lz -lcrypto +/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_tracker.la tracker_dht.lo tracker_http.lo tracker_udp.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_tracker.a .libs/tracker_dht.o .libs/tracker_http.o .libs/tracker_udp.o libtool: link: ranlib .libs/libsub_tracker.a libtool: link: ( cd ".libs" && rm -f "libsub_tracker.la" && ln -s "../libsub_tracker.la" "libsub_tracker.la" ) make[4]: Leaving directory '/build/libtorrent-0.13.8/src/tracker' Making all in utils make[4]: Entering directory '/build/libtorrent-0.13.8/src/utils' -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o diffie_hellman.lo diffie_hellman.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o instrumentation.lo instrumentation.cc -/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o sha_fast.lo sha_fast.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o diffie_hellman.lo diffie_hellman.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o instrumentation.lo instrumentation.cc +/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o sha_fast.lo sha_fast.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c diffie_hellman.cc -fPIC -DPIC -o .libs/diffie_hellman.o -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c sha_fast.cc -fPIC -DPIC -o .libs/sha_fast.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c instrumentation.cc -fPIC -DPIC -o .libs/instrumentation.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c sha_fast.cc -fPIC -DPIC -o .libs/sha_fast.o diffie_hellman.cc: In function 'void torrent::dh_free(void*)': diffie_hellman.cc:18:45: warning: 'void DH_free(DH*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 18 | static void dh_free(void* dh) { DH_free(reinterpret_cast(dh)); } @@ -7685,18 +7728,20 @@ /usr/include/openssl/dh.h:256:28: note: declared here 256 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, | ^~~~~~~~~~~ -/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_utils.la diffie_hellman.lo instrumentation.lo sha_fast.lo -lcppunit -lz -lcrypto +/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z,relro -L/usr/lib -L/usr/lib -o libsub_utils.la diffie_hellman.lo instrumentation.lo sha_fast.lo -lcppunit -lz -lcrypto libtool: link: ar cr .libs/libsub_utils.a .libs/diffie_hellman.o .libs/instrumentation.o .libs/sha_fast.o libtool: link: ranlib .libs/libsub_utils.a libtool: link: ( cd ".libs" && rm -f "libsub_utils.la" && ln -s "../libsub_utils.la" "libsub_utils.la" ) make[4]: Leaving directory '/build/libtorrent-0.13.8/src/utils' make[4]: Entering directory '/build/libtorrent-0.13.8/src' -/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o globals.lo globals.cc -/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o manager.lo manager.cc -/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o thread_disk.lo thread_disk.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c thread_disk.cc -fPIC -DPIC -o .libs/thread_disk.o -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c manager.cc -fPIC -DPIC -o .libs/manager.o +/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o globals.lo globals.cc +/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o manager.lo manager.cc +/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o thread_disk.lo thread_disk.cc +/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o thread_main.lo thread_main.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c globals.cc -fPIC -DPIC -o .libs/globals.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c manager.cc -fPIC -DPIC -o .libs/manager.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c thread_disk.cc -fPIC -DPIC -o .libs/thread_disk.o +libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c thread_main.cc -fPIC -DPIC -o .libs/thread_main.o In file included from ../rak/priority_queue_default.h:42, from globals.h:41, from globals.cc:39: @@ -7712,6 +7757,20 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ +In file included from ../rak/priority_queue_default.h:42, + from globals.h:41, + from thread_main.cc:43: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/deque:60, + from data/hash_check_queue.h:40, + from thread_main.h:40, + from thread_main.cc:41: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ ../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); @@ -7727,6 +7786,11 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from download/download_main.h:41, from download/download_wrapper.h:41, from manager.cc:41: @@ -7820,8 +7884,17 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o thread_main.lo thread_main.cc -libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c thread_main.cc -fPIC -DPIC -o .libs/thread_main.o +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/bits/refwrap.h:39, + from /usr/include/c++/12/deque:65: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./download/available_list.h:45, from download/download_main.h:48: ./net/address_list.h: At global scope: @@ -7861,20 +7934,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from ../rak/priority_queue_default.h:42, - from globals.h:41, - from thread_main.cc:43: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/deque:60, - from data/hash_check_queue.h:40, - from thread_main.h:40, - from thread_main.cc:41: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -7883,23 +7942,7 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/bits/refwrap.h:39, - from /usr/include/c++/12/deque:65: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -version-info 21:0:0 -Wl,-z,relro -L/usr/lib -L/usr/lib -o libtorrent.la -rpath /usr/lib/arm-linux-gnueabihf globals.lo manager.lo thread_disk.lo thread_main.lo torrent/libsub_torrent.la torrent/data/libsub_torrentdata.la torrent/download/libsub_torrentdownload.la torrent/net/libsub_torrentnet.la torrent/peer/libsub_torrentpeer.la torrent/utils/libsub_torrentutils.la data/libsub_data.la dht/libsub_dht.la download/libsub_download.la net/libsub_net.la protocol/libsub_protocol.la tracker/libsub_tracker.la utils/libsub_utils.la -lcppunit -lz -lcrypto +/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -version-info 21:0:0 -Wl,-z,relro -L/usr/lib -L/usr/lib -o libtorrent.la -rpath /usr/lib/arm-linux-gnueabihf globals.lo manager.lo thread_disk.lo thread_main.lo torrent/libsub_torrent.la torrent/data/libsub_torrentdata.la torrent/download/libsub_torrentdownload.la torrent/net/libsub_torrentnet.la torrent/peer/libsub_torrentpeer.la torrent/utils/libsub_torrentutils.la data/libsub_data.la dht/libsub_dht.la download/libsub_download.la net/libsub_net.la protocol/libsub_protocol.la tracker/libsub_tracker.la utils/libsub_utils.la -lcppunit -lz -lcrypto libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/arm-linux-gnueabihf/12/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/12/crtbeginS.o .libs/globals.o .libs/manager.o .libs/thread_disk.o .libs/thread_main.o -Wl,--whole-archive torrent/.libs/libsub_torrent.a torrent/data/.libs/libsub_torrentdata.a torrent/download/.libs/libsub_torrentdownload.a torrent/net/.libs/libsub_torrentnet.a torrent/peer/.libs/libsub_torrentpeer.a torrent/utils/.libs/libsub_torrentutils.a data/.libs/libsub_data.a dht/.libs/libsub_dht.a download/.libs/libsub_download.a net/.libs/libsub_net.a protocol/.libs/libsub_protocol.a tracker/.libs/libsub_tracker.a utils/.libs/libsub_utils.a -Wl,--no-whole-archive -L/usr/lib -lcppunit -lz -lcrypto -L/usr/lib/gcc/arm-linux-gnueabihf/12 -L/usr/lib/gcc/arm-linux-gnueabihf/12/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/12/../../.. -L/lib/arm-linux-gnueabihf -L/usr/lib/arm-linux-gnueabihf -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/arm-linux-gnueabihf/12/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/12/../../../arm-linux-gnueabihf/crtn.o -g -O2 -fstack-protector-strong -g -Wl,-z -Wl,relro -Wl,-soname -Wl,libtorrent.so.21 -o .libs/libtorrent.so.21.0.0 libtool: link: (cd ".libs" && rm -f "libtorrent.so.21" && ln -s "libtorrent.so.21.0.0" "libtorrent.so.21") libtool: link: (cd ".libs" && rm -f "libtorrent.so" && ln -s "libtorrent.so.21.0.0" "libtorrent.so") @@ -7915,7 +7958,7 @@ make[2]: Leaving directory '/build/libtorrent-0.13.8' make[1]: Leaving directory '/build/libtorrent-0.13.8' dh_auto_test - make -j3 check "TESTSUITEFLAGS=-j3 --verbose" VERBOSE=1 + make -j4 check "TESTSUITEFLAGS=-j4 --verbose" VERBOSE=1 make[1]: Entering directory '/build/libtorrent-0.13.8' Making check in src make[2]: Entering directory '/build/libtorrent-0.13.8/src' @@ -7986,6 +8029,7 @@ g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o rak/LibTorrentTest-allocators_test.o `test -f 'rak/allocators_test.cc' || echo './'`rak/allocators_test.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o rak/LibTorrentTest-ranges_test.o `test -f 'rak/ranges_test.cc' || echo './'`rak/ranges_test.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o data/LibTorrentTest-chunk_list_test.o `test -f 'data/chunk_list_test.cc' || echo './'`data/chunk_list_test.cc +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o data/LibTorrentTest-hash_check_queue_test.o `test -f 'data/hash_check_queue_test.cc' || echo './'`data/hash_check_queue_test.cc In file included from ../src/torrent/utils/ranges.h:44, from rak/ranges_test.h:5, from rak/ranges_test.cc:5: @@ -8068,7 +8112,7 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o data/LibTorrentTest-hash_check_queue_test.o `test -f 'data/hash_check_queue_test.cc' || echo './'`data/hash_check_queue_test.cc +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o data/LibTorrentTest-hash_queue_test.o `test -f 'data/hash_queue_test.cc' || echo './'`data/hash_queue_test.cc In file included from ../src/data/chunk_list.h:44, from data/chunk_list_test.h:3, from data/chunk_list_test.cc:3: @@ -8093,8 +8137,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o data/LibTorrentTest-hash_queue_test.o `test -f 'data/hash_queue_test.cc' || echo './'`data/hash_queue_test.cc -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o protocol/LibTorrentTest-test_request_list.o `test -f 'protocol/test_request_list.cc' || echo './'`protocol/test_request_list.cc In file included from ../src/globals.h:41, from data/hash_queue_test.cc:12: ../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': @@ -8102,6 +8144,8 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o protocol/LibTorrentTest-test_request_list.o `test -f 'protocol/test_request_list.cc' || echo './'`protocol/test_request_list.cc +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/net/LibTorrentTest-test_socket_address_key.o `test -f 'torrent/net/test_socket_address_key.cc' || echo './'`torrent/net/test_socket_address_key.cc In file included from ../src/protocol/request_list.h:42, from protocol/test_request_list.h:3, from protocol/test_request_list.cc:3: @@ -8136,6 +8180,7 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-log_test.o `test -f 'torrent/utils/log_test.cc' || echo './'`torrent/utils/log_test.cc In file included from ../src/protocol/peer_chunks.h:41, from protocol/test_request_list.cc:8: ../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': @@ -8146,7 +8191,6 @@ /usr/include/c++/12/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 185 | struct pair | ^~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/net/LibTorrentTest-test_socket_address_key.o `test -f 'torrent/net/test_socket_address_key.cc' || echo './'`torrent/net/test_socket_address_key.cc ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -8208,8 +8252,8 @@ torrent/net/test_socket_address_key.cc:20:20: note: 'addr_info' was declared here 20 | struct addrinfo* addr_info; | ^~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-log_test.o `test -f 'torrent/utils/log_test.cc' || echo './'`torrent/utils/log_test.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-log_buffer_test.o `test -f 'torrent/utils/log_buffer_test.cc' || echo './'`torrent/utils/log_buffer_test.cc +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-net_test.o `test -f 'torrent/utils/net_test.cc' || echo './'`torrent/utils/net_test.cc In file included from ../rak/priority_queue_default.h:42, from ../src/globals.h:41, from torrent/utils/log_buffer_test.cc:5: @@ -8237,7 +8281,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-net_test.o `test -f 'torrent/utils/net_test.cc' || echo './'`torrent/utils/net_test.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-option_strings_test.o `test -f 'torrent/utils/option_strings_test.cc' || echo './'`torrent/utils/option_strings_test.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-test_extents.o `test -f 'torrent/utils/test_extents.cc' || echo './'`torrent/utils/test_extents.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-test_queue_buckets.o `test -f 'torrent/utils/test_queue_buckets.cc' || echo './'`torrent/utils/test_queue_buckets.cc @@ -8276,6 +8319,7 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-signal_bitfield_test.o `test -f 'torrent/utils/signal_bitfield_test.cc' || echo './'`torrent/utils/signal_bitfield_test.cc ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -8287,9 +8331,10 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-signal_bitfield_test.o `test -f 'torrent/utils/signal_bitfield_test.cc' || echo './'`torrent/utils/signal_bitfield_test.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/utils/LibTorrentTest-thread_base_test.o `test -f 'torrent/utils/thread_base_test.cc' || echo './'`torrent/utils/thread_base_test.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-http_test.o `test -f 'torrent/http_test.cc' || echo './'`torrent/http_test.cc +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-object_test.o `test -f 'torrent/object_test.cc' || echo './'`torrent/object_test.cc +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-object_test_utils.o `test -f 'torrent/object_test_utils.cc' || echo './'`torrent/object_test_utils.cc In destructor 'virtual StringStream::~StringStream()', inlined from 'virtual StringStream::~StringStream()' at torrent/http_test.cc:27:42, inlined from 'void HttpTest::test_basic()' at torrent/http_test.cc:93:10: @@ -8300,9 +8345,8 @@ torrent/http_test.cc:79:45: note: object of size 208 allocated by 'operator new' 79 | std::stringstream* http_stream = new std::stringstream; | ^~~~~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-object_test.o `test -f 'torrent/object_test.cc' || echo './'`torrent/object_test.cc -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-object_test_utils.o `test -f 'torrent/object_test_utils.cc' || echo './'`torrent/object_test_utils.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-object_static_map_test.o `test -f 'torrent/object_static_map_test.cc' || echo './'`torrent/object_static_map_test.cc +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-object_stream_test.o `test -f 'torrent/object_stream_test.cc' || echo './'`torrent/object_stream_test.cc In file included from ../src/protocol/extensions.h:48, from torrent/object_static_map_test.cc:6: ../src/net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] @@ -8314,21 +8358,8 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-object_stream_test.o `test -f 'torrent/object_stream_test.cc' || echo './'`torrent/object_stream_test.cc -In file included from /usr/include/c++/12/vector:70, - from ../src/torrent/object.h:42: -/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]': -/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 - 439 | vector<_Tp, _Alloc>:: - | ^~~~~~~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-tracker_controller_test.o `test -f 'torrent/tracker_controller_test.cc' || echo './'`torrent/tracker_controller_test.cc -In file included from /usr/include/c++/12/vector:70, - from ../src/torrent/object.h:42, - from torrent/object_stream_test.cc:8: -/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]': -/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 - 439 | vector<_Tp, _Alloc>:: - | ^~~~~~~~~~~~~~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-tracker_controller_features.o `test -f 'torrent/tracker_controller_features.cc' || echo './'`torrent/tracker_controller_features.cc In file included from ../rak/priority_queue_default.h:42, from torrent/tracker_controller_test.cc:6: ../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] @@ -8349,43 +8380,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', - inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, - inlined from 'void ObjectStaticMapTest::test_write_single()' at torrent/object_static_map_test.cc:363:46: -/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 - 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -torrent/tracker_controller_test.cc: In member function 'void tracker_controller_test::test_timeout_lacking_usable()': -torrent/tracker_controller_test.cc:495:71: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 495 | std::for_each(tracker_list.begin(), tracker_list.end(), std::mem_fun(&torrent::Tracker::disable)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: -/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here - 1371 | mem_fun(_Ret (_Tp::*__f)()) - | ^~~~~~~ -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', - inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, - inlined from 'void ObjectStreamTest::test_write()' at torrent/object_stream_test.cc:190:40: -/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 - 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', - inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, - inlined from 'void ObjectStreamTest::test_write()' at torrent/object_stream_test.cc:193:40: -/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 - 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-tracker_controller_features.o `test -f 'torrent/tracker_controller_features.cc' || echo './'`torrent/tracker_controller_features.cc -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-tracker_controller_requesting.o `test -f 'torrent/tracker_controller_requesting.cc' || echo './'`torrent/tracker_controller_requesting.cc In file included from ../rak/priority_queue_default.h:42, from torrent/tracker_controller_features.cc:6: ../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] @@ -8406,6 +8400,29 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from /usr/include/c++/12/vector:70, + from ../src/torrent/object.h:42: +/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]': +/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 + 439 | vector<_Tp, _Alloc>:: + | ^~~~~~~~~~~~~~~~~~~ +torrent/tracker_controller_test.cc: In member function 'void tracker_controller_test::test_timeout_lacking_usable()': +torrent/tracker_controller_test.cc:495:71: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 495 | std::for_each(tracker_list.begin(), tracker_list.end(), std::mem_fun(&torrent::Tracker::disable)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48: +/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here + 1371 | mem_fun(_Ret (_Tp::*__f)()) + | ^~~~~~~ +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -8416,6 +8433,33 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from /usr/include/c++/12/vector:70, + from ../src/torrent/object.h:42, + from torrent/object_stream_test.cc:8: +/usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]': +/usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 + 439 | vector<_Tp, _Alloc>:: + | ^~~~~~~~~~~~~~~~~~~ +In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', + inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, + inlined from 'void ObjectStreamTest::test_write()' at torrent/object_stream_test.cc:190:40: +/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 + 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', + inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, + inlined from 'void ObjectStreamTest::test_write()' at torrent/object_stream_test.cc:193:40: +/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 + 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {torrent::Object}; _Tp = torrent::Object; _Alloc = std::allocator]', + inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, + inlined from 'void ObjectStaticMapTest::test_write_single()' at torrent/object_static_map_test.cc:363:46: +/usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 + 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-tracker_controller_requesting.o `test -f 'torrent/tracker_controller_requesting.cc' || echo './'`torrent/tracker_controller_requesting.cc +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-tracker_list_test.o `test -f 'torrent/tracker_list_test.cc' || echo './'`torrent/tracker_list_test.cc In file included from ../rak/priority_queue_default.h:42, from torrent/tracker_controller_requesting.cc:6: ../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] @@ -8436,17 +8480,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/string:48: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-tracker_list_test.o `test -f 'torrent/tracker_list_test.cc' || echo './'`torrent/tracker_list_test.cc In file included from torrent/tracker_list_test.cc:4: ../src/net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function { @@ -8472,7 +8505,16 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-tracker_list_features_test.o `test -f 'torrent/tracker_list_features_test.cc' || echo './'`torrent/tracker_list_features_test.cc +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/string:48: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -8482,6 +8524,7 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o torrent/LibTorrentTest-tracker_list_features_test.o `test -f 'torrent/tracker_list_features_test.cc' || echo './'`torrent/tracker_list_features_test.cc In file included from torrent/tracker_list_features_test.cc:6: ../src/net/address_list.h:62:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function { @@ -8551,7 +8594,7 @@ 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -c -o tracker/LibTorrentTest-tracker_http_test.o `test -f 'tracker/tracker_http_test.cc' || echo './'`tracker/tracker_http_test.cc -/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -lcppunit -ldl -Wl,-z,relro -L/usr/lib -L/usr/lib -o LibTorrentTest ../src/LibTorrentTest-thread_disk.o rak/LibTorrentTest-allocators_test.o rak/LibTorrentTest-ranges_test.o data/LibTorrentTest-chunk_list_test.o data/LibTorrentTest-hash_check_queue_test.o data/LibTorrentTest-hash_queue_test.o protocol/LibTorrentTest-test_request_list.o torrent/net/LibTorrentTest-test_socket_address_key.o torrent/utils/LibTorrentTest-log_test.o torrent/utils/LibTorrentTest-log_buffer_test.o torrent/utils/LibTorrentTest-net_test.o torrent/utils/LibTorrentTest-option_strings_test.o torrent/utils/LibTorrentTest-test_extents.o torrent/utils/LibTorrentTest-test_queue_buckets.o torrent/utils/LibTorrentTest-test_uri_parser.o torrent/utils/LibTorrentTest-signal_bitfield_test.o torrent/utils/LibTorrentTest-thread_base_test.o torrent/LibTorrentTest-http_test.o torrent/LibTorrentTest-object_test.o torrent/LibTorrentTest-object_test_utils.o torrent/LibTorrentTest-object_static_map_test.o torrent/LibTorrentTest-object_stream_test.o torrent/LibTorrentTest-tracker_controller_test.o torrent/LibTorrentTest-tracker_controller_features.o torrent/LibTorrentTest-tracker_controller_requesting.o torrent/LibTorrentTest-tracker_list_test.o torrent/LibTorrentTest-tracker_list_features_test.o torrent/LibTorrentTest-tracker_timeout_test.o tracker/LibTorrentTest-tracker_http_test.o LibTorrentTest-main.o ../src/libtorrent.la ../src/torrent/libsub_torrent.la ../src/torrent/data/libsub_torrentdata.la ../src/torrent/download/libsub_torrentdownload.la ../src/torrent/peer/libsub_torrentpeer.la ../src/data/libsub_data.la ../src/dht/libsub_dht.la ../src/net/libsub_net.la ../src/protocol/libsub_protocol.la ../src/download/libsub_download.la ../src/tracker/libsub_tracker.la ../src/utils/libsub_utils.la ../src/torrent/utils/libsub_torrentutils.la -lcppunit -lz -lcrypto +/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -lcppunit -ldl -Wl,-z,relro -L/usr/lib -L/usr/lib -o LibTorrentTest ../src/LibTorrentTest-thread_disk.o rak/LibTorrentTest-allocators_test.o rak/LibTorrentTest-ranges_test.o data/LibTorrentTest-chunk_list_test.o data/LibTorrentTest-hash_check_queue_test.o data/LibTorrentTest-hash_queue_test.o protocol/LibTorrentTest-test_request_list.o torrent/net/LibTorrentTest-test_socket_address_key.o torrent/utils/LibTorrentTest-log_test.o torrent/utils/LibTorrentTest-log_buffer_test.o torrent/utils/LibTorrentTest-net_test.o torrent/utils/LibTorrentTest-option_strings_test.o torrent/utils/LibTorrentTest-test_extents.o torrent/utils/LibTorrentTest-test_queue_buckets.o torrent/utils/LibTorrentTest-test_uri_parser.o torrent/utils/LibTorrentTest-signal_bitfield_test.o torrent/utils/LibTorrentTest-thread_base_test.o torrent/LibTorrentTest-http_test.o torrent/LibTorrentTest-object_test.o torrent/LibTorrentTest-object_test_utils.o torrent/LibTorrentTest-object_static_map_test.o torrent/LibTorrentTest-object_stream_test.o torrent/LibTorrentTest-tracker_controller_test.o torrent/LibTorrentTest-tracker_controller_features.o torrent/LibTorrentTest-tracker_controller_requesting.o torrent/LibTorrentTest-tracker_list_test.o torrent/LibTorrentTest-tracker_list_features_test.o torrent/LibTorrentTest-tracker_timeout_test.o tracker/LibTorrentTest-tracker_http_test.o LibTorrentTest-main.o ../src/libtorrent.la ../src/torrent/libsub_torrent.la ../src/torrent/data/libsub_torrentdata.la ../src/torrent/download/libsub_torrentdownload.la ../src/torrent/peer/libsub_torrentpeer.la ../src/data/libsub_data.la ../src/dht/libsub_dht.la ../src/net/libsub_net.la ../src/protocol/libsub_protocol.la ../src/download/libsub_download.la ../src/tracker/libsub_tracker.la ../src/utils/libsub_utils.la ../src/torrent/utils/libsub_torrentutils.la -lcppunit -lz -lcrypto libtool: link: g++ -g -O2 -ffile-prefix-map=/build/libtorrent-0.13.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -fvisibility=hidden -Wl,-z -Wl,relro -o .libs/LibTorrentTest ../src/LibTorrentTest-thread_disk.o rak/LibTorrentTest-allocators_test.o rak/LibTorrentTest-ranges_test.o data/LibTorrentTest-chunk_list_test.o data/LibTorrentTest-hash_check_queue_test.o data/LibTorrentTest-hash_queue_test.o protocol/LibTorrentTest-test_request_list.o torrent/net/LibTorrentTest-test_socket_address_key.o torrent/utils/LibTorrentTest-log_test.o torrent/utils/LibTorrentTest-log_buffer_test.o torrent/utils/LibTorrentTest-net_test.o torrent/utils/LibTorrentTest-option_strings_test.o torrent/utils/LibTorrentTest-test_extents.o torrent/utils/LibTorrentTest-test_queue_buckets.o torrent/utils/LibTorrentTest-test_uri_parser.o torrent/utils/LibTorrentTest-signal_bitfield_test.o torrent/utils/LibTorrentTest-thread_base_test.o torrent/LibTorrentTest-http_test.o torrent/LibTorrentTest-object_test.o torrent/LibTorrentTest-object_test_utils.o torrent/LibTorrentTest-object_static_map_test.o torrent/LibTorrentTest-object_stream_test.o torrent/LibTorrentTest-tracker_controller_test.o torrent/LibTorrentTest-tracker_controller_features.o torrent/LibTorrentTest-tracker_controller_requesting.o torrent/LibTorrentTest-tracker_list_test.o torrent/LibTorrentTest-tracker_list_features_test.o torrent/LibTorrentTest-tracker_timeout_test.o tracker/LibTorrentTest-tracker_http_test.o LibTorrentTest-main.o -ldl -L/usr/lib ../src/.libs/libtorrent.so ../src/torrent/.libs/libsub_torrent.a ../src/torrent/data/.libs/libsub_torrentdata.a ../src/torrent/download/.libs/libsub_torrentdownload.a ../src/torrent/peer/.libs/libsub_torrentpeer.a ../src/data/.libs/libsub_data.a ../src/dht/.libs/libsub_dht.a ../src/net/.libs/libsub_net.a ../src/protocol/.libs/libsub_protocol.a ../src/download/.libs/libsub_download.a ../src/tracker/.libs/libsub_tracker.a ../src/utils/.libs/libsub_utils.a ../src/torrent/utils/.libs/libsub_torrentutils.a -lcppunit -lz -lcrypto /usr/bin/ld: torrent/utils/LibTorrentTest-log_test.o: in function `utils_log_test::test_file_output()': ./test/torrent/utils/log_test.cc:140: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' @@ -8590,7 +8633,7 @@ make[4]: Entering directory '/build/libtorrent-0.13.8/src/torrent/data' make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/data' make[5]: Nothing to be done for 'install-exec-am'. - /bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/data' + /usr/bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/data' /usr/bin/install -c -m 644 block.h block_list.h block_transfer.h chunk_utils.h download_data.h file.h file_list.h file_list_iterator.h file_manager.h file_utils.h piece.h transfer_list.h '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/data' make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/data' make[4]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/data' @@ -8598,7 +8641,7 @@ make[4]: Entering directory '/build/libtorrent-0.13.8/src/torrent/download' make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/download' make[5]: Nothing to be done for 'install-exec-am'. - /bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/download' + /usr/bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/download' /usr/bin/install -c -m 644 choke_group.h choke_queue.h download_manager.h group_entry.h resource_manager.h '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/download' make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/download' make[4]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/download' @@ -8606,7 +8649,7 @@ make[4]: Entering directory '/build/libtorrent-0.13.8/src/torrent/net' make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/net' make[5]: Nothing to be done for 'install-exec-am'. - /bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/net' + /usr/bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/net' /usr/bin/install -c -m 644 socket_address_key.h '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/net' make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/net' make[4]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/net' @@ -8614,7 +8657,7 @@ make[4]: Entering directory '/build/libtorrent-0.13.8/src/torrent/peer' make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/peer' make[5]: Nothing to be done for 'install-exec-am'. - /bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/peer' + /usr/bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/peer' /usr/bin/install -c -m 644 choke_status.h client_info.h client_list.h connection_list.h peer.h peer_info.h peer_list.h '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/peer' make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/peer' make[4]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/peer' @@ -8622,14 +8665,14 @@ make[4]: Entering directory '/build/libtorrent-0.13.8/src/torrent/utils' make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent/utils' make[5]: Nothing to be done for 'install-exec-am'. - /bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/utils' + /usr/bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/utils' /usr/bin/install -c -m 644 directory_events.h extents.h log.h log_buffer.h net.h option_strings.h ranges.h resume.h signal_bitfield.h thread_base.h thread_interrupt.h uri_parser.h '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent/utils' make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/utils' make[4]: Leaving directory '/build/libtorrent-0.13.8/src/torrent/utils' make[4]: Entering directory '/build/libtorrent-0.13.8/src/torrent' make[5]: Entering directory '/build/libtorrent-0.13.8/src/torrent' make[5]: Nothing to be done for 'install-exec-am'. - /bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent' + /usr/bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent' /usr/bin/install -c -m 644 bitfield.h chunk_manager.h common.h connection_manager.h dht_manager.h download.h download_info.h error.h exceptions.h event.h hash_string.h http.h object.h object_raw_bencode.h object_static_map.h object_stream.h path.h poll.h poll_epoll.h poll_kqueue.h poll_select.h rate.h throttle.h torrent.h tracker.h tracker_controller.h tracker_list.h '/build/libtorrent-0.13.8/debian/tmp/usr/include/torrent' make[5]: Leaving directory '/build/libtorrent-0.13.8/src/torrent' make[4]: Leaving directory '/build/libtorrent-0.13.8/src/torrent' @@ -8685,8 +8728,8 @@ make[3]: Leaving directory '/build/libtorrent-0.13.8/src/utils' make[3]: Entering directory '/build/libtorrent-0.13.8/src' make[4]: Entering directory '/build/libtorrent-0.13.8/src' - /bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf' - /bin/bash ../libtool --mode=install /usr/bin/install -c libtorrent.la '/build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf' + /usr/bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf' + /bin/sh ../libtool --mode=install /usr/bin/install -c libtorrent.la '/build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf' libtool: install: /usr/bin/install -c .libs/libtorrent.so.21.0.0 /build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf/libtorrent.so.21.0.0 libtool: install: (cd /build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf && { ln -s -f libtorrent.so.21.0.0 libtorrent.so.21 || { rm -f libtorrent.so.21 && ln -s libtorrent.so.21.0.0 libtorrent.so.21; }; }) libtool: install: (cd /build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf && { ln -s -f libtorrent.so.21.0.0 libtorrent.so || { rm -f libtorrent.so && ln -s libtorrent.so.21.0.0 libtorrent.so; }; }) @@ -8706,7 +8749,7 @@ make[2]: Entering directory '/build/libtorrent-0.13.8' make[3]: Entering directory '/build/libtorrent-0.13.8' make[3]: Nothing to be done for 'install-exec-am'. - /bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf/pkgconfig' + /usr/bin/mkdir -p '/build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf/pkgconfig' /usr/bin/install -c -m 644 libtorrent.pc '/build/libtorrent-0.13.8/debian/tmp/usr/lib/arm-linux-gnueabihf/pkgconfig' make[3]: Leaving directory '/build/libtorrent-0.13.8' make[2]: Leaving directory '/build/libtorrent-0.13.8' @@ -8741,12 +8784,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/6611/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/6611/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/12336 and its subdirectories -I: Current time: Wed May 17 12:39:32 -12 2023 -I: pbuilder-time-stamp: 1684370372 +I: removing directory /srv/workspace/pbuilder/6611 and its subdirectories +I: Current time: Thu May 18 14:47:13 +14 2023 +I: pbuilder-time-stamp: 1684370833