Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by TheOnlyStone · Apr 15, 2014 at 02:46 PM · errorlinuxcompilermasterserver

Ubuntu Master Server - compiler error

I installed a master server on my ubuntu x86 server but I get this error message if I compile them:

 ~/somefolders# make
 g++ -ggdb -I. -IRakNet/Sources -ICommon -Wall -pthread -DUNITY_MASTERSERVER Common/Log.o Common/Utility.o RakNet/Sources/RakNetworkFactory.o RakNet/Sources/BitStream.o RakNet/Sources/GetTime.o RakNet/Sources/RakPeer.o RakNet/Sources/BitStream_NoTemplate.o RakNet/Sources/RakSleep.o RakNet/Sources/CheckSum.o RakNet/Sources/Rand.o RakNet/Sources/ReliabilityLayer.o RakNet/Sources/LinuxStrings.o RakNet/Sources/ConsoleServer.o RakNet/Sources/Router.o RakNet/Sources/DS_BytePool.o RakNet/Sources/MessageFilter.o RakNet/Sources/SHA1.o RakNet/Sources/DS_ByteQueue.o RakNet/Sources/SimpleMutex.o RakNet/Sources/DS_HuffmanEncodingTree.o RakNet/Sources/NetworkIDManager.o RakNet/Sources/SocketLayer.o RakNet/Sources/DS_Table.o RakNet/Sources/NetworkIDObject.o RakNet/Sources/StringCompressor.o RakNet/Sources/DataBlockEncryptor.o RakNet/Sources/StringTable.o RakNet/Sources/DataCompressor.o RakNet/Sources/PacketFileLogger.o RakNet/Sources/SystemAddressList.o RakNet/Sources/DirectoryDeltaTransfer.o RakNet/Sources/PacketLogger.o RakNet/Sources/TCPInterface.o RakNet/Sources/EmailSender.o RakNet/Sources/TableSerializer.o RakNet/Sources/EncodeClassName.o RakNet/Sources/RPCMap.o RakNet/Sources/TelnetTransport.o RakNet/Sources/ExtendedOverlappedPool.o RakNet/Sources/RakNetCommandParser.o RakNet/Sources/ThreadsafePacketLogger.o RakNet/Sources/FileList.o RakNet/Sources/RakNetStatistics.o RakNet/Sources/_FindFirst.o RakNet/Sources/FileListTransfer.o RakNet/Sources/RakNetTransport.o RakNet/Sources/rijndael.o RakNet/Sources/FileOperations.o RakNet/Sources/RakNetTypes.o RakNet/Sources/BigInt.o RakNet/Sources/CCRakNetUDT.o RakNet/Sources/RakNetSocket.o RakNet/Sources/RakString.o RakNet/Sources/RSACrypt.o RakNet/Sources/RakMemoryOverride.o RakNet/Sources/SignaledEvent.o RakNet/Sources/SuperFastHash.o RakNet/Sources/PluginInterface2.o RakNet/Sources/Itoa.o RakNet/Sources/RakThread.o RakNet/Sources/LightweightDatabaseCommon.o RakNet/Sources/LightweightDatabaseServer.o MasterServer.cpp -o MasterServer
 In file included from MasterServer.cpp:10:0:
 MasterServer.h:2:15: warning: extra tokens at end of #ifndef directive [enabled by default]
  #ifndef WIN32 #include <unistd.h> #endif
                ^
 MasterServer.h:2:0: error: unterminated #ifndef
  #ifndef WIN32 #include <unistd.h> #endif
  ^
 MasterServer.cpp:29:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  char* logfile = "masterserver.log";
                  ^
 MasterServer.cpp: In function ‘int main(int, char**)’:
 MasterServer.cpp:260:13: warning: the address of ‘pidFile’ will always evaluate as ‘true’ [-Waddress]
   if (pidFile)
              ^
 make: *** [MasterServer] Fehler 1

Thanks for your answers!

Mfg Stone

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by ByteSheep · Apr 15, 2014 at 03:27 PM

http://forum.unity3d.com/threads/214801-Master-Server-Compling-Error

You need to edit line 91 of the 'makefile' file in the masterserver folder:

 $(CC) $(DEBUG) -I$(INCLUDE) -I$(RAKNET_INCLUDE) -I$(COMMON_INCLUDE) $
 (COMMON_OBJECTS) $(RAKNET_OBJECTS) $(PROGRAMSOURCES) -o $(PROGRAMNAME) $(CFLAGS)

(The $(CFLAGS) part needs to be moved to the end of the line)

Setting up the master server can be tricky, for the most part just google the errors you get in the log.

Here is also my recount of setting up a master server on a vps.

http://answers.unity3d.com/questions/678618/unity-master-server-hosted-on-amazon-ec2.html

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TheOnlyStone · Apr 15, 2014 at 05:54 PM 0
Share

Thanks now it is running.

I would give you a possitive vote but I doesn't have enougth reputations D:

avatar image ByteSheep · Apr 15, 2014 at 07:23 PM 0
Share

Np, make sure you click the green arrow under the thumbs up/down buttons though to accept the answer :)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Masterserver on Linux 2 Answers

Help with error,Internal error while connecting to master server. Too many connected peers. 1 Answer

Internal Compiler Error caused by Visual Studio project? 0 Answers

Shader error in ... : Syntax error at line 30 1 Answer

Problem with custom shaders (surface function error) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges