+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/rtorrent-0.10.0/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/rtorrent-0.10.0/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for rtorrent-0.10.0 /opt/pkg/bin/gmake all-recursive gmake[1]: Entering directory '/home/pbulk/build/net/rtorrent/work/rtorrent-0.10.0' Making all in doc gmake[2]: Entering directory '/home/pbulk/build/net/rtorrent/work/rtorrent-0.10.0/doc' gmake[2]: Nothing to be done for 'all'. gmake[2]: Leaving directory '/home/pbulk/build/net/rtorrent/work/rtorrent-0.10.0/doc' Making all in src gmake[2]: Entering directory '/home/pbulk/build/net/rtorrent/work/rtorrent-0.10.0/src' depbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from main.cc:61: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from main.cc:53: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/ostream:40, from /opt/tools/gcc13/include/c++/13.3.0/iostream:41, from main.cc:42: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from core/dht_manager.h:40, from main.cc:60: ../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 core/download.h:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command_scheduler.h:43, from main.cc:71: ../rak/functional_fun.h: At global scope: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpc/command.h:238, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from main.cc:73: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/dht_manager.h:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ main.cc: In function 'int main(int, char**)': main.cc:197:19: warning: 'new' of type 'Control' with extended alignment 128 [-Waligned-new=] 197 | control = new Control; | ^~~~~~~ main.cc:197:19: note: uses 'void* operator new(size_t)', which does not have an alignment parameter main.cc:197:19: note: use '-faligned-new' to enable C++17 over-aligned new support main.cc:234:38: warning: 'new' of type 'ThreadWorker' with extended alignment 128 [-Waligned-new=] 234 | worker_thread = new ThreadWorker(); | ^ main.cc:234:38: note: uses 'void* operator new(size_t)', which does not have an alignment parameter main.cc:234:38: 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/curl_get.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/curl_get.o -MD -MP -MF $depbase.Tpo -c -o core/curl_get.o core/curl_get.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/curl_get.cc:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./globals.h: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 core/curl_get.cc:40: core/curl_get.cc: In member function 'double core::CurlGet::size_done()': core/curl_get.cc:136:31: warning: 'CURLINFO_SIZE_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_SIZE_DOWNLOAD_T [-Wdeprecated-declarations] 136 | curl_easy_getinfo(m_handle, CURLINFO_SIZE_DOWNLOAD, &d); | ^~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/curl/curl.h:3254:69: note: in definition of macro 'curl_easy_getinfo' 3254 | #define curl_easy_getinfo(handle,info,arg) curl_easy_getinfo(handle,info,arg) | ^~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/curl/curl.h:2875:3: note: declared here 2875 | CURLINFO_SIZE_DOWNLOAD | ^~~~~~~~~~~~~~~~~~~~~~ core/curl_get.cc: In member function 'double core::CurlGet::size_total()': core/curl_get.cc:144:31: warning: 'CURLINFO_CONTENT_LENGTH_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Wdeprecated-declarations] 144 | curl_easy_getinfo(m_handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/curl/curl.h:3254:69: note: in definition of macro 'curl_easy_getinfo' 3254 | #define curl_easy_getinfo(handle,info,arg) curl_easy_getinfo(handle,info,arg) | ^~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/curl/curl.h:2892:3: note: declared here 2892 | CURLINFO_CONTENT_LENGTH_DOWNLOAD | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438, from /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/ostream:40, from /opt/tools/gcc13/include/c++/13.3.0/iostream:41, from core/curl_get.cc:39: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/curl_socket.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/curl_socket.o -MD -MP -MF $depbase.Tpo -c -o core/curl_socket.o core/curl_socket.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from core/curl_socket.cc:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./control.h:43, from core/curl_socket.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' core/curl_socket.cc: In destructor 'virtual core::CurlSocket::~CurlSocket()': core/curl_socket.cc:95:5: warning: 'throw' will always call 'terminate' [-Wterminate] 95 | throw torrent::internal_error("CurlSocket::~CurlSocket() m_fileDesc != -1."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ core/curl_socket.cc:95: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438, from /opt/tools/gcc13/include/c++/13.3.0/functional:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/poll.h:40, from core/curl_socket.cc:42: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/curl_stack.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/curl_stack.o -MD -MP -MF $depbase.Tpo -c -o core/curl_stack.o core/curl_stack.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/curl_socket.h:42, from core/curl_stack.cc:45: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from core/curl_stack.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from core/curl_stack.cc:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from core/curl_get.h:45, from core/curl_stack.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' core/curl_stack.cc: In member function 'bool core::CurlStack::process_done_handle()': core/curl_stack.cc:136:90: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void*; _Tp = core::CurlGet]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 136 | iterator itr = std::find_if(begin(), end(), rak::equal(msg->easy_handle, std::mem_fun(&CurlGet::handle))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ core/curl_stack.cc: In member function 'void core::CurlStack::transfer_done(void*, const char*)': core/curl_stack.cc:158:78: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void*; _Tp = core::CurlGet]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 158 | iterator itr = std::find_if(begin(), end(), rak::equal(handle, std::mem_fun(&CurlGet::handle))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ core/curl_stack.cc: In member function 'void core::CurlStack::remove_get(core::CurlGet*)': core/curl_stack.cc:238:65: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = core::CurlGet]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 238 | (itr = std::find_if(begin(), end(), std::not1(std::mem_fun(&CurlGet::is_active)))) != end()) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/dht_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/dht_manager.o -MD -MP -MF $depbase.Tpo -c -o core/dht_manager.o core/dht_manager.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/dht_manager.cc:49: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from core/dht_manager.cc:47: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/fstream:40, from core/dht_manager.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/dht_manager.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/download.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/download.o -MD -MP -MF $depbase.Tpo -c -o core/download.o core/download.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from core/download.cc:53: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from core/download.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from ../rak/file_stat.h:40, from core/download.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from core/download.cc:48: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from core/download.cc:50: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./control.h:43, from core/download.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 ../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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/download_factory.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/download_factory.o -MD -MP -MF $depbase.Tpo -c -o core/download_factory.o core/download_factory.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download_factory.cc:59: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_utils.h:41, from core/download_factory.cc:52: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/fstream:40, from core/download_factory.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from core/download_factory.cc:54: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/download_factory.cc:48: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from core/curl_get.h:45, from core/download_factory.cc:56: ../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' core/download_factory.cc: In member function 'void core::DownloadFactory::receive_success()': core/download_factory.cc:325:44: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const __cxx11::basic_string&; _Arg2 = rpc::rt_triple; _Result = torrent::Object]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 325 | rak::bind2nd(std::ptr_fun(&rpc::parse_command_multiple_std), rpc::make_target(download))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/download_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/download_list.o -MD -MP -MF $depbase.Tpo -c -o core/download_list.o core/download_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download_list.cc:57: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from core/download_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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/fstream:40, from core/download_list.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from core/download_list.cc:54: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/download_list.cc:49: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./control.h:43, from core/download_list.cc:56: ../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' core/download_list.cc: In member function 'void core::DownloadList::clear()': core/download_list.cc:83:58: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::DownloadList; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 83 | std::for_each(begin(), end(), std::bind1st(std::mem_fun(&DownloadList::close), this)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ core/download_list.cc:83:45: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::DownloadList*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 83 | std::for_each(begin(), end(), std::bind1st(std::mem_fun(&DownloadList::close), this)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:136:5: note: declared here 136 | bind1st(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ core/download_list.cc: In member function 'void core::DownloadList::session_save()': core/download_list.cc:91:75: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = bool; _Tp = core::DownloadStore; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 91 | unsigned int c = std::count_if(begin(), end(), std::bind1st(std::mem_fun(&DownloadStore::save_resume), control->core()->download_store())); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ core/download_list.cc:91:62: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::DownloadStore*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 91 | unsigned int c = std::count_if(begin(), end(), std::bind1st(std::mem_fun(&DownloadStore::save_resume), control->core()->download_store())); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:136:5: note: declared here 136 | bind1st(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ core/download_list.cc: In member function 'std::__cxx11::list::iterator core::DownloadList::find(const torrent::HashString&)': core/download_list.cc:102:76: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::DownloadInfo*; _Tp = core::Download]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 102 | return std::find_if(begin(), end(), rak::equal(hash, rak::on(std::mem_fun(&Download::info), std::mem_fun(&torrent::DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ core/download_list.cc:102:107: 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] 102 | return std::find_if(begin(), end(), rak::equal(hash, rak::on(std::mem_fun(&Download::info), std::mem_fun(&torrent::DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ core/download_list.cc: In member function 'std::__cxx11::list::iterator core::DownloadList::find_hex(const char*)': core/download_list.cc:112:75: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::DownloadInfo*; _Tp = core::Download]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 112 | return std::find_if(begin(), end(), rak::equal(key, rak::on(std::mem_fun(&Download::info), std::mem_fun(&torrent::DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ core/download_list.cc:112:106: 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] 112 | return std::find_if(begin(), end(), rak::equal(key, rak::on(std::mem_fun(&Download::info), std::mem_fun(&torrent::DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ core/download_list.cc: In member function 'std::__cxx11::list::iterator core::DownloadList::insert(core::Download*)': core/download_list.cc:190:110: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::View; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 190 | std::for_each(control->view_manager()->begin(), control->view_manager()->end(), std::bind2nd(std::mem_fun(&View::insert), download)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ core/download_list.cc:190:97: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::Download*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 190 | std::for_each(control->view_manager()->begin(), control->view_manager()->end(), std::bind2nd(std::mem_fun(&View::insert), download)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ core/download_list.cc:191:110: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::View; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 191 | std::for_each(control->view_manager()->begin(), control->view_manager()->end(), std::bind2nd(std::mem_fun(&View::filter_download), download)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ core/download_list.cc:191:97: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::Download*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 191 | std::for_each(control->view_manager()->begin(), control->view_manager()->end(), std::bind2nd(std::mem_fun(&View::filter_download), download)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ core/download_list.cc: In member function 'std::__cxx11::list::iterator core::DownloadList::erase(std::__cxx11::list::iterator)': core/download_list.cc:224:108: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::View; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 224 | std::for_each(control->view_manager()->begin(), control->view_manager()->end(), std::bind2nd(std::mem_fun(&View::erase), *itr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ core/download_list.cc:224:95: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::Download*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 224 | std::for_each(control->view_manager()->begin(), control->view_manager()->end(), std::bind2nd(std::mem_fun(&View::erase), *itr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/download_store.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/download_store.o -MD -MP -MF $depbase.Tpo -c -o core/download_store.o core/download_store.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from core/download_store.cc:57: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from core/download.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/fstream:40, from core/download_store.cc:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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' core/download_store.cc: In member function 'utils::Directory core::DownloadStore::get_formated_entries()': core/download_store.cc:214:58: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = const utils::directory_entry&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 214 | d.erase(std::remove_if(d.begin(), d.end(), std::ptr_fun(¬_correct_format)), d.end()); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ In file included from ../rak/priority_queue_default.h:42: ../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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/http_queue.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/http_queue.o -MD -MP -MF $depbase.Tpo -c -o core/http_queue.o core/http_queue.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from core/http_queue.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 /opt/tools/gcc13/include/c++/13.3.0/bits/unique_ptr.h:37, from /opt/tools/gcc13/include/c++/13.3.0/memory:78, from core/http_queue.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from core/curl_get.h:45, from core/http_queue.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' core/http_queue.cc: In member function 'std::__cxx11::list::iterator core::HttpQueue::insert(const std::string&, std::iostream*)': core/http_queue.cc:51:8: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 51 | std::auto_ptr h(m_slot_factory()); | ^~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/unique_ptr.h:65:28: note: declared here 65 | template class auto_ptr; | ^~~~~~~~ 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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/manager.o -MD -MP -MF $depbase.Tpo -c -o core/manager.o core/manager.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/manager.cc:64: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ../rak/address_info.h:47, from core/manager.cc:45: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ In file included from core/manager.cc:47: ../rak/regex.h: At global scope: ../rak/regex.h:53:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 53 | class regex : public std::unary_function { | ^~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/fstream:40, from core/manager.cc:41: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from core/manager.cc:60: ../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.cc:51: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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' core/manager.cc: In member function 'void core::Manager::shutdown(bool)': core/manager.cc:207:92: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::DownloadList; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 207 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::pause_default), m_downloadList)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ core/manager.cc:207:79: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::DownloadList*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 207 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::pause_default), m_downloadList)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:136:5: note: declared here 136 | bind1st(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ core/manager.cc:209:92: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::DownloadList; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 209 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::close_quick), m_downloadList)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ core/manager.cc:209:79: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::DownloadList*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 209 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::close_quick), m_downloadList)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:136:5: note: declared here 136 | bind1st(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ core/manager.cc: In function 'void core::path_expand(std::vector >*, const std::string&)': core/manager.cc:448:104: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = __cxx11::basic_string; _Arg2 = const utils::directory_entry&; _Result = utils::Directory]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 448 | std::transform(itr->begin(), itr->end(), std::back_inserter(nextCache), rak::bind1st(std::ptr_fun(&path_expand_transform), itr->path() + (itr->path() == "/" ? "" : "/"))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ core/manager.cc:455:104: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = const __cxx11::basic_string&; _Tp = utils::Directory]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 455 | std::transform(currentCache.begin(), currentCache.end(), std::back_inserter(*paths), std::mem_fun_ref(&utils::Directory::path)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ core/manager.cc: In member function 'void core::Manager::receive_hashing_changed()': core/manager.cc:489:48: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = core::Download]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 489 | std::mem_fun(&Download::is_hash_checking)) != m_hashingView->end_visible(); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/poll_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/poll_manager.o -MD -MP -MF $depbase.Tpo -c -o core/poll_manager.o core/poll_manager.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/poll_manager.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438, from /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from core/poll_manager.cc:39: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/view.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/view.o -MD -MP -MF $depbase.Tpo -c -o core/view.o core/view.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from core/view.cc:49: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from core/view.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from core/view.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from core/view.cc:42: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from core/view.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./control.h:43, from core/view.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' core/view.cc: At global scope: core/view.cc:57:38: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 57 | struct view_downloads_compare : std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ core/view.cc:91:37: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 91 | struct view_downloads_filter : std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ core/view.cc: In member function 'void core::View::initialize(const std::string&)': core/view.cc:179:72: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::View; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 179 | std::for_each(dlist->begin(), dlist->end(), rak::bind1st(std::mem_fun(&View::push_back), this)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ core/view.cc: In member function 'void core::View::insert_visible(core::Download*)': core/view.cc:361:75: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = core::view_downloads_compare; _Tp = core::Download*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 361 | iterator itr = std::find_if(begin_visible(), end_visible(), std::bind1st(view_downloads_compare(m_sortNew), d)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:136:5: note: declared here 136 | bind1st(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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo core/view_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT core/view_manager.o -MD -MP -MF $depbase.Tpo -c -o core/view_manager.o core/view_manager.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/view_manager.cc:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from core/view_manager.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/functional.h:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from core/view_manager.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/view_manager.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ core/view_manager.cc: In member function 'rak::unordered_vector::iterator core::ViewManager::find(const std::string&)': core/view_manager.cc:79:68: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = core::View]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 79 | return std::find_if(begin(), end(), rak::equal(name, std::mem_fun(&View::name))); | ~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ core/view_manager.cc: In member function 'rak::unordered_vector::iterator core::ViewManager::find_throw(const std::string&)': core/view_manager.cc:84:76: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = core::View]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 84 | iterator itr = std::find_if(begin(), end(), rak::equal(name, std::mem_fun(&View::name))); | ~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/canvas.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/canvas.o -MD -MP -MF $depbase.Tpo -c -o display/canvas.o display/canvas.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from display/canvas.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from display/canvas.cc:42: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ depbase=`echo display/frame.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/frame.o -MD -MP -MF $depbase.Tpo -c -o display/frame.o display/frame.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window.h:44, from display/frame.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/frame.cc:42: ../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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from display/frame.cc:40: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from display/window.h:41: ../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/manager.o -MD -MP -MF $depbase.Tpo -c -o display/manager.o display/manager.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/manager.cc:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from display/manager.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/utils.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/utils.o -MD -MP -MF $depbase.Tpo -c -o display/utils.o display/utils.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from display/utils.cc:57: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/utils.cc:43: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from display/utils.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/sstream:40, from display/utils.cc:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 ./rpc/command.h:238, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from display/utils.cc:59: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./core/manager.h:10, from display/utils.cc:58: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ display/utils.cc: In function 'char* display::print_download_status(char*, char*, core::Download*)': display/utils.cc:202:32: 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] 202 | std::mem_fun(&torrent::Tracker::is_busy_not_scrape)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/text_element_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/text_element_list.o -MD -MP -MF $depbase.Tpo -c -o display/text_element_list.o display/text_element_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from display/text_element_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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/functional.h:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from display/text_element.h:44, from display/text_element_list.h:40, from display/text_element_list.cc:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ depbase=`echo display/text_element_string.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/text_element_string.o -MD -MP -MF $depbase.Tpo -c -o display/text_element_string.o display/text_element_string.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from display/text_element_string.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/string_manip.h:44, from display/text_element_string.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ depbase=`echo display/text_element_value.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/text_element_value.o -MD -MP -MF $depbase.Tpo -c -o display/text_element_value.o display/text_element_value.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/text_element_value.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./globals.h: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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from display/text_element.h:44, from display/text_element_value.h:42, from display/text_element_value.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/priority_queue_default.h:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window.o -MD -MP -MF $depbase.Tpo -c -o display/window.o display/window.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window.h:44, from display/window.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from display/window.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_download_chunks_seen.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_download_chunks_seen.o -MD -MP -MF $depbase.Tpo -c -o display/window_download_chunks_seen.o display/window_download_chunks_seen.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from display/window_download_chunks_seen.cc:48: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window_download_chunks_seen.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from display/window_download_chunks_seen.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block.h:42, from display/window_download_chunks_seen.cc:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from ./core/download.h:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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' display/window_download_chunks_seen.cc: In member function 'virtual void display::WindowDownloadChunksSeen::redraw()': display/window_download_chunks_seen.cc:98:82: 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] 98 | std::sort(transferChunks.begin(), transferChunks.end(), rak::less2(std::mem_fun(&torrent::BlockList::index), std::mem_fun(&torrent::BlockList::index))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ display/window_download_chunks_seen.cc:98:124: 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] 98 | std::sort(transferChunks.begin(), transferChunks.end(), rak::less2(std::mem_fun(&torrent::BlockList::index), std::mem_fun(&torrent::BlockList::index))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ display/window_download_chunks_seen.cc:114:90: 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] 114 | if (std::find_if((*itrTransfer)->begin(), (*itrTransfer)->end(), std::mem_fun_ref(&torrent::Block::is_transfering)) != (*itrTransfer)->end()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_download_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_download_list.o -MD -MP -MF $depbase.Tpo -c -o display/window_download_list.o display/window_download_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from display/window_download_list.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window_download_list.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/algorithm.h:41: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from ./core/download.h:44: ../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 ./rpc/command.h:238, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from display/window_download_list.cc:43: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./core/view.h:57, from display/window_download_list.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_download_statusbar.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_download_statusbar.o -MD -MP -MF $depbase.Tpo -c -o display/window_download_statusbar.o display/window_download_statusbar.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window_download_statusbar.cc:47: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./globals.h: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 display/window.h:41, from display/window_download_statusbar.h:40, from display/window_download_statusbar.cc:49: ../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 /opt/tools/gcc13/include/c++/13.3.0/bits/refwrap.h:39, from /opt/tools/gcc13/include/c++/13.3.0/deque:67, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/rate.h:40, from display/window_download_statusbar.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./core/download.h:44, from display/window_download_statusbar.cc:51: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_download_transfer_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_download_transfer_list.o -MD -MP -MF $depbase.Tpo -c -o display/window_download_transfer_list.o display/window_download_transfer_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from display/window_download_transfer_list.cc:45: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block.h:42, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_list.h:43, from display/window_download_transfer_list.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from ./core/download.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from display/window_download_transfer_list.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_file_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_file_list.o -MD -MP -MF $depbase.Tpo -c -o display/window_file_list.o display/window_file_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from display/window_file_list.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from display/window_file_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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/locale:41, from display/window_file_list.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_http_queue.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_http_queue.o -MD -MP -MF $depbase.Tpo -c -o display/window_http_queue.o display/window_http_queue.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window.h:44, from display/window_http_queue.h:42, from display/window_http_queue.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./core/curl_get.h:45, from display/window_http_queue.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 display/window_http_queue.cc:45: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from display/window_http_queue.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ display/window_http_queue.cc: In member function 'void display::WindowHttpQueue::receive_erase(core::CurlGet*)': display/window_http_queue.cc:148:112: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = core::CurlGet*; _Tp = display::WindowHttpQueue::Node]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 148 | Container::iterator itr = std::find_if(m_container.begin(), m_container.end(), rak::equal(h, std::mem_fun_ref(&Node::get_http))); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_input.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_input.o -MD -MP -MF $depbase.Tpo -c -o display/window_input.o display/window_input.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window.h:44, from display/window_input.h:42, from display/window_input.cc:40: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from display/canvas.h:41, from display/window_input.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_log.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_log.o -MD -MP -MF $depbase.Tpo -c -o display/window_log.o display/window_log.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from display/window_log.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window.h:41, from display/window_log.h:42, from display/window_log.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/torrent.h:41, from display/window_log.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h:41, from display/window.h: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' 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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_log_complete.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_log_complete.o -MD -MP -MF $depbase.Tpo -c -o display/window_log_complete.o display/window_log_complete.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window.h:44, from display/window_log_complete.h:42, from display/window_log_complete.cc:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from display/canvas.h:41, from display/window_log_complete.cc:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_peer_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_peer_list.o -MD -MP -MF $depbase.Tpo -c -o display/window_peer_list.o display/window_peer_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from display/window_peer_list.cc:47: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window_peer_list.cc:40: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ In file included from display/window_peer_list.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from ./core/download.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from display/window_peer_list.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 display/window_peer_list.cc:48: ../rak/algorithm.h: At global scope: ../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> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_statusbar.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_statusbar.o -MD -MP -MF $depbase.Tpo -c -o display/window_statusbar.o display/window_statusbar.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window.h:44, from display/window_statusbar.h:42, from display/window_statusbar.cc:45: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./control.h:43, from display/window_statusbar.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 display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/refwrap.h:39, from /opt/tools/gcc13/include/c++/13.3.0/deque:67, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/rate.h:40, from display/window_statusbar.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_string_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_string_list.o -MD -MP -MF $depbase.Tpo -c -o display/window_string_list.o display/window_string_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window.h:44, from display/window_string_list.h:43, from display/window_string_list.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from display/canvas.h:41, from display/window_string_list.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_text.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_text.o -MD -MP -MF $depbase.Tpo -c -o display/window_text.o display/window_text.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window.h:44, from display/window_text.h:43, from display/window_text.cc:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window_text.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/functional.h:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from display/text_element.h:44, from display/window_text.h:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_title.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_title.o -MD -MP -MF $depbase.Tpo -c -o display/window_title.o display/window_title.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from display/window.h:44, from display/window_title.h:41, from display/window_title.cc:40: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from display/canvas.h:41, from display/window_title.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo display/window_tracker_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT display/window_tracker_list.o -MD -MP -MF $depbase.Tpo -c -o display/window_tracker_list.o display/window_tracker_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from display/window_tracker_list.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from display/window_tracker_list.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/algorithm.h:41: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from ./core/download.h:44: ../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo input/bindings.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT input/bindings.o -MD -MP -MF $depbase.Tpo -c -o input/bindings.o input/bindings.cc &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo input/input_event.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT input/input_event.o -MD -MP -MF $depbase.Tpo -c -o input/input_event.o input/input_event.cc &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo input/manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT input/manager.o -MD -MP -MF $depbase.Tpo -c -o input/manager.o input/manager.cc &&\ mv -f $depbase.Tpo $depbase.Po input/manager.cc: In member function 'void input::Manager::pressed(int)': input/manager.cc:67:61: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = bool; _Tp = input::Bindings; _Arg = int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 67 | std::find_if(rbegin(), rend(), std::bind2nd(std::mem_fun(&Bindings::pressed), key)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/functional:49, from input/manager.cc:40: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ input/manager.cc:67:48: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 67 | std::find_if(rbegin(), rend(), std::bind2nd(std::mem_fun(&Bindings::pressed), key)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo input/path_input.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT input/path_input.o -MD -MP -MF $depbase.Tpo -c -o input/path_input.o input/path_input.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from input/path_input.cc:40: ../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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from input/path_input.cc:39: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from input/path_input.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ input/path_input.cc: In member function 'input::PathInput::range_type input::PathInput::find_incomplete(utils::Directory&, const std::string&)': input/path_input.cc:157:72: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const utils::directory_entry&; _Arg2 = const __cxx11::basic_string&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 157 | r.first = std::find_if(d.begin(), d.end(), rak::bind2nd(std::ptr_fun(&find_complete_not_compare), f)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ input/path_input.cc:158:72: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const utils::directory_entry&; _Arg2 = const __cxx11::basic_string&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 158 | r.second = std::find_if(r.first, d.end(), rak::bind2nd(std::ptr_fun(&find_complete_compare), f)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ depbase=`echo input/text_input.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT input/text_input.o -MD -MP -MF $depbase.Tpo -c -o input/text_input.o input/text_input.cc &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo rpc/command.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/command.o -MD -MP -MF $depbase.Tpo -c -o rpc/command.o rpc/command.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from rpc/command.cc:39: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from ./core/download.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/refwrap.h:39, from /opt/tools/gcc13/include/c++/13.3.0/vector:68, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/download.h:41, from ./core/download.h:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 rpc/command.h:238, from rpc/command.cc:42: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/parse.h:42, from rpc/command.cc:40: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo rpc/command_map.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/command_map.o -MD -MP -MF $depbase.Tpo -c -o rpc/command_map.o rpc/command_map.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from rpc/command_map.cc:45: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command_map.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 /opt/tools/gcc13/include/c++/13.3.0/bits/refwrap.h:39, from /opt/tools/gcc13/include/c++/13.3.0/vector:68, from rpc/command_map.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 rpc/command.h:238, from rpc/command_map.cc:49: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/command_map.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/command_map.cc:50: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In copy constructor 'rpc::command_map_data_type::command_map_data_type(const rpc::command_map_data_type&)', inlined from 'constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char*&; _U2 = rpc::command_map_data_type; typename std::enable_if<(std::_PCC::_MoveConstructiblePair<_U1, _U2>() && std::_PCC::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type = true; _T1 = const char* const; _T2 = rpc::command_map_data_type]' at /opt/tools/gcc13/include/c++/13.3.0/bits/stl_pair.h:688:35, inlined from 'std::map::iterator rpc::CommandMap::insert(std::map::key_type, int, const char*, const char*)' at rpc/command_map.cc:87:33: rpc/command_map.h:64:47: warning: '.rpc::command_map_data_type::m_anySlot' may be used uninitialized [-Wmaybe-uninitialized] 64 | m_variable(src.m_variable), m_anySlot(src.m_anySlot), | ~~~~^~~~~~~~~ rpc/command_map.cc: In member function 'std::map::iterator rpc::CommandMap::insert(std::map::key_type, int, const char*, const char*)': rpc/command_map.cc:87:87: note: '' declared here 87 | return base_type::insert(itr, value_type(key, command_map_data_type(flags, parm, doc))); | ^ In copy constructor 'rpc::command_map_data_type::command_map_data_type(const rpc::command_map_data_type&)', inlined from 'constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char*&; _U2 = rpc::command_map_data_type; typename std::enable_if<(std::_PCC::_MoveConstructiblePair<_U1, _U2>() && std::_PCC::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type = true; _T1 = const char* const; _T2 = rpc::command_map_data_type]' at /opt/tools/gcc13/include/c++/13.3.0/bits/stl_pair.h:688:35, inlined from 'void rpc::CommandMap::create_redirect(std::map::key_type, std::map::key_type, int)' at rpc/command_map.cc:145:36: rpc/command_map.h:64:47: warning: '.rpc::command_map_data_type::m_anySlot' may be used uninitialized [-Wmaybe-uninitialized] 64 | m_variable(src.m_variable), m_anySlot(src.m_anySlot), | ~~~~^~~~~~~~~ rpc/command_map.cc: In member function 'void rpc::CommandMap::create_redirect(std::map::key_type, std::map::key_type, int)': rpc/command_map.cc:147:100: note: '' declared here 147 | dest_itr->second.m_doc))); | ^ depbase=`echo rpc/command_scheduler.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/command_scheduler.o -MD -MP -MF $depbase.Tpo -c -o rpc/command_scheduler.o rpc/command_scheduler.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from rpc/command_scheduler_item.h:40, from rpc/command_scheduler.cc:47: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from rpc/command_scheduler.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/functional.h:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpc/command_scheduler.h:43, from rpc/command_scheduler.cc:46: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from rpc/command_scheduler.cc:48: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/command_scheduler_item.h:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpc/command_scheduler.cc: In member function 'std::vector::iterator rpc::CommandScheduler::find(const std::string&)': rpc/command_scheduler.cc:58:67: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = rpc::CommandSchedulerItem]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 58 | return std::find_if(begin(), end(), rak::equal(key, std::mem_fun(&CommandSchedulerItem::key))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo rpc/command_scheduler_item.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/command_scheduler_item.o -MD -MP -MF $depbase.Tpo -c -o rpc/command_scheduler_item.o rpc/command_scheduler_item.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from rpc/command_scheduler_item.h:40, from rpc/command_scheduler_item.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438, from /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from rpc/command_scheduler_item.cc:39: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo rpc/exec_file.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/exec_file.o -MD -MP -MF $depbase.Tpo -c -o rpc/exec_file.o rpc/exec_file.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from rpc/exec_file.cc:49: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./thread_base.h: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' 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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438, from /opt/tools/gcc13/include/c++/13.3.0/string:49, from rpc/exec_file.cc:40: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo rpc/object_storage.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/object_storage.o -MD -MP -MF $depbase.Tpo -c -o rpc/object_storage.o rpc/object_storage.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from rpc/object_storage.h:49, from rpc/object_storage.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 /opt/tools/gcc13/include/c++/13.3.0/bits/hashtable.h:37, from /opt/tools/gcc13/include/c++/13.3.0/bits/unordered_map.h:33, from /opt/tools/gcc13/include/c++/13.3.0/unordered_map:41, from rpc/object_storage.h:45: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/object_storage.h:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from rpc/object_storage.cc:43: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ depbase=`echo rpc/parse.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/parse.o -MD -MP -MF $depbase.Tpo -c -o rpc/parse.o rpc/parse.cc &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo rpc/parse_commands.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/parse_commands.o -MD -MP -MF $depbase.Tpo -c -o rpc/parse_commands.o rpc/parse_commands.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from rpc/parse_commands.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/fstream:40, from rpc/parse_commands.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from rpc/parse_commands.cc:47: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/parse.h:42, from rpc/parse_commands.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpc/parse_commands.cc:55:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 55 | struct command_map_is_space : std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ rpc/parse_commands.cc:61:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 61 | struct command_map_is_newline : std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In copy constructor 'torrent::Object::Object(const torrent::Object&)', inlined from 'constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = torrent::Object; _U2 = const char*&; typename std::enable_if<(std::_PCC::_MoveConstructiblePair<_U1, _U2>() && std::_PCC::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type = true; _T1 = torrent::Object; _T2 = const char*]' at /opt/tools/gcc13/include/c++/13.3.0/bits/stl_pair.h:688:4, inlined from 'constexpr std::pair::type>::__type, typename std::__strip_reference_wrapper::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = torrent::Object; _T2 = const char*&]' at /opt/tools/gcc13/include/c++/13.3.0/bits/stl_pair.h:927:72, inlined from 'rpc::parse_command_type rpc::parse_command(target_type, const char*, const char*)' at rpc/parse_commands.cc:137:51: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:356:32: warning: '.torrent::Object::.torrent::Object::::t_pod' may be used uninitialized [-Wmaybe-uninitialized] 356 | case TYPE_VALUE: t_pod = b.t_pod; break; | ~~~~~~^~~~~~~~~ rpc/parse_commands.cc: In function 'rpc::parse_command_type rpc::parse_command(target_type, const char*, const char*)': rpc/parse_commands.cc:137:43: note: '' declared here 137 | return std::make_pair(torrent::Object(), first); | ^ depbase=`echo rpc/parse_options.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/parse_options.o -MD -MP -MF $depbase.Tpo -c -o rpc/parse_options.o rpc/parse_options.cc &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo rpc/scgi.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/scgi.o -MD -MP -MF $depbase.Tpo -c -o rpc/scgi.o rpc/scgi.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from rpc/scgi.cc:50: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from rpc/scgi.cc:40: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ In file included from ./control.h:43, from rpc/scgi.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 rpc/scgi.h:41, from rpc/scgi.cc:51: ../rak/functional_fun.h: At global scope: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from ../rak/socket_address.h:53: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from rpc/scgi.cc:52: ../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpc/scgi.cc: In member function 'virtual void rpc::SCgi::event_read()': rpc/scgi.cc:145:79: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = rpc::SCgiTask]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 145 | SCgiTask* task = std::find_if(m_task, m_task + max_tasks, std::mem_fun_ref(&SCgiTask::is_available)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo rpc/scgi_task.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/scgi_task.o -MD -MP -MF $depbase.Tpo -c -o rpc/scgi_task.o rpc/scgi_task.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from rpc/scgi_task.cc:51: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./control.h:43, from rpc/scgi_task.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 rpc/scgi.h:41, from rpc/scgi_task.cc:52: ../rak/functional_fun.h: At global scope: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from rpc/scgi_task.cc:44: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo rpc/xmlrpc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT rpc/xmlrpc.o -MD -MP -MF $depbase.Tpo -c -o rpc/xmlrpc.o rpc/xmlrpc.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from rpc/xmlrpc.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/string_manip.h:44, from rpc/xmlrpc.cc:45: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/xmlrpc.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ depbase=`echo ui/download.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/download.o -MD -MP -MF $depbase.Tpo -c -o ui/download.o ui/download.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from ui/download.cc:50: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ui/download.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/functional.h:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ui/download.cc:47: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 ./rpc/command.h:238, from ./rpc/command_map.h:45, from ./display/text_element.h:44, from ./display/text_element_string.h:44, from ui/download.cc:56: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./core/manager.h:10, from ui/download.cc:51: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ui/download.cc: In destructor 'virtual ui::Download::~Download()': ui/download.cc:101:5: warning: 'throw' will always call 'terminate' [-Wterminate] 101 | throw torrent::internal_error("ui::Download::~Download() called on an active object."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ui/download.cc:101: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/download_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/download_list.o -MD -MP -MF $depbase.Tpo -c -o ui/download_list.o ui/download_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from ui/download_list.cc:47: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ui/download_list.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/sstream:40, from ui/download_list.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./core/download.h:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 ./rpc/command.h:238, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from ui/download_list.cc:60: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./core/manager.h:10, from ui/download_list.cc:49: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ui/download_list.cc: In destructor 'virtual ui::DownloadList::~DownloadList()': ui/download_list.cc:87:5: warning: 'throw' will always call 'terminate' [-Wterminate] 87 | throw std::logic_error("ui::DownloadList::~DownloadList() called on an active object"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ui/download_list.cc:87: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_base.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_base.o -MD -MP -MF $depbase.Tpo -c -o ui/element_base.o ui/element_base.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ui/element_base.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_base.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_chunks_seen.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_chunks_seen.o -MD -MP -MF $depbase.Tpo -c -o ui/element_chunks_seen.o ui/element_chunks_seen.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ./display/window_download_chunks_seen.h:42, from ui/element_chunks_seen.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_chunks_seen.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 ./core/download.h:44, from ui/element_chunks_seen.h:40, from ui/element_chunks_seen.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_download_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_download_list.o -MD -MP -MF $depbase.Tpo -c -o ui/element_download_list.o ui/element_download_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./core/download.h:47, from ui/element_download_list.cc:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from ./core/download.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_download_list.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 ./rpc/command.h:238, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from ui/element_download_list.cc:50: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ui/element_download_list.cc:40: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_file_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_file_list.o -MD -MP -MF $depbase.Tpo -c -o ui/element_file_list.o ui/element_file_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ./display/window_file_list.h:40, from ui/element_file_list.cc:47: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ui/element_file_list.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/algorithm.h:41: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from ui/element_file_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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./display/manager.h:41, from ui/element_file_list.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 ./rpc/command.h:238, from ./rpc/command_map.h:45, from ./display/text_element.h:44, from ./display/text_element_string.h:44, from ui/element_file_list.cc:46: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_log_complete.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_log_complete.o -MD -MP -MF $depbase.Tpo -c -o ui/element_log_complete.o ui/element_log_complete.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ui/element_log_complete.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./display/manager.h:41, from ui/element_log_complete.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' In file included from ./display/window.h:41, from ./display/window_log_complete.h:42, from ui/element_log_complete.cc:45: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_log_complete.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_menu.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_menu.o -MD -MP -MF $depbase.Tpo -c -o ui/element_menu.o ui/element_menu.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ./display/window_text.h:43, from ui/element_menu.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./display/text_element.h:44, from ./display/window_text.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_menu.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_peer_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_peer_list.o -MD -MP -MF $depbase.Tpo -c -o ui/element_peer_list.o ui/element_peer_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ./display/window_peer_list.h:43, from ui/element_peer_list.cc:49: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./display/manager.h:41, from ui/element_peer_list.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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./display/text_element.h:44, from ./display/text_element_string.h:44, from ui/element_peer_list.cc:47: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_peer_list.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ui/element_peer_list.cc: In constructor 'ui::ElementPeerList::ElementPeerList(core::Download*)': ui/element_peer_list.cc:65:77: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = __cxx11::list; _Arg = torrent::Peer* const&]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 65 | rak::bind1st(std::mem_fun(&PList::push_back), &m_list)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_string_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_string_list.o -MD -MP -MF $depbase.Tpo -c -o ui/element_string_list.o ui/element_string_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ./display/window_string_list.h:43, from ui/element_string_list.h:48, from ui/element_string_list.cc:45: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./control.h:43, from ui/element_string_list.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' In file included from ./display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_string_list.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_text.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_text.o -MD -MP -MF $depbase.Tpo -c -o ui/element_text.o ui/element_text.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ./display/window_text.h:43, from ui/element_text.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./display/text_element.h:44, from ./display/window_text.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_text.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rpc/command_map.h:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_tracker_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_tracker_list.o -MD -MP -MF $depbase.Tpo -c -o ui/element_tracker_list.o ui/element_tracker_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ./display/window_tracker_list.h:40, from ui/element_tracker_list.cc:44: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_tracker_list.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 ./core/download.h:44, from ui/element_tracker_list.h:40, from ui/element_tracker_list.cc:48: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/element_transfer_list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/element_transfer_list.o -MD -MP -MF $depbase.Tpo -c -o ui/element_transfer_list.o ui/element_transfer_list.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ./display/window_download_transfer_list.h:43, from ui/element_transfer_list.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./display/window_download_transfer_list.h:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from ./display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from ui/element_transfer_list.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./globals.h: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 ./core/download.h:44, from ui/element_transfer_list.h:40, from ui/element_transfer_list.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo ui/root.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT ui/root.o -MD -MP -MF $depbase.Tpo -c -o ui/root.o ui/root.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ./display/window.h:44, from ./display/window_http_queue.h:42, from ui/root.cc:50: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./core/curl_stack.h:43, from ./core/poll_manager.h:40, from ./core/manager.h:13, from ui/root.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 ./display/window.h: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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/fstream:40, from ui/root.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from ./rpc/command.h:45, from ./rpc/command_map.h:45, from ./rpc/parse_commands.h:43, from ui/root.cc:56: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./rpc/command.h:238: ./rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./core/manager.h:10: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ ./rpc/command_map.h: At global scope: ./rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ui/root.cc: In member function 'void ui::Root::load_input_history()': ui/root.cc:416:23: warning: comparison of integer expressions of different signedness: 'int' and 'const std::__cxx11::basic_string::size_type' {aka 'const long unsigned int'} [-Wsign-compare] 416 | if (delim_pos != std::string::npos) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo utils/directory.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT utils/directory.o -MD -MP -MF $depbase.Tpo -c -o utils/directory.o utils/directory.cc &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo utils/file_status_cache.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT utils/file_status_cache.o -MD -MP -MF $depbase.Tpo -c -o utils/file_status_cache.o utils/file_status_cache.cc &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo utils/lockfile.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT utils/lockfile.o -MD -MP -MF $depbase.Tpo -c -o utils/lockfile.o utils/lockfile.cc &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo utils/socket_fd.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT utils/socket_fd.o -MD -MP -MF $depbase.Tpo -c -o utils/socket_fd.o utils/socket_fd.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from utils/socket_fd.cc:49: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ depbase=`echo command_download.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_download.o -MD -MP -MF $depbase.Tpo -c -o command_download.o command_download.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from command_download.cc:63: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from command_download.cc:45: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ In file included from command_download.cc:47: ../rak/regex.h: At global scope: ../rak/regex.h:53:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 53 | class regex : public std::unary_function { | ^~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/functional:49, from command_download.cc:39: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from command_download.cc:54: ../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from command_download.cc:56: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 rpc/command.h:238, from command_helpers.h:40, from command_download.cc:70: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10, from command_download.cc:65: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ command_download.cc: In function 'torrent::Object d_list_push_back_unique(core::Download*, const torrent::Object&, const char*, const char*)': command_download.cc:597:45: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const torrent::Object&; _Arg2 = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 597 | rak::bind1st(std::ptr_fun(&torrent::object_equal), args)) == list.end()) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ command_download.cc: In function 'torrent::Object d_list_has(core::Download*, const torrent::Object&, const char*, const char*)': command_download.cc:609:58: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const torrent::Object&; _Arg2 = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 609 | rak::bind1st(std::ptr_fun(&torrent::object_equal), args)) != list.end()); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ command_download.cc: In function 'torrent::Object d_list_remove(core::Download*, const torrent::Object&, const char*, const char*)': command_download.cc:617:80: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const torrent::Object&; _Arg2 = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 617 | list.erase(std::remove_if(list.begin(), list.end(), rak::bind1st(std::ptr_fun(&torrent::object_equal), args)), list.end()); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_dynamic.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_dynamic.o -MD -MP -MF $depbase.Tpo -c -o command_dynamic.o command_dynamic.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from thread_base.h:42, from globals.h:43, from command_dynamic.cc:43: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from globals.h: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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from command_helpers.h:40, from command_dynamic.cc:45: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bitset:52, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/log.h:5, from command_dynamic.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/command.h:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_events.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_events.o -MD -MP -MF $depbase.Tpo -c -o command_events.o command_events.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from command_events.cc:50: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from core/download.h: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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from command_events.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 rpc/command_scheduler.h:43, from command_events.cc:54: ../rak/functional_fun.h: At global scope: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpc/command.h:238, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from command_events.cc:56: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10, from command_events.cc:52: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ command_events.cc: In function 'torrent::Object apply_close_low_diskspace(int64_t)': command_events.cc:225:68: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = core::Download]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 225 | while ((itr = std::find_if(itr, downloadList->end(), std::mem_fun(&core::Download::is_downloading))) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_file.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_file.o -MD -MP -MF $depbase.Tpo -c -o command_file.o command_file.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from thread_base.h:42, from globals.h:43, from command_file.cc:47: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from command_file.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from ../rak/path.h:44, from command_file.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from core/curl_stack.h:43, from core/poll_manager.h:40, from core/manager.h:13, from command_file.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 rpc/command.h:238, from command_helpers.h:40, from command_file.cc:49: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_ip.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_ip.o -MD -MP -MF $depbase.Tpo -c -o command_ip.o command_ip.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from thread_base.h:42, from globals.h:43, from command_ip.cc:45: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from globals.h: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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from command_helpers.h:40, from command_ip.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bits/locale_classes.h:40, from /opt/tools/gcc13/include/c++/13.3.0/bits/ios_base.h:41, from /opt/tools/gcc13/include/c++/13.3.0/ios:44, from /opt/tools/gcc13/include/c++/13.3.0/istream:40, from /opt/tools/gcc13/include/c++/13.3.0/fstream:40, from command_ip.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/command.h:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_helpers.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_helpers.o -MD -MP -MF $depbase.Tpo -c -o command_helpers.o command_helpers.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from thread_base.h:42, from globals.h:43, from command_helpers.cc:41: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from globals.h: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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from command_helpers.h:40, from command_helpers.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 { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/exceptions.h:47, from command_helpers.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/command.h:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_groups.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_groups.o -MD -MP -MF $depbase.Tpo -c -o command_groups.o command_groups.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ui/download_list.h:41, from ui/root.h:42, from command_groups.cc:9: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ./globals.h: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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from command_groups.cc:11: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/download/resource_manager.h:40, from command_groups.cc:3: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rpc/parse.h:42, from command_groups.cc:10: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ command_groups.cc: In function 'int64_t cg_get_index(const torrent::Object&)': command_groups.cc:125:111: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::choke_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 125 | rak::equal(arg.as_string(), std::mem_fun(&torrent::choke_group::name))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ command_groups.cc: In function 'torrent::Object apply_cg_insert(const std::string&)': command_groups.cc:183:48: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::choke_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 183 | rak::equal(arg, std::mem_fun(&torrent::choke_group::name))) != cg_list_hack.end()) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ command_groups.cc: In function 'torrent::Object apply_cg_index_of(const std::string&)': command_groups.cc:198:88: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::choke_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 198 | std::find_if(cg_list_hack.begin(), cg_list_hack.end(), rak::equal(arg, std::mem_fun(&torrent::choke_group::name))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_local.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_local.o -MD -MP -MF $depbase.Tpo -c -o command_local.o command_local.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from command_local.cc:53: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from core/download.h: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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from command_local.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 rpc/command.h:238, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from command_local.cc:58: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10, from command_local.cc:56: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpc/scgi.h:41, from command_local.cc:59: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_logging.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_logging.o -MD -MP -MF $depbase.Tpo -c -o command_logging.o command_logging.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from command_logging.cc:11: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from core/download.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/refwrap.h:39, from /opt/tools/gcc13/include/c++/13.3.0/vector:68, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/chunk_utils.h:40, from command_logging.cc:6: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 rpc/command.h:238, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from command_logging.cc:15: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from command_logging.cc:7: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_network.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_network.o -MD -MP -MF $depbase.Tpo -c -o command_network.o command_network.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from command_network.cc:54: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ../rak/address_info.h:47, from command_network.cc:42: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from core/download.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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from command_network.cc:39: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 rpc/scgi.h:41, from command_network.cc:56: ../rak/functional_fun.h: At global scope: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpc/command.h:238, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from command_network.cc:59: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10, from command_network.cc:55: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ command_network.cc: In function 'torrent::Object apply_scgi(const std::string&, int)': command_network.cc:152:30: warning: 'new' of type 'rpc::SCgi' with extended alignment 128 [-Waligned-new=] 152 | rpc::SCgi* scgi = new rpc::SCgi; | ^~~~ command_network.cc:152:30: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter command_network.cc:152:30: 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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_peer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_peer.o -MD -MP -MF $depbase.Tpo -c -o command_peer.o command_peer.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from thread_base.h:42, from globals.h:43, from command_peer.cc:52: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from command_peer.cc:41: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ In file included from core/curl_stack.h:43, from core/poll_manager.h:40, from core/manager.h:13, from command_peer.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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from command_helpers.h:40, from command_peer.cc:54: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from ../rak/path.h:44, from command_peer.cc:40: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_throttle.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_throttle.o -MD -MP -MF $depbase.Tpo -c -o command_throttle.o command_throttle.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from ui/download_list.h:41, from ui/root.h:42, from command_throttle.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ../rak/address_info.h:47, from command_throttle.cc:40: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ In file included from core/curl_stack.h:43, from core/poll_manager.h:40, from core/manager.h:13, from command_throttle.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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from command_throttle.cc:48: ../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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from ../rak/socket_address.h:53: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_tracker.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_tracker.o -MD -MP -MF $depbase.Tpo -c -o command_tracker.o command_tracker.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from command_tracker.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from ../rak/address_info.h:47, from command_tracker.cc:40: ../rak/socket_address.h: In member function 'void rak::socket_address::copy_sockaddr(const sockaddr*)': ../rak/socket_address.h:396:14: warning: 'void* std::memcpy(void*, const void*, size_t)' copying an object of type 'class rak::socket_address' with 'private' member 'rak::socket_address::' from an array of 'const struct sockaddr'; use assignment or copy-initialization instead [-Wclass-memaccess] 396 | std::memcpy(this, src, socket_address::cast_from(src)->length()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/socket_address.h:66:7: note: 'class rak::socket_address' declared here 66 | class socket_address { | ^~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from core/download.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/stdexcept:39, from ../rak/socket_address.h:53: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./globals.h: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 rpc/command.h:238, from command_helpers.h:40, from command_tracker.cc:51: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10, from command_tracker.cc:47: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ command_tracker.cc: In function 'torrent::Object apply_enable_trackers(int64_t)': command_tracker.cc:103:37: 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] 103 | arg ? std::mem_fun(&torrent::Tracker::enable) : std::mem_fun(&torrent::Tracker::disable)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ command_tracker.cc:103:79: 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] 103 | arg ? std::mem_fun(&torrent::Tracker::enable) : std::mem_fun(&torrent::Tracker::disable)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_scheduler.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_scheduler.o -MD -MP -MF $depbase.Tpo -c -o command_scheduler.o command_scheduler.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/download.h:47, from command_scheduler.cc:42: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from core/curl_stack.h:43, from core/poll_manager.h:40, from core/manager.h:13, from command_scheduler.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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from core/download.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 /opt/tools/gcc13/include/c++/13.3.0/bits/unique_ptr.h:37, from /opt/tools/gcc13/include/c++/13.3.0/memory:78, from core/manager.h:5: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238, from command_helpers.h:40, from command_scheduler.cc:49: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo command_ui.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT command_ui.o -MD -MP -MF $depbase.Tpo -c -o command_ui.o command_ui.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/view.h:59, from core/view_manager.h:43, from command_ui.cc:50: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from command_ui.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 /opt/tools/gcc13/include/c++/13.3.0/string:49, from /opt/tools/gcc13/include/c++/13.3.0/bitset:52, from /opt/tools/gcc13/include/c++/13.3.0/regex:40, from command_ui.cc:42: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from command_ui.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from command_ui.cc:46: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from core/curl_stack.h:43, from core/poll_manager.h:40, from core/manager.h:13, from command_ui.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 /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from command_helpers.h:40, from command_ui.cc:57: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo control.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT control.o -MD -MP -MF $depbase.Tpo -c -o control.o control.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./thread_base.h:42, from ./globals.h:43, from core/view.h:59, from core/view_manager.h:43, from control.cc:46: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from core/curl_stack.h:43, from core/poll_manager.h:40, from core/manager.h:13, from control.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' In file included from display/window.h:41, from control.cc:51: ../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 /opt/tools/gcc13/include/c++/13.3.0/functional:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/connection_manager.h:42, from control.cc:41: /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpc/command_scheduler.h:43, from control.cc:55: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from control.cc:56: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo globals.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT globals.o -MD -MP -MF $depbase.Tpo -c -o globals.o globals.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from thread_base.h:42, from globals.h:43, from globals.cc:39: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from globals.h: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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438, from /opt/tools/gcc13/include/c++/13.3.0/functional:49, from ../rak/priority_queue_default.h:40: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo option_parser.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT option_parser.o -MD -MP -MF $depbase.Tpo -c -o option_parser.o option_parser.cc &&\ mv -f $depbase.Tpo $depbase.Po option_parser.cc: In static member function 'static bool OptionParser::has_flag(char, int, char**)': option_parser.cc:91:77: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const char*; _Arg2 = const char*; _Result = int]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 91 | return std::find_if(argv, argv + argc, std::not1(std::bind1st(std::ptr_fun(&std::strcmp), options))) != argv + argc; | ~~~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/functional:49, from option_parser.cc:42: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ option_parser.cc:91:64: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = pointer_to_binary_function; _Tp = char [3]]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 91 | return std::find_if(argv, argv + argc, std::not1(std::bind1st(std::ptr_fun(&std::strcmp), options))) != argv + argc; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:136:5: note: declared here 136 | bind1st(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo signal_handler.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT signal_handler.o -MD -MP -MF $depbase.Tpo -c -o signal_handler.o signal_handler.cc &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo thread_base.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT thread_base.o -MD -MP -MF $depbase.Tpo -c -o thread_base.o thread_base.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from thread_base.h:42, from thread_base.cc:39: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from thread_base.h: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' thread_base.cc: In constructor 'ThreadBase::ThreadBase()': thread_base.cc:114:23: warning: 'new' of type 'thread_queue_hack' with extended alignment 128 [-Waligned-new=] 114 | m_threadQueue = new thread_queue_hack; | ^~~~~~~~~~~~~~~~~ thread_base.cc:114:23: note: uses 'void* operator new(size_t)', which does not have an alignment parameter thread_base.cc:114:23: 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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438, from /opt/tools/gcc13/include/c++/13.3.0/functional:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ depbase=`echo thread_worker.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -MT thread_worker.o -MD -MP -MF $depbase.Tpo -c -o thread_worker.o thread_worker.cc &&\ mv -f $depbase.Tpo $depbase.Po In file included from thread_base.h:42, from thread_worker.h:40, from thread_worker.cc:39: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 5 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 6 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 8 | #import | ^~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 9 | #import | ^~~~~~ In file included from thread_base.h: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' In file included from rpc/scgi.h:41, from thread_worker.cc:50: ../rak/functional_fun.h: At global scope: ../rak/functional_fun.h:69:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 69 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/functional:49, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/thread_base.h:4: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../rak/functional_fun.h:77:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 77 | class function_base2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/utils/ranges.h:43, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/download_data.h:9, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h:46, from /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list_iterator.h:42, from rpc/command.h:45, from rpc/command_map.h:45, from rpc/parse_commands.h:43, from thread_worker.cc:52: ../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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 { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/data/file_list.h: In function 'std::vector::iterator torrent::file_list_contains_position(FileList*, uint64_t)': /home/pbulk/build/net/rtorrent/work/.buildlink/include/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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ /home/pbulk/build/net/rtorrent/work/.buildlink/include/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 /opt/tools/gcc13/include/c++/13.3.0/bits/stl_function.h:1438: /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:238: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* std::memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/manager.h:10, from thread_worker.cc:49: /home/pbulk/build/net/rtorrent/work/.buildlink/include/torrent/object.h:50:25: note: 'class torrent::Object' declared here 50 | class LIBTORRENT_EXPORT Object { | ^~~~~~ rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ rm -f libsub_root.a ar cru libsub_root.a core/curl_get.o core/curl_socket.o core/curl_stack.o core/dht_manager.o core/download.o core/download_factory.o core/download_list.o core/download_store.o core/http_queue.o core/manager.o core/poll_manager.o core/view.o core/view_manager.o display/canvas.o display/frame.o display/manager.o display/utils.o display/text_element_list.o display/text_element_string.o display/text_element_value.o display/window.o display/window_download_chunks_seen.o display/window_download_list.o display/window_download_statusbar.o display/window_download_transfer_list.o display/window_file_list.o display/window_http_queue.o display/window_input.o display/window_log.o display/window_log_complete.o display/window_peer_list.o display/window_statusbar.o display/window_string_list.o display/window_text.o display/window_title.o display/window_tracker_list.o input/bindings.o input/input_event.o input/manager.o input/path_input.o input/text_input.o rpc/command.o rpc/command_map.o rpc/command_scheduler.o rpc/command_scheduler_item.o rpc/exec_file.o rpc/object_storage.o rpc/parse.o rpc/parse_commands.o rpc/parse_options.o rpc/scgi.o rpc/scgi_task.o rpc/xmlrpc.o ui/download.o ui/download_list.o ui/element_base.o ui/element_chunks_seen.o ui/element_download_list.o ui/element_file_list.o ui/element_log_complete.o ui/element_menu.o ui/element_peer_list.o ui/element_string_list.o ui/element_text.o ui/element_tracker_list.o ui/element_transfer_list.o ui/root.o utils/directory.o utils/file_status_cache.o utils/lockfile.o utils/socket_fd.o command_download.o command_dynamic.o command_events.o command_file.o command_ip.o command_helpers.o command_groups.o command_local.o command_logging.o command_network.o command_peer.o command_throttle.o command_tracker.o command_scheduler.o command_ui.o control.o globals.o option_parser.o signal_handler.o thread_base.o thread_worker.o ranlib libsub_root.a g++ -std=c++14 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -g -DDEBUG -Wall -D_POSIX_PTHREAD_SEMANTICS -pthread -I/opt/pkg/include -I/opt/pkg/include -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/opt/pkg/include/ncurses -I/opt/pkg/include -pthread -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -liconv -lintl -o rtorrent main.o libsub_root.a -lpthread -lrt -lpthread -lrt -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lncurses -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -lcurl -L/opt/pkg/lib -ltorrent Undefined first referenced symbol in file recv libsub_root.a(scgi_task.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) send libsub_root.a(scgi_task.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) __xnet_connect libsub_root.a(socket_fd.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) __xnet_socket libsub_root.a(socket_fd.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) __xnet_getsockopt libsub_root.a(socket_fd.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) getsockname libsub_root.a(socket_fd.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) accept libsub_root.a(socket_fd.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) listen libsub_root.a(socket_fd.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) setsockopt libsub_root.a(socket_fd.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) __xnet_getaddrinfo libsub_root.a(manager.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) in6addr_any libsub_root.a(manager.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) freeaddrinfo libsub_root.a(manager.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) __xnet_bind libsub_root.a(socket_fd.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) gai_strerror libsub_root.a(manager.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) ld: fatal: symbol referencing errors. No output written to rtorrent collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:886: rtorrent] Error 1 gmake[2]: Leaving directory '/home/pbulk/build/net/rtorrent/work/rtorrent-0.10.0/src' gmake[1]: *** [Makefile:423: all-recursive] Error 1 gmake[1]: Leaving directory '/home/pbulk/build/net/rtorrent/work/rtorrent-0.10.0' gmake: *** [Makefile:364: all] Error 2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/rtorrent *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/rtorrent