miguelfreitas/twister-core

macOS High Sierra complier failure

elliottssu opened this issue · 1 comments

environment:macos 10.13.3

I compiled the twiser tutorial on my Mac, but
command makefailure

/libtorrent/include/libtorrent/io_service_fwd.hpp:59:7: note: forward declaration of 'boost::asio::io_service'
class io_service;
      ^
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:
./libtorrent/include/libtorrent/aux_/session_impl.hpp:667:23: error: field has incomplete type 'io_service'
      (aka 'boost::asio::io_service')
                        mutable io_service m_io_service;
                                           ^
./libtorrent/include/libtorrent/io_service_fwd.hpp:59:7: note: forward declaration of 'boost::asio::io_service'
class io_service;
      ^
In file included from libtorrent/src/web_connection_base.cpp:40:
./libtorrent/include/libtorrent/web_connection_base.hpp:123:5: error: cannot initialize object parameter of type
      'libtorrent::peer_connection' with an expression of type 'libtorrent::web_connection_base'
                { incoming_reject_request(r); }
                  ^~~~~~~~~~~~~~~~~~~~~~~
libtorrent/src/web_connection_base.cpp:78:3: error: cannot initialize object parameter of type 'libtorrent::peer_connection'
      with an expression of type 'libtorrent::web_connection_base'
                set_priority(1);
                ^~~~~~~~~~~~
libtorrent/src/web_connection_base.cpp:82:3: error: cannot initialize object parameter of type 'libtorrent::peer_connection'
      with an expression of type 'libtorrent::web_connection_base'
                set_timeout(ses.settings().urlseed_timeout);
                ^~~~~~~~~~~
libtorrent/src/web_connection_base.cpp:110:3: error: cannot initialize object parameter of type 'libtorrent::peer_connection'
      with an expression of type 'libtorrent::web_connection_base'
                set_upload_only(true);
                ^~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

Do anyone know what's going on?Thanks

That is odd. I'm not seeing an issue. I just rebuilt it on 10.13.6 with Xcode 10.0 yesterday. If you are still seeing it, maybe we can see what is different between the systems. How did you install boost etc? brew?