jareczekjsp
Member
Hello guys I try compiling tfs 1.2 on ubuntu but I have error,how I can fix it?
/home/ots/src/connection.cpp: In member function ‘void Connection::accept()’:
/home/ots/src/connection.cpp:119:95: error: no matching function for call to ‘boost:osix_time::seconds::seconds(Connection::<unnamed enum>)’
119 | readTimer.expires_from_now(boost:osix_time::seconds(Connection::read_timeout));
| ^
In file included from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:16,
from /usr/include/boost/asio/time_traits.hpp:23,
from /usr/include/boost/asio/detail/timer_queue_ptime.hpp:22,
from /usr/include/boost/asio/detail/deadline_timer_service.hpp:29,
from /usr/include/boost/asio/basic_deadline_timer.hpp:25,
from /usr/include/boost/asio.hpp:25,
from /home/ots/src/otpch.h:42,
from /home/ots/build/cotire/tfs_CXX_prefix.cxx:4,
from /home/ots/build/cotire/tfs_CXX_prefix.hxx:4:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: note: candidate: ‘template<class T> boost:osix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
57 | BOOST_CXX14_CONSTEXPR explicit seconds(T const& s,
| ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: note: template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost:osix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/ots/src/connection.cpp:119:81: required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: 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: ‘constexpr boost:osix_time::seconds::seconds(const boost:osix_time::seconds&)’
53 | 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:osix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘constexpr boost:osix_time::seconds::seconds(boost:osix_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:osix_time::seconds&&’
/home/ots/src/connection.cpp: In member function ‘void Connection:arseHeader(const boost::system::error_code&)’:
/home/ots/src/connection.cpp:159:95: error: no matching function for call to ‘boost:osix_time::seconds::seconds(Connection::<unnamed enum>)’
159 | readTimer.expires_from_now(boost:osix_time::seconds(Connection::read_timeout));
| ^
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: note: candidate: ‘template<class T> boost:osix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
57 | BOOST_CXX14_CONSTEXPR explicit seconds(T const& s,
| ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: note: template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost:osix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/ots/src/connection.cpp:159:81: required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: 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: ‘constexpr boost:osix_time::seconds::seconds(const boost:osix_time::seconds&)’
53 | 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:osix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘constexpr boost:osix_time::seconds::seconds(boost:osix_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:osix_time::seconds&&’
/home/ots/src/connection.cpp: In member function ‘void Connection:arsePacket(const boost::system::error_code&)’:
/home/ots/src/connection.cpp:222:95: error: no matching function for call to ‘boost:osix_time::seconds::seconds(Connection::<unnamed enum>)’
222 | readTimer.expires_from_now(boost:osix_time::seconds(Connection::read_timeout));
| ^
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: note: candidate: ‘template<class T> boost:osix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
57 | BOOST_CXX14_CONSTEXPR explicit seconds(T const& s,
| ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: note: template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost:osix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/ots/src/connection.cpp:222:81: required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: 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: ‘constexpr boost:osix_time::seconds::seconds(const boost:osix_time::seconds&)’
53 | 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:osix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘constexpr boost:osix_time::seconds::seconds(boost:osix_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:osix_time::seconds&&’
/home/ots/src/connection.cpp: In member function ‘void Connection::internalSend(const OutputMessage_ptr&)’:
/home/ots/src/connection.cpp:254:97: error: no matching function for call to ‘boost:osix_time::seconds::seconds(Connection::<unnamed enum>)’
254 | writeTimer.expires_from_now(boost:osix_time::seconds(Connection::write_timeout));
| ^
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: note: candidate: ‘template<class T> boost:osix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
57 | BOOST_CXX14_CONSTEXPR explicit seconds(T const& s,
| ^~~~~~~
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: note: template argument deduction/substitution failed:
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp: In substitution of ‘template<class T> boost:osix_time::seconds::seconds(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*) [with T = Connection::<unnamed enum>]’:
/home/ots/src/connection.cpp:254:83: required from here
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:57:38: 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: ‘constexpr boost:osix_time::seconds::seconds(const boost:osix_time::seconds&)’
53 | 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:osix_time::seconds&’
/usr/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate: ‘constexpr boost:osix_time::seconds::seconds(boost:osix_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:osix_time::seconds&&’
make[2]: *** [CMakeFiles/tfs.dir/build.make:240: CMakeFiles/tfs.dir/src/connection.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:91: all] Error 2