Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS High Sierra complier failure #421

Open
elliottssu opened this issue Feb 28, 2018 · 1 comment
Open

macOS High Sierra complier failure #421

elliottssu opened this issue Feb 28, 2018 · 1 comment

Comments

@elliottssu
Copy link

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

@centaur1
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants