+ 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/libtorrent-0.13.8nb1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libtorrent-0.13.8nb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for libtorrent-0.13.8nb1 /opt/pkg/bin/gmake all-recursive gmake[1]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8' Making all in src gmake[2]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src' Making all in torrent gmake[3]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent' Making all in data gmake[4]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/data' /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c -o block.lo block.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT block.lo -MD -MP -MF .deps/block.Tpo -c block.cc -fPIC -DPIC -o .libs/block.o In file included from block.cc:41: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from block.cc:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../protocol/peer_chunks.h:41, from ./../../protocol/peer_connection_base.h:48, from block.cc:44: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_algobase.h:64, from /opt/tools/gcc12/include/c++/12.2.0/algorithm:60, from block.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} declared here 185 | struct pair | ^~~~ In file included from ./../../protocol/request_list.h:42, from ./../../protocol/peer_connection_base.h:50: ./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': ./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' ./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from ./../../globals.h:41, from ./../../protocol/request_list.h:46: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' block.cc: In destructor 'torrent::Block::~Block()': block.cc:56:5: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw internal_error("Block dtor with 'm_state != STATE_INCOMPLETE && m_state != STATE_COMPLETED'"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block.cc:56:5: note: in C++11 destructors default to 'noexcept' block.cc:60:7: warning: 'throw' will always call 'terminate' [-Wterminate] 60 | throw internal_error("Block dtor with 'm_state == STATE_COMPLETED && m_leader == NULL'"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block.cc:60:7: note: in C++11 destructors default to 'noexcept' block.cc:75:5: warning: 'throw' will always call 'terminate' [-Wterminate] 75 | throw internal_error("Block::clear() m_stalled != 0."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block.cc:75:5: note: in C++11 destructors default to 'noexcept' libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT block.lo -MD -MP -MF .deps/block.Tpo -c block.cc -o block.o >/dev/null 2>&1 mv -f .deps/block.Tpo .deps/block.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT block_list.lo -MD -MP -MF .deps/block_list.Tpo -c -o block_list.lo block_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT block_list.lo -MD -MP -MF .deps/block_list.Tpo -c block_list.cc -fPIC -DPIC -o .libs/block_list.o In file included from block_list.cc:42: block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' block_list.cc: In member function 'void torrent::BlockList::do_all_failed()': block_list.cc:87:49: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 87 | std::for_each(begin(), end(), std::mem_fun_ref(&Block::failed_leader)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from block_list.cc:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ block_list.cc:88:49: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 88 | std::for_each(begin(), end(), std::mem_fun_ref(&Block::retry_transfer)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT block_list.lo -MD -MP -MF .deps/block_list.Tpo -c block_list.cc -o block_list.o >/dev/null 2>&1 mv -f .deps/block_list.Tpo .deps/block_list.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT chunk_utils.lo -MD -MP -MF .deps/chunk_utils.Tpo -c -o chunk_utils.lo chunk_utils.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk_utils.lo -MD -MP -MF .deps/chunk_utils.Tpo -c chunk_utils.cc -fPIC -DPIC -o .libs/chunk_utils.o In file included from ./../../manager.h:42, from chunk_utils.cc:43: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/download_main.h:41, from ./../../download/download_wrapper.h:41, from chunk_utils.cc:46: ../../../rak/functional.h: At global scope: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/refwrap.h:39, from /opt/tools/gcc12/include/c++/12.2.0/vector:66, from chunk_utils.h:40, from chunk_utils.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../download/available_list.h:45, from ./../../download/download_main.h:48: ./../../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../download/download_main.h:52: ./../../torrent/data/file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from chunk_utils.cc:49: ./../../data/chunk.h: In member function 'std::vector<torrent::ChunkPart>::iterator torrent::Chunk::find_address(void*)': ./../../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ ./../../data/chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t<bool, torrent::ChunkPart, void*>; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk_utils.lo -MD -MP -MF .deps/chunk_utils.Tpo -c chunk_utils.cc -o chunk_utils.o >/dev/null 2>&1 mv -f .deps/chunk_utils.Tpo .deps/chunk_utils.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT download_data.lo -MD -MP -MF .deps/download_data.Tpo -c -o download_data.lo download_data.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT download_data.lo -MD -MP -MF .deps/download_data.Tpo -c download_data.cc -fPIC -DPIC -o .libs/download_data.o In file included from ./../../torrent/utils/ranges.h:44, from download_data.h:45, from download_data.cc:41: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ./../../torrent/exceptions.h:47, from download_data.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT download_data.lo -MD -MP -MF .deps/download_data.Tpo -c download_data.cc -o download_data.o >/dev/null 2>&1 mv -f .deps/download_data.Tpo .deps/download_data.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT file.lo -MD -MP -MF .deps/file.Tpo -c -o file.lo file.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.cc -fPIC -DPIC -o .libs/file.o In file included from ./../../globals.h:41, from file.cc:48: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' file.cc: In destructor 'torrent::File::~File()': file.cc:80:5: warning: 'throw' will always call 'terminate' [-Wterminate] 80 | throw internal_error("File::~File() called on an open file."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.cc:80:5: note: in C++11 destructors default to 'noexcept' In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ../../../rak/file_stat.h:40, from file.cc:40: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.cc -o file.o >/dev/null 2>&1 mv -f .deps/file.Tpo .deps/file.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT file_list.lo -MD -MP -MF .deps/file_list.Tpo -c -o file_list.lo file_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file_list.lo -MD -MP -MF .deps/file_list.Tpo -c file_list.cc -fPIC -DPIC -o .libs/file_list.o In file included from file_list.cc:50: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from file_list.cc:43: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from file_list.cc:52: ./../../data/chunk.h: In member function 'std::vector<torrent::ChunkPart>::iterator torrent::Chunk::find_address(void*)': ./../../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ ./../../data/chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t<bool, torrent::ChunkPart, void*>; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from file_list.cc:61: file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../../manager.h:42, from file_list.cc:63: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' file_list.cc: In member function 'torrent::FileList::iterator_range torrent::FileList::split(std::vector<torrent::File*>::iterator, split_type*, split_type*)': file_list.cc:240:30: warning: 'new' of type 'torrent::File' with extended alignment 128 [-Waligned-new=] 240 | File* newFile = new File(); | ^ file_list.cc:240:30: note: uses 'void* operator new(size_t)', which does not have an alignment parameter file_list.cc:240:30: note: use '-faligned-new' to enable C++17 over-aligned new support file_list.cc: In member function 'std::vector<torrent::File*>::iterator torrent::FileList::merge(std::vector<torrent::File*>::iterator, std::vector<torrent::File*>::iterator, const torrent::Path&)': file_list.cc:263:23: warning: 'new' of type 'torrent::File' with extended alignment 128 [-Waligned-new=] 263 | File* newFile = new File; | ^~~~ file_list.cc:263:23: note: uses 'void* operator new(size_t)', which does not have an alignment parameter file_list.cc:263:23: note: use '-faligned-new' to enable C++17 over-aligned new support file_list.cc: In member function 'void torrent::FileList::initialize(uint64_t, uint32_t)': file_list.cc:386:28: warning: 'new' of type 'torrent::File' with extended alignment 128 [-Waligned-new=] 386 | File* newFile = new File(); | ^ file_list.cc:386:28: note: uses 'void* operator new(size_t)', which does not have an alignment parameter file_list.cc:386:28: note: use '-faligned-new' to enable C++17 over-aligned new support file_list.cc: In member function 'torrent::Chunk* torrent::FileList::create_chunk(uint64_t, uint32_t, int)': file_list.cc:607:8: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 607 | std::auto_ptr<Chunk> chunk(new Chunk); | ^~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/memory:76, from file_list.cc:45: /opt/tools/gcc12/include/c++/12.2.0/bits/unique_ptr.h:64:28: note: declared here 64 | template<typename> class auto_ptr; | ^~~~~~~~ file_list.cc:607:34: warning: 'new' of type 'torrent::Chunk' with extended alignment 128 [-Waligned-new=] 607 | std::auto_ptr<Chunk> chunk(new Chunk); | ^~~~~ file_list.cc:607:34: note: uses 'void* operator new(size_t)', which does not have an alignment parameter file_list.cc:607:34: note: use '-faligned-new' to enable C++17 over-aligned new support file_list.cc:609:77: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 609 | for (iterator itr = std::find_if(begin(), end(), std::bind2nd(std::mem_fun(&File::is_valid_position), offset)); length != 0; ++itr) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ file_list.cc:609:64: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _Tp = long unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 609 | for (iterator itr = std::find_if(begin(), end(), std::bind2nd(std::mem_fun(&File::is_valid_position), offset)); length != 0; ++itr) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ file_list.cc: In member function 'std::vector<torrent::File*>::iterator torrent::FileList::inc_completed(std::vector<torrent::File*>::iterator, uint32_t)': file_list.cc:679:81: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::File]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 679 | firstItr = std::find_if(firstItr, end(), rak::less(index, std::mem_fun(&File::range_second))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ file_list.cc:680:85: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::File]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 680 | iterator lastItr = std::find_if(firstItr, end(), rak::less(index + 1, std::mem_fun(&File::range_second))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ file_list.cc:688:29: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::File]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 688 | std::mem_fun(&File::inc_completed_protected)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file_list.lo -MD -MP -MF .deps/file_list.Tpo -c file_list.cc -o file_list.o >/dev/null 2>&1 mv -f .deps/file_list.Tpo .deps/file_list.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT file_list_iterator.lo -MD -MP -MF .deps/file_list_iterator.Tpo -c -o file_list_iterator.lo file_list_iterator.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file_list_iterator.lo -MD -MP -MF .deps/file_list_iterator.Tpo -c file_list_iterator.cc -fPIC -DPIC -o .libs/file_list_iterator.o In file included from ./../../torrent/utils/ranges.h:44, from ./../../torrent/data/download_data.h:45, from ./../../torrent/data/file_list.h:46, from file_list_iterator.h:42, from file_list_iterator.cc:42: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ./../../torrent/exceptions.h:47, from file_list_iterator.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ./../../torrent/data/file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file_list_iterator.lo -MD -MP -MF .deps/file_list_iterator.Tpo -c file_list_iterator.cc -o file_list_iterator.o >/dev/null 2>&1 mv -f .deps/file_list_iterator.Tpo .deps/file_list_iterator.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT file_manager.lo -MD -MP -MF .deps/file_manager.Tpo -c -o file_manager.lo file_manager.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file_manager.lo -MD -MP -MF .deps/file_manager.Tpo -c file_manager.cc -fPIC -DPIC -o .libs/file_manager.o In file included from ./../../manager.h:42, from file_manager.cc:46: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' file_manager.cc: In destructor 'torrent::FileManager::~FileManager()': file_manager.cc:58:5: warning: 'throw' will always call 'terminate' [-Wterminate] 58 | throw internal_error("FileManager::~FileManager() called but empty() != true."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file_manager.cc:58:5: note: in C++11 destructors default to 'noexcept' In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ./../../data/socket_file.h:40, from file_manager.cc:41: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file_manager.lo -MD -MP -MF .deps/file_manager.Tpo -c file_manager.cc -o file_manager.o >/dev/null 2>&1 mv -f .deps/file_manager.Tpo .deps/file_manager.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT file_utils.lo -MD -MP -MF .deps/file_utils.Tpo -c -o file_utils.lo file_utils.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file_utils.lo -MD -MP -MF .deps/file_utils.Tpo -c file_utils.cc -fPIC -DPIC -o .libs/file_utils.o In file included from ./../../torrent/utils/ranges.h:44, from ./../../torrent/data/download_data.h:45, from ./../../torrent/data/file_list.h:46, from file_utils.h:41, from file_utils.cc:43: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ./../exceptions.h:47, from file_utils.cc:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ./../../torrent/data/file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT file_utils.lo -MD -MP -MF .deps/file_utils.Tpo -c file_utils.cc -o file_utils.o >/dev/null 2>&1 mv -f .deps/file_utils.Tpo .deps/file_utils.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT transfer_list.lo -MD -MP -MF .deps/transfer_list.Tpo -c -o transfer_list.lo transfer_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT transfer_list.lo -MD -MP -MF .deps/transfer_list.Tpo -c transfer_list.cc -fPIC -DPIC -o .libs/transfer_list.o In file included from transfer_list.cc:42: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from transfer_list.cc:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from transfer_list.cc:45: ./../../data/chunk.h: In member function 'std::vector<torrent::ChunkPart>::iterator torrent::Chunk::find_address(void*)': ./../../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ ./../../data/chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t<bool, torrent::ChunkPart, void*>; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from transfer_list.cc:48: block_failed.h: In destructor 'torrent::BlockFailed::~BlockFailed()': block_failed.h:96:45: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = pair<char*, unsigned int>; _Result = void]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 96 | std::for_each(begin(), end(), std::ptr_fun(&BlockFailed::delete_entry)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ block_failed.h: In member function 'std::vector<std::pair<char*, unsigned int> >::iterator torrent::BlockFailed::max_element()': block_failed.h:101:55: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = pair<char*, unsigned int>; _Arg2 = pair<char*, unsigned int>; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 101 | return std::max_element(begin(), end(), std::ptr_fun(&BlockFailed::compare_entries)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ block_failed.h: In member function 'std::vector<std::pair<char*, unsigned int> >::reverse_iterator torrent::BlockFailed::reverse_max_element()': block_failed.h:106:57: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = pair<char*, unsigned int>; _Arg2 = pair<char*, unsigned int>; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 106 | return std::max_element(rbegin(), rend(), std::ptr_fun(&BlockFailed::compare_entries)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ In file included from transfer_list.cc:49: block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' transfer_list.cc: In destructor 'torrent::TransferList::~TransferList()': transfer_list.cc:66:5: warning: 'throw' will always call 'terminate' [-Wterminate] 66 | throw internal_error("TransferList::~TransferList() called on an non-empty object"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ transfer_list.cc:66:5: note: in C++11 destructors default to 'noexcept' transfer_list.cc: In member function 'std::vector<torrent::BlockList*>::iterator torrent::TransferList::find(uint32_t)': transfer_list.cc:71:69: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::BlockList]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 71 | return std::find_if(begin(), end(), rak::equal(index, std::mem_fun(&BlockList::index))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ transfer_list.cc: In member function 'std::vector<torrent::BlockList*>::const_iterator torrent::TransferList::find(uint32_t) const': transfer_list.cc:76:69: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::BlockList]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 76 | return std::find_if(begin(), end(), rak::equal(index, std::mem_fun(&BlockList::index))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ transfer_list.cc: In member function 'void torrent::TransferList::hash_succeeded(uint32_t, torrent::Chunk*)': transfer_list.cc:128:55: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 128 | std::mem_fun_ref(&Block::is_finished)) != (*blockListItr)->size()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ transfer_list.cc: In member function 'void torrent::TransferList::hash_failed(uint32_t, torrent::Chunk*)': transfer_list.cc:177:105: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 177 | if ((Block::size_type)std::count_if((*blockListItr)->begin(), (*blockListItr)->end(), std::mem_fun_ref(&Block::is_finished)) != (*blockListItr)->size()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT transfer_list.lo -MD -MP -MF .deps/transfer_list.Tpo -c transfer_list.cc -o transfer_list.o >/dev/null 2>&1 mv -f .deps/transfer_list.Tpo .deps/transfer_list.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=link g++ -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/lib -o libsub_torrentdata.la block.lo block_list.lo chunk_utils.lo download_data.lo file.lo file_list.lo file_list_iterator.lo file_manager.lo file_utils.lo transfer_list.lo -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib libtool: link: ar cr .libs/libsub_torrentdata.a .libs/block.o .libs/block_list.o .libs/chunk_utils.o .libs/download_data.o .libs/file.o .libs/file_list.o .libs/file_list_iterator.o .libs/file_manager.o .libs/file_utils.o .libs/transfer_list.o libtool: link: ranlib .libs/libsub_torrentdata.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentdata.la" && ln -s "../libsub_torrentdata.la" "libsub_torrentdata.la" ) gmake[4]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/data' Making all in download gmake[4]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/download' /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT choke_group.lo -MD -MP -MF .deps/choke_group.Tpo -c -o choke_group.lo choke_group.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT choke_group.lo -MD -MP -MF .deps/choke_group.Tpo -c choke_group.cc -fPIC -DPIC -o .libs/choke_group.o In file included from ./../../download/download_main.h:41, from choke_group.cc:49: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from choke_group.cc:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from ./../../download/download_main.h:43: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/available_list.h:45, from ./../../download/download_main.h:48: ./../../net/address_list.h: At global scope: ./../../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../download/download_main.h:52: ./../../torrent/data/file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT choke_group.lo -MD -MP -MF .deps/choke_group.Tpo -c choke_group.cc -o choke_group.o >/dev/null 2>&1 mv -f .deps/choke_group.Tpo .deps/choke_group.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT choke_queue.lo -MD -MP -MF .deps/choke_queue.Tpo -c -o choke_queue.lo choke_queue.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT choke_queue.lo -MD -MP -MF .deps/choke_queue.Tpo -c choke_queue.cc -fPIC -DPIC -o .libs/choke_queue.o In file included from choke_queue.cc:44: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from choke_queue.cc:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../protocol/peer_chunks.h:41, from ./../../protocol/peer_connection_base.h:48, from choke_queue.cc:46: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_algobase.h:64, from /opt/tools/gcc12/include/c++/12.2.0/algorithm:60, from choke_queue.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} declared here 185 | struct pair | ^~~~ In file included from ./../../protocol/request_list.h:42, from ./../../protocol/peer_connection_base.h:50: ./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': ./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' ./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from ./../../globals.h:41, from ./../../protocol/request_list.h:46: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' choke_queue.cc: In destructor 'torrent::choke_queue::~choke_queue()': choke_queue.cc:76:5: warning: 'throw' will always call 'terminate' [-Wterminate] 76 | throw internal_error("choke_queue::~choke_queue() called but m_currentlyUnchoked != 0."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choke_queue.cc:76:5: note: in C++11 destructors default to 'noexcept' choke_queue.cc:79:5: warning: 'throw' will always call 'terminate' [-Wterminate] 79 | throw internal_error("choke_queue::~choke_queue() called but m_currentlyQueued != 0."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choke_queue.cc:79:5: note: in C++11 destructors default to 'noexcept' libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT choke_queue.lo -MD -MP -MF .deps/choke_queue.Tpo -c choke_queue.cc -o choke_queue.o >/dev/null 2>&1 mv -f .deps/choke_queue.Tpo .deps/choke_queue.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT download_manager.lo -MD -MP -MF .deps/download_manager.Tpo -c -o download_manager.lo download_manager.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT download_manager.lo -MD -MP -MF .deps/download_manager.Tpo -c download_manager.cc -fPIC -DPIC -o .libs/download_manager.o In file included from download_manager.cc:39: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from ../../../rak/functional.h:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from ./../../download/download_main.h:43, from ./../../download/download_wrapper.h:41, from download_manager.cc:43: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/available_list.h:45, from ./../../download/download_main.h:48: ./../../net/address_list.h: At global scope: ./../../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../download/download_main.h:52: ./../../torrent/data/file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadManager::iterator torrent::DownloadManager::find(const std::string&)': download_manager.cc:78:70: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 78 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc:78:108: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::HashString&; _Tp = torrent::DownloadInfo]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 78 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadManager::iterator torrent::DownloadManager::find(const torrent::HashString&)': download_manager.cc:83:76: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 83 | return std::find_if(begin(), end(), rak::equal(hash, rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc:83:114: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::HashString&; _Tp = torrent::DownloadInfo]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 83 | return std::find_if(begin(), end(), rak::equal(hash, rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadManager::iterator torrent::DownloadManager::find(torrent::DownloadInfo*)': download_manager.cc:88:68: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 88 | return std::find_if(begin(), end(), rak::equal(info, std::mem_fun(&DownloadWrapper::info))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadManager::iterator torrent::DownloadManager::find_chunk_list(torrent::ChunkList*)': download_manager.cc:93:66: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::ChunkList*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 93 | return std::find_if(begin(), end(), rak::equal(cl, std::mem_fun(&DownloadWrapper::chunk_list))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadMain* torrent::DownloadManager::find_main(const char*)': download_manager.cc:99:78: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 99 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc:99:116: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::HashString&; _Tp = torrent::DownloadInfo]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 99 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ download_manager.cc: In member function 'torrent::DownloadMain* torrent::DownloadManager::find_main_obfuscated(const char*)': download_manager.cc:110:78: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = torrent::DownloadInfo*; _Tp = torrent::DownloadWrapper]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 110 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash_obfuscated)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ download_manager.cc:110:116: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const torrent::HashString&; _Tp = torrent::DownloadInfo]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 110 | rak::on(std::mem_fun(&DownloadWrapper::info), std::mem_fun(&DownloadInfo::hash_obfuscated)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT download_manager.lo -MD -MP -MF .deps/download_manager.Tpo -c download_manager.cc -o download_manager.o >/dev/null 2>&1 mv -f .deps/download_manager.Tpo .deps/download_manager.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT resource_manager.lo -MD -MP -MF .deps/resource_manager.Tpo -c -o resource_manager.lo resource_manager.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT resource_manager.lo -MD -MP -MF .deps/resource_manager.Tpo -c resource_manager.cc -fPIC -DPIC -o .libs/resource_manager.o In file included from resource_manager.cc:44: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from resource_manager.cc:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from ./../../download/download_main.h:43, from resource_manager.cc:49: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/available_list.h:45, from ./../../download/download_main.h:48: ./../../net/address_list.h: At global scope: ./../../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../download/download_main.h:52: ./../../torrent/data/file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../../protocol/peer_chunks.h:41, from ./../../protocol/peer_connection_base.h:48, from resource_manager.cc:50: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_algobase.h:64, from /opt/tools/gcc12/include/c++/12.2.0/algorithm:60, from resource_manager.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} declared here 185 | struct pair | ^~~~ In file included from ./../../protocol/request_list.h:42, from ./../../protocol/peer_connection_base.h:50: ./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': ./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' ./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' resource_manager.cc: In destructor 'torrent::ResourceManager::~ResourceManager()': resource_manager.cc:70:5: warning: 'throw' will always call 'terminate' [-Wterminate] 70 | throw internal_error("ResourceManager::~ResourceManager() called but m_currentlyUploadUnchoked != 0."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resource_manager.cc:70:5: note: in C++11 destructors default to 'noexcept' resource_manager.cc:73:5: warning: 'throw' will always call 'terminate' [-Wterminate] 73 | throw internal_error("ResourceManager::~ResourceManager() called but m_currentlyDownloadUnchoked != 0."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resource_manager.cc:73:5: note: in C++11 destructors default to 'noexcept' In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT resource_manager.lo -MD -MP -MF .deps/resource_manager.Tpo -c resource_manager.cc -o resource_manager.o >/dev/null 2>&1 mv -f .deps/resource_manager.Tpo .deps/resource_manager.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=link g++ -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/lib -o libsub_torrentdownload.la choke_group.lo choke_queue.lo download_manager.lo resource_manager.lo -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib libtool: link: ar cr .libs/libsub_torrentdownload.a .libs/choke_group.o .libs/choke_queue.o .libs/download_manager.o .libs/resource_manager.o libtool: link: ranlib .libs/libsub_torrentdownload.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentdownload.la" && ln -s "../libsub_torrentdownload.la" "libsub_torrentdownload.la" ) gmake[4]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/download' Making all in net gmake[4]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/net' /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT socket_address_key.lo -MD -MP -MF .deps/socket_address_key.Tpo -c -o socket_address_key.lo socket_address_key.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT socket_address_key.lo -MD -MP -MF .deps/socket_address_key.Tpo -c socket_address_key.cc -fPIC -DPIC -o .libs/socket_address_key.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT socket_address_key.lo -MD -MP -MF .deps/socket_address_key.Tpo -c socket_address_key.cc -o socket_address_key.o >/dev/null 2>&1 mv -f .deps/socket_address_key.Tpo .deps/socket_address_key.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=link g++ -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/lib -o libsub_torrentnet.la socket_address_key.lo -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib libtool: link: ar cr .libs/libsub_torrentnet.a .libs/socket_address_key.o libtool: link: ranlib .libs/libsub_torrentnet.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentnet.la" && ln -s "../libsub_torrentnet.la" "libsub_torrentnet.la" ) gmake[4]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/net' Making all in peer gmake[4]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/peer' /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT client_info.lo -MD -MP -MF .deps/client_info.Tpo -c -o client_info.lo client_info.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT client_info.lo -MD -MP -MF .deps/client_info.Tpo -c client_info.cc -fPIC -DPIC -o .libs/client_info.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT client_info.lo -MD -MP -MF .deps/client_info.Tpo -c client_info.cc -o client_info.o >/dev/null 2>&1 mv -f .deps/client_info.Tpo .deps/client_info.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT client_list.lo -MD -MP -MF .deps/client_list.Tpo -c -o client_list.lo client_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT client_list.lo -MD -MP -MF .deps/client_list.Tpo -c client_list.cc -fPIC -DPIC -o .libs/client_list.o client_list.cc: In member function 'std::vector<torrent::ClientInfo>::iterator torrent::ClientList::insert(torrent::ClientInfo::id_type, const char*, const char*, const char*)': client_list.cc:134:17: warning: 'char* std::strncpy(char*, const char*, size_t)' specified bound 2 equals destination size [-Wstringop-truncation] 134 | std::strncpy(clientInfo.mutable_key(), key, ClientInfo::max_key_size); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT client_list.lo -MD -MP -MF .deps/client_list.Tpo -c client_list.cc -o client_list.o >/dev/null 2>&1 mv -f .deps/client_list.Tpo .deps/client_list.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT connection_list.lo -MD -MP -MF .deps/connection_list.Tpo -c -o connection_list.lo connection_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT connection_list.lo -MD -MP -MF .deps/connection_list.Tpo -c connection_list.cc -fPIC -DPIC -o .libs/connection_list.o In file included from connection_list.cc:40: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from ../../../rak/functional.h:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from ./../../download/download_main.h:43, from connection_list.cc:43: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/available_list.h:45, from ./../../download/download_main.h:48: ./../../net/address_list.h: At global scope: ./../../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../download/download_main.h:52: ./../../torrent/data/file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../../protocol/peer_chunks.h:41, from ./../../protocol/peer_connection_base.h:48, from connection_list.cc:45: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_algobase.h:64, from /opt/tools/gcc12/include/c++/12.2.0/algorithm:60, from connection_list.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} declared here 185 | struct pair | ^~~~ In file included from ./../../protocol/request_list.h:42, from ./../../protocol/peer_connection_base.h:50: ./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': ./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' ./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT connection_list.lo -MD -MP -MF .deps/connection_list.Tpo -c connection_list.cc -o connection_list.o >/dev/null 2>&1 mv -f .deps/connection_list.Tpo .deps/connection_list.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT peer.lo -MD -MP -MF .deps/peer.Tpo -c -o peer.lo peer.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT peer.lo -MD -MP -MF .deps/peer.Tpo -c peer.cc -fPIC -DPIC -o .libs/peer.o In file included from ./../data/block.h:42, from peer.cc:39: ./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': ./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' ./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/download_main.h:41, from peer.cc:41: ../../../rak/functional.h: At global scope: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/refwrap.h:39, from /opt/tools/gcc12/include/c++/12.2.0/vector:66, from ./../data/block.h:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from ./../../download/download_main.h:43: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../../download/available_list.h:45, from ./../../download/download_main.h:48: ./../../net/address_list.h: At global scope: ./../../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../download/download_main.h:52: ./../../torrent/data/file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../../torrent/data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../../torrent/data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../../protocol/peer_chunks.h:41, from peer.cc:42: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_algobase.h:64, from /opt/tools/gcc12/include/c++/12.2.0/vector:60: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} declared here 185 | struct pair | ^~~~ In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT peer.lo -MD -MP -MF .deps/peer.Tpo -c peer.cc -o peer.o >/dev/null 2>&1 mv -f .deps/peer.Tpo .deps/peer.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT peer_info.lo -MD -MP -MF .deps/peer_info.Tpo -c -o peer_info.lo peer_info.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT peer_info.lo -MD -MP -MF .deps/peer_info.Tpo -c peer_info.cc -fPIC -DPIC -o .libs/peer_info.o In file included from ./../../protocol/extensions.h:48, from peer_info.cc:42: ./../../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ../../../rak/socket_address.h:51, from peer_info.cc:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../protocol/peer_chunks.h:41, from ./../../protocol/peer_connection_base.h:48, from peer_info.cc:43: ../../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../../rak/partial_queue.h:140:14: warning: 'void* std::memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_algobase.h:64, from /opt/tools/gcc12/include/c++/12.2.0/string:50: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} declared here 185 | struct pair | ^~~~ In file included from ./../../protocol/request_list.h:42, from ./../../protocol/peer_connection_base.h:50: ./../../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': ./../../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' ./../../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from ./../../globals.h:41, from ./../../protocol/request_list.h:46: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' peer_info.cc: In destructor 'torrent::PeerInfo::~PeerInfo()': peer_info.cc:78:5: warning: 'throw' will always call 'terminate' [-Wterminate] 78 | throw internal_error("PeerInfo::~PeerInfo() peer is blocked."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ peer_info.cc:78:5: note: in C++11 destructors default to 'noexcept' libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT peer_info.lo -MD -MP -MF .deps/peer_info.Tpo -c peer_info.cc -o peer_info.o >/dev/null 2>&1 mv -f .deps/peer_info.Tpo .deps/peer_info.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT peer_list.lo -MD -MP -MF .deps/peer_list.Tpo -c -o peer_list.lo peer_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT peer_list.lo -MD -MP -MF .deps/peer_list.Tpo -c peer_list.cc -fPIC -DPIC -o .libs/peer_list.o In file included from peer_list.cc:43: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from peer_list.cc:42: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../../download/available_list.h:45, from peer_list.cc:46: ./../../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from peer_list.cc:52: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' peer_list.cc: At global scope: peer_list.cc:90:43: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 90 | struct peer_list_equal_port : public std::binary_function<PeerList::reference, uint16_t, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ peer_list.cc: In member function 'uint32_t torrent::PeerList::insert_available(const void*)': peer_list.cc:202:75: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const rak::socket_address&; _Arg2 = const rak::socket_address&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 202 | availItr = std::find_if(availItr, availLast, rak::bind2nd(std::ptr_fun(&socket_address_less_rak), *itr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.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<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT peer_list.lo -MD -MP -MF .deps/peer_list.Tpo -c peer_list.cc -o peer_list.o >/dev/null 2>&1 mv -f .deps/peer_list.Tpo .deps/peer_list.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=link g++ -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/lib -o libsub_torrentpeer.la client_info.lo client_list.lo connection_list.lo peer.lo peer_info.lo peer_list.lo -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib libtool: link: ar cr .libs/libsub_torrentpeer.a .libs/client_info.o .libs/client_list.o .libs/connection_list.o .libs/peer.o .libs/peer_info.o .libs/peer_list.o libtool: link: ranlib .libs/libsub_torrentpeer.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentpeer.la" && ln -s "../libsub_torrentpeer.la" "libsub_torrentpeer.la" ) gmake[4]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/peer' Making all in utils gmake[4]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/utils' /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT directory_events.lo -MD -MP -MF .deps/directory_events.Tpo -c -o directory_events.lo directory_events.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT directory_events.lo -MD -MP -MF .deps/directory_events.Tpo -c directory_events.cc -fPIC -DPIC -o .libs/directory_events.o In file included from ./../../manager.h:42, from directory_events.cc:53: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' directory_events.cc: In member function 'virtual void torrent::directory_events::event_read()': directory_events.cc:143:14: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 143 | if (result < sizeof(struct inotify_event)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/string:48, from directory_events.h:40, from directory_events.cc:39: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT directory_events.lo -MD -MP -MF .deps/directory_events.Tpo -c directory_events.cc -o directory_events.o >/dev/null 2>&1 mv -f .deps/directory_events.Tpo .deps/directory_events.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT log.lo -MD -MP -MF .deps/log.Tpo -c -o log.lo log.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT log.lo -MD -MP -MF .deps/log.Tpo -c log.cc -fPIC -DPIC -o .libs/log.o In file included from ./../../globals.h:41, from log.cc:44: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' log.cc: In function 'void torrent::log_update_child_cache(int)': log.cc:107:30: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = greater_equal<pair<int, int> >; _Tp = pair<int, int>]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 107 | std::bind2nd(std::greater_equal<std::pair<int, int> >(), std::make_pair(index, 0))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/string:48, from /opt/tools/gcc12/include/c++/12.2.0/bitset:47, from log.h:40, from log.cc:41: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ log.cc: In function 'void torrent::log_rebuild_cache()': log.cc:131:71: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::log_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 131 | std::for_each(log_groups.begin(), log_groups.end(), std::mem_fun_ref(&log_group::clear_cached_outputs)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ log.cc:137:69: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::log_cache_entry]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 137 | std::for_each(log_cache.begin(), log_cache.end(), std::mem_fun_ref(&log_cache_entry::clear)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ log.cc: In function 'void torrent::log_cleanup()': log.cc:271:69: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::log_cache_entry]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 271 | std::for_each(log_cache.begin(), log_cache.end(), std::mem_fun_ref(&log_cache_entry::clear)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.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<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT log.lo -MD -MP -MF .deps/log.Tpo -c log.cc -o log.o >/dev/null 2>&1 mv -f .deps/log.Tpo .deps/log.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT log_buffer.lo -MD -MP -MF .deps/log_buffer.Tpo -c -o log_buffer.lo log_buffer.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT log_buffer.lo -MD -MP -MF .deps/log_buffer.Tpo -c log_buffer.cc -fPIC -DPIC -o .libs/log_buffer.o In file included from ./../../globals.h:41, from log_buffer.cc:44: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/string:48, from log_buffer.h:40, from log_buffer.cc:39: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT log_buffer.lo -MD -MP -MF .deps/log_buffer.Tpo -c log_buffer.cc -o log_buffer.o >/dev/null 2>&1 mv -f .deps/log_buffer.Tpo .deps/log_buffer.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT net.lo -MD -MP -MF .deps/net.Tpo -c -o net.lo net.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT net.lo -MD -MP -MF .deps/net.Tpo -c net.cc -fPIC -DPIC -o .libs/net.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT net.lo -MD -MP -MF .deps/net.Tpo -c net.cc -o net.o >/dev/null 2>&1 mv -f .deps/net.Tpo .deps/net.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT option_strings.lo -MD -MP -MF .deps/option_strings.Tpo -c -o option_strings.lo option_strings.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT option_strings.lo -MD -MP -MF .deps/option_strings.Tpo -c option_strings.cc -fPIC -DPIC -o .libs/option_strings.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT option_strings.lo -MD -MP -MF .deps/option_strings.Tpo -c option_strings.cc -o option_strings.o >/dev/null 2>&1 mv -f .deps/option_strings.Tpo .deps/option_strings.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT resume.lo -MD -MP -MF .deps/resume.Tpo -c -o resume.lo resume.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT resume.lo -MD -MP -MF .deps/resume.Tpo -c resume.cc -fPIC -DPIC -o .libs/resume.o In file included from ./../../torrent/utils/ranges.h:44, from ./../../torrent/data/download_data.h:45, from ./../data/file_list.h:46, from resume.cc:49: ../../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ../../../rak/file_stat.h:40, from resume.cc:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ./../data/file_list.h: In function 'std::vector<torrent::File*>::iterator torrent::file_list_contains_position(FileList*, uint64_t)': ./../data/file_list.h:202:86: warning: 'std::const_mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::File; _Arg = long unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 202 | return std::find_if(file_list->begin(), file_list->end(), std::bind2nd(std::mem_fun(&File::is_valid_position), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1401:5: note: declared here 1401 | mem_fun(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~ ./../data/file_list.h:202:73: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_t<bool, torrent::File, long unsigned int>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from resume.cc:51: ./../../net/address_list.h: At global scope: ./../../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../../globals.h:41, from resume.cc:61: ../../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../../rak/priority_queue_default.h:42: ../../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT resume.lo -MD -MP -MF .deps/resume.Tpo -c resume.cc -o resume.o >/dev/null 2>&1 mv -f .deps/resume.Tpo .deps/resume.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT signal_bitfield.lo -MD -MP -MF .deps/signal_bitfield.Tpo -c -o signal_bitfield.lo signal_bitfield.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT signal_bitfield.lo -MD -MP -MF .deps/signal_bitfield.Tpo -c signal_bitfield.cc -fPIC -DPIC -o .libs/signal_bitfield.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT signal_bitfield.lo -MD -MP -MF .deps/signal_bitfield.Tpo -c signal_bitfield.cc -o signal_bitfield.o >/dev/null 2>&1 mv -f .deps/signal_bitfield.Tpo .deps/signal_bitfield.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT thread_base.lo -MD -MP -MF .deps/thread_base.Tpo -c -o thread_base.lo thread_base.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT thread_base.lo -MD -MP -MF .deps/thread_base.Tpo -c thread_base.cc -fPIC -DPIC -o .libs/thread_base.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT thread_base.lo -MD -MP -MF .deps/thread_base.Tpo -c thread_base.cc -o thread_base.o >/dev/null 2>&1 mv -f .deps/thread_base.Tpo .deps/thread_base.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT thread_interrupt.lo -MD -MP -MF .deps/thread_interrupt.Tpo -c -o thread_interrupt.lo thread_interrupt.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT thread_interrupt.lo -MD -MP -MF .deps/thread_interrupt.Tpo -c thread_interrupt.cc -fPIC -DPIC -o .libs/thread_interrupt.o thread_interrupt.cc: In static member function 'static torrent::thread_interrupt::pair_type torrent::thread_interrupt::create_pair()': thread_interrupt.cc:87:50: warning: 'new' of type 'torrent::thread_interrupt' with extended alignment 128 [-Waligned-new=] 87 | thread_interrupt* t1 = new thread_interrupt(fd1); | ^ thread_interrupt.cc:87:50: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter thread_interrupt.cc:87:50: note: use '-faligned-new' to enable C++17 over-aligned new support thread_interrupt.cc:88:50: warning: 'new' of type 'torrent::thread_interrupt' with extended alignment 128 [-Waligned-new=] 88 | thread_interrupt* t2 = new thread_interrupt(fd2); | ^ thread_interrupt.cc:88:50: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter thread_interrupt.cc:88:50: note: use '-faligned-new' to enable C++17 over-aligned new support libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT thread_interrupt.lo -MD -MP -MF .deps/thread_interrupt.Tpo -c thread_interrupt.cc -o thread_interrupt.o >/dev/null 2>&1 mv -f .deps/thread_interrupt.Tpo .deps/thread_interrupt.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT uri_parser.lo -MD -MP -MF .deps/uri_parser.Tpo -c -o uri_parser.lo uri_parser.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT uri_parser.lo -MD -MP -MF .deps/uri_parser.Tpo -c uri_parser.cc -fPIC -DPIC -o .libs/uri_parser.o uri_parser.cc: In function 'void torrent::utils::uri_parse_str(std::string, uri_state&)': uri_parser.cc:123:72: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = char; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 123 | first = uri_string_copy_until(first, last, state.scheme, std::ptr_fun(&is_not_unreserved_uri_char)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ./../../torrent/utils/uri_parser.h:40, from uri_parser.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ uri_parser.cc:132:74: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = char; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 132 | first = uri_string_copy_until(first, last, state.resource, std::ptr_fun(&is_not_unreserved_uri_char)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ uri_parser.cc:141:71: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = char; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 141 | first = uri_string_copy_until(first, last, state.query, std::ptr_fun(&is_not_valid_uri_query_char)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ uri_parser.cc: In function 'void torrent::utils::uri_parse_query_str(std::string, uri_query_state&)': uri_parser.cc:178:69: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = char; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 178 | first = uri_string_copy_until(first, last, element, std::ptr_fun(&is_not_unreserved_uri_query_char)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./.. -I./../.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT uri_parser.lo -MD -MP -MF .deps/uri_parser.Tpo -c uri_parser.cc -o uri_parser.o >/dev/null 2>&1 mv -f .deps/uri_parser.Tpo .deps/uri_parser.Plo /usr/bin/bash ../../../libtool --tag=CXX --mode=link g++ -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/lib -o libsub_torrentutils.la directory_events.lo log.lo log_buffer.lo net.lo option_strings.lo resume.lo signal_bitfield.lo thread_base.lo thread_interrupt.lo uri_parser.lo -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib libtool: link: ar cr .libs/libsub_torrentutils.a .libs/directory_events.o .libs/log.o .libs/log_buffer.o .libs/net.o .libs/option_strings.o .libs/resume.o .libs/signal_bitfield.o .libs/thread_base.o .libs/thread_interrupt.o .libs/uri_parser.o libtool: link: ranlib .libs/libsub_torrentutils.a libtool: link: ( cd ".libs" && rm -f "libsub_torrentutils.la" && ln -s "../libsub_torrentutils.la" "libsub_torrentutils.la" ) gmake[4]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent/utils' gmake[4]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent' /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT bitfield.lo -MD -MP -MF .deps/bitfield.Tpo -c -o bitfield.lo bitfield.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT bitfield.lo -MD -MP -MF .deps/bitfield.Tpo -c bitfield.cc -fPIC -DPIC -o .libs/bitfield.o In file included from bitfield.cc:41: ../../rak/algorithm.h:118:35: warning: 'template<class _Arg1, class _Arg2, class _Result> 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/gcc12/include/c++/12.2.0/functional:49, from ../../rak/algorithm.h:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT bitfield.lo -MD -MP -MF .deps/bitfield.Tpo -c bitfield.cc -o bitfield.o >/dev/null 2>&1 mv -f .deps/bitfield.Tpo .deps/bitfield.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT chunk_manager.lo -MD -MP -MF .deps/chunk_manager.Tpo -c -o chunk_manager.lo chunk_manager.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk_manager.lo -MD -MP -MF .deps/chunk_manager.Tpo -c chunk_manager.cc -fPIC -DPIC -o .libs/chunk_manager.o In file included from ./../data/chunk_list.h:44, from chunk_manager.cc:43: ./../data/chunk.h: In member function 'std::vector<torrent::ChunkPart>::iterator torrent::Chunk::find_address(void*)': ./../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ./../data/chunk_list.h:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ ./../data/chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t<bool, torrent::ChunkPart, void*>; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../globals.h:41, from chunk_manager.cc:48: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' chunk_manager.cc: In destructor 'torrent::ChunkManager::~ChunkManager()': chunk_manager.cc:78:5: warning: 'throw' will always call 'terminate' [-Wterminate] 78 | throw internal_error("ChunkManager::~ChunkManager() m_memoryUsage != 0 || m_memoryBlockCount != 0."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ chunk_manager.cc:78:5: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk_manager.lo -MD -MP -MF .deps/chunk_manager.Tpo -c chunk_manager.cc -o chunk_manager.o >/dev/null 2>&1 mv -f .deps/chunk_manager.Tpo .deps/chunk_manager.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT connection_manager.lo -MD -MP -MF .deps/connection_manager.Tpo -c -o connection_manager.lo connection_manager.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT connection_manager.lo -MD -MP -MF .deps/connection_manager.Tpo -c connection_manager.cc -fPIC -DPIC -o .libs/connection_manager.o In file included from ./../manager.h:42, from connection_manager.cc:49: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ../../rak/socket_address.h:51, from ../../rak/address_info.h:47, from connection_manager.cc:41: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT connection_manager.lo -MD -MP -MF .deps/connection_manager.Tpo -c connection_manager.cc -o connection_manager.o >/dev/null 2>&1 mv -f .deps/connection_manager.Tpo .deps/connection_manager.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT dht_manager.lo -MD -MP -MF .deps/dht_manager.Tpo -c -o dht_manager.lo dht_manager.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT dht_manager.lo -MD -MP -MF .deps/dht_manager.Tpo -c dht_manager.cc -fPIC -DPIC -o .libs/dht_manager.o In file included from ./../manager.h:42, from dht_manager.cc:43: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../dht/dht_tracker.h:45, from ./../dht/dht_hash_map.h:51, from ./../dht/dht_router.h:48, from dht_manager.cc:44: ./../net/address_list.h: At global scope: ./../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ./../torrent/exceptions.h:47, from dht_manager.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ./../dht/dht_hash_map.h:148:42: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 148 | struct hashstring_ptr_less : public std::binary_function<const HashString*, const HashString*, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../dht/dht_server.h:50, from ./../dht/dht_router.h:49: ./../dht/dht_transaction.h:73:41: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 73 | struct dht_compare_closer : public std::binary_function<const DhtNode*, const DhtNode*, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT dht_manager.lo -MD -MP -MF .deps/dht_manager.Tpo -c dht_manager.cc -o dht_manager.o >/dev/null 2>&1 mv -f .deps/dht_manager.Tpo .deps/dht_manager.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT download.lo -MD -MP -MF .deps/download.Tpo -c -o download.lo download.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT download.lo -MD -MP -MF .deps/download.Tpo -c download.cc -fPIC -DPIC -o .libs/download.o In file included from data/block.h:42, from download.cc:43: ./../torrent/data/block_transfer.h: In destructor 'torrent::BlockTransfer::~BlockTransfer()': ./../torrent/data/block_transfer.h:129:5: warning: 'throw' will always call 'terminate' [-Wterminate] 129 | throw internal_error("BlockTransfer::~BlockTransfer() block not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../torrent/data/block_transfer.h:129:5: note: in C++11 destructors default to 'noexcept' ./../torrent/data/block_transfer.h:132:5: warning: 'throw' will always call 'terminate' [-Wterminate] 132 | throw internal_error("BlockTransfer::~BlockTransfer() peer_info not NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../torrent/data/block_transfer.h:132:5: note: in C++11 destructors default to 'noexcept' In file included from ./../data/chunk_list.h:44, from download.cc:45: ./../data/chunk.h: In member function 'std::vector<torrent::ChunkPart>::iterator torrent::Chunk::find_address(void*)': ./../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/refwrap.h:39, from /opt/tools/gcc12/include/c++/12.2.0/vector:66, from data/block.h:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ ./../data/chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t<bool, torrent::ChunkPart, void*>; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../data/hash_torrent.h:43, from download.cc:47: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../download/chunk_selector.h:41, from download.cc:49: ../../rak/partial_queue.h: In member function 'void rak::partial_queue::clear()': ../../rak/partial_queue.h:140:14: warning: 'void* std::memset(void*, int, size_t)' clearing an object of type 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 140 | std::memset(m_layers, 0, num_layers * sizeof(size_pair_type)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_algobase.h:64, from /opt/tools/gcc12/include/c++/12.2.0/vector:60: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_pair.h:185:12: note: 'rak::partial_queue::size_pair_type' {aka 'struct std::pair<short unsigned int, short unsigned int>'} declared here 185 | struct pair | ^~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT download.lo -MD -MP -MF .deps/download.Tpo -c download.cc -o download.o >/dev/null 2>&1 mv -f .deps/download.Tpo .deps/download.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT error.lo -MD -MP -MF .deps/error.Tpo -c -o error.lo error.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.cc -fPIC -DPIC -o .libs/error.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.cc -o error.o >/dev/null 2>&1 mv -f .deps/error.Tpo .deps/error.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT exceptions.lo -MD -MP -MF .deps/exceptions.Tpo -c -o exceptions.lo exceptions.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT exceptions.lo -MD -MP -MF .deps/exceptions.Tpo -c exceptions.cc -fPIC -DPIC -o .libs/exceptions.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT exceptions.lo -MD -MP -MF .deps/exceptions.Tpo -c exceptions.cc -o exceptions.o >/dev/null 2>&1 mv -f .deps/exceptions.Tpo .deps/exceptions.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT hash_string.lo -MD -MP -MF .deps/hash_string.Tpo -c -o hash_string.lo hash_string.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_string.lo -MD -MP -MF .deps/hash_string.Tpo -c hash_string.cc -fPIC -DPIC -o .libs/hash_string.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_string.lo -MD -MP -MF .deps/hash_string.Tpo -c hash_string.cc -o hash_string.o >/dev/null 2>&1 mv -f .deps/hash_string.Tpo .deps/hash_string.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT http.lo -MD -MP -MF .deps/http.Tpo -c -o http.lo http.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT http.lo -MD -MP -MF .deps/http.Tpo -c http.cc -fPIC -DPIC -o .libs/http.o In file included from http.cc:41: ../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from /opt/tools/gcc12/include/c++/12.2.0/bits/locale_classes.h:40, from /opt/tools/gcc12/include/c++/12.2.0/bits/ios_base.h:41, from /opt/tools/gcc12/include/c++/12.2.0/ios:42, from /opt/tools/gcc12/include/c++/12.2.0/ostream:38, from /opt/tools/gcc12/include/c++/12.2.0/iostream:39, from http.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT http.lo -MD -MP -MF .deps/http.Tpo -c http.cc -o http.o >/dev/null 2>&1 mv -f .deps/http.Tpo .deps/http.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT object.lo -MD -MP -MF .deps/object.Tpo -c -o object.lo object.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT object.lo -MD -MP -MF .deps/object.Tpo -c object.cc -fPIC -DPIC -o .libs/object.o In file included from object.cc:41: ../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from ../../rak/functional.h:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT object.lo -MD -MP -MF .deps/object.Tpo -c object.cc -o object.o >/dev/null 2>&1 mv -f .deps/object.Tpo .deps/object.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT object_static_map.lo -MD -MP -MF .deps/object_static_map.Tpo -c -o object_static_map.lo object_static_map.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT object_static_map.lo -MD -MP -MF .deps/object_static_map.Tpo -c object_static_map.cc -fPIC -DPIC -o .libs/object_static_map.o In file included from object_static_map.cc:39: ../../rak/algorithm.h:118:35: warning: 'template<class _Arg1, class _Arg2, class _Result> 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/gcc12/include/c++/12.2.0/functional:49, from ../../rak/algorithm.h:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT object_static_map.lo -MD -MP -MF .deps/object_static_map.Tpo -c object_static_map.cc -o object_static_map.o >/dev/null 2>&1 mv -f .deps/object_static_map.Tpo .deps/object_static_map.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT object_stream.lo -MD -MP -MF .deps/object_stream.Tpo -c -o object_stream.lo object_stream.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT object_stream.lo -MD -MP -MF .deps/object_stream.Tpo -c object_stream.cc -fPIC -DPIC -o .libs/object_stream.o In file included from object_stream.cc:44: ../../rak/algorithm.h:118:35: warning: 'template<class _Arg1, class _Arg2, class _Result> 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/gcc12/include/c++/12.2.0/string:48, from /opt/tools/gcc12/include/c++/12.2.0/bits/locale_classes.h:40, from /opt/tools/gcc12/include/c++/12.2.0/bits/ios_base.h:41, from /opt/tools/gcc12/include/c++/12.2.0/streambuf:41, from /opt/tools/gcc12/include/c++/12.2.0/bits/streambuf_iterator.h:35, from /opt/tools/gcc12/include/c++/12.2.0/iterator:66, from object_stream.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT object_stream.lo -MD -MP -MF .deps/object_stream.Tpo -c object_stream.cc -o object_stream.o >/dev/null 2>&1 mv -f .deps/object_stream.Tpo .deps/object_stream.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT path.lo -MD -MP -MF .deps/path.Tpo -c -o path.lo path.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT path.lo -MD -MP -MF .deps/path.Tpo -c path.cc -fPIC -DPIC -o .libs/path.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT path.lo -MD -MP -MF .deps/path.Tpo -c path.cc -o path.o >/dev/null 2>&1 mv -f .deps/path.Tpo .deps/path.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT poll_epoll.lo -MD -MP -MF .deps/poll_epoll.Tpo -c -o poll_epoll.lo poll_epoll.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT poll_epoll.lo -MD -MP -MF .deps/poll_epoll.Tpo -c poll_epoll.cc -fPIC -DPIC -o .libs/poll_epoll.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT poll_epoll.lo -MD -MP -MF .deps/poll_epoll.Tpo -c poll_epoll.cc -o poll_epoll.o >/dev/null 2>&1 mv -f .deps/poll_epoll.Tpo .deps/poll_epoll.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT poll_kqueue.lo -MD -MP -MF .deps/poll_kqueue.Tpo -c -o poll_kqueue.lo poll_kqueue.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT poll_kqueue.lo -MD -MP -MF .deps/poll_kqueue.Tpo -c poll_kqueue.cc -fPIC -DPIC -o .libs/poll_kqueue.o In file included from poll_kqueue.cc:50: ../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from /opt/tools/gcc12/include/c++/12.2.0/stdexcept:39, from poll_kqueue.cc:43: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT poll_kqueue.lo -MD -MP -MF .deps/poll_kqueue.Tpo -c poll_kqueue.cc -o poll_kqueue.o >/dev/null 2>&1 mv -f .deps/poll_kqueue.Tpo .deps/poll_kqueue.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT poll_select.lo -MD -MP -MF .deps/poll_select.Tpo -c -o poll_select.lo poll_select.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT poll_select.lo -MD -MP -MF .deps/poll_select.Tpo -c poll_select.cc -fPIC -DPIC -o .libs/poll_select.o poll_select.cc: In destructor 'virtual torrent::PollSelect::~PollSelect()': poll_select.cc:163:5: warning: 'throw' will always call 'terminate' [-Wterminate] 163 | throw internal_error("PollSelect::~PollSelect() called but the sets are not empty"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ poll_select.cc:163:5: note: in C++11 destructors default to 'noexcept' poll_select.cc: In member function 'unsigned int torrent::PollSelect::perform(fd_set*, fd_set*, fd_set*)': poll_select.cc:211:66: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Event]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 211 | poll_check(this, exceptSet, std::mem_fun(&Event::event_error))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from /opt/tools/gcc12/include/c++/12.2.0/stdexcept:39, from poll_select.cc:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ poll_select.cc:215:64: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Event]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 215 | poll_check(this, readSet, std::mem_fun(&Event::event_read))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ poll_select.cc:219:65: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Event]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 219 | poll_check(this, writeSet, std::mem_fun(&Event::event_write))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT poll_select.lo -MD -MP -MF .deps/poll_select.Tpo -c poll_select.cc -o poll_select.o >/dev/null 2>&1 mv -f .deps/poll_select.Tpo .deps/poll_select.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT rate.lo -MD -MP -MF .deps/rate.Tpo -c -o rate.lo rate.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT rate.lo -MD -MP -MF .deps/rate.Tpo -c rate.cc -fPIC -DPIC -o .libs/rate.o In file included from ./../globals.h:41, from rate.cc:39: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from ../../rak/priority_queue_default.h:40: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT rate.lo -MD -MP -MF .deps/rate.Tpo -c rate.cc -o rate.o >/dev/null 2>&1 mv -f .deps/rate.Tpo .deps/rate.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT throttle.lo -MD -MP -MF .deps/throttle.Tpo -c -o throttle.lo throttle.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT throttle.lo -MD -MP -MF .deps/throttle.Tpo -c throttle.cc -fPIC -DPIC -o .libs/throttle.o In file included from ./../net/throttle_internal.h:41, from throttle.cc:41: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/bits/refwrap.h:39, from /opt/tools/gcc12/include/c++/12.2.0/vector:66, from ./../net/throttle_internal.h:40: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT throttle.lo -MD -MP -MF .deps/throttle.Tpo -c throttle.cc -o throttle.o >/dev/null 2>&1 mv -f .deps/throttle.Tpo .deps/throttle.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT torrent.lo -MD -MP -MF .deps/torrent.Tpo -c -o torrent.lo torrent.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT torrent.lo -MD -MP -MF .deps/torrent.Tpo -c torrent.cc -fPIC -DPIC -o .libs/torrent.o In file included from ./../manager.h:42, from torrent.cc:50: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../protocol/handshake_manager.h:43, from torrent.cc:52: ../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ../../rak/socket_address.h:51, from ../../rak/address_info.h:47, from torrent.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ torrent.cc: In function 'void torrent::initialize()': torrent.cc:103:17: warning: 'new' of type 'torrent::Manager' with extended alignment 128 [-Waligned-new=] 103 | manager = new Manager; | ^~~~~~~ torrent.cc:103:17: note: uses 'void* operator new(size_t)', which does not have an alignment parameter torrent.cc:103:17: note: use '-faligned-new' to enable C++17 over-aligned new support In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT torrent.lo -MD -MP -MF .deps/torrent.Tpo -c torrent.cc -o torrent.o >/dev/null 2>&1 mv -f .deps/torrent.Tpo .deps/torrent.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT tracker.lo -MD -MP -MF .deps/tracker.Tpo -c -o tracker.lo tracker.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT tracker.lo -MD -MP -MF .deps/tracker.Tpo -c tracker.cc -fPIC -DPIC -o .libs/tracker.o In file included from ./../globals.h:41, from tracker.cc:42: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/string:48, from exceptions.h:47, from tracker.cc:41: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT tracker.lo -MD -MP -MF .deps/tracker.Tpo -c tracker.cc -o tracker.o >/dev/null 2>&1 mv -f .deps/tracker.Tpo .deps/tracker.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT tracker_controller.lo -MD -MP -MF .deps/tracker_controller.Tpo -c -o tracker_controller.lo tracker_controller.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT tracker_controller.lo -MD -MP -MF .deps/tracker_controller.Tpo -c tracker_controller.cc -fPIC -DPIC -o .libs/tracker_controller.o In file included from tracker_controller.cc:45: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438, from /opt/tools/gcc12/include/c++/12.2.0/string:48, from exceptions.h:47, from tracker_controller.cc:39: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT tracker_controller.lo -MD -MP -MF .deps/tracker_controller.Tpo -c tracker_controller.cc -o tracker_controller.o >/dev/null 2>&1 mv -f .deps/tracker_controller.Tpo .deps/tracker_controller.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT tracker_list.lo -MD -MP -MF .deps/tracker_list.Tpo -c -o tracker_list.lo tracker_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT tracker_list.lo -MD -MP -MF .deps/tracker_list.Tpo -c tracker_list.cc -fPIC -DPIC -o .libs/tracker_list.o In file included from tracker_list.cc:40: ../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from tracker_list.cc:39: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from tracker_list.cc:42: ./../net/address_list.h:62:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 62 | struct add_address : public std::unary_function<rak::socket_address, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ In file included from ./../globals.h:41, from ./../tracker/tracker_udp.h:48, from tracker_list.cc:48: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' tracker_list.cc: In member function 'bool torrent::TrackerList::has_active() const': tracker_list.cc:70:51: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 70 | return std::find_if(begin(), end(), std::mem_fun(&Tracker::is_busy)) != end(); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'bool torrent::TrackerList::has_active_not_scrape() const': tracker_list.cc:75:51: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 75 | return std::find_if(begin(), end(), std::mem_fun(&Tracker::is_busy_not_scrape)) != end(); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'bool torrent::TrackerList::has_active_in_group(uint32_t) const': tracker_list.cc:80:73: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 80 | return std::find_if(begin_group(group), end_group(group), std::mem_fun(&Tracker::is_busy)) != end_group(group); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'bool torrent::TrackerList::has_active_not_scrape_in_group(uint32_t) const': tracker_list.cc:85:73: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 85 | return std::find_if(begin_group(group), end_group(group), std::mem_fun(&Tracker::is_busy_not_scrape)) != end_group(group); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: At global scope: tracker_list.cc:89:39: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 89 | struct tracker_usable_t : public std::unary_function<TrackerList::value_type, bool> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ tracker_list.cc: In member function 'unsigned int torrent::TrackerList::count_active() const': tracker_list.cc:100:52: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 100 | return std::count_if(begin(), end(), std::mem_fun(&Tracker::is_busy)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'void torrent::TrackerList::clear_stats()': tracker_list.cc:134:45: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 134 | std::for_each(begin(), end(), std::mem_fun(&Tracker::clear_stats)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1371:5: note: declared here 1371 | mem_fun(_Ret (_Tp::*__f)()) | ^~~~~~~ tracker_list.cc: In member function 'std::vector<torrent::Tracker*>::iterator torrent::TrackerList::find_next_to_request(std::vector<torrent::Tracker*>::iterator)': tracker_list.cc:243:80: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 243 | TrackerList::iterator preferred = itr = std::find_if(itr, end(), std::mem_fun(&Tracker::can_request_state)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'std::vector<torrent::Tracker*>::iterator torrent::TrackerList::begin_group(unsigned int)': tracker_list.cc:269:74: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 269 | return std::find_if(begin(), end(), rak::less_equal(group, std::mem_fun(&Tracker::group))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ tracker_list.cc: In member function 'std::vector<torrent::Tracker*>::const_iterator torrent::TrackerList::begin_group(unsigned int) const': tracker_list.cc:274:74: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 274 | return std::find_if(begin(), end(), rak::less_equal(group, std::mem_fun(&Tracker::group))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT tracker_list.lo -MD -MP -MF .deps/tracker_list.Tpo -c tracker_list.cc -o tracker_list.o >/dev/null 2>&1 mv -f .deps/tracker_list.Tpo .deps/tracker_list.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=link g++ -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/lib -o libsub_torrent.la bitfield.lo chunk_manager.lo connection_manager.lo dht_manager.lo download.lo error.lo exceptions.lo hash_string.lo http.lo object.lo object_static_map.lo object_stream.lo path.lo poll_epoll.lo poll_kqueue.lo poll_select.lo rate.lo throttle.lo torrent.lo tracker.lo tracker_controller.lo tracker_list.lo -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib libtool: link: ar cr .libs/libsub_torrent.a .libs/bitfield.o .libs/chunk_manager.o .libs/connection_manager.o .libs/dht_manager.o .libs/download.o .libs/error.o .libs/exceptions.o .libs/hash_string.o .libs/http.o .libs/object.o .libs/object_static_map.o .libs/object_stream.o .libs/path.o .libs/poll_epoll.o .libs/poll_kqueue.o .libs/poll_select.o .libs/rate.o .libs/throttle.o .libs/torrent.o .libs/tracker.o .libs/tracker_controller.o .libs/tracker_list.o libtool: link: ranlib .libs/libsub_torrent.a libtool: link: ( cd ".libs" && rm -f "libsub_torrent.la" && ln -s "../libsub_torrent.la" "libsub_torrent.la" ) gmake[4]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent' gmake[3]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/torrent' Making all in data gmake[3]: Entering directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/data' /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT chunk.lo -MD -MP -MF .deps/chunk.Tpo -c -o chunk.lo chunk.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk.lo -MD -MP -MF .deps/chunk.Tpo -c chunk.cc -fPIC -DPIC -o .libs/chunk.o In file included from chunk.cc:47: chunk.h: In member function 'std::vector<torrent::ChunkPart>::iterator torrent::Chunk::find_address(void*)': chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from chunk.cc:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t<bool, torrent::ChunkPart, void*>; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ chunk.cc: In member function 'bool torrent::Chunk::is_all_valid() const': chunk.cc:63:77: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::ChunkPart]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 63 | return !empty() && std::find_if(begin(), end(), std::not1(std::mem_fun_ref(&ChunkPart::is_valid))) == end(); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk.cc: In member function 'void torrent::Chunk::clear()': chunk.cc:68:49: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::ChunkPart]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 68 | std::for_each(begin(), end(), std::mem_fun_ref(&ChunkPart::clear)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1383:5: note: declared here 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) | ^~~~~~~~~~~ chunk.cc: In member function 'std::vector<torrent::ChunkPart>::iterator torrent::Chunk::at_position(uint32_t)': chunk.cc:98:76: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 98 | iterator itr = std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::is_contained), pos)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ chunk.cc:98:59: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t<bool, torrent::ChunkPart, unsigned int>; _Tp = unsigned int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 98 | iterator itr = std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::is_contained), pos)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk.lo -MD -MP -MF .deps/chunk.Tpo -c chunk.cc -o chunk.o >/dev/null 2>&1 mv -f .deps/chunk.Tpo .deps/chunk.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT chunk_list.lo -MD -MP -MF .deps/chunk_list.Tpo -c -o chunk_list.lo chunk_list.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk_list.lo -MD -MP -MF .deps/chunk_list.Tpo -c chunk_list.cc -fPIC -DPIC -o .libs/chunk_list.o In file included from chunk_list.cc:42: ../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from ../../rak/functional.h:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from chunk_list.h:44, from chunk_list.cc:50: chunk.h: In member function 'std::vector<torrent::ChunkPart>::iterator torrent::Chunk::find_address(void*)': chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t<bool, torrent::ChunkPart, void*>; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../globals.h:41, from chunk_list.cc:52: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' chunk_list.cc: In member function 'void torrent::ChunkList::clear()': chunk_list.cc:117:52: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = torrent::Chunk*; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 117 | if (std::find_if(begin(), end(), std::mem_fun_ref(&ChunkListNode::chunk)) != end()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk_list.cc:120:52: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = int; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 120 | if (std::find_if(begin(), end(), std::mem_fun_ref(&ChunkListNode::references)) != end()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk_list.cc:123:52: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = int; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 123 | if (std::find_if(begin(), end(), std::mem_fun_ref(&ChunkListNode::writable)) != end()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk_list.cc:126:52: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = int; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 126 | if (std::find_if(begin(), end(), std::mem_fun_ref(&ChunkListNode::blocking)) != end()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ chunk_list.cc: In member function 'uint32_t torrent::ChunkList::sync_chunks(int)': chunk_list.cc:296:97: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = int; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 296 | split = std::stable_partition(m_queue.begin(), m_queue.end(), rak::not_equal(1, std::mem_fun(&ChunkListNode::writable))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ chunk_list.cc:349:122: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::ChunkListNode]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 349 | instrumentation_update(INSTRUMENTATION_MINCORE_SYNC_NOT_DEALLOCATED, std::count_if(split, m_queue.end(), std::mem_fun(&ChunkListNode::is_valid))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ chunk_list.cc: In member function 'std::vector<torrent::ChunkListNode*>::iterator torrent::ChunkList::partition_optimize(std::vector<torrent::ChunkListNode*>::iterator, std::vector<torrent::ChunkListNode*>::iterator, int, int, bool)': chunk_list.cc:420:71: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = bool; _Tp = torrent::ChunkList; _Arg = torrent::ChunkListNode*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 420 | bool required = std::find_if(itr, range, std::bind1st(std::mem_fun(&ChunkList::check_node), this)) != range; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ chunk_list.cc:420:58: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t<bool, torrent::ChunkList, torrent::ChunkListNode*>; _Tp = torrent::ChunkList*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 420 | bool required = std::find_if(itr, range, std::bind1st(std::mem_fun(&ChunkList::check_node), this)) != range; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.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<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk_list.lo -MD -MP -MF .deps/chunk_list.Tpo -c chunk_list.cc -o chunk_list.o >/dev/null 2>&1 mv -f .deps/chunk_list.Tpo .deps/chunk_list.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT chunk_part.lo -MD -MP -MF .deps/chunk_part.Tpo -c -o chunk_part.lo chunk_part.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk_part.lo -MD -MP -MF .deps/chunk_part.Tpo -c chunk_part.cc -fPIC -DPIC -o .libs/chunk_part.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT chunk_part.lo -MD -MP -MF .deps/chunk_part.Tpo -c chunk_part.cc -o chunk_part.o >/dev/null 2>&1 mv -f .deps/chunk_part.Tpo .deps/chunk_part.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT hash_check_queue.lo -MD -MP -MF .deps/hash_check_queue.Tpo -c -o hash_check_queue.lo hash_check_queue.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_check_queue.lo -MD -MP -MF .deps/hash_check_queue.Tpo -c hash_check_queue.cc -fPIC -DPIC -o .libs/hash_check_queue.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_check_queue.lo -MD -MP -MF .deps/hash_check_queue.Tpo -c hash_check_queue.cc -o hash_check_queue.o >/dev/null 2>&1 mv -f .deps/hash_check_queue.Tpo .deps/hash_check_queue.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT hash_chunk.lo -MD -MP -MF .deps/hash_chunk.Tpo -c -o hash_chunk.lo hash_chunk.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_chunk.lo -MD -MP -MF .deps/hash_chunk.Tpo -c hash_chunk.cc -fPIC -DPIC -o .libs/hash_chunk.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_chunk.lo -MD -MP -MF .deps/hash_chunk.Tpo -c hash_chunk.cc -o hash_chunk.o >/dev/null 2>&1 mv -f .deps/hash_chunk.Tpo .deps/hash_chunk.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT hash_queue.lo -MD -MP -MF .deps/hash_queue.Tpo -c -o hash_queue.lo hash_queue.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_queue.lo -MD -MP -MF .deps/hash_queue.Tpo -c hash_queue.cc -fPIC -DPIC -o .libs/hash_queue.o In file included from hash_queue.cc:42: ../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/functional:49, from hash_queue.cc:41: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ./../globals.h:41, from hash_queue.cc:54: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' hash_queue.cc: In member function 'void torrent::HashQueue::push_back(torrent::ChunkHandle, torrent::HashQueueNode::id_type, slot_done_type)': hash_queue.cc:101:47: warning: 'new' of type 'torrent::HashChunk' with extended alignment 128 [-Waligned-new=] 101 | HashChunk* hash_chunk = new HashChunk(handle); | ^ hash_queue.cc:101:47: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter hash_queue.cc:101:47: note: use '-faligned-new' to enable C++17 over-aligned new support libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_queue.lo -MD -MP -MF .deps/hash_queue.Tpo -c hash_queue.cc -o hash_queue.o >/dev/null 2>&1 mv -f .deps/hash_queue.Tpo .deps/hash_queue.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT hash_queue_node.lo -MD -MP -MF .deps/hash_queue_node.Tpo -c -o hash_queue_node.lo hash_queue_node.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_queue_node.lo -MD -MP -MF .deps/hash_queue_node.Tpo -c hash_queue_node.cc -fPIC -DPIC -o .libs/hash_queue_node.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_queue_node.lo -MD -MP -MF .deps/hash_queue_node.Tpo -c hash_queue_node.cc -o hash_queue_node.o >/dev/null 2>&1 mv -f .deps/hash_queue_node.Tpo .deps/hash_queue_node.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT hash_torrent.lo -MD -MP -MF .deps/hash_torrent.Tpo -c -o hash_torrent.lo hash_torrent.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_torrent.lo -MD -MP -MF .deps/hash_torrent.Tpo -c hash_torrent.cc -fPIC -DPIC -o .libs/hash_torrent.o In file included from ./../data/chunk_list.h:44, from hash_torrent.cc:41: ./../data/chunk.h: In member function 'std::vector<torrent::ChunkPart>::iterator torrent::Chunk::find_address(void*)': ./../data/chunk.h:124:68: warning: 'std::const_mem_fun1_ref_t<_Ret, _Tp, _Arg> std::mem_fun_ref(_Ret (_Tp::*)(_Arg) const) [with _Ret = bool; _Tp = torrent::ChunkPart; _Arg = void*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/string:48, from ./../data/chunk_list.h:40: /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1413:5: note: declared here 1413 | mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) | ^~~~~~~~~~~ ./../data/chunk.h:124:51: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = const_mem_fun1_ref_t<bool, torrent::ChunkPart, void*>; _Tp = void*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 124 | return std::find_if(begin(), end(), std::bind2nd(std::mem_fun_ref(&ChunkPart::has_address), ptr)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:1438: /opt/tools/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ./../torrent/utils/ranges.h:44, from ./../torrent/data/download_data.h:45, from hash_torrent.cc:43: ../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:213:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 213 | struct greater2_t : public std::binary_function<typename FtorA::argument_type, typename FtorB::argument_type, bool> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:273:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function<Tp, Tp> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:279:27: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function<typename Src::argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:299:28: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../../rak/functional.h:320:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function<Class*, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function<Class&, Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function<const Class&, const Member&> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:395:34: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function<T*, void> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:408:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function<typename Operation::second_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:433:31: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function<typename Operation::first_argument_type, typename Operation::result_type> { | ^~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ../../rak/functional.h:551:30: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> { | ^~~~~~~~~~~~~~~ /opt/tools/gcc12/include/c++/12.2.0/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from hash_torrent.h:43, from hash_torrent.cc:46: ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42: ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue<Value, Compare, Equal, Alloc>::iterator rak::priority_queue<Value, Compare, Equal, Alloc>::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; iterator = std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> >::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<rak::priority_item*>; _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/gcc12/include/c++/12.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT hash_torrent.lo -MD -MP -MF .deps/hash_torrent.Tpo -c hash_torrent.cc -o hash_torrent.o >/dev/null 2>&1 mv -f .deps/hash_torrent.Tpo .deps/hash_torrent.Plo /usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/pkg/include -I/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNDEBUG -Wall -fvisibility=hidden -I/opt/pkg/include -MT memory_chunk.lo -MD -MP -MF .deps/memory_chunk.Tpo -c -o memory_chunk.lo memory_chunk.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/pbulk/build/net/libtorrent/work/.buildlink/include -D_REENTRANT -pthreads -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DNDEBUG -Wall -fvisibility=hidden -MT memory_chunk.lo -MD -MP -MF .deps/memory_chunk.Tpo -c memory_chunk.cc -fPIC -DPIC -o .libs/memory_chunk.o memory_chunk.cc:48:16: error: conflicting declaration of C function 'int madvise(void*, std::size_t, int)' 48 | extern "C" int madvise(void *, size_t, int); | ^~~~~~~ In file included from memory_chunk.cc:41: /usr/include/sys/mman.h:272:12: note: previous declaration 'int madvise(caddr_t, std::size_t, int)' 272 | extern int madvise(caddr_t, size_t, int); | ^~~~~~~ gmake[3]: *** [Makefile:455: memory_chunk.lo] Error 1 gmake[3]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src/data' gmake[2]: *** [Makefile:580: all-recursive] Error 1 gmake[2]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8/src' gmake[1]: *** [Makefile:502: all-recursive] Error 1 gmake[1]: Leaving directory '/home/pbulk/build/net/libtorrent/work/libtorrent-0.13.8' gmake: *** [Makefile:411: all] Error 2 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/libtorrent *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/libtorrent