Compiling on macOS 10.13.6

18 views
Skip to first unread message

1776

unread,
Jul 30, 2018, 12:16:23 PM7/30/18
to twister-dev
Anyone else seeing this error?  I am seeing it on macOS 10.13.6, everything updated.  The link at the bottom shows it in FreeBSD.
I had it running and old version from 2016 on the previous computer, but got a new machine and can't get it to compile.

Thanks!

Info: #define CLIENT_VERSION_MAJOR       0
#define CLIENT_VERSION_MINOR       9
#define CLIENT_VERSION_REVISION    40
#define CLIENT_VERSION_BUILD       0



 make
  CXX      libtorrent/src/web_connection_base.o
In file included from libtorrent/src/web_connection_base.cpp:40:
In file included from ./libtorrent/include/libtorrent/web_connection_base.hpp:60:
In file included from ./libtorrent/include/libtorrent/peer_connection.hpp:66:
./libtorrent/include/libtorrent/alert.hpp:170:58: warning: expression with side
      effects will be evaluated despite being used as an operand to 'typeid'
      [-Wpotentially-evaluated-expression]
  ...detail::handle_alert_dispatch(alert_, handler, typeid(*alert_)
                                                           ^
In file included from libtorrent/src/web_connection_base.cpp:40:
In file included from ./libtorrent/include/libtorrent/web_connection_base.hpp:67:
In file included from ./libtorrent/include/libtorrent/torrent.hpp:75:
In file included from ./libtorrent/include/libtorrent/aux_/session_impl.hpp:68:
./libtorrent/include/libtorrent/ip_filter.hpp:165:29: error: no member named
      'prior' in namespace 'boost'
                        int last_access = boost::prior(j)->access;

                                          ~~~~~~~^
./libtorrent/include/libtorrent/ip_filter.hpp:171:50: error: no member named
      'prior' in namespace 'boost'

  ...else if (i != m_access_list.begin() && boost::prior(i)->access == flags)
                                            ~~~~~~~^
./libtorrent/include/libtorrent/ip_filter.hpp:179:43: error: no member named
      'next' in namespace 'boost'
                        if (i != j) m_access_list.erase(boost::next(i), j);

                                                        ~~~~~~~^
./libtorrent/include/libtorrent/ip_filter.hpp:212:47: error: no member named
      'next' in namespace 'boost'
  ...TORRENT_ASSERT(i->start <= addr && (boost::next(i) == m_access_list.end()
                                         ~~~~~~~^
./libtorrent/include/libtorrent/assert.hpp:59:36: note: expanded from macro
      'TORRENT_ASSERT'
#define TORRENT_ASSERT(x) do { if (x) {} else assert_fail(#x, __LINE__, ...
                                   ^
In file included from libtorrent/src/web_connection_base.cpp:40:
In file included from ./libtorrent/include/libtorrent/web_connection_base.hpp:67:
In file included from ./libtorrent/include/libtorrent/torrent.hpp:75:
In file included from ./libtorrent/include/libtorrent/aux_/session_impl.hpp:68:
./libtorrent/include/libtorrent/ip_filter.hpp:213:15: error: no member named
      'next' in namespace 'boost'; did you mean 'std::next'?
                                || addr < boost::next(i)->start));
                                          ^~~~~~~~~~~
                                          std::next
./libtorrent/include/libtorrent/assert.hpp:59:36: note: expanded from macro
      'TORRENT_ASSERT'
#define TORRENT_ASSERT(x) do { if (x) {} else assert_fail(#x, __LINE__, ...
                                   ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:608:1: note:
      'std::next' declared here
next(_InputIter __x,
^
In file included from libtorrent/src/web_connection_base.cpp:40:
In file included from ./libtorrent/include/libtorrent/web_connection_base.hpp:67:
In file included from ./libtorrent/include/libtorrent/torrent.hpp:75:
In file included from ./libtorrent/include/libtorrent/aux_/session_impl.hpp:76:
In file included from ./libtorrent/include/libtorrent/socket_type.hpp:41:
./libtorrent/include/libtorrent/utp_stream.hpp:343:8: warning: 'auto' type
      specifier is a C++11 extension [-Wc++11-extensions]
                for (auto i = buffer_sequence_begin(buffers)
                     ^
2 warnings and 5 errors generated.
make: *** [libtorrent/src/web_connection_base.o] Error 1

I see someone else got it here:

1776

unread,
Jul 31, 2018, 3:10:35 PM7/31/18
to twister-dev
It appears that those functions used to be defined in boost/utility.hpp but apparently they've moved to boost/next_prior.hpp

I will see if updating that helps.

1776

unread,
Aug 1, 2018, 5:00:03 PM8/1/18
to twister-dev
In 4 files, I just added the next_prior.hpp includes like this:

#include <boost/utility.hpp>
#include <boost/next_prior.hpp>

These are the files and line numbers where I added the "next_prior.hpp" after the utility include:
~/twister-core/libtorrent/include/libtorrent/disk_buffer_pool.hpp:36: #include <boost/utility.hpp>
~/twister-core/libtorrent/include/libtorrent/ip_filter.hpp:44: #include <boost/utility.hpp>
~//twister-core/libtorrent/include/libtorrent/kademlia/routing_table.hpp:39: #include <boost/utility.hpp>
~//twister-core/libtorrent/include/libtorrent/pch.hpp:73: #include <boost/utility.hpp>

This appears to have fixed the issue.  Still testing, but no compile errors.

Сёма Мрачный

unread,
Nov 7, 2018, 6:21:58 PM11/7/18
to twister-dev
hey there,


понедельник, 30 июля 2018 г., 21:16:23 UTC+5 пользователь 1776 написал:
Reply all
Reply to author
Forward
0 new messages