./build.sh
TheForgottenServer build script -
Using ccache
CCache binaries located in /usr/lib/ccache
from connection.cpp:18:
/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*)’
57 | 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>]’:
connection.cpp:439:82: 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&)’
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::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&&’
connection.cpp: In member function ‘void Connection::internalSend(OutputMessage_ptr)’:
connection.cpp:507:84: error: no matching function for call to ‘boost::posix_time::seconds::seconds(Connection::<unnamed enum>)’
507 | m_writeTimer.expires_from_now(boost::posix_time::seconds(Connection::writeTimeout));
| ^
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/basic_deadline_timer.hpp:28,
from /usr/include/boost/asio.hpp:24,
from otsystem.h:33,
from inputbox.h:20,
from otpch.h:45,
from connection.cpp:18:
/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*)’
57 | 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>]’:
connection.cpp:507:84: 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&)’
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::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[1]: *** [Makefile:598: connection.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from baseevents.cpp:21:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from baseevents.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
make[1]: *** [Makefile:598: baseevents.o] Error 1
In file included from raids.h:28,
from item.h:29,
from tile.h:23,
from housetile.h:20,
from house.h:30,
from configmanager.cpp:21:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from configmanager.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
make[1]: *** [Makefile:598: configmanager.o] Error 1
In file included from raids.h:28,
from item.h:29,
from tile.h:23,
from creatureevent.h:23,
from creatureevent.cpp:22:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from creatureevent.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
make[1]: *** [Makefile:598: creatureevent.o] Error 1
In file included from map.h:20,
from combat.h:24,
from combat.cpp:20:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from combat.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
combat.cpp: In member function ‘void CombatArea::copyArea(const MatrixArea*, MatrixArea*, CombatArea::MatrixOperation_t) const’:
combat.cpp:1217:42: error: call of overloaded ‘round(float)’ is ambiguous
1217 | rotatedX = round(newX * a + newY * b),
| ^
In file included from /usr/include/features.h:446,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from /usr/include/libxml2/libxml/xmlmemory.h:15,
from otpch.h:29,
from combat.cpp:17:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:298:1: note: candidate: ‘double round(double)’
298 | __MATHCALLX (round,, (_Mdouble_ __x), (__const__));
| ^~~~~~~~~~~
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from combat.cpp:17:
/usr/include/c++/9/cmath:1760:3: note: candidate: ‘constexpr long double std::round(long double)’
1760 | round(long double __x)
| ^~~~~
/usr/include/c++/9/cmath:1756:3: note: candidate: ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
In file included from map.h:20,
from combat.h:24,
from combat.cpp:20:
tools.h:124:9: note: candidate: ‘int32_t round(float)’
124 | int32_t round(float v);
| ^~~~~
combat.cpp:1220:15: error: ‘rotatedY’ was not declared in this scope; did you mean ‘rotatedX’?
1220 | (*output)[rotatedY + rotateCenterY][rotatedX + rotateCenterX] = (*input)[y][x];
| ^~~~~~~~
| rotatedX
combat.cpp:1209:9: warning: unused variable ‘c’ [-Wunused-variable]
1209 | float c = std::sin(angleRad), d = std::cos(angleRad);
| ^
combat.cpp:1209:33: warning: unused variable ‘d’ [-Wunused-variable]
1209 | float c = std::sin(angleRad), d = std::cos(angleRad);
| ^
make[1]: *** [Makefile:598: combat.o] Error 1
In file included from raids.h:28,
from item.h:29,
from beds.h:20,
from beds.cpp:19:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from beds.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
make[1]: *** [Makefile:598: beds.o] Error 1
In file included from condition.cpp:20:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from condition.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
make[1]: *** [Makefile:598: condition.o] Error 1
In file included from map.h:20,
from creature.h:28,
from creature.cpp:19:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from creature.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
make[1]: *** [Makefile:598: creature.o] Error 1
In file included from map.h:20,
from creature.h:28,
from player.h:23,
from party.h:20,
from chat.h:24,
from chat.cpp:18:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from chat.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
chat.cpp: In member function ‘ChatChannel* Chat::getChannel(Player*, uint16_t)’:
chat.cpp:1145:10: error: cannot convert ‘bool’ to ‘ChatChannel*’ in return
1145 | return false;
| ^~~~~
make[1]: *** [Makefile:598: chat.o] Error 1
In file included from raids.h:28,
from item.h:29,
from container.h:23,
from container.cpp:19:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from container.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
make[1]: *** [Makefile:598: container.o] Error 1
In file included from actions.cpp:21:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
124 | int32_t round(float v);
| ^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21,
from /usr/include/boost/container_hash/detail/float_functions.hpp:14,
from /usr/include/boost/container_hash/detail/hash_float.hpp:14,
from /usr/include/boost/container_hash/hash.hpp:21,
from /usr/include/boost/type_index/stl_type_index.hpp:43,
from /usr/include/boost/type_index.hpp:29,
from /usr/include/boost/function/function_base.hpp:21,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:30,
from otpch.h:35,
from actions.cpp:17:
/usr/include/c++/9/cmath:1756:3: note: previous declaration ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~
make[1]: *** [Makefile:598: actions.o] Error 1
make[1]: Leaving directory '/home/funtera/tmp'
make: *** [Makefile:446: all] Error 2
root@vmi368124:/home/funtera/tmp#