EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   eqemuloginserver error (https://www.eqemulator.org/forums/showthread.php?t=31569)

provocating 06-30-2010 02:44 PM

eqemuloginserver error
 
I can get everything to compile but the login server. I have tried on Opensuse and Debian 5 to get it to compile. I just did an SVN checkout 5 minutes ago and tried again on Opensuse. Ideas ?

Config.h:34: warning: ‘class Config’ has virtual functions but non-virtual destr uctor
Options.h: In constructor ‘Options::Options()’:
Options.h:168: warning: ‘Options::local_network’ will be initialized after
Options.h:166: warning: ‘bool Options::reject_duplicate_servers’
Options.h:31: warning: when initialized here
Client.cpp: In member function ‘void Client::Handle_SessionReady(const char*, un signed int)’:
Client.cpp:130: error: expected primary-expression before ‘unsigned’
Client.cpp:130: error: expected `)' before ‘unsigned’
Client.cpp:137: error: expected `)' before ‘status’
make: *** [Client.o] Error 1

pfyon 06-30-2010 10:42 PM

Posted it in your other thread, but here's the diff to let it compile (haven't fully tested, but compiles without warnings and EQEmuLoginServer starts without issues):
Code:

Index: Client.cpp
===================================================================
--- Client.cpp  (revision 59)
+++ Client.cpp  (working copy)
@@ -127,7 +127,7 @@
        }

        unsigned int mode = *((unsigned int*)data);
-      if(mode == (unsigned int)LoginMode::lm_from_world)
+      if(mode == (unsigned int) lm_from_world)
        {
                log->Log(log_network, "Session ready indicated logged in from world(unsupported feature), disconnecting.");
                connection->Close();


Xecuter 01-01-2011 08:26 PM

Thanks, this fixed my problem with the login sever also


All times are GMT -4. The time now is 11:32 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.