- [ 18%] Building CXX object src/server/shared/CMakeFiles/shared.dir/Realm/Realm.cpp.o
- [ 18%] Building CXX object src/server/shared/CMakeFiles/shared.dir/Packets/ByteBuffer.cpp.o
- [ 18%] Building CXX object src/server/shared/CMakeFiles/shared.dir/Realm/RealmList.cpp.o
- In file included from /usr/include/boost/asio/ip/tcp.hpp:25,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.cpp:18:
- /usr/include/boost/asio/ip/basic_resolver.hpp:54:7: error: redeclared with 2 template parameters
- 54 | class basic_resolver;
- | ^~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.cpp:18:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:59:19: note: previous declaration ‘template<class InternetProtocol> class boost::asio::ip::basic_resolver’ used 1 template parameter
- 59 | class basic_resolver;
- | ^~~~~~~~~~~~~~
- In file included from /usr/include/boost/asio/ip/tcp.hpp:25,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.cpp:18:
- /usr/include/boost/asio/ip/basic_resolver.hpp:68:7: error: redeclared with 2 template parameters
- 68 | class basic_resolver
- | ^~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.cpp:18:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:59:19: note: previous declaration ‘template<class InternetProtocol> class boost::asio::ip::basic_resolver’ used 1 template parameter
- 59 | class basic_resolver;
- | ^~~~~~~~~~~~~~
- In file included from /usr/include/boost/asio/ip/tcp.hpp:25,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /usr/include/boost/asio/ip/basic_resolver.hpp:54:7: error: redeclared with 2 template parameters
- 54 | class basic_resolver;
- | ^~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:59:19: note: previous declaration ‘template<class InternetProtocol> class boost::asio::ip::basic_resolver’ used 1 template parameter
- 59 | class basic_resolver;
- | ^~~~~~~~~~~~~~
- In file included from /usr/include/boost/asio/ip/tcp.hpp:25,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /usr/include/boost/asio/ip/basic_resolver.hpp:68:7: error: redeclared with 2 template parameters
- 68 | class basic_resolver
- | ^~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:59:19: note: previous declaration ‘template<class InternetProtocol> class boost::asio::ip::basic_resolver’ used 1 template parameter
- 59 | class basic_resolver;
- | ^~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:23:
- /home/grad/TBC_New/src/common/Asio/Resolver.h: In function ‘Optional<boost::asio::ip::basic_endpoint<boost::asio::ip::tcp> > Trinity::Net::Resolve(boost::asio::ip::tcp::resolver&, const boost::asio::ip::tcp&, const string&, const string&)’:
- /home/grad/TBC_New/src/common/Asio/Resolver.h:34:45: error: incomplete type ‘boost::asio::ip::tcp::resolver’ {aka ‘boost::asio::ip::basic_resolver<boost::asio::ip::tcp>’} used in nested name specifier
- 34 | boost::asio::ip::tcp::resolver::results_type results = resolver.resolve(protocol, host, service, ec);
- | ^~~~~~~~~~~~
- /home/grad/TBC_New/src/common/Asio/Resolver.h:35:17: error: ‘results’ was not declared in this scope
- 35 | if (results.begin() == results.end() || ec)
- | ^~~~~~~
- /home/grad/TBC_New/src/common/Asio/Resolver.h:38:20: error: ‘results’ was not declared in this scope
- 38 | return results.begin()->endpoint();
- | ^~~~~~~
- In file included from /usr/include/boost/asio/deadline_timer.hpp:24,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:25:
- /usr/include/boost/asio/basic_deadline_timer.hpp: At global scope:
- /usr/include/boost/asio/basic_deadline_timer.hpp:130:7: error: redeclared with 3 template parameters
- 130 | class basic_deadline_timer
- | ^~~~~~~~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:52:15: note: previous declaration ‘template<class Time, class TimeTraits> class boost::asio::basic_deadline_timer’ used 2 template parameters
- 52 | class basic_deadline_timer;
- | ^~~~~~~~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:25:
- /usr/include/boost/asio/deadline_timer.hpp:32:54: error: wrong number of template arguments (1, should be 2)
- 32 | typedef basic_deadline_timer<boost::posix_time::ptime> deadline_timer;
- | ^
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:52:15: note: provided for ‘template<class Time, class TimeTraits> class boost::asio::basic_deadline_timer’
- 52 | class basic_deadline_timer;
- | ^~~~~~~~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:25:
- /usr/include/boost/asio/deadline_timer.hpp:32:56: error: conflicting declaration ‘typedef int boost::asio::deadline_timer’
- 32 | typedef basic_deadline_timer<boost::posix_time::ptime> deadline_timer;
- | ^~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:54:89: note: previous declaration as ‘typedef class boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> > boost::asio::deadline_timer’
- 54 | typedef basic_deadline_timer<posix_time::ptime, time_traits<posix_time::ptime>> deadline_timer;
- | ^~~~~~~~~~~~~~
- /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp: In member function ‘void RealmList::Close()’:
- /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:55:17: error: invalid use of incomplete type ‘class boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >’
- 55 | _updateTimer->cancel();
- | ^~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:52:15: note: declaration of ‘class boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >’
- 52 | class basic_deadline_timer;
- | ^~~~~~~~~~~~~~~~~~~~
- /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp: In member function ‘void RealmList::UpdateRealms(const boost::system::error_code&)’:
- /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:170:21: error: invalid use of incomplete type ‘class boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >’
- 170 | _updateTimer->expires_from_now(boost::posix_time::seconds(_updateInterval));
- | ^~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:52:15: note: declaration of ‘class boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >’
- 52 | class basic_deadline_timer;
- | ^~~~~~~~~~~~~~~~~~~~
- /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:171:21: error: invalid use of incomplete type ‘class boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >’
- 171 | _updateTimer->async_wait(std::bind(&RealmList::UpdateRealms, this, std::placeholders::_1));
- | ^~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:52:15: note: declaration of ‘class boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >’
- 52 | class basic_deadline_timer;
- | ^~~~~~~~~~~~~~~~~~~~
- make[2]: *** [src/server/shared/CMakeFiles/shared.dir/build.make:139: src/server/shared/CMakeFiles/shared.dir/Realm/Realm.cpp.o] Ошибка 1
- make[2]: *** Ожидание завершения заданий…
- In file included from /usr/include/c++/10/memory:83,
- from /home/grad/TBC_New/src/common/Common.h:44,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:21,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /usr/include/c++/10/bits/unique_ptr.h: In instantiation of ‘typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >; _Args = {Trinity::Asio::IoContext&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> > >]’:
- /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:46:79: required from here
- /usr/include/c++/10/bits/unique_ptr.h:962:30: error: invalid use of incomplete type ‘class boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >’
- 962 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:52:15: note: declaration of ‘class boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >’
- 52 | class basic_deadline_timer;
- | ^~~~~~~~~~~~~~~~~~~~
- In file included from /usr/include/c++/10/memory:83,
- from /home/grad/TBC_New/src/common/Common.h:44,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:21,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /usr/include/c++/10/bits/unique_ptr.h: In instantiation of ‘typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = boost::asio::ip::basic_resolver<boost::asio::ip::tcp>; _Args = {Trinity::Asio::IoContext&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<boost::asio::ip::basic_resolver<boost::asio::ip::tcp> >]’:
- /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:47:79: required from here
- /usr/include/c++/10/bits/unique_ptr.h:962:30: error: invalid use of incomplete type ‘class boost::asio::ip::basic_resolver<boost::asio::ip::tcp>’
- 962 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:22,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /home/grad/TBC_New/src/common/Asio/AsioHacksFwd.h:59:19: note: declaration of ‘class boost::asio::ip::basic_resolver<boost::asio::ip::tcp>’
- 59 | class basic_resolver;
- | ^~~~~~~~~~~~~~
- In file included from /usr/include/c++/10/memory:83,
- from /home/grad/TBC_New/src/common/Common.h:44,
- from /home/grad/TBC_New/src/server/shared/Realm/Realm.h:21,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.h:23,
- from /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:19:
- /usr/include/c++/10/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >]’:
- /usr/include/c++/10/bits/unique_ptr.h:361:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >; _Dp = std::default_delete<boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> > >]’
- /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:28:43: required from here
- /usr/include/c++/10/bits/unique_ptr.h:83:16: error: invalid application of ‘sizeof’ to incomplete type ‘boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >’
- 83 | static_assert(sizeof(_Tp)>0,
- | ^~~~~~~~~~~
- /usr/include/c++/10/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = boost::asio::ip::basic_resolver<boost::asio::ip::tcp>]’:
- /usr/include/c++/10/bits/unique_ptr.h:361:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = boost::asio::ip::basic_resolver<boost::asio::ip::tcp>; _Dp = std::default_delete<boost::asio::ip::basic_resolver<boost::asio::ip::tcp> >]’
- /home/grad/TBC_New/src/server/shared/Realm/RealmList.cpp:28:43: required from here
- /usr/include/c++/10/bits/unique_ptr.h:83:16: error: invalid application of ‘sizeof’ to incomplete type ‘boost::asio::ip::basic_resolver<boost::asio::ip::tcp>’
- make[2]: *** [src/server/shared/CMakeFiles/shared.dir/build.make:153: src/server/shared/CMakeFiles/shared.dir/Realm/RealmList.cpp.o] Ошибка 1
- make[1]: *** [CMakeFiles/Makefile2:1049: src/server/shared/CMakeFiles/shared.dir/all] Ошибка 2
- make: *** [Makefile:149: all] Ошибка 2