INFO: not using any hashes in /data/userland-archives/hashes for libtorrent-0.13.8.tar.gz (overridden with --hash) Source /data/userland-archives/libtorrent-0.13.8.tar.gz... not found, skipping file copy Source http://rtorrent.net/downloads/libtorrent-0.13.8.tar.gz... downloading... failed Source https://dlc.openindiana.org/oi-userland/source-archives/libtorrent-0.13.8.tar.gz... downloading... ok validating signature... checking local signature... not found signature validation failed validating hash... ok patching file src/net/socket_fd.cc Hunk #1 succeeded at 182 (offset 55 lines). patching file src/torrent/net/socket_address_key.h patching file rak/string_manip.h Hunk #1 succeeded at 194 (offset 4 lines). Hunk #2 succeeded at 216 (offset 4 lines). patching file test/Makefile.am Hunk #1 succeeded at 83 (offset 7 lines). patching file test/data/hash_check_queue_test.cc patching file test/data/hash_queue_test.cc aclocal... autoheader... -n libtoolize... using libtoolize automake... configure.ac:3: installing './compile' configure.ac:20: installing './missing' src/Makefile.am: installing './depcomp' autoconf... configure.ac:33: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:33: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/rak_compiler.m4:27: RAK_ENABLE_DEBUG is expanded from... configure.ac:33: the top level configure.ac:34: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:34: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/rak_compiler.m4:55: RAK_ENABLE_EXTRA_DEBUG is expanded from... configure.ac:34: the top level configure.ac:35: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:35: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/rak_compiler.m4:42: RAK_ENABLE_WERROR is expanded from... configure.ac:35: the top level configure.ac:37: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:37: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/rak_cxx.m4:1: RAK_CHECK_CXX11 is expanded from... configure.ac:37: the top level configure.ac:37: warning: The macro 'AC_LANG_CPLUSPLUS' is obsolete. configure.ac:37: You should run autoupdate. ./lib/autoconf/c.m4:270: AC_LANG_CPLUSPLUS is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... scripts/ax_cxx_compile_stdcxx_0x.m4:26: AX_CXX_COMPILE_STDCXX_0X is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... scripts/rak_cxx.m4:1: RAK_CHECK_CXX11 is expanded from... configure.ac:37: the top level configure.ac:37: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.ac:37: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... scripts/ax_cxx_compile_stdcxx_0x.m4:26: AX_CXX_COMPILE_STDCXX_0X is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... scripts/rak_cxx.m4:1: RAK_CHECK_CXX11 is expanded from... configure.ac:37: the top level configure.ac:42: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:42: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/common.m4:190: TORRENT_ENABLE_ALIGNED is expanded from... configure.ac:42: the top level configure.ac:43: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:43: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/common.m4:222: TORRENT_ENABLE_INTERRUPT_SOCKET is expanded from... configure.ac:43: the top level configure.ac:45: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:45: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/common.m4:23: TORRENT_ENABLE_ARCH is expanded from... configure.ac:45: the top level configure.ac:46: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:46: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/common.m4:1: TORRENT_WITH_SYSROOT is expanded from... configure.ac:46: the top level configure.ac:49: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:49: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/checks.m4:146: TORRENT_WITHOUT_KQUEUE is expanded from... configure.ac:49: the top level configure.ac:50: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:50: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/checks.m4:64: TORRENT_WITHOUT_EPOLL is expanded from... configure.ac:50: the top level configure.ac:51: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:51: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... scripts/checks.m4:174: TORRENT_CHECK_FALLOCATE is expanded from... configure.ac:51: the top level configure.ac:52: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:52: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/checks.m4:205: TORRENT_WITH_POSIX_FALLOCATE is expanded from... configure.ac:52: the top level configure.ac:52: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:52: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... scripts/checks.m4:190: TORRENT_CHECK_POSIX_FALLOCATE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from... scripts/checks.m4:205: TORRENT_WITH_POSIX_FALLOCATE is expanded from... configure.ac:52: the top level configure.ac:53: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:53: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/checks.m4:336: TORRENT_WITH_ADDRESS_SPACE is expanded from... configure.ac:53: the top level configure.ac:55: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:55: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/checks.m4:299: TORRENT_WITHOUT_STATVFS is expanded from... configure.ac:55: the top level configure.ac:55: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:55: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... scripts/checks.m4:215: TORRENT_CHECK_STATVFS is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from... scripts/checks.m4:299: TORRENT_WITHOUT_STATVFS is expanded from... configure.ac:55: the top level configure.ac:55: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:55: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... scripts/checks.m4:215: TORRENT_CHECK_STATVFS is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from... scripts/checks.m4:299: TORRENT_WITHOUT_STATVFS is expanded from... configure.ac:55: the top level configure.ac:56: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:56: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/checks.m4:314: TORRENT_WITHOUT_STATFS is expanded from... configure.ac:56: the top level configure.ac:56: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:56: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... scripts/checks.m4:252: TORRENT_CHECK_STATFS is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from... scripts/checks.m4:314: TORRENT_WITHOUT_STATFS is expanded from... configure.ac:56: the top level configure.ac:56: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:56: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... scripts/checks.m4:252: TORRENT_CHECK_STATFS is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from... scripts/checks.m4:314: TORRENT_WITHOUT_STATFS is expanded from... configure.ac:56: the top level configure.ac:62: warning: The macro 'AC_LANG_C' is obsolete. configure.ac:62: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... scripts/ax_check_zlib.m4:68: AX_CHECK_ZLIB is expanded from... configure.ac:62: the top level configure.ac:112: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:112: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... scripts/checks.m4:466: TORRENT_CHECK_PTHREAD_SETNAME_NP is expanded from... configure.ac:112: the top level configure.ac:112: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:112: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... scripts/checks.m4:466: TORRENT_CHECK_PTHREAD_SETNAME_NP is expanded from... configure.ac:112: the top level configure.ac:113: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:113: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/common.m4:83: TORRENT_MINCORE is expanded from... configure.ac:113: the top level configure.ac:115: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:115: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... scripts/common.m4:203: TORRENT_DISABLE_INSTRUMENTATION is expanded from... configure.ac:115: the top level configure.ac:130: warning: AC_OUTPUT should be used without arguments. configure.ac:130: You should run autoupdate. ready to configure symlink cloning /jenkins/jobs/oi-userland/workspace/components/library/libtorrent/libtorrent-0.13.8 to /jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64 checking build system type... x86_64-pc-solaris2.11 checking host system type... x86_64-pc-solaris2.11 checking how to print strings... print -r checking for gcc... /usr/gcc/13/bin/g++ checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether /usr/gcc/13/bin/g++ accepts -g... yes checking for /usr/gcc/13/bin/g++ option to enable C11 features... unsupported checking for /usr/gcc/13/bin/g++ option to enable C99 features... unsupported checking for /usr/gcc/13/bin/g++ option to enable C89 features... none needed checking whether /usr/gcc/13/bin/g++ understands -c and -o together... yes checking for a sed that does not truncate output... /usr/bin/gsed checking for grep that handles long lines and -e... /usr/bin/ggrep checking for egrep... /usr/bin/ggrep -E checking for fgrep... /usr/bin/ggrep -F checking for ld used by /usr/gcc/13/bin/g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/amd64/nm -p checking the name lister (/usr/bin/amd64/nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 786240 checking how to convert x86_64-pc-solaris2.11 file names to x86_64-pc-solaris2.11 format... func_convert_file_noop checking how to convert x86_64-pc-solaris2.11 file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... print -r -- checking for ar... ar checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/amd64/nm -p output from /usr/gcc/13/bin/g++ object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if /usr/gcc/13/bin/g++ supports -fno-rtti -fno-exceptions... yes checking for /usr/gcc/13/bin/g++ option to produce PIC... -fPIC -DPIC checking if /usr/gcc/13/bin/g++ PIC flag -fPIC -DPIC works... yes checking if /usr/gcc/13/bin/g++ static flag -static works... no checking if /usr/gcc/13/bin/g++ supports -c -o file.o... yes checking if /usr/gcc/13/bin/g++ supports -c -o file.o... (cached) yes checking whether the /usr/gcc/13/bin/g++ linker (/usr/bin/ld -64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... solaris2.11 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/gmkdir -p checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of /usr/gcc/13/bin/g++... gcc3 checking whether the compiler supports GNU C++... yes checking whether /usr/gcc/13/bin/g++ accepts -g... yes checking for /usr/gcc/13/bin/g++ option to enable C++11 features... none needed checking how to run the C++ preprocessor... /usr/gcc/13/bin/g++ -E checking for ld used by /usr/gcc/13/bin/g++... /usr/bin/ld -64 checking if the linker (/usr/bin/ld -64) is GNU ld... no checking whether the /usr/gcc/13/bin/g++ linker (/usr/bin/ld -64) supports shared libraries... yes checking for /usr/gcc/13/bin/g++ option to produce PIC... -fPIC -DPIC checking if /usr/gcc/13/bin/g++ PIC flag -fPIC -DPIC works... yes checking if /usr/gcc/13/bin/g++ static flag -static works... no checking if /usr/gcc/13/bin/g++ supports -c -o file.o... yes checking if /usr/gcc/13/bin/g++ supports -c -o file.o... (cached) yes checking whether the /usr/gcc/13/bin/g++ linker (/usr/bin/ld -64) supports shared libraries... yes checking dynamic linker characteristics... solaris2.11 ld.so checking how to hardcode library paths into programs... immediate checking dependency style of /usr/gcc/13/bin/g++... gcc3 checking whether byte ordering is bigendian... no checking for user-defined CFLAGS... user-defined "-m64 -O3 " checking for user-defined CXXFLAGS... user-defined "-m64 -O3 -std=c++11 -O3" checking whether /usr/gcc/13/bin/g++ supports C++11 features by default... yes checking should use TR1 headers... no checking for /usr/gcc/13/bin/g++ option to enable large file support... none needed checking the byte alignment... none needed checking for sysroot... no checking for kqueue support... no checking whether kqueue supports pipes and ptys... no checking for epoll support... yes checking for fallocate... no checking size of long... 8 checking for sys/vfs.h... yes checking for sys/statvfs.h... yes checking for sys/statfs.h... yes checking for statvfs... ok checking for sys/inotify.h... no checking for mcheck.h... no checking whether sys/inotify.h actually works... failed checking if compiler supports __attribute__((visibility("default")))... yes checking whether pthreads work with -pthreads... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... -D_REENTRANT checking for PTHREAD_PRIO_INHERIT... yes checking if zlib is wanted... yes checking for inflateEnd in -lz... yes checking for zlib.h... yes checking for pkg-config... /usr/bin/amd64/pkg-config checking pkg-config is at least version 0.9.0... yes checking for cppunit... yes checking for libcrypto... yes checking for DH_set0_pqg in -lcrypto... yes checking for posix_memalign... yes checking for madvise... yes checking for cacheline... using default 128 bytes checking for __builtin_popcount... yes checking for execinfo.h... no checking for pthread.h... yes checking for pthread_setname_np type... generic checking signedness of mincore parameter... signed checking if instrumentation should be included... yes checking if compiler supports __attribute__((unused))... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating libtorrent.pc config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/torrent/Makefile config.status: creating src/torrent/data/Makefile config.status: creating src/torrent/download/Makefile config.status: creating src/torrent/net/Makefile config.status: creating src/torrent/peer/Makefile config.status: creating src/torrent/utils/Makefile config.status: creating src/data/Makefile config.status: creating src/dht/Makefile config.status: creating src/download/Makefile config.status: creating src/net/Makefile config.status: creating src/protocol/Makefile config.status: creating src/tracker/Makefile config.status: creating src/utils/Makefile config.status: creating test/Makefile config.status: creating config.h config.status: executing libtool commands config.status: executing depfiles commands /usr/gnu/bin/make all-recursive make[1]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64' Making all in src make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' Making all in torrent make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' Making all in data make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/data' /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c -o block.lo block.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT block_list.lo -MD -MP -MF .deps/block_list.Tpo -c -o block_list.lo block_list.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_utils.lo -MD -MP -MF .deps/chunk_utils.Tpo -c -o chunk_utils.lo chunk_utils.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_data.lo -MD -MP -MF .deps/download_data.Tpo -c -o download_data.lo download_data.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file.lo -MD -MP -MF .deps/file.Tpo -c -o file.lo file.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file_list.lo -MD -MP -MF .deps/file_list.Tpo -c -o file_list.lo file_list.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file_list_iterator.lo -MD -MP -MF .deps/file_list_iterator.Tpo -c -o file_list_iterator.lo file_list_iterator.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file_manager.lo -MD -MP -MF .deps/file_manager.Tpo -c -o file_manager.lo file_manager.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c block.cc -fPIC -DPIC -o .libs/block.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_data.lo -MD -MP -MF .deps/download_data.Tpo -c download_data.cc -fPIC -DPIC -o .libs/download_data.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.cc -fPIC -DPIC -o .libs/file.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file_list_iterator.lo -MD -MP -MF .deps/file_list_iterator.Tpo -c file_list_iterator.cc -fPIC -DPIC -o .libs/file_list_iterator.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_utils.lo -MD -MP -MF .deps/chunk_utils.Tpo -c chunk_utils.cc -fPIC -DPIC -o .libs/chunk_utils.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file_manager.lo -MD -MP -MF .deps/file_manager.Tpo -c file_manager.cc -fPIC -DPIC -o .libs/file_manager.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file_list.lo -MD -MP -MF .deps/file_list.Tpo -c file_list.cc -fPIC -DPIC -o .libs/file_list.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT block_list.lo -MD -MP -MF .deps/block_list.Tpo -c block_list.cc -fPIC -DPIC -o .libs/block_list.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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from block.cc:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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_list_iterator.h:42, from file_list_iterator.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/gcc/13/include/c++/13.2.0/string:49, from ./../../torrent/exceptions.h:47, from file_list_iterator.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' ../../../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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/string:49, from ./../../torrent/exceptions.h:47, from download_data.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ block_list.cc: In member function 'void torrent::BlockList::do_all_failed()': block_list.cc:87:49: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 87 | std::for_each(begin(), end(), std::mem_fun_ref(&Block::failed_leader)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from block_list.cc:40: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ block_list.cc:88:49: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 88 | std::for_each(begin(), end(), std::mem_fun_ref(&Block::retry_transfer)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ In file included from ./../../manager.h:42, from file_manager.cc: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 ./../../manager.h:42, from chunk_utils.cc:43: ../../../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 ./../../globals.h:41, from file.cc:48: ../../../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 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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from file_list.cc:43: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ file_manager.cc: In destructor 'torrent::FileManager::~FileManager()': file_manager.cc:58:5: warning: 'throw' will always call 'terminate' [-Wterminate] 58 | throw internal_error("FileManager::~FileManager() called but empty() != true."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file_manager.cc:58:5: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/download_main.h:41, from ./../../download/download_wrapper.h:41, from chunk_utils.cc:46: ../../../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/gcc/13/include/c++/13.2.0/bits/refwrap.h:39, from /usr/gcc/13/include/c++/13.2.0/vector:68, from chunk_utils.h:40, from chunk_utils.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../../../rak/priority_queue_default.h:42: ../../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from ./../../data/socket_file.h:40, from file_manager.cc:41: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ 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' 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] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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: ../../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from ../../../rak/file_stat.h:40, from file.cc:40: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/block_list.Tpo .deps/block_list.Plo mv -f .deps/file_list_iterator.Tpo .deps/file_list_iterator.Plo /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file_utils.lo -MD -MP -MF .deps/file_utils.Tpo -c -o file_utils.lo file_utils.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT transfer_list.lo -MD -MP -MF .deps/transfer_list.Tpo -c -o transfer_list.lo transfer_list.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] 62 | struct add_address : public std::unary_function { | ^~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ 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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = 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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../../manager.h:42, from file_list.cc:63: ../../../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 block.cc:44: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/algorithm:60, from block.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ file_list.cc: In member function 'torrent::FileList::iterator_range torrent::FileList::split(std::vector::iterator, split_type*, split_type*)': file_list.cc:240:30: warning: 'new' of type 'torrent::File' with extended alignment 128 [-Waligned-new=] 240 | File* newFile = new File(); | ^ file_list.cc:240:30: note: uses 'void* operator new(size_t)', which does not have an alignment parameter file_list.cc:240:30: note: use '-faligned-new' to enable C++17 over-aligned new support file_list.cc: In member function 'std::vector::iterator torrent::FileList::merge(std::vector::iterator, std::vector::iterator, const torrent::Path&)': file_list.cc:263:23: warning: 'new' of type 'torrent::File' with extended alignment 128 [-Waligned-new=] 263 | File* newFile = new File; | ^~~~ file_list.cc:263:23: note: uses 'void* operator new(size_t)', which does not have an alignment parameter file_list.cc:263:23: note: use '-faligned-new' to enable C++17 over-aligned new support file_list.cc: In member function 'void torrent::FileList::initialize(uint64_t, uint32_t)': file_list.cc:386:28: warning: 'new' of type 'torrent::File' with extended alignment 128 [-Waligned-new=] 386 | File* newFile = new File(); | ^ file_list.cc:386:28: note: uses 'void* operator new(size_t)', which does not have an alignment parameter file_list.cc:386:28: note: use '-faligned-new' to enable C++17 over-aligned new support 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' 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); | ^~~~~~~~ mv -f .deps/download_data.Tpo .deps/download_data.Plo In file included from /usr/gcc/13/include/c++/13.2.0/memory:78, from file_list.cc:45: /usr/gcc/13/include/c++/13.2.0/bits/unique_ptr.h:65:28: note: declared here 65 | template class auto_ptr; | ^~~~~~~~ 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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ file_list.cc:607:34: warning: 'new' of type 'torrent::Chunk' with extended alignment 128 [-Waligned-new=] 607 | std::auto_ptr chunk(new Chunk); | ^~~~~ file_list.cc:607:34: note: uses 'void* operator new(size_t)', which does not have an alignment parameter file_list.cc:607:34: note: use '-faligned-new' to enable C++17 over-aligned new support ./../../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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ file_list.cc:609:77: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 609 | for (iterator itr = std::find_if(begin(), end(), std::bind2nd(std::mem_fun(&File::is_valid_position), offset)); length != 0; ++itr) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ file_list.cc:609:64: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 609 | for (iterator itr = std::find_if(begin(), end(), std::bind2nd(std::mem_fun(&File::is_valid_position), offset)); length != 0; ++itr) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ file_list.cc: In member function 'std::vector::iterator torrent::FileList::inc_completed(std::vector::iterator, uint32_t)': file_list.cc:679:81: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::File]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 679 | firstItr = std::find_if(firstItr, end(), rak::less(index, std::mem_fun(&File::range_second))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ file_list.cc:680:85: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::File]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 680 | iterator lastItr = std::find_if(firstItr, end(), rak::less(index + 1, std::mem_fun(&File::range_second))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ file_list.cc:688:29: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::File]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 688 | std::mem_fun(&File::inc_completed_protected)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ mv -f .deps/file.Tpo .deps/file.Plo In file included from ../../../rak/priority_queue_default.h:42: ../../../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/gcc/13/include/c++/13.2.0/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' mv -f .deps/file_manager.Tpo .deps/file_manager.Plo 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] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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: ../../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT transfer_list.lo -MD -MP -MF .deps/transfer_list.Tpo -c transfer_list.cc -fPIC -DPIC -o .libs/transfer_list.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT file_utils.lo -MD -MP -MF .deps/file_utils.Tpo -c file_utils.cc -fPIC -DPIC -o .libs/file_utils.o mv -f .deps/chunk_utils.Tpo .deps/chunk_utils.Plo 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/gcc/13/include/c++/13.2.0/functional:49, from transfer_list.cc:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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: ../../../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/gcc/13/include/c++/13.2.0/string:49, from ./../exceptions.h:47, from file_utils.cc:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from transfer_list.cc:48: block_failed.h: In destructor 'torrent::BlockFailed::~BlockFailed()': block_failed.h:96:45: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = pair; _Result = void]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 96 | std::for_each(begin(), end(), std::ptr_fun(&BlockFailed::delete_entry)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ block_failed.h: In member function 'std::vector >::iterator torrent::BlockFailed::max_element()': block_failed.h:101:55: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = pair; _Arg2 = pair; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 101 | return std::max_element(begin(), end(), std::ptr_fun(&BlockFailed::compare_entries)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ block_failed.h: In member function 'std::vector >::reverse_iterator torrent::BlockFailed::reverse_max_element()': block_failed.h:106:57: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = pair; _Arg2 = pair; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 106 | return std::max_element(rbegin(), rend(), std::ptr_fun(&BlockFailed::compare_entries)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ In file included from transfer_list.cc:49: block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' transfer_list.cc: In destructor 'torrent::TransferList::~TransferList()': transfer_list.cc:66:5: warning: 'throw' will always call 'terminate' [-Wterminate] 66 | throw internal_error("TransferList::~TransferList() called on an non-empty object"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ transfer_list.cc:66:5: note: in C++11 destructors default to 'noexcept' transfer_list.cc: In member function 'std::vector::iterator torrent::TransferList::find(uint32_t)': transfer_list.cc:71:69: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::BlockList]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 71 | return std::find_if(begin(), end(), rak::equal(index, std::mem_fun(&BlockList::index))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ transfer_list.cc: In member function 'std::vector::const_iterator torrent::TransferList::find(uint32_t) const': transfer_list.cc:76:69: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::BlockList]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 76 | return std::find_if(begin(), end(), rak::equal(index, std::mem_fun(&BlockList::index))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ transfer_list.cc: In member function 'void torrent::TransferList::hash_succeeded(uint32_t, torrent::Chunk*)': transfer_list.cc:128:55: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 128 | std::mem_fun_ref(&Block::is_finished)) != (*blockListItr)->size()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ transfer_list.cc: In member function 'void torrent::TransferList::hash_failed(uint32_t, torrent::Chunk*)': transfer_list.cc:177:105: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 177 | if ((Block::size_type)std::count_if((*blockListItr)->begin(), (*blockListItr)->end(), std::mem_fun_ref(&Block::is_finished)) != (*blockListItr)->size()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ mv -f .deps/file_utils.Tpo .deps/file_utils.Plo mv -f .deps/block.Tpo .deps/block.Plo mv -f .deps/file_list.Tpo .deps/file_list.Plo mv -f .deps/transfer_list.Tpo .deps/transfer_list.Plo /bin/bash ../../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -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 -L/usr/openssl/3.1/lib/amd64 -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[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/data' Making all in download make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/download' /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT choke_group.lo -MD -MP -MF .deps/choke_group.Tpo -c -o choke_group.lo choke_group.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT choke_queue.lo -MD -MP -MF .deps/choke_queue.Tpo -c -o choke_queue.lo choke_queue.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_manager.lo -MD -MP -MF .deps/download_manager.Tpo -c -o download_manager.lo download_manager.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT resource_manager.lo -MD -MP -MF .deps/resource_manager.Tpo -c -o resource_manager.lo resource_manager.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT choke_group.lo -MD -MP -MF .deps/choke_group.Tpo -c choke_group.cc -fPIC -DPIC -o .libs/choke_group.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_manager.lo -MD -MP -MF .deps/download_manager.Tpo -c download_manager.cc -fPIC -DPIC -o .libs/download_manager.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT resource_manager.lo -MD -MP -MF .deps/resource_manager.Tpo -c resource_manager.cc -fPIC -DPIC -o .libs/resource_manager.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT choke_queue.lo -MD -MP -MF .deps/choke_queue.Tpo -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] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../../rak/functional.h:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/functional:49, from resource_manager.cc:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from choke_queue.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/gcc/13/include/c++/13.2.0/functional:49, from choke_queue.cc:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from ./../../download/download_main.h:43, from ./../../download/download_wrapper.h:41, from download_manager.cc:43: ../../../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 choke_group.cc:49: ../../../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/gcc/13/include/c++/13.2.0/functional:49, from choke_group.cc:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from ./../../download/download_main.h:43, from resource_manager.cc:49: ../../../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 ./../../globals.h:41, from ./../../download/download_main.h:43: ../../../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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadManager::iterator torrent::DownloadManager::find(const std::string&)': download_manager.cc:78:70: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 78 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc:78:108: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::HashString&; _Tp = torrent::DownloadInfo]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 78 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadManager::iterator torrent::DownloadManager::find(const torrent::HashString&)': download_manager.cc:83:76: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 83 | return std::find_if(begin(), end(), rak::equal(hash, rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc:83:114: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::HashString&; _Tp = torrent::DownloadInfo]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 83 | return std::find_if(begin(), end(), rak::equal(hash, rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadManager::iterator torrent::DownloadManager::find(torrent::DownloadInfo*)': download_manager.cc:88:68: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 88 | return std::find_if(begin(), end(), rak::equal(info, std::mem_fun(&DownloadWrapper::info))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ 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))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadMain* torrent::DownloadManager::find_main(const char*)': download_manager.cc:99:78: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 99 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc:99:116: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::HashString&; _Tp = torrent::DownloadInfo]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 99 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadMain* torrent::DownloadManager::find_main_obfuscated(const char*)': download_manager.cc:110:78: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 110 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash_obfuscated)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc:110:116: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::HashString&; _Tp = torrent::DownloadInfo]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 110 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash_obfuscated)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ 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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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: ../../../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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/algorithm:60, from resource_manager.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ 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* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/algorithm:60, from choke_queue.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | 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 ./../../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 ../../../rak/priority_queue_default.h:42: ../../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ 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' resource_manager.cc: In destructor 'torrent::ResourceManager::~ResourceManager()': resource_manager.cc:70:5: warning: 'throw' will always call 'terminate' [-Wterminate] 70 | throw internal_error("ResourceManager::~ResourceManager() called but m_currentlyUploadUnchoked != 0."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resource_manager.cc:70:5: note: in C++11 destructors default to 'noexcept' resource_manager.cc:73:5: warning: 'throw' will always call 'terminate' [-Wterminate] 73 | throw internal_error("ResourceManager::~ResourceManager() called but m_currentlyDownloadUnchoked != 0."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resource_manager.cc:73:5: note: in C++11 destructors default to 'noexcept' 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 ../../../rak/priority_queue_default.h:42: ../../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/choke_group.Tpo .deps/choke_group.Plo mv -f .deps/download_manager.Tpo .deps/download_manager.Plo mv -f .deps/resource_manager.Tpo .deps/resource_manager.Plo mv -f .deps/choke_queue.Tpo .deps/choke_queue.Plo /bin/bash ../../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -L/usr/lib -L/usr/lib -o libsub_torrentdownload.la choke_group.lo choke_queue.lo download_manager.lo resource_manager.lo -lcppunit -lz -L/usr/openssl/3.1/lib/amd64 -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[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/download' Making all in net make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/net' /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_address_key.lo -MD -MP -MF .deps/socket_address_key.Tpo -c -o socket_address_key.lo socket_address_key.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_address_key.lo -MD -MP -MF .deps/socket_address_key.Tpo -c socket_address_key.cc -fPIC -DPIC -o .libs/socket_address_key.o mv -f .deps/socket_address_key.Tpo .deps/socket_address_key.Plo /bin/bash ../../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -L/usr/lib -L/usr/lib -o libsub_torrentnet.la socket_address_key.lo -lcppunit -lz -L/usr/openssl/3.1/lib/amd64 -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[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/net' Making all in peer make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/peer' /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT client_info.lo -MD -MP -MF .deps/client_info.Tpo -c -o client_info.lo client_info.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT client_list.lo -MD -MP -MF .deps/client_list.Tpo -c -o client_list.lo client_list.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT connection_list.lo -MD -MP -MF .deps/connection_list.Tpo -c -o connection_list.lo connection_list.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer.lo -MD -MP -MF .deps/peer.Tpo -c -o peer.lo peer.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_info.lo -MD -MP -MF .deps/peer_info.Tpo -c -o peer_info.lo peer_info.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_list.lo -MD -MP -MF .deps/peer_list.Tpo -c -o peer_list.lo peer_list.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer.lo -MD -MP -MF .deps/peer.Tpo -c peer.cc -fPIC -DPIC -o .libs/peer.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT client_list.lo -MD -MP -MF .deps/client_list.Tpo -c client_list.cc -fPIC -DPIC -o .libs/client_list.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT client_info.lo -MD -MP -MF .deps/client_info.Tpo -c client_info.cc -fPIC -DPIC -o .libs/client_info.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_info.lo -MD -MP -MF .deps/peer_info.Tpo -c peer_info.cc -fPIC -DPIC -o .libs/peer_info.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT connection_list.lo -MD -MP -MF .deps/connection_list.Tpo -c connection_list.cc -fPIC -DPIC -o .libs/connection_list.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_list.lo -MD -MP -MF .deps/peer_list.Tpo -c peer_list.cc -fPIC -DPIC -o .libs/peer_list.o mv -f .deps/client_info.Tpo .deps/client_info.Plo In file included from peer_list.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/gcc/13/include/c++/13.2.0/functional:49, from peer_list.cc:42: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../../rak/functional.h:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../data/block.h:42, from peer.cc:39: ./../../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:41, from peer.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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/bits/refwrap.h:39, from /usr/gcc/13/include/c++/13.2.0/vector:68, from ./../data/block.h:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from ./../../download/download_main.h:43: ../../../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 ./../../globals.h:41, from ./../../download/download_main.h:43, from connection_list.cc:43: ../../../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 peer_list.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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/string:49, from ../../../rak/socket_address.h:51, from peer_info.cc:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from peer_list.cc:52: ../../../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 peer_info.cc:43: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/string:51: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ peer_list.cc: At global scope: peer_list.cc:90:43: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 90 | struct peer_list_equal_port : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ peer_list.cc: In member function 'uint32_t torrent::PeerList::insert_available(const void*)': peer_list.cc:202:75: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const rak::socket_address&; _Arg2 = const rak::socket_address&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 202 | availItr = std::find_if(availItr, availLast, rak::bind2nd(std::ptr_fun(&socket_address_less_rak), *itr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ 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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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: ../../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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 peer.cc:42: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/vector:62: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | 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()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/algorithm:60, from connection_list.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ 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 ./../../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 ../../../rak/priority_queue_default.h:42: ../../../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/gcc/13/include/c++/13.2.0/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: ../../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ client_list.cc: In member function 'std::vector::iterator torrent::ClientList::insert(torrent::ClientInfo::id_type, const char*, const char*, const char*)': client_list.cc:134:17: warning: 'char* std::strncpy(char*, const char*, size_t)' specified bound 2 equals destination size [-Wstringop-truncation] 134 | std::strncpy(clientInfo.mutable_key(), key, ClientInfo::max_key_size); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/client_list.Tpo .deps/client_list.Plo mv -f .deps/peer_info.Tpo .deps/peer_info.Plo mv -f .deps/peer.Tpo .deps/peer.Plo mv -f .deps/peer_list.Tpo .deps/peer_list.Plo mv -f .deps/connection_list.Tpo .deps/connection_list.Plo /bin/bash ../../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -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 -L/usr/openssl/3.1/lib/amd64 -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[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/peer' Making all in utils make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/utils' /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT directory_events.lo -MD -MP -MF .deps/directory_events.Tpo -c -o directory_events.lo directory_events.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT log.lo -MD -MP -MF .deps/log.Tpo -c -o log.lo log.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT log_buffer.lo -MD -MP -MF .deps/log_buffer.Tpo -c -o log_buffer.lo log_buffer.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT net.lo -MD -MP -MF .deps/net.Tpo -c -o net.lo net.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT option_strings.lo -MD -MP -MF .deps/option_strings.Tpo -c -o option_strings.lo option_strings.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT resume.lo -MD -MP -MF .deps/resume.Tpo -c -o resume.lo resume.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT signal_bitfield.lo -MD -MP -MF .deps/signal_bitfield.Tpo -c -o signal_bitfield.lo signal_bitfield.cc /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT thread_base.lo -MD -MP -MF .deps/thread_base.Tpo -c -o thread_base.lo thread_base.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT option_strings.lo -MD -MP -MF .deps/option_strings.Tpo -c option_strings.cc -fPIC -DPIC -o .libs/option_strings.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT directory_events.lo -MD -MP -MF .deps/directory_events.Tpo -c directory_events.cc -fPIC -DPIC -o .libs/directory_events.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT resume.lo -MD -MP -MF .deps/resume.Tpo -c resume.cc -fPIC -DPIC -o .libs/resume.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT log_buffer.lo -MD -MP -MF .deps/log_buffer.Tpo -c log_buffer.cc -fPIC -DPIC -o .libs/log_buffer.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT net.lo -MD -MP -MF .deps/net.Tpo -c net.cc -fPIC -DPIC -o .libs/net.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT signal_bitfield.lo -MD -MP -MF .deps/signal_bitfield.Tpo -c signal_bitfield.cc -fPIC -DPIC -o .libs/signal_bitfield.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT log.lo -MD -MP -MF .deps/log.Tpo -c log.cc -fPIC -DPIC -o .libs/log.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT thread_base.lo -MD -MP -MF .deps/thread_base.Tpo -c thread_base.cc -fPIC -DPIC -o .libs/thread_base.o In file included from ./../../manager.h:42, from directory_events.cc:53: ../../../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 ./../../globals.h:41, from log_buffer.cc:44: ../../../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' mv -f .deps/net.Tpo .deps/net.Plo In file included from ./../../globals.h:41, from log.cc:44: ../../../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/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT thread_interrupt.lo -MD -MP -MF .deps/thread_interrupt.Tpo -c -o thread_interrupt.lo thread_interrupt.cc In file included from ./../../torrent/utils/ranges.h:44, from ./../../torrent/data/download_data.h:45, from ./../data/file_list.h:46, from resume.cc:49: ../../../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/gcc/13/include/c++/13.2.0/string:49, from ../../../rak/file_stat.h:40, from resume.cc:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../../../rak/priority_queue_default.h:42: ../../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from directory_events.h:40, from directory_events.cc:39: /usr/gcc/13/include/c++/13.2.0/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: ../../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from log_buffer.h:40, from log_buffer.cc:39: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ ./../data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t; _Tp = 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/signal_bitfield.Tpo .deps/signal_bitfield.Plo /bin/bash ../../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT uri_parser.lo -MD -MP -MF .deps/uri_parser.Tpo -c -o uri_parser.lo uri_parser.cc In file included from resume.cc:51: ./../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ log.cc: In function 'void torrent::log_update_child_cache(int)': log.cc:107:30: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = greater_equal >; _Tp = pair]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 107 | std::bind2nd(std::greater_equal >(), std::make_pair(index, 0))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/bitset:52, from log.h:40, from log.cc:41: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ log.cc: In function 'void torrent::log_rebuild_cache()': log.cc:131:71: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::log_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 131 | std::for_each(log_groups.begin(), log_groups.end(), std::mem_fun_ref(&log_group::clear_cached_outputs)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ log.cc:137:69: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::log_cache_entry]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 137 | std::for_each(log_cache.begin(), log_cache.end(), std::mem_fun_ref(&log_cache_entry::clear)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ In file included from ./../../globals.h:41, from resume.cc:61: ../../../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' log.cc: In function 'void torrent::log_cleanup()': log.cc:271:69: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::log_cache_entry]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 271 | std::for_each(log_cache.begin(), log_cache.end(), std::mem_fun_ref(&log_cache_entry::clear)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ mv -f .deps/directory_events.Tpo .deps/directory_events.Plo mv -f .deps/thread_base.Tpo .deps/thread_base.Plo In file included from ../../../rak/priority_queue_default.h:42: ../../../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/gcc/13/include/c++/13.2.0/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: ../../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT thread_interrupt.lo -MD -MP -MF .deps/thread_interrupt.Tpo -c thread_interrupt.cc -fPIC -DPIC -o .libs/thread_interrupt.o mv -f .deps/log_buffer.Tpo .deps/log_buffer.Plo libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT uri_parser.lo -MD -MP -MF .deps/uri_parser.Tpo -c uri_parser.cc -fPIC -DPIC -o .libs/uri_parser.o thread_interrupt.cc: In static member function 'static torrent::thread_interrupt::pair_type torrent::thread_interrupt::create_pair()': thread_interrupt.cc:87:50: warning: 'new' of type 'torrent::thread_interrupt' with extended alignment 128 [-Waligned-new=] 87 | thread_interrupt* t1 = new thread_interrupt(fd1); | ^ thread_interrupt.cc:87:50: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter thread_interrupt.cc:87:50: note: use '-faligned-new' to enable C++17 over-aligned new support thread_interrupt.cc:88:50: warning: 'new' of type 'torrent::thread_interrupt' with extended alignment 128 [-Waligned-new=] 88 | thread_interrupt* t2 = new thread_interrupt(fd2); | ^ thread_interrupt.cc:88:50: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter thread_interrupt.cc:88:50: note: use '-faligned-new' to enable C++17 over-aligned new support uri_parser.cc: In function 'void torrent::utils::uri_parse_str(std::string, uri_state&)': uri_parser.cc:123:72: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = char; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 123 | first = uri_string_copy_until(first, last, state.scheme, std::ptr_fun(&is_not_unreserved_uri_char)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/string:49, from ./../../torrent/utils/uri_parser.h:40, from uri_parser.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ uri_parser.cc:132:74: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = char; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 132 | first = uri_string_copy_until(first, last, state.resource, std::ptr_fun(&is_not_unreserved_uri_char)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ uri_parser.cc:141:71: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = char; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 141 | first = uri_string_copy_until(first, last, state.query, std::ptr_fun(&is_not_valid_uri_query_char)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ uri_parser.cc: In function 'void torrent::utils::uri_parse_query_str(std::string, uri_query_state&)': uri_parser.cc:178:69: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = char; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 178 | first = uri_string_copy_until(first, last, element, std::ptr_fun(&is_not_unreserved_uri_query_char)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ mv -f .deps/thread_interrupt.Tpo .deps/thread_interrupt.Plo mv -f .deps/uri_parser.Tpo .deps/uri_parser.Plo mv -f .deps/option_strings.Tpo .deps/option_strings.Plo mv -f .deps/log.Tpo .deps/log.Plo mv -f .deps/resume.Tpo .deps/resume.Plo /bin/bash ../../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -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 -L/usr/openssl/3.1/lib/amd64 -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[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/utils' make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT bitfield.lo -MD -MP -MF .deps/bitfield.Tpo -c -o bitfield.lo bitfield.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_manager.lo -MD -MP -MF .deps/chunk_manager.Tpo -c -o chunk_manager.lo chunk_manager.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT connection_manager.lo -MD -MP -MF .deps/connection_manager.Tpo -c -o connection_manager.lo connection_manager.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_manager.lo -MD -MP -MF .deps/dht_manager.Tpo -c -o dht_manager.lo dht_manager.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download.lo -MD -MP -MF .deps/download.Tpo -c -o download.lo download.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT error.lo -MD -MP -MF .deps/error.Tpo -c -o error.lo error.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT exceptions.lo -MD -MP -MF .deps/exceptions.Tpo -c -o exceptions.lo exceptions.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_string.lo -MD -MP -MF .deps/hash_string.Tpo -c -o hash_string.lo hash_string.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_string.lo -MD -MP -MF .deps/hash_string.Tpo -c hash_string.cc -fPIC -DPIC -o .libs/hash_string.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT connection_manager.lo -MD -MP -MF .deps/connection_manager.Tpo -c connection_manager.cc -fPIC -DPIC -o .libs/connection_manager.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT exceptions.lo -MD -MP -MF .deps/exceptions.Tpo -c exceptions.cc -fPIC -DPIC -o .libs/exceptions.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT bitfield.lo -MD -MP -MF .deps/bitfield.Tpo -c bitfield.cc -fPIC -DPIC -o .libs/bitfield.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download.lo -MD -MP -MF .deps/download.Tpo -c download.cc -fPIC -DPIC -o .libs/download.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_manager.lo -MD -MP -MF .deps/chunk_manager.Tpo -c chunk_manager.cc -fPIC -DPIC -o .libs/chunk_manager.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_manager.lo -MD -MP -MF .deps/dht_manager.Tpo -c dht_manager.cc -fPIC -DPIC -o .libs/dht_manager.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.cc -fPIC -DPIC -o .libs/error.o mv -f .deps/error.Tpo .deps/error.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT http.lo -MD -MP -MF .deps/http.Tpo -c -o http.lo http.cc 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> { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/algorithm.h:41: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../data/chunk_list.h:44, from chunk_manager.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/gcc/13/include/c++/13.2.0/string:49, from ./../data/chunk_list.h:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from data/block.h:42, from download.cc:43: ./../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 ./../manager.h:42, from connection_manager.cc:49: ../../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 ./../data/chunk_list.h:44, from download.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] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/bits/refwrap.h:39, from /usr/gcc/13/include/c++/13.2.0/vector:68, from data/block.h:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../globals.h:41, from chunk_manager.cc:48: ../../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: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT http.lo -MD -MP -MF .deps/http.Tpo -c http.cc -fPIC -DPIC -o .libs/http.o 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."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ chunk_manager.cc:78:5: note: in C++11 destructors default to 'noexcept' In file included from ./../manager.h:42, from dht_manager.cc:43: ../../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: ../../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/gcc/13/include/c++/13.2.0/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: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from ../../rak/socket_address.h:51, from ../../rak/address_info.h:47, from connection_manager.cc:41: /usr/gcc/13/include/c++/13.2.0/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.cc:47: ../../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' mv -f .deps/exceptions.Tpo .deps/exceptions.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT object.lo -MD -MP -MF .deps/object.Tpo -c -o object.lo object.cc mv -f .deps/bitfield.Tpo .deps/bitfield.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT object_static_map.lo -MD -MP -MF .deps/object_static_map.Tpo -c -o object_static_map.lo object_static_map.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/gcc/13/include/c++/13.2.0/string:49, from ./../torrent/exceptions.h:47, from dht_manager.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ 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()': ../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/vector:62: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ ./../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ mv -f .deps/hash_string.Tpo .deps/hash_string.Plo 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT object_stream.lo -MD -MP -MF .deps/object_stream.Tpo -c -o object_stream.lo object_stream.cc In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/chunk_manager.Tpo .deps/chunk_manager.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT path.lo -MD -MP -MF .deps/path.Tpo -c -o path.lo path.cc mv -f .deps/connection_manager.Tpo .deps/connection_manager.Plo 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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/bits/locale_classes.h:40, from /usr/gcc/13/include/c++/13.2.0/bits/ios_base.h:41, from /usr/gcc/13/include/c++/13.2.0/ios:44, from /usr/gcc/13/include/c++/13.2.0/ostream:40, from /usr/gcc/13/include/c++/13.2.0/iostream:41, from http.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT poll_epoll.lo -MD -MP -MF .deps/poll_epoll.Tpo -c -o poll_epoll.lo poll_epoll.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT object.lo -MD -MP -MF .deps/object.Tpo -c object.cc -fPIC -DPIC -o .libs/object.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT object_static_map.lo -MD -MP -MF .deps/object_static_map.Tpo -c object_static_map.cc -fPIC -DPIC -o .libs/object_static_map.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT object_stream.lo -MD -MP -MF .deps/object_stream.Tpo -c object_stream.cc -fPIC -DPIC -o .libs/object_stream.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT path.lo -MD -MP -MF .deps/path.Tpo -c path.cc -fPIC -DPIC -o .libs/path.o mv -f .deps/dht_manager.Tpo .deps/dht_manager.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT poll_kqueue.lo -MD -MP -MF .deps/poll_kqueue.Tpo -c -o poll_kqueue.lo poll_kqueue.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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/functional.h:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ mv -f .deps/http.Tpo .deps/http.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT poll_select.lo -MD -MP -MF .deps/poll_select.Tpo -c -o poll_select.lo poll_select.cc 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> { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/algorithm.h:41: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT poll_epoll.lo -MD -MP -MF .deps/poll_epoll.Tpo -c poll_epoll.cc -fPIC -DPIC -o .libs/poll_epoll.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT poll_kqueue.lo -MD -MP -MF .deps/poll_kqueue.Tpo -c poll_kqueue.cc -fPIC -DPIC -o .libs/poll_kqueue.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT poll_select.lo -MD -MP -MF .deps/poll_select.Tpo -c poll_select.cc -fPIC -DPIC -o .libs/poll_select.o 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> { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/bits/locale_classes.h:40, from /usr/gcc/13/include/c++/13.2.0/bits/ios_base.h:41, from /usr/gcc/13/include/c++/13.2.0/streambuf:43, from /usr/gcc/13/include/c++/13.2.0/bits/streambuf_iterator.h:35, from /usr/gcc/13/include/c++/13.2.0/iterator:66, from object_stream.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ mv -f .deps/object_static_map.Tpo .deps/object_static_map.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT rate.lo -MD -MP -MF .deps/rate.Tpo -c -o rate.lo rate.cc mv -f .deps/path.Tpo .deps/path.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT throttle.lo -MD -MP -MF .deps/throttle.Tpo -c -o throttle.lo throttle.cc 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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/stdexcept:39, from poll_kqueue.cc:43: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ poll_select.cc: In destructor 'virtual torrent::PollSelect::~PollSelect()': poll_select.cc:163:5: warning: 'throw' will always call 'terminate' [-Wterminate] 163 | throw internal_error("PollSelect::~PollSelect() called but the sets are not empty"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ poll_select.cc:163:5: note: in C++11 destructors default to 'noexcept' poll_select.cc: In member function 'unsigned int torrent::PollSelect::perform(fd_set*, fd_set*, fd_set*)': poll_select.cc:211:66: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Event]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 211 | poll_check(this, exceptSet, std::mem_fun(&Event::event_error))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/stdexcept:39, from poll_select.cc:41: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ poll_select.cc:215:64: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Event]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 215 | poll_check(this, readSet, std::mem_fun(&Event::event_read))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ poll_select.cc:219:65: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Event]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 219 | poll_check(this, writeSet, std::mem_fun(&Event::event_write))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ mv -f .deps/download.Tpo .deps/download.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT torrent.lo -MD -MP -MF .deps/torrent.Tpo -c -o torrent.lo torrent.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT rate.lo -MD -MP -MF .deps/rate.Tpo -c rate.cc -fPIC -DPIC -o .libs/rate.o mv -f .deps/poll_epoll.Tpo .deps/poll_epoll.Plo mv -f .deps/poll_kqueue.Tpo .deps/poll_kqueue.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker.lo -MD -MP -MF .deps/tracker.Tpo -c -o tracker.lo tracker.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT throttle.lo -MD -MP -MF .deps/throttle.Tpo -c throttle.cc -fPIC -DPIC -o .libs/throttle.o /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_controller.lo -MD -MP -MF .deps/tracker_controller.Tpo -c -o tracker_controller.lo tracker_controller.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT torrent.lo -MD -MP -MF .deps/torrent.Tpo -c torrent.cc -fPIC -DPIC -o .libs/torrent.o In file included from ./../globals.h:41, from rate.cc:39: ../../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: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker.lo -MD -MP -MF .deps/tracker.Tpo -c tracker.cc -fPIC -DPIC -o .libs/tracker.o In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/priority_queue_default.h:40: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_controller.lo -MD -MP -MF .deps/tracker_controller.Tpo -c tracker_controller.cc -fPIC -DPIC -o .libs/tracker_controller.o In file included from ./../net/throttle_internal.h:41, from throttle.cc:41: ../../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: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/bits/refwrap.h:39, from /usr/gcc/13/include/c++/13.2.0/vector:68, from ./../net/throttle_internal.h:40: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/poll_select.Tpo .deps/poll_select.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_list.lo -MD -MP -MF .deps/tracker_list.Tpo -c -o tracker_list.lo tracker_list.cc mv -f .deps/rate.Tpo .deps/rate.Plo In file included from ./../globals.h:41, from tracker.cc:42: ../../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' mv -f .deps/throttle.Tpo .deps/throttle.Plo In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from exceptions.h:47, from tracker.cc:41: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from tracker_controller.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' libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_list.lo -MD -MP -MF .deps/tracker_list.Tpo -c tracker_list.cc -fPIC -DPIC -o .libs/tracker_list.o In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from exceptions.h:47, from tracker_controller.cc:39: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/tracker.Tpo .deps/tracker.Plo In file included from ./../manager.h:42, from torrent.cc:50: ../../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/gcc/13/include/c++/13.2.0/string:49, from ../../rak/socket_address.h:51, from ../../rak/address_info.h:47, from torrent.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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/gcc/13/include/c++/13.2.0/functional:49, from tracker_list.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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/gcc/13/include/c++/13.2.0/bits/new_allocator.h:187:4, inlined from 'static void std::allocator_traits >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = torrent::Object; _Args = {torrent::Object}; _Tp = torrent::Object]' at /usr/gcc/13/include/c++/13.2.0/bits/alloc_traits.h:537:17, inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/gcc/13/include/c++/13.2.0/bits/vector.tcc:364:30, inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = torrent::Object; _Alloc = std::allocator]' at /usr/gcc/13/include/c++/13.2.0/bits/stl_vector.h:1391:30, inlined from 'torrent::Object torrent::object_create_normal(const raw_list&)' at object.cc:228:62: object.h:350:32: warning: '.torrent::Object::.torrent::Object::::t_pod' may be used uninitialized [-Wmaybe-uninitialized] 350 | case TYPE_VALUE: t_pod = b.t_pod; break; | ~~~~~~^~~~~~~~~ object.cc: In function 'torrent::Object torrent::object_create_normal(const raw_list&)': object.cc:228:94: note: '' declared here 228 | Object::list_iterator new_entry = result.as_list().insert(result.as_list().end(), Object()); | ^ mv -f .deps/object.Tpo .deps/object.Plo torrent.cc: In function 'void torrent::initialize()': torrent.cc:103:17: warning: 'new' of type 'torrent::Manager' with extended alignment 128 [-Waligned-new=] 103 | manager = new Manager; | ^~~~~~~ torrent.cc:103:17: note: uses 'void* operator new(size_t)', which does not have an alignment parameter torrent.cc:103:17: note: use '-faligned-new' to enable C++17 over-aligned new support In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from tracker_list.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 { | ^~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ mv -f .deps/object_stream.Tpo .deps/object_stream.Plo In file included from ./../globals.h:41, from ./../tracker/tracker_udp.h:48, from tracker_list.cc:48: ../../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' mv -f .deps/tracker_controller.Tpo .deps/tracker_controller.Plo 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(); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'bool torrent::TrackerList::has_active_not_scrape() const': tracker_list.cc:75: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] 75 | return std::find_if(begin(), end(), std::mem_fun(&Tracker::is_busy_not_scrape)) != end(); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'bool torrent::TrackerList::has_active_in_group(uint32_t) const': tracker_list.cc:80:73: 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] 80 | return std::find_if(begin_group(group), end_group(group), std::mem_fun(&Tracker::is_busy)) != end_group(group); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'bool torrent::TrackerList::has_active_not_scrape_in_group(uint32_t) const': tracker_list.cc:85:73: 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] 85 | return std::find_if(begin_group(group), end_group(group), std::mem_fun(&Tracker::is_busy_not_scrape)) != end_group(group); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: At global scope: tracker_list.cc:89:39: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 89 | struct tracker_usable_t : public std::unary_function { | ^~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ tracker_list.cc: In member function 'unsigned int torrent::TrackerList::count_active() const': tracker_list.cc:100:52: 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] 100 | return std::count_if(begin(), end(), std::mem_fun(&Tracker::is_busy)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'void torrent::TrackerList::clear_stats()': tracker_list.cc:134:45: 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] 134 | std::for_each(begin(), end(), std::mem_fun(&Tracker::clear_stats)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ tracker_list.cc: In member function 'std::vector::iterator torrent::TrackerList::find_next_to_request(std::vector::iterator)': tracker_list.cc:243:80: 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] 243 | TrackerList::iterator preferred = itr = std::find_if(itr, end(), std::mem_fun(&Tracker::can_request_state)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'std::vector::iterator torrent::TrackerList::begin_group(unsigned int)': tracker_list.cc:269:74: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 269 | return std::find_if(begin(), end(), rak::less_equal(group, std::mem_fun(&Tracker::group))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'std::vector::const_iterator torrent::TrackerList::begin_group(unsigned int) const': tracker_list.cc:274:74: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 274 | return std::find_if(begin(), end(), rak::less_equal(group, std::mem_fun(&Tracker::group))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/torrent.Tpo .deps/torrent.Plo mv -f .deps/tracker_list.Tpo .deps/tracker_list.Plo /bin/bash ../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -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 -L/usr/openssl/3.1/lib/amd64 -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" ) make[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' Making all in data make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/data' /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk.lo -MD -MP -MF .deps/chunk.Tpo -c -o chunk.lo chunk.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_list.lo -MD -MP -MF .deps/chunk_list.Tpo -c -o chunk_list.lo chunk_list.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_part.lo -MD -MP -MF .deps/chunk_part.Tpo -c -o chunk_part.lo chunk_part.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_check_queue.lo -MD -MP -MF .deps/hash_check_queue.Tpo -c -o hash_check_queue.lo hash_check_queue.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_chunk.lo -MD -MP -MF .deps/hash_chunk.Tpo -c -o hash_chunk.lo hash_chunk.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_queue.lo -MD -MP -MF .deps/hash_queue.Tpo -c -o hash_queue.lo hash_queue.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_queue_node.lo -MD -MP -MF .deps/hash_queue_node.Tpo -c -o hash_queue_node.lo hash_queue_node.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_torrent.lo -MD -MP -MF .deps/hash_torrent.Tpo -c -o hash_torrent.lo hash_torrent.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_list.lo -MD -MP -MF .deps/chunk_list.Tpo -c chunk_list.cc -fPIC -DPIC -o .libs/chunk_list.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_check_queue.lo -MD -MP -MF .deps/hash_check_queue.Tpo -c hash_check_queue.cc -fPIC -DPIC -o .libs/hash_check_queue.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_part.lo -MD -MP -MF .deps/chunk_part.Tpo -c chunk_part.cc -fPIC -DPIC -o .libs/chunk_part.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_torrent.lo -MD -MP -MF .deps/hash_torrent.Tpo -c hash_torrent.cc -fPIC -DPIC -o .libs/hash_torrent.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_queue.lo -MD -MP -MF .deps/hash_queue.Tpo -c hash_queue.cc -fPIC -DPIC -o .libs/hash_queue.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk.lo -MD -MP -MF .deps/chunk.Tpo -c chunk.cc -fPIC -DPIC -o .libs/chunk.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_chunk.lo -MD -MP -MF .deps/hash_chunk.Tpo -c hash_chunk.cc -fPIC -DPIC -o .libs/hash_chunk.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT hash_queue_node.lo -MD -MP -MF .deps/hash_queue_node.Tpo -c hash_queue_node.cc -fPIC -DPIC -o .libs/hash_queue_node.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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/functional.h:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from hash_queue.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/gcc/13/include/c++/13.2.0/functional:49, from hash_queue.cc:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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*)': ./../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/gcc/13/include/c++/13.2.0/string:49, from ./../data/chunk_list.h:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ 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] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from chunk.cc:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ chunk.cc: In member function 'bool torrent::Chunk::is_all_valid() const': chunk.cc:63:77: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::ChunkPart]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 63 | return !empty() && std::find_if(begin(), end(), std::not1(std::mem_fun_ref(&ChunkPart::is_valid))) == end(); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk.cc: In member function 'void torrent::Chunk::clear()': chunk.cc:68:49: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::ChunkPart]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 68 | std::for_each(begin(), end(), std::mem_fun_ref(&ChunkPart::clear)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ 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)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ chunk.cc:98:59: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t; _Tp = unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 98 | iterator itr = std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::is_contained), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ 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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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 hash_torrent.cc:43: ../../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 { | ^~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../globals.h:41, from chunk_list.cc:52: ../../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 hash_torrent.h:43, from hash_torrent.cc: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' 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()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk_list.cc:120:52: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = int; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 120 | if (std::find_if(begin(), end(), std::mem_fun_ref(&ChunkListNode::references)) != end()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk_list.cc:123:52: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = int; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 123 | if (std::find_if(begin(), end(), std::mem_fun_ref(&ChunkListNode::writable)) != end()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk_list.cc:126:52: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = int; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 126 | if (std::find_if(begin(), end(), std::mem_fun_ref(&ChunkListNode::blocking)) != end()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk_list.cc: In member function 'uint32_t torrent::ChunkList::sync_chunks(int)': chunk_list.cc:296:97: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = int; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 296 | split = std::stable_partition(m_queue.begin(), m_queue.end(), rak::not_equal(1, std::mem_fun(&ChunkListNode::writable))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ chunk_list.cc:349:122: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 349 | instrumentation_update(INSTRUMENTATION_MINCORE_SYNC_NOT_DEALLOCATED, std::count_if(split, m_queue.end(), std::mem_fun(&ChunkListNode::is_valid))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ chunk_list.cc: In member function 'std::vector::iterator torrent::ChunkList::partition_optimize(std::vector::iterator, std::vector::iterator, int, int, bool)': chunk_list.cc:420:71: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = bool; _Tp = torrent::ChunkList; _Arg = torrent::ChunkListNode*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 420 | bool required = std::find_if(itr, range, std::bind1st(std::mem_fun(&ChunkList::check_node), this)) != range; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ chunk_list.cc:420:58: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = torrent::ChunkList*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 420 | bool required = std::find_if(itr, range, std::bind1st(std::mem_fun(&ChunkList::check_node), this)) != range; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/backward/binders.h:136:5: note: declared here 136 | bind1st(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/chunk_part.Tpo .deps/chunk_part.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT memory_chunk.lo -MD -MP -MF .deps/memory_chunk.Tpo -c -o memory_chunk.lo memory_chunk.cc In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../globals.h:41, from hash_queue.cc:54: ../../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: ../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/hash_queue_node.Tpo .deps/hash_queue_node.Plo hash_queue.cc: In member function 'void torrent::HashQueue::push_back(torrent::ChunkHandle, torrent::HashQueueNode::id_type, slot_done_type)': hash_queue.cc:101:47: warning: 'new' of type 'torrent::HashChunk' with extended alignment 128 [-Waligned-new=] 101 | HashChunk* hash_chunk = new HashChunk(handle); | ^ hash_queue.cc:101:47: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter hash_queue.cc:101:47: note: use '-faligned-new' to enable C++17 over-aligned new support /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_file.lo -MD -MP -MF .deps/socket_file.Tpo -c -o socket_file.lo socket_file.cc mv -f .deps/hash_chunk.Tpo .deps/hash_chunk.Plo libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT memory_chunk.lo -MD -MP -MF .deps/memory_chunk.Tpo -c memory_chunk.cc -fPIC -DPIC -o .libs/memory_chunk.o mv -f .deps/hash_check_queue.Tpo .deps/hash_check_queue.Plo mv -f .deps/chunk.Tpo .deps/chunk.Plo libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_file.lo -MD -MP -MF .deps/socket_file.Tpo -c socket_file.cc -fPIC -DPIC -o .libs/socket_file.o mv -f .deps/hash_torrent.Tpo .deps/hash_torrent.Plo mv -f .deps/memory_chunk.Tpo .deps/memory_chunk.Plo mv -f .deps/chunk_list.Tpo .deps/chunk_list.Plo mv -f .deps/socket_file.Tpo .deps/socket_file.Plo mv -f .deps/hash_queue.Tpo .deps/hash_queue.Plo /bin/bash ../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -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 -L/usr/openssl/3.1/lib/amd64 -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[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/data' Making all in dht make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/dht' /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_bucket.lo -MD -MP -MF .deps/dht_bucket.Tpo -c -o dht_bucket.lo dht_bucket.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_node.lo -MD -MP -MF .deps/dht_node.Tpo -c -o dht_node.lo dht_node.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_router.lo -MD -MP -MF .deps/dht_router.Tpo -c -o dht_router.lo dht_router.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_server.lo -MD -MP -MF .deps/dht_server.Tpo -c -o dht_server.lo dht_server.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_tracker.lo -MD -MP -MF .deps/dht_tracker.Tpo -c -o dht_tracker.lo dht_tracker.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_transaction.lo -MD -MP -MF .deps/dht_transaction.Tpo -c -o dht_transaction.lo dht_transaction.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_bucket.lo -MD -MP -MF .deps/dht_bucket.Tpo -c dht_bucket.cc -fPIC -DPIC -o .libs/dht_bucket.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_router.lo -MD -MP -MF .deps/dht_router.Tpo -c dht_router.cc -fPIC -DPIC -o .libs/dht_router.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_server.lo -MD -MP -MF .deps/dht_server.Tpo -c dht_server.cc -fPIC -DPIC -o .libs/dht_server.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_tracker.lo -MD -MP -MF .deps/dht_tracker.Tpo -c dht_tracker.cc -fPIC -DPIC -o .libs/dht_tracker.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_transaction.lo -MD -MP -MF .deps/dht_transaction.Tpo -c dht_transaction.cc -fPIC -DPIC -o .libs/dht_transaction.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT dht_node.lo -MD -MP -MF .deps/dht_node.Tpo -c dht_node.cc -fPIC -DPIC -o .libs/dht_node.o In file included from ./../globals.h:41, from dht_bucket.h:42, from dht_bucket.cc:41: ../../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 ./../globals.h:41, from dht_node.cc:38: ../../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 ./../globals.h:41, from dht_server.cc:38: ../../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 ./../globals.h:41, from dht_router.cc:38: ../../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: ../../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/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/priority_queue_default.h:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../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 { | ^~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from ./../torrent/exceptions.h:47, from dht_bucket.cc:39: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ ../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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: ../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../globals.h:41, from dht_tracker.h:40, from dht_tracker.cc:41: ../../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_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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/priority_queue_default.h:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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] 62 | struct add_address : public std::unary_function { | ^~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/string:49, from ./../torrent/object.h:40, from dht_tracker.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ 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] 62 | struct add_address : public std::unary_function { | ^~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/string:49, from ./../torrent/exceptions.h:47, from dht_transaction.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ dht_tracker.cc: In member function 'void torrent::DhtTracker::prune(uint32_t)': dht_tracker.cc:111:80: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::DhtTracker::BencodeAddress]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 111 | m_peers.erase(std::remove_if(m_peers.begin(), m_peers.end(), std::mem_fun_ref(&BencodeAddress::empty)), m_peers.end()); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ dht_tracker.cc:112:85: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = less; _Tp = unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 112 | m_lastSeen.erase(std::remove_if(m_lastSeen.begin(), m_lastSeen.end(), std::bind2nd(std::less(), minSeen)), m_lastSeen.end()); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ 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/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/priority_queue_default.h:40: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../globals.h:41, from dht_bucket.h:42, from dht_transaction.cc:43: ../../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: ../../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/gcc/13/include/c++/13.2.0/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: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from dht_transaction.cc:44: dht_transaction.h: At global scope: 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ dht_transaction.cc: In destructor 'virtual torrent::DhtSearch::~DhtSearch()': dht_transaction.cc:67:5: warning: 'throw' will always call 'terminate' [-Wterminate] 67 | throw internal_error("DhtSearch::~DhtSearch called with pending transactions."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dht_transaction.cc:67:5: note: in C++11 destructors default to 'noexcept' dht_transaction.cc:70:5: warning: 'throw' will always call 'terminate' [-Wterminate] 70 | throw internal_error("DhtSearch::~DhtSearch with invalid concurrency limit."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dht_transaction.cc:70:5: note: in C++11 destructors default to 'noexcept' dht_transaction.cc: In destructor 'virtual torrent::DhtAnnounce::~DhtAnnounce()': dht_transaction.cc:212:5: warning: 'throw' will always call 'terminate' [-Wterminate] 212 | throw internal_error("DhtAnnounce::~DhtAnnounce called while announce not complete."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dht_transaction.cc:212:5: note: in C++11 destructors default to 'noexcept' 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] 62 | struct add_address : public std::unary_function { | ^~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from dht_router.h:48, from dht_server.cc:56: 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from dht_server.h:50, from dht_router.h:49: 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/dht_bucket.Tpo .deps/dht_bucket.Plo In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/dht_tracker.Tpo .deps/dht_tracker.Plo mv -f .deps/dht_transaction.Tpo .deps/dht_transaction.Plo mv -f .deps/dht_node.Tpo .deps/dht_node.Plo mv -f .deps/dht_server.Tpo .deps/dht_server.Plo mv -f .deps/dht_router.Tpo .deps/dht_router.Plo /bin/bash ../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -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 -L/usr/openssl/3.1/lib/amd64 -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[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/dht' Making all in download make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/download' /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT available_list.lo -MD -MP -MF .deps/available_list.Tpo -c -o available_list.lo available_list.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_selector.lo -MD -MP -MF .deps/chunk_selector.Tpo -c -o chunk_selector.lo chunk_selector.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_statistics.lo -MD -MP -MF .deps/chunk_statistics.Tpo -c -o chunk_statistics.lo chunk_statistics.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT delegator.lo -MD -MP -MF .deps/delegator.Tpo -c -o delegator.lo delegator.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_constructor.lo -MD -MP -MF .deps/download_constructor.Tpo -c -o download_constructor.lo download_constructor.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_main.lo -MD -MP -MF .deps/download_main.Tpo -c -o download_main.lo download_main.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_wrapper.lo -MD -MP -MF .deps/download_wrapper.Tpo -c -o download_wrapper.lo download_wrapper.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_constructor.lo -MD -MP -MF .deps/download_constructor.Tpo -c download_constructor.cc -fPIC -DPIC -o .libs/download_constructor.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT delegator.lo -MD -MP -MF .deps/delegator.Tpo -c delegator.cc -fPIC -DPIC -o .libs/delegator.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_wrapper.lo -MD -MP -MF .deps/download_wrapper.Tpo -c download_wrapper.cc -fPIC -DPIC -o .libs/download_wrapper.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT available_list.lo -MD -MP -MF .deps/available_list.Tpo -c available_list.cc -fPIC -DPIC -o .libs/available_list.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_statistics.lo -MD -MP -MF .deps/chunk_statistics.Tpo -c chunk_statistics.cc -fPIC -DPIC -o .libs/chunk_statistics.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT chunk_selector.lo -MD -MP -MF .deps/chunk_selector.Tpo -c chunk_selector.cc -fPIC -DPIC -o .libs/chunk_selector.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT download_main.lo -MD -MP -MF .deps/download_main.Tpo -c download_main.cc -fPIC -DPIC -o .libs/download_main.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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/functional.h:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/functional.h:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_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* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/string:51, from ./../torrent/exceptions.h:47, from chunk_statistics.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ 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 chunk_selector.cc:43: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/algorithm:60, from chunk_selector.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ 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* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/algorithm:60, from delegator.cc:41: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ In file included from ./../data/chunk_list.h:44, from download_main.cc:42: ./../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/gcc/13/include/c++/13.2.0/string:49, from ./../data/chunk_list.h:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/bits/locale_classes.h:40, from /usr/gcc/13/include/c++/13.2.0/bits/ios_base.h:41, from /usr/gcc/13/include/c++/13.2.0/streambuf:43, from /usr/gcc/13/include/c++/13.2.0/bits/streambuf_iterator.h:35, from /usr/gcc/13/include/c++/13.2.0/iterator:66, from download_wrapper.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from available_list.h:45, from available_list.cc:44: ./../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/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/bits/locale_classes.h:40, from /usr/gcc/13/include/c++/13.2.0/bits/ios_base.h:41, from /usr/gcc/13/include/c++/13.2.0/streambuf:43, from /usr/gcc/13/include/c++/13.2.0/bits/streambuf_iterator.h:35, from /usr/gcc/13/include/c++/13.2.0/iterator:66, from available_list.cc:41: /usr/gcc/13/include/c++/13.2.0/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 ./../globals.h:41, from ./../download/download_main.h:43, from ./../download/download_wrapper.h:41, from download_constructor.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/extensions.h:48, from download_main.cc:43: ./../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ 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] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../globals.h:41, from ./../download/download_main.h:43, from ./../protocol/initial_seed.h:40, from download_main.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' mv -f .deps/chunk_statistics.Tpo .deps/chunk_statistics.Plo 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/gcc/13/include/c++/13.2.0/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 download_wrapper.cc:47: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/string:51: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | 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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/delegator.Tpo .deps/delegator.Plo 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* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/string:51: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | 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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/chunk_selector.Tpo .deps/chunk_selector.Plo 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/gcc/13/include/c++/13.2.0/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()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ download_constructor.cc: In member function 'torrent::Path torrent::DownloadConstructor::create_path(const torrent::Object::list_type&, std::string)': download_constructor.cc:343:60: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 343 | if (std::find_if(plist.begin(), plist.end(), std::ptr_fun(&DownloadConstructor::is_invalid_path_element)) != plist.end()) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ download_constructor.cc:349:113: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::Object]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 349 | std::transform(plist.begin(), plist.end(), std::back_inserter(p), std::mem_fun_ref(&Object::as_string)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/available_list.Tpo .deps/available_list.Plo 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."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ download_main.cc:134:5: note: in C++11 destructors default to 'noexcept' download_main.cc:141:5: warning: 'throw' will always call 'terminate' [-Wterminate] 141 | throw internal_error("DownloadMain::~DownloadMain(): m_info->size_pex() != 0."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ download_main.cc:141:5: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/download_wrapper.Tpo .deps/download_wrapper.Plo mv -f .deps/download_main.Tpo .deps/download_main.Plo mv -f .deps/download_constructor.Tpo .deps/download_constructor.Plo /bin/bash ../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -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 -L/usr/openssl/3.1/lib/amd64 -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[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/download' Making all in net make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/net' /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT address_list.lo -MD -MP -MF .deps/address_list.Tpo -c -o address_list.lo address_list.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT local_addr.lo -MD -MP -MF .deps/local_addr.Tpo -c -o local_addr.lo local_addr.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT listen.lo -MD -MP -MF .deps/listen.Tpo -c -o listen.lo listen.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_base.lo -MD -MP -MF .deps/socket_base.Tpo -c -o socket_base.lo socket_base.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_datagram.lo -MD -MP -MF .deps/socket_datagram.Tpo -c -o socket_datagram.lo socket_datagram.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_fd.lo -MD -MP -MF .deps/socket_fd.Tpo -c -o socket_fd.lo socket_fd.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_set.lo -MD -MP -MF .deps/socket_set.Tpo -c -o socket_set.lo socket_set.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_stream.lo -MD -MP -MF .deps/socket_stream.Tpo -c -o socket_stream.lo socket_stream.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_datagram.lo -MD -MP -MF .deps/socket_datagram.Tpo -c socket_datagram.cc -fPIC -DPIC -o .libs/socket_datagram.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT local_addr.lo -MD -MP -MF .deps/local_addr.Tpo -c local_addr.cc -fPIC -DPIC -o .libs/local_addr.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT listen.lo -MD -MP -MF .deps/listen.Tpo -c listen.cc -fPIC -DPIC -o .libs/listen.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT address_list.lo -MD -MP -MF .deps/address_list.Tpo -c address_list.cc -fPIC -DPIC -o .libs/address_list.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_base.lo -MD -MP -MF .deps/socket_base.Tpo -c socket_base.cc -fPIC -DPIC -o .libs/socket_base.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_fd.lo -MD -MP -MF .deps/socket_fd.Tpo -c socket_fd.cc -fPIC -DPIC -o .libs/socket_fd.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_set.lo -MD -MP -MF .deps/socket_set.Tpo -c socket_set.cc -fPIC -DPIC -o .libs/socket_set.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT socket_stream.lo -MD -MP -MF .deps/socket_stream.Tpo -c socket_stream.cc -fPIC -DPIC -o .libs/socket_stream.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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/functional.h:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ mv -f .deps/local_addr.Tpo .deps/local_addr.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT throttle_internal.lo -MD -MP -MF .deps/throttle_internal.Tpo -c -o throttle_internal.lo throttle_internal.cc In file included from ./../manager.h:42, from socket_base.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' 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from socket_set.cc:40: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ socket_set.cc:70:29: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = torrent::SocketSet*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 70 | std::bind1st(std::mem_fun(&SocketSet::_replace_with_last), this)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:136:5: note: declared here 136 | bind1st(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../manager.h:42, from listen.cc:53: ../../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' socket_base.cc: In destructor 'virtual torrent::SocketBase::~SocketBase()': socket_base.cc:54:5: warning: 'throw' will always call 'terminate' [-Wterminate] 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' mv -f .deps/socket_datagram.Tpo .deps/socket_datagram.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT throttle_list.lo -MD -MP -MF .deps/throttle_list.Tpo -c -o throttle_list.lo throttle_list.cc In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from ./../torrent/exceptions.h:47, from socket_base.cc:43: /usr/gcc/13/include/c++/13.2.0/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: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/string:49, from ../../rak/socket_address.h:51, from listen.cc:44: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/socket_stream.Tpo .deps/socket_stream.Plo 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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ mv -f .deps/socket_fd.Tpo .deps/socket_fd.Plo mv -f .deps/socket_base.Tpo .deps/socket_base.Plo libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT throttle_internal.lo -MD -MP -MF .deps/throttle_internal.Tpo -c throttle_internal.cc -fPIC -DPIC -o .libs/throttle_internal.o mv -f .deps/socket_set.Tpo .deps/socket_set.Plo libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT throttle_list.lo -MD -MP -MF .deps/throttle_list.Tpo -c throttle_list.cc -fPIC -DPIC -o .libs/throttle_list.o mv -f .deps/listen.Tpo .deps/listen.Plo 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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/functional.h:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from throttle_internal.cc:41: ../../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' 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ throttle_internal.cc: In member function 'void torrent::ThrottleInternal::disable()': throttle_internal.cc:91: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] 91 | std::for_each(m_slaveList.begin(), m_slaveList.end(), std::mem_fun(&ThrottleInternal::disable)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/string:49, from ./../torrent/exceptions.h:47, from throttle_list.cc:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ mv -f .deps/throttle_list.Tpo .deps/throttle_list.Plo mv -f .deps/address_list.Tpo .deps/address_list.Plo mv -f .deps/throttle_internal.Tpo .deps/throttle_internal.Plo /bin/bash ../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -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 -L/usr/openssl/3.1/lib/amd64 -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[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/net' Making all in protocol make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/protocol' /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT extensions.lo -MD -MP -MF .deps/extensions.Tpo -c -o extensions.lo extensions.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT handshake.lo -MD -MP -MF .deps/handshake.Tpo -c -o handshake.lo handshake.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT handshake_encryption.lo -MD -MP -MF .deps/handshake_encryption.Tpo -c -o handshake_encryption.lo handshake_encryption.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT handshake_manager.lo -MD -MP -MF .deps/handshake_manager.Tpo -c -o handshake_manager.lo handshake_manager.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT initial_seed.lo -MD -MP -MF .deps/initial_seed.Tpo -c -o initial_seed.lo initial_seed.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_connection_base.lo -MD -MP -MF .deps/peer_connection_base.Tpo -c -o peer_connection_base.lo peer_connection_base.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_connection_leech.lo -MD -MP -MF .deps/peer_connection_leech.Tpo -c -o peer_connection_leech.lo peer_connection_leech.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_connection_metadata.lo -MD -MP -MF .deps/peer_connection_metadata.Tpo -c -o peer_connection_metadata.lo peer_connection_metadata.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT initial_seed.lo -MD -MP -MF .deps/initial_seed.Tpo -c initial_seed.cc -fPIC -DPIC -o .libs/initial_seed.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT handshake.lo -MD -MP -MF .deps/handshake.Tpo -c handshake.cc -fPIC -DPIC -o .libs/handshake.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT handshake_encryption.lo -MD -MP -MF .deps/handshake_encryption.Tpo -c handshake_encryption.cc -fPIC -DPIC -o .libs/handshake_encryption.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_connection_base.lo -MD -MP -MF .deps/peer_connection_base.Tpo -c peer_connection_base.cc -fPIC -DPIC -o .libs/peer_connection_base.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_connection_metadata.lo -MD -MP -MF .deps/peer_connection_metadata.Tpo -c peer_connection_metadata.cc -fPIC -DPIC -o .libs/peer_connection_metadata.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_connection_leech.lo -MD -MP -MF .deps/peer_connection_leech.Tpo -c peer_connection_leech.cc -fPIC -DPIC -o .libs/peer_connection_leech.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT handshake_manager.lo -MD -MP -MF .deps/handshake_manager.Tpo -c handshake_manager.cc -fPIC -DPIC -o .libs/handshake_manager.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT extensions.lo -MD -MP -MF .deps/extensions.Tpo -c extensions.cc -fPIC -DPIC -o .libs/extensions.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] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../../rak/functional.h:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/bits/refwrap.h:39, from /usr/gcc/13/include/c++/13.2.0/deque:67, from ./../download/download_main.h:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/string:51, from /usr/gcc/13/include/c++/13.2.0/bits/locale_classes.h:40, from /usr/gcc/13/include/c++/13.2.0/bits/ios_base.h:41, from /usr/gcc/13/include/c++/13.2.0/ios:44, from /usr/gcc/13/include/c++/13.2.0/istream:40, from /usr/gcc/13/include/c++/13.2.0/sstream:40, from peer_connection_metadata.cc:40: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ 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/gcc/13/include/c++/13.2.0/string:49, from ../../rak/socket_address.h:51, from handshake_manager.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../globals.h:41, from ./../download/download_main.h:43: ../../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 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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/bits/locale_classes.h:40, from /usr/gcc/13/include/c++/13.2.0/bits/ios_base.h:41, from /usr/gcc/13/include/c++/13.2.0/ios:44, from /usr/gcc/13/include/c++/13.2.0/istream:40, from /usr/gcc/13/include/c++/13.2.0/sstream:40, from peer_connection_leech.cc:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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/gcc/13/include/c++/13.2.0/string:49, from ./../torrent/download/choke_group.h:40, from initial_seed.cc:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../globals.h:41, from ./../download/download_main.h:43: ../../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/utils/ranges.h:44, from ./../torrent/data/download_data.h:45, from ./../download/chunk_selector.h:44: ../../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/gcc/13/include/c++/13.2.0/string:49: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../globals.h:41, from ./../download/download_main.h:43: ../../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 extensions.cc:44: ./../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/gcc/13/include/c++/13.2.0/bits/refwrap.h:39, from /usr/gcc/13/include/c++/13.2.0/vector:68, from ./../download/available_list.h:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../globals.h:41, from ./../download/download_main.h:43, from peer_connection_metadata.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 ./../download/download_main.h:41, from extensions.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 { | ^~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../globals.h:41, from ./../download/download_main.h:43: ../../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 ./../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*)': ./../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)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/handshake_encryption.Tpo .deps/handshake_encryption.Plo 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../download/chunk_selector.h:41, from peer_connection_base.cc:49: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/tuple:38, from /usr/gcc/13/include/c++/13.2.0/functional:53: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_factory.lo -MD -MP -MF .deps/peer_factory.Tpo -c -o peer_factory.lo peer_factory.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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ 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* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/string:51: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ In file included from ./../globals.h:41, from ./../download/download_main.h:43, from peer_connection_base.cc:51: ../../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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../globals.h:41, from ./../download/download_main.h:43, from peer_connection_leech.cc:47: ../../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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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 extensions.cc:47: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/vector:62: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | 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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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 { | ^~~~~~~~~~~~~~ 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: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* std::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)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/string:51: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ 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."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ handshake.cc:108:5: note: in C++11 destructors default to 'noexcept' handshake.cc:111:5: warning: 'throw' will always call 'terminate' [-Wterminate] 111 | throw internal_error("Handshake dtor called but m_fd is still open."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ handshake.cc:111: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()': ./../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 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_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* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/string:51: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ 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 ./../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/gcc/13/include/c++/13.2.0/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, from peer_connection_metadata.cc:55: ./../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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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: ../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT peer_factory.lo -MD -MP -MF .deps/peer_factory.Tpo -c peer_factory.cc -fPIC -DPIC -o .libs/peer_factory.o In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/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 ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/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: ../../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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ 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' In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/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: ../../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/initial_seed.Tpo .deps/initial_seed.Plo /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT request_list.lo -MD -MP -MF .deps/request_list.Tpo -c -o request_list.lo request_list.cc 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* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/string:51, from ./../torrent/exceptions.h:47, from ./../net/socket_stream.h:43, from peer_connection_base.h:41: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | 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' mv -f .deps/peer_connection_metadata.Tpo .deps/peer_connection_metadata.Plo mv -f .deps/handshake_manager.Tpo .deps/handshake_manager.Plo libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT request_list.lo -MD -MP -MF .deps/request_list.Tpo -c request_list.cc -fPIC -DPIC -o .libs/request_list.o mv -f .deps/peer_factory.Tpo .deps/peer_factory.Plo mv -f .deps/extensions.Tpo .deps/extensions.Plo 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 { | ^~~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/functional:49, from request_list.cc:40: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ mv -f .deps/handshake.Tpo .deps/handshake.Plo In file included from ./../torrent/data/block.h:42, from request_list.cc:44: ./../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 request_list.cc:50: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* std::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/gcc/13/include/c++/13.2.0/bits/stl_algobase.h:64, from /usr/gcc/13/include/c++/13.2.0/algorithm:60, from request_list.cc:39: /usr/gcc/13/include/c++/13.2.0/bits/stl_pair.h:187:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair'} declared here 187 | struct pair | ^~~~ In file included from ./../globals.h:41, from request_list.h:46, from request_list.cc:51: ../../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' request_list.cc: In destructor 'torrent::RequestList::~RequestList()': request_list.cc:118:5: warning: 'throw' will always call 'terminate' [-Wterminate] 118 | throw internal_error("request dtor m_transfer != NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ request_list.cc:118:5: note: in C++11 destructors default to 'noexcept' request_list.cc:121:5: warning: 'throw' will always call 'terminate' [-Wterminate] 121 | throw internal_error("request dtor m_queues not empty"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ request_list.cc:121:5: note: in C++11 destructors default to 'noexcept' request_list.cc: In member function 'void torrent::RequestList::stall_initial()': 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ request_list.cc:146:73: 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] 146 | queue_bucket_for_all_in_queue(m_queues, bucket_unordered, std::ptr_fun(&Block::stalled)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ request_list.cc: In member function 'void torrent::RequestList::stall_prolonged()': request_list.cc:155: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] 155 | queue_bucket_for_all_in_queue(m_queues, bucket_queued, std::ptr_fun(&Block::stalled)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ request_list.cc:157:73: 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] 157 | queue_bucket_for_all_in_queue(m_queues, bucket_unordered, std::ptr_fun(&Block::stalled)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ request_list.cc: In member function 'bool torrent::RequestList::downloading(const torrent::Piece&)': request_list.cc:268:62: warning: comparison of integer expressions of different signedness: 'std::__iterator_traits, void>::difference_type' {aka 'long int'} and 'std::size_t' {aka 'long unsigned int'} [-Wsign-compare] 268 | if (std::distance(m_queues.begin(itr.first), itr.second) < m_last_unordered_position) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ request_list.cc: At global scope: request_list.cc:367:38: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 367 | struct equals_reservee : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/peer_connection_base.Tpo .deps/peer_connection_base.Plo mv -f .deps/peer_connection_leech.Tpo .deps/peer_connection_leech.Plo mv -f .deps/request_list.Tpo .deps/request_list.Plo /bin/bash ../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -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 -L/usr/openssl/3.1/lib/amd64 -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[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/protocol' Making all in tracker make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/tracker' /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_dht.lo -MD -MP -MF .deps/tracker_dht.Tpo -c -o tracker_dht.lo tracker_dht.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_http.lo -MD -MP -MF .deps/tracker_http.Tpo -c -o tracker_http.lo tracker_http.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_udp.lo -MD -MP -MF .deps/tracker_udp.Tpo -c -o tracker_udp.lo tracker_udp.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_udp.lo -MD -MP -MF .deps/tracker_udp.Tpo -c tracker_udp.cc -fPIC -DPIC -o .libs/tracker_udp.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_http.lo -MD -MP -MF .deps/tracker_http.Tpo -c tracker_http.cc -fPIC -DPIC -o .libs/tracker_http.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT tracker_dht.lo -MD -MP -MF .deps/tracker_dht.Tpo -c tracker_dht.cc -fPIC -DPIC -o .libs/tracker_dht.o In file included from tracker_udp.cc:47: ./../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/gcc/13/include/c++/13.2.0/string:49, from ./../net/address_list.h:41: /usr/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from tracker_http.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/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/bits/locale_classes.h:40, from /usr/gcc/13/include/c++/13.2.0/bits/ios_base.h:41, from /usr/gcc/13/include/c++/13.2.0/iomanip:42, from tracker_http.cc:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../dht/dht_router.h:40, from tracker_dht.cc:42: ../../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 ./../globals.h:41, from tracker_udp.h:48, from tracker_udp.cc:57: ../../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/dht_tracker.h:45, from ./../dht/dht_hash_map.h:51, from ./../dht/dht_router.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 { | ^~~~~~~~~~~~~~ In file included from /usr/gcc/13/include/c++/13.2.0/string:49, from /usr/gcc/13/include/c++/13.2.0/bits/locale_classes.h:40, from /usr/gcc/13/include/c++/13.2.0/bits/ios_base.h:41, from /usr/gcc/13/include/c++/13.2.0/ios:44, from /usr/gcc/13/include/c++/13.2.0/istream:40, from /usr/gcc/13/include/c++/13.2.0/sstream:40, from tracker_dht.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../globals.h:41, from tracker_http.cc:59: ../../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: ../../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/tracker_dht.Tpo .deps/tracker_dht.Plo mv -f .deps/tracker_udp.Tpo .deps/tracker_udp.Plo mv -f .deps/tracker_http.Tpo .deps/tracker_http.Plo /bin/bash ../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -L/usr/lib -L/usr/lib -o libsub_tracker.la tracker_dht.lo tracker_http.lo tracker_udp.lo -lcppunit -lz -L/usr/openssl/3.1/lib/amd64 -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[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/tracker' Making all in utils make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/utils' /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT diffie_hellman.lo -MD -MP -MF .deps/diffie_hellman.Tpo -c -o diffie_hellman.lo diffie_hellman.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT instrumentation.lo -MD -MP -MF .deps/instrumentation.Tpo -c -o instrumentation.lo instrumentation.cc /bin/bash ../../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT sha_fast.lo -MD -MP -MF .deps/sha_fast.Tpo -c -o sha_fast.lo sha_fast.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT sha_fast.lo -MD -MP -MF .deps/sha_fast.Tpo -c sha_fast.cc -fPIC -DPIC -o .libs/sha_fast.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT instrumentation.lo -MD -MP -MF .deps/instrumentation.Tpo -c instrumentation.cc -fPIC -DPIC -o .libs/instrumentation.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT diffie_hellman.lo -MD -MP -MF .deps/diffie_hellman.Tpo -c diffie_hellman.cc -fPIC -DPIC -o .libs/diffie_hellman.o mv -f .deps/sha_fast.Tpo .deps/sha_fast.Plo mv -f .deps/instrumentation.Tpo .deps/instrumentation.Plo mv -f .deps/diffie_hellman.Tpo .deps/diffie_hellman.Plo /bin/bash ../../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -m64 -lnsl -lsocket -lz -L/usr/lib -L/usr/lib -o libsub_utils.la diffie_hellman.lo instrumentation.lo sha_fast.lo -lcppunit -lz -L/usr/openssl/3.1/lib/amd64 -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[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/utils' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' /bin/bash ../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT globals.lo -MD -MP -MF .deps/globals.Tpo -c -o globals.lo globals.cc /bin/bash ../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT manager.lo -MD -MP -MF .deps/manager.Tpo -c -o manager.lo manager.cc /bin/bash ../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT thread_disk.lo -MD -MP -MF .deps/thread_disk.Tpo -c -o thread_disk.lo thread_disk.cc /bin/bash ../libtool --tag=CXX --mode=compile /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT thread_main.lo -MD -MP -MF .deps/thread_main.Tpo -c -o thread_main.lo thread_main.cc libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT thread_disk.lo -MD -MP -MF .deps/thread_disk.Tpo -c thread_disk.cc -fPIC -DPIC -o .libs/thread_disk.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT manager.lo -MD -MP -MF .deps/manager.Tpo -c manager.cc -fPIC -DPIC -o .libs/manager.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT globals.lo -MD -MP -MF .deps/globals.Tpo -c globals.cc -fPIC -DPIC -o .libs/globals.o libtool: compile: /usr/gcc/13/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/usr/include -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -MT thread_main.lo -MD -MP -MF .deps/thread_main.Tpo -c thread_main.cc -fPIC -DPIC -o .libs/thread_main.o In file included from download/download_main.h:41, from download/download_wrapper.h:41, from manager.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/gcc/13/include/c++/13.2.0/string:49, from torrent/exceptions.h:47, from manager.cc:39: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from globals.h:41, from globals.cc:39: ../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 ./globals.h:41, from download/download_main.h:43: ../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 globals.h:41, from thread_main.cc:43: ../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: ../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/functional:49, from ../rak/priority_queue_default.h:40: /usr/gcc/13/include/c++/13.2.0/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: ../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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438, from /usr/gcc/13/include/c++/13.2.0/bits/refwrap.h:39, from /usr/gcc/13/include/c++/13.2.0/deque:67, from data/hash_check_queue.h:40, from thread_main.h:40, from thread_main.cc:41: /usr/gcc/13/include/c++/13.2.0/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/gcc/13/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ mv -f .deps/globals.Tpo .deps/globals.Plo mv -f .deps/thread_disk.Tpo .deps/thread_disk.Plo 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 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/gcc/13/include/c++/13.2.0/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 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/gcc/13/include/c++/13.2.0/bits/stl_function.h:1438: /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/thread_main.Tpo .deps/thread_main.Plo In file included from data/chunk_list.h:44, from manager.cc:44: 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)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ manager.cc: In constructor 'torrent::Manager::Manager()': manager.cc:83:50: warning: 'new' of type 'torrent::HashQueue' with extended alignment 128 [-Waligned-new=] 83 | m_hashQueue = new HashQueue(&m_main_thread_disk); | ^ manager.cc:83:50: note: uses 'void* operator new(size_t)', which does not have an alignment parameter manager.cc:83:50: note: use '-faligned-new' to enable C++17 over-aligned new support In file included from ../rak/priority_queue_default.h:42: ../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/gcc/13/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ mv -f .deps/manager.Tpo .deps/manager.Plo /bin/bash ../libtool --tag=CXX --mode=link /usr/gcc/13/bin/g++ -D_REENTRANT -pthreads -m64 -O3 -std=c++11 -O3 -DNDEBUG -Wall -fvisibility=hidden -I/usr/openssl/3.1/include -version-info 21:0:0 -m64 -lnsl -lsocket -lz -L/usr/lib -L/usr/lib -o libtorrent.la -rpath /usr/lib/amd64 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 -L/usr/openssl/3.1/lib/amd64 -lcrypto libtool: link: /usr/gcc/13/bin/g++ -shared -fPIC -DPIC -nostdlib /usr/lib/amd64/crti.o /usr/gcc/13/lib/gcc/x86_64-pc-solaris2.11/13.2.0/crtbeginS.o .libs/globals.o .libs/manager.o .libs/thread_disk.o .libs/thread_main.o -Wl,-z -Wl,allextract 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,-z -Wl,defaultextract -L/usr/lib -L/usr/openssl/3.1/lib/amd64 -lnsl -lsocket -lcppunit -lz -lcrypto -L -L/usr/gcc/13/lib/gcc/x86_64-pc-solaris2.11/13.2.0 -L/usr/gcc/13/lib/gcc/x86_64-pc-solaris2.11/13.2.0/../../../amd64 -L/usr/gcc/13/lib/gcc/x86_64-pc-solaris2.11/13.2.0/../../.. -lstdc++ -lm -lgcc_s -lc -lgcc_s /usr/gcc/13/lib/gcc/x86_64-pc-solaris2.11/13.2.0/crtendS.o /usr/lib/amd64/crtn.o -pthreads -m64 -O3 -O3 -m64 -pthreads -Wl,-h -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") libtool: link: ( cd ".libs" && rm -f "libtorrent.la" && ln -s "../libtorrent.la" "libtorrent.la" ) make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' Making all in test make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/test' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/test' make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64' make[1]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64' Making install in src make[1]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' Making install in torrent make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' Making install in data make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/data' make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/data' make[4]: Nothing to be done for 'install-exec-am'. /usr/bin/gmkdir -p '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/data' /usr/bin/ginstall -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 '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/data' make[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/data' make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/data' Making install in download make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/download' make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/download' make[4]: Nothing to be done for 'install-exec-am'. /usr/bin/gmkdir -p '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/download' /usr/bin/ginstall -c -m 644 choke_group.h choke_queue.h download_manager.h group_entry.h resource_manager.h '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/download' make[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/download' make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/download' Making install in net make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/net' make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/net' make[4]: Nothing to be done for 'install-exec-am'. /usr/bin/gmkdir -p '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/net' /usr/bin/ginstall -c -m 644 socket_address_key.h '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/net' make[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/net' make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/net' Making install in peer make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/peer' make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/peer' make[4]: Nothing to be done for 'install-exec-am'. /usr/bin/gmkdir -p '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/peer' /usr/bin/ginstall -c -m 644 choke_status.h client_info.h client_list.h connection_list.h peer.h peer_info.h peer_list.h '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/peer' make[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/peer' make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/peer' Making install in utils make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/utils' make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/utils' make[4]: Nothing to be done for 'install-exec-am'. /usr/bin/gmkdir -p '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/utils' /usr/bin/ginstall -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 '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent/utils' make[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/utils' make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent/utils' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' make[4]: Nothing to be done for 'install-exec-am'. /usr/bin/gmkdir -p '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent' /usr/bin/ginstall -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 '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/include/torrent' make[4]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/torrent' Making install in data make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/data' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/data' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/data' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/data' Making install in dht make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/dht' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/dht' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/dht' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/dht' Making install in download make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/download' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/download' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/download' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/download' Making install in net make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/net' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/net' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/net' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/net' Making install in protocol make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/protocol' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/protocol' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/protocol' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/protocol' Making install in tracker make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/tracker' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/tracker' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/tracker' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/tracker' Making install in utils make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/utils' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/utils' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/utils' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src/utils' make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' /usr/bin/gmkdir -p '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/lib/amd64' /bin/bash ../libtool --mode=install /usr/bin/ginstall -c libtorrent.la '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/lib/amd64' libtool: install: /usr/bin/ginstall -c .libs/libtorrent.so.21.0.0 /jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/lib/amd64/libtorrent.so.21.0.0 libtool: install: (cd /jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/lib/amd64 && { 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 /jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/lib/amd64 && { ln -s -f libtorrent.so.21.0.0 libtorrent.so || { rm -f libtorrent.so && ln -s libtorrent.so.21.0.0 libtorrent.so; }; }) libtool: install: chmod +x /jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/lib/amd64/libtorrent.so.21.0.0 libtool: install: /usr/bin/ginstall -c .libs/libtorrent.lai /jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/lib/amd64/libtorrent.la libtool: warning: remember to run 'libtool --finish /usr/lib/amd64' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' make[1]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/src' Making install in test make[1]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/test' make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/test' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/test' make[1]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64/test' make[1]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64' make[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/gmkdir -p '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/lib/amd64/pkgconfig' /usr/bin/ginstall -c -m 644 libtorrent.pc '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/prototype/i386/usr/lib/amd64/pkgconfig' make[2]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64' make[1]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/amd64' VALIDATING MANIFEST CONTENT: /jenkins/jobs/oi-userland/workspace/components/library/libtorrent/build/manifest-i386-libtorrent.depend.res NEW PACKAGE CONTENTS ARE LOCALLY VALIDATED AND READY TO GO generating metadata: library/libtorrent pkg://openindiana.org/library/libtorrent@0.13.8,5.11-2024.0.0.2:20240324T191242Z PUBLISHED