Cuberite Forum
CentOS Compile Error - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: CentOS Compile Error (/thread-1220.html)



CentOS Compile Error - ThijsD - 08-15-2013

I'm trying to compile the server on CentOS and it goes great until I get the following error:

source/LuaState.cpp:35: error: uninitialized const âcLuaState::Returnâ
make: *** [build/release/source/LuaState.o] Error 1

Line 35 contains "const cLuaState::cRet cLuaState::Return;" Is there anything I can do to fix this error?


Please help me out a bit Smile

ThijsD


RE: CentOS Compile Error - xoft - 08-15-2013

Hello, welcome to the forum.
What is your compiler version? It seems that the compilers don't agree on interpreting the standard here, both gcc and msvc don't have a problem with this line.


RE: CentOS Compile Error - ThijsD - 08-15-2013

Thank you,
It appears to be GCC version 4.4.7


RE: CentOS Compile Error - xoft - 08-15-2013

I was lucky, I showed this error to my colleague and he said he knows this behavior, so he proposed a fix. Can you retry with current git master code?


RE: CentOS Compile Error - ThijsD - 08-15-2013

Yup, That fixed it! Thank you! Smile


RE: CentOS Compile Error - e_mcserver@openstandards.net - 08-20-2013

(08-15-2013, 09:33 PM)ThijsD Wrote: Yup, That fixed it! Thank you! Smile

That's good news cuz I run my production servers on Centos, and hope to eventually have a MC Server running on one of my Centos instances. For now, running on Fedora and Ubuntu.