i not able to compile spring-0.76 on my Gentoo Box.
I get the following Errors:
gcc-4.3
Code: Select all
rts/System/AutohostInterface.cpp: In member function 'void AutohostInterface::SendPlayerJoined(unsigned char, const std::string&) const':
rts/System/AutohostInterface.cpp:81: error: 'strncpy' was not declared in this scope
rts/System/AutohostInterface.cpp: In member function 'void AutohostInterface::SendPlayerChat(unsigned char, const std::string&) const':
rts/System/AutohostInterface.cpp:104: error: 'strncpy' was not declared in this scope
scons: *** [build/rts/System/AutohostInterface.o] Error 1
If i switch back to gcc-4.2, i'm able to compile a bit further but still run into Errors:
gcc-4.2
Code: Select all
In file included from rts/lib/luabind/luabind/luabind.hpp:28,
from rts/System/Script/LuaFunctions.h:4,
from rts/System/Script/LuaFunctions.cpp:6:
rts/lib/luabind/luabind/class.hpp: In member function 'luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>, const Policies&)':
rts/lib/luabind/luabind/class.hpp:1027: error: no matching function for call to 'raw(boost::arg<1>&)'
rts/lib/luabind/luabind/class.hpp: In member function 'luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>)':
rts/lib/luabind/luabind/class.hpp:1037: error: no matching function for call to 'raw(boost::arg<1>&)'
In file included from rts/System/Script/LuaFunctions.cpp:16:
rts/Game/UI/EndGameBox.h: In member function 'void CEndGameBox::Stat::AddStat(int, float)':
rts/Game/UI/EndGameBox.h:51: error: call of overloaded 'fabs(float)' is ambiguous
/usr/include/bits/mathcalls.h:182: note: candidates are: double fabs(double)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/include/g++-v4/cmath:236: note: long double std::fabs(long double)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/include/g++-v4/cmath:232: note: float std::fabs(float)
rts/lib/streflop/SMath.h:554: note: streflop::Extended streflop::fabs(streflop::Extended)
rts/lib/streflop/SMath.h:431: note: streflop::Double streflop::fabs(streflop::Double)
rts/lib/streflop/SMath.h:241: note: streflop::Simple streflop::fabs(streflop::Simple)
rts/Game/UI/EndGameBox.h:52: error: call of overloaded 'fabs(float)' is ambiguous
/usr/include/bits/mathcalls.h:182: note: candidates are: double fabs(double)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/include/g++-v4/cmath:236: note: long double std::fabs(long double)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/include/g++-v4/cmath:232: note: float std::fabs(float)
rts/lib/streflop/SMath.h:554: note: streflop::Extended streflop::fabs(streflop::Extended)
rts/lib/streflop/SMath.h:431: note: streflop::Double streflop::fabs(streflop::Double)
rts/lib/streflop/SMath.h:241: note: streflop::Simple streflop::fabs(streflop::Simple)
rts/lib/luabind/luabind/yield_policy.hpp: At global scope:
rts/lib/luabind/luabind/yield_policy.hpp:57: warning: 'luabind::<unnamed>::yield' defined but not used
rts/lib/luabind/luabind/class.hpp:1332: warning: 'luabind::<unnamed>::pure_virtual' defined but not used
scons: *** [build/rts/System/Script/LuaFunctions.o] Error 1
I'm able to hack all the Source of Spring in Order fix all the Error-Messages, but if i start spring and join a Online-Battle, i'm able to load the Map but then spring quit with the Messages, that my Version
differs from the Servers one or something similar.
Nevertheless Gentoo EBuild for the spring-9999 (meaning the Version from the Repository) works fine, but with this Version i'm again unable to play online.

Does someone have a Hint how i can solve the Problem?
Is there perhaps a Version between 0.76 and Repository-Version, that is still compatible to 0.76 so i can play still online?
Thanks in Advance!