• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling error Arch Linux

Chrisrush

New Member
Joined
Apr 17, 2018
Messages
1
Reaction score
0
Hello.

I'm trying to compile otlcient in Arch Linux. I got another error after some already fixed myself. Maybe you could help me find where the problem is. I'm stuck here.

Thank you

Code:
[ 64%] Building CXX object CMakeFiles/otclient.dir/src/framework/net/connection.cpp.o
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp: In member function ‘void Connection::connect(const string&, uint16, const std::function<void()>&)’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:102:73: error: no matching function for call to ‘boost::posix_time::seconds::seconds(Connection::<unnamed enum>)’
     m_readTimer.expires_from_now(boost::posix_time::seconds(READ_TIMEOUT));
                                                                         ^
In file included from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:16,
                 from /usr/include/boost/thread/thread_time.hpp:11,
                 from /usr/include/boost/thread/detail/platform_time.hpp:11,
                 from /usr/include/boost/thread/pthread/condition_variable.hpp:9,
                 from /usr/include/boost/thread/condition_variable.hpp:16,
                 from /usr/include/boost/thread/future.hpp:20,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/stdext/thread.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/core/logger.h:28,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/global.h:45,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/declarations.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:23:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note: candidate: ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
       explicit seconds(T const& s,
                ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note:   template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:102:73:   required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: error: no type named ‘type’ in ‘struct boost::enable_if<boost::is_integral<Connection::<unnamed enum> >, void>’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(const boost::posix_time::seconds&)’
   class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                              ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘const boost::posix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(boost::posix_time::seconds&&)’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘boost::posix_time::seconds&&’
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp: In member function ‘void Connection::internal_connect(boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator)’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:111:73: error: no matching function for call to ‘boost::posix_time::seconds::seconds(Connection::<unnamed enum>)’
     m_readTimer.expires_from_now(boost::posix_time::seconds(READ_TIMEOUT));
                                                                         ^
In file included from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:16,
                 from /usr/include/boost/thread/thread_time.hpp:11,
                 from /usr/include/boost/thread/detail/platform_time.hpp:11,
                 from /usr/include/boost/thread/pthread/condition_variable.hpp:9,
                 from /usr/include/boost/thread/condition_variable.hpp:16,
                 from /usr/include/boost/thread/future.hpp:20,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/stdext/thread.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/core/logger.h:28,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/global.h:45,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/declarations.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:23:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note: candidate: ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
       explicit seconds(T const& s,
                ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note:   template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:111:73:   required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: error: no type named ‘type’ in ‘struct boost::enable_if<boost::is_integral<Connection::<unnamed enum> >, void>’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(const boost::posix_time::seconds&)’
   class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                              ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘const boost::posix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(boost::posix_time::seconds&&)’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘boost::posix_time::seconds&&’
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp: In member function ‘void Connection::internal_write()’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:151:75: error: no matching function for call to ‘boost::posix_time::seconds::seconds(Connection::<unnamed enum>)’
     m_writeTimer.expires_from_now(boost::posix_time::seconds(WRITE_TIMEOUT));
                                                                           ^
In file included from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:16,
                 from /usr/include/boost/thread/thread_time.hpp:11,
                 from /usr/include/boost/thread/detail/platform_time.hpp:11,
                 from /usr/include/boost/thread/pthread/condition_variable.hpp:9,
                 from /usr/include/boost/thread/condition_variable.hpp:16,
                 from /usr/include/boost/thread/future.hpp:20,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/stdext/thread.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/core/logger.h:28,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/global.h:45,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/declarations.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:23:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note: candidate: ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
       explicit seconds(T const& s,
                ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note:   template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:151:75:   required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: error: no type named ‘type’ in ‘struct boost::enable_if<boost::is_integral<Connection::<unnamed enum> >, void>’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(const boost::posix_time::seconds&)’
   class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                              ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘const boost::posix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(boost::posix_time::seconds&&)’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘boost::posix_time::seconds&&’
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp: In member function ‘void Connection::read(uint16, const RecvCallback&)’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:167:73: error: no matching function for call to ‘boost::posix_time::seconds::seconds(Connection::<unnamed enum>)’
     m_readTimer.expires_from_now(boost::posix_time::seconds(READ_TIMEOUT));
                                                                         ^
In file included from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:16,
                 from /usr/include/boost/thread/thread_time.hpp:11,
                 from /usr/include/boost/thread/detail/platform_time.hpp:11,
                 from /usr/include/boost/thread/pthread/condition_variable.hpp:9,
                 from /usr/include/boost/thread/condition_variable.hpp:16,
                 from /usr/include/boost/thread/future.hpp:20,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/stdext/thread.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/core/logger.h:28,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/global.h:45,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/declarations.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:23:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note: candidate: ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
       explicit seconds(T const& s,
                ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note:   template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:167:73:   required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: error: no type named ‘type’ in ‘struct boost::enable_if<boost::is_integral<Connection::<unnamed enum> >, void>’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(const boost::posix_time::seconds&)’
   class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                              ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘const boost::posix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(boost::posix_time::seconds&&)’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘boost::posix_time::seconds&&’
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp: In member function ‘void Connection::read_until(const string&, const RecvCallback&)’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:184:73: error: no matching function for call to ‘boost::posix_time::seconds::seconds(Connection::<unnamed enum>)’
     m_readTimer.expires_from_now(boost::posix_time::seconds(READ_TIMEOUT));
                                                                         ^
In file included from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:16,
                 from /usr/include/boost/thread/thread_time.hpp:11,
                 from /usr/include/boost/thread/detail/platform_time.hpp:11,
                 from /usr/include/boost/thread/pthread/condition_variable.hpp:9,
                 from /usr/include/boost/thread/condition_variable.hpp:16,
                 from /usr/include/boost/thread/future.hpp:20,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/stdext/thread.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/core/logger.h:28,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/global.h:45,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/declarations.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:23:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note: candidate: ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
       explicit seconds(T const& s,
                ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note:   template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:184:73:   required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: error: no type named ‘type’ in ‘struct boost::enable_if<boost::is_integral<Connection::<unnamed enum> >, void>’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(const boost::posix_time::seconds&)’
   class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                              ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘const boost::posix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(boost::posix_time::seconds&&)’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘boost::posix_time::seconds&&’
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp: In member function ‘void Connection::read_some(const RecvCallback&)’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:199:73: error: no matching function for call to ‘boost::posix_time::seconds::seconds(Connection::<unnamed enum>)’
     m_readTimer.expires_from_now(boost::posix_time::seconds(READ_TIMEOUT));
                                                                         ^
In file included from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:16,
                 from /usr/include/boost/thread/thread_time.hpp:11,
                 from /usr/include/boost/thread/detail/platform_time.hpp:11,
                 from /usr/include/boost/thread/pthread/condition_variable.hpp:9,
                 from /usr/include/boost/thread/condition_variable.hpp:16,
                 from /usr/include/boost/thread/future.hpp:20,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/stdext/thread.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/core/logger.h:28,
                 from /home/chris/dev/opentibia/otclient/src/framework/../framework/global.h:45,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/declarations.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.h:26,
                 from /home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:23:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note: candidate: ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
       explicit seconds(T const& s,
                ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: note:   template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost::posix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/chris/dev/opentibia/otclient/src/framework/net/connection.cpp:199:73:   required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:16: error: no type named ‘type’ in ‘struct boost::enable_if<boost::is_integral<Connection::<unnamed enum> >, void>’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(const boost::posix_time::seconds&)’
   class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                              ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘const boost::posix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘boost::posix_time::seconds::seconds(boost::posix_time::seconds&&)’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:   no known conversion for argument 1 from ‘Connection::<unnamed enum>’ to ‘boost::posix_time::seconds&&’
make[2]: *** [CMakeFiles/otclient.dir/build.make:1272: CMakeFiles/otclient.dir/src/framework/net/connection.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/otclient.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
 
Back
Top