HI!
have any of you encountered an error during building master server on ubuntu linux? I installed newest g++. Building process throws an error after a while. Here is whole output from terminal:
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER Common/Log.cpp -o Common/Log.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER Common/Utility.cpp -o Common/Utility.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/RakNetworkFactory.cpp -o RakNet/Sources/RakNetworkFactory.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/BitStream.cpp -o RakNet/Sources/BitStream.o
RakNet/Sources/BitStream.cpp: In member function ‘void RakNet::BitStream::PrintBits() const’:
RakNet/Sources/BitStream.cpp:785:25: warning: format not a string literal and no format arguments [-Wformat-security]
RakNet/Sources/BitStream.cpp: In member function ‘void RakNet::BitStream::PrintHex() const’:
RakNet/Sources/BitStream.cpp:799:25: warning: format not a string literal and no format arguments [-Wformat-security]
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/GetTime.cpp -o RakNet/Sources/GetTime.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/RakPeer.cpp -o RakNet/Sources/RakPeer.o
RakNet/Sources/RakPeer.cpp:160:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘255’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘255’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘254’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘254’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘254’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘254’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘253’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘253’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘253’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp:162:127: warning: narrowing conversion of ‘253’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
RakNet/Sources/RakPeer.cpp: In member function ‘virtual bool RakPeer::RPC(const char*, const char*, BitSize_t, PacketPriority, PacketReliability, char, AddressOrGUID, bool, RakNetTime*, NetworkID, RakNet::BitStream*, unsigned char, SystemAddress)’:
RakNet/Sources/RakPeer.cpp:1800:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
RakNet/Sources/RakPeer.cpp: In member function ‘RakPeer::RemoteSystemStruct* RakPeer::AssignSystemAddressToRemoteSystemList(SystemAddress, RakPeer::RemoteSystemStruct::ConnectMode, RakNetSmartPtr<RakNetSocket>, bool*, SystemAddress, int, RakNetGUID, short unsigned int)’:
RakNet/Sources/RakPeer.cpp:4099:12: warning: unused variable ‘errorCode’ [-Wunused-variable]
RakNet/Sources/RakPeer.cpp: In member function ‘virtual char* RakPeer::HandleRPCPacket(const char*, int, SystemAddress)’:
RakNet/Sources/RakPeer.cpp:4437:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4447:11: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4459:11: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4467:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4485:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4493:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4503:11: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4511:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4520:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4530:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4539:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp:4581:51: warning: statement has no effect [-Wunused-value]
RakNet/Sources/RakPeer.cpp:4609:11: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
RakNet/Sources/RakPeer.cpp: In function ‘bool ProcessOfflineNetworkPacket(SystemAddress, const char*, int, RakPeer*, RakNetSmartPtr<RakNetSocket>, bool*, RakNetTimeUS)’:
RakNet/Sources/RakPeer.cpp:5776:102: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
RakNet/Sources/RakPeer.cpp: In member function ‘bool RakPeer::RunUpdateCycle()’:
RakNet/Sources/RakPeer.cpp:6129:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/BitStream_NoTemplate.cpp -o RakNet/Sources/BitStream_NoTemplate.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/RakSleep.cpp -o RakNet/Sources/RakSleep.o
RakNet/Sources/RakSleep.cpp: In function ‘void RakSleep(unsigned int)’:
RakNet/Sources/RakSleep.cpp:29:6: warning: variable ‘rt’ set but not used [-Wunused-but-set-variable]
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/CheckSum.cpp -o RakNet/Sources/CheckSum.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/Rand.cpp -o RakNet/Sources/Rand.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/ReliabilityLayer.cpp -o RakNet/Sources/ReliabilityLayer.o
RakNet/Sources/ReliabilityLayer.cpp:199:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
In file included from RakNet/Sources/ReliabilityLayer.cpp:8:0:
RakNet/Sources/ReliabilityLayer.h: In constructor ‘BPSTracker::TimeAndValue2::TimeAndValue2(RakNetTimeUS, uint64_t)’:
RakNet/Sources/ReliabilityLayer.h:88:14: warning: ‘BPSTracker::TimeAndValue2::time’ will be initialized after [-Wreorder]
RakNet/Sources/ReliabilityLayer.h:87:12: warning: ‘uint64_t BPSTracker::TimeAndValue2::value1’ [-Wreorder]
RakNet/Sources/ReliabilityLayer.cpp:50:1: warning: when initialized here [-Wreorder]
RakNet/Sources/ReliabilityLayer.cpp: In member function ‘void ReliabilityLayer::Update(SOCKET, SystemAddress, int, CCTimeType, unsigned int, DataStructures::List<PluginInterface2*>&, RakNetRandom*, short unsigned int)’:
RakNet/Sources/ReliabilityLayer.cpp:1298:15: warning: variable ‘timeMs’ set but not used [-Wunused-but-set-variable]
RakNet/Sources/ReliabilityLayer.cpp: In member function ‘void ReliabilityLayer::SendBitStream(SOCKET, SystemAddress, RakNet::BitStream*, RakNetRandom*, short unsigned int, CCTimeType)’:
RakNet/Sources/ReliabilityLayer.cpp:1832:15: warning: variable ‘oldLength’ set but not used [-Wunused-but-set-variable]
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/LinuxStrings.cpp -o RakNet/Sources/LinuxStrings.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/ConsoleServer.cpp -o RakNet/Sources/ConsoleServer.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/Router.cpp -o RakNet/Sources/Router.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/DS_BytePool.cpp -o RakNet/Sources/DS_BytePool.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/MessageFilter.cpp -o RakNet/Sources/MessageFilter.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/SHA1.cpp -o RakNet/Sources/SHA1.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/DS_ByteQueue.cpp -o RakNet/Sources/DS_ByteQueue.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/SimpleMutex.cpp -o RakNet/Sources/SimpleMutex.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/DS_HuffmanEncodingTree.cpp -o RakNet/Sources/DS_HuffmanEncodingTree.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/NetworkIDManager.cpp -o RakNet/Sources/NetworkIDManager.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/SocketLayer.cpp -o RakNet/Sources/SocketLayer.o
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/DS_Table.cpp -o RakNet/Sources/DS_Table.o
RakNet/Sources/DS_Table.cpp: In member function ‘DataStructures::Table::ColumnType DataStructures::Table::Cell::EstimateColumnType() const’:
RakNet/Sources/DS_Table.cpp:210:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
g++ -c -Wall -I. -ICommon -DUNITY_MASTERSERVER RakNet/Sources/NetworkIDObject.cpp -o RakNet/Sources/NetworkIDObject.o
In file included from RakNet/Sources/NetworkIDManager.h:11:0,
from RakNet/Sources/NetworkIDObject.cpp:9:
RakNet/Sources/DS_BinarySearchTree.h: In instantiation of ‘void DataStructures::AVLBalancedBinarySearchTree<BinarySearchTreeType>::BalanceTree(typename DataStructures::BinarySearchTree<BinarySearchTreeType>::node*, bool) [with BinarySearchTreeType = NetworkIDNode; typename DataStructures::BinarySearchTree<BinarySearchTreeType>::node = DataStructures::BinarySearchTree<NetworkIDNode>::node]’:
RakNet/Sources/DS_BinarySearchTree.h:219:3: required from ‘void DataStructures::AVLBalancedBinarySearchTree<BinarySearchTreeType>::Del(const BinarySearchTreeType&) [with BinarySearchTreeType = NetworkIDNode]’
RakNet/Sources/NetworkIDObject.cpp:43:72: required from here
RakNet/Sources/DS_BinarySearchTree.h:169:5: error: ‘Height’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
RakNet/Sources/DS_BinarySearchTree.h:169:5: note: declarations in dependent base ‘DataStructures::BinarySearchTree<NetworkIDNode>’ are not found by unqualified lookup
RakNet/Sources/DS_BinarySearchTree.h:169:5: note: use ‘this->Height’ instead
RakNet/Sources/DS_BinarySearchTree.h:174:5: error: ‘Height’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
RakNet/Sources/DS_BinarySearchTree.h:174:5: note: declarations in dependent base ‘DataStructures::BinarySearchTree<NetworkIDNode>’ are not found by unqualified lookup
RakNet/Sources/DS_BinarySearchTree.h:174:5: note: use ‘this->Height’ instead
make: *** [RakNet/Sources/NetworkIDObject.o] Error 1
Any suggestions? I haven’t found anything like this on answers nor forum…