Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2011, 12:44 PM
WIGGMPk
Fire Beetle
 
Join Date: Apr 2011
Posts: 8
Default

Thanks KLS, your new revision worked (almost flawlessly), it was still throwing

Code:
make[1]: *** [QuestParserCollection.o] Error 1
Which was easily fixed by taking QuestParserCollection.o out of the makefile.common.

I am having a bit of trouble with the LoginServer compile though.. /cry lol

Code:
Client.cpp: In member function ‘void Client::Handle_SessionReady(const char*, unsigned int)’:
Client.cpp:130: error: ‘LoginMode’ is not a class or namespace
make: *** [Client.o] Error 1
I did some searching on the forums here and found this fix, which for some reason didnt work last night, but when I woke up this morning apparently it fixed itself.

Code:
        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();
But I am still caught on an issue that I cant figure out myself cause I'm the suck lol..

Code:
gcc -o EQEmuLoginServer Client.o ClientManager.o Config.o DatabaseMySQL.o ErrorLog.o Main.o ServerManager.o WorldServer.o .obj/BasePacket.o .obj/Condition.o .obj/CRC16.o .obj/crc32.o .obj/debug.o .obj/emu_opcodes.o .obj/EmuTCPConnection.o .obj/EmuTCPServer.o .obj/EQPacket.o .obj/EQStream.o .obj/EQStreamFactory.o .obj/logsys.o .obj/logsys_eqemu.o .obj/misc.o .obj/MiscFunctions.o .obj/Mutex.o .obj/opcodemgr.o .obj/packet_dump.o .obj/packet_functions.o .obj/rdtsc.o .obj/TCPConnection.o .obj/TCPServer.o .obj/timeoutmgr.o .obj/timer.o .obj/unix.o -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated  -Wcomment -Wcast-align -O -g -pthread -pipe -DEQLAUNCH -DEQDEBUG=5 -I/usr/include/mysql  -DBIG_JOINS=1  -fno-strict-aliasing   -DUNIV_LINUX -DUNIV_LINUX -rdynamic -L. -lstdc++ -ldl -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient -lEQEmuAuthCrypto -lcryptopp
/usr/bin/ld: 1: Syntax error: newline unexpected
collect2: ld returned 2 exit status
make: *** [EQEmuLoginServer] Error 1
Even though libcryptopp.a & libEQEmuAuthCrypto.a were placed in EQEmuLoginServer, I had to copy them to /usr/bin/ld for the compiler to find them.

Any thoughts? I'll be here all day lol...
Reply With Quote
  #2  
Old 05-11-2011, 04:27 PM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 269
Default

The namespace issue results from gcc not implementing a nice c++0x feature involving enums.

Your last error is strange. If I just paste your command into my console it links EQEmuLoginServer just fine, in fact it appears to be identical to what I get when I run make, as it should be.

Makefiles can get picky about line delimiters and tabs so you might try getting a fresh makefile from svn if you've made any changes, or just paste your own command back into console in the appropriate directory and see what happens.
Reply With Quote
  #3  
Old 05-11-2011, 05:42 PM
WIGGMPk
Fire Beetle
 
Join Date: Apr 2011
Posts: 8
Default

Two steps forward, one step back..

I decided to start fresh and checkout a fresh copy..

Code:
wiggmpk@LUGGS-ASN:~/Software/eqemulator/projecteqemu$ make
make -C EMuShareMem
make[1]: Entering directory `/home/wiggmpk/Software/eqemulator/projecteqemu/EMuShareMem'
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  MMFMutex.cpp -o MMFMutex.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  Doors.cpp -o Doors.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  Items.cpp -o Items.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  Spells.cpp -o Spells.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  NPCFactionLists.cpp -o NPCFactionLists.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  MMF.cpp -o MMF.o
MMF.cpp: In member function ‘bool MMF::Open(const char*, int32)’:
MMF.cpp:213: warning: comparison between signed and unsigned integer expressions
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  Loot.cpp -o Loot.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  Opcodes.cpp -o Opcodes.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  SkillCaps.cpp -o SkillCaps.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  DLLMain.cpp -o DLLMain.o
mkdir -p .obj
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  -c ../common/timer.cpp -o .obj/timer.o
mkdir -p .obj
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX  -c ../common/unix.cpp -o .obj/unix.o
gcc -g -shared -Wl,-soname,libEMuShareMem.so -o libEMuShareMem.so MMFMutex.o Doors.o Items.o Spells.o NPCFactionLists.o MMF.o Loot.o Opcodes.o SkillCaps.o DLLMain.o .obj/timer.o .obj/unix.o -L. -lstdc++ 
/usr/bin/ld: 1: Syntax error: newline unexpected
collect2: ld returned 2 exit status
make[1]: *** [libEMuShareMem.so] Error 1
make[1]: Leaving directory `/home/wiggmpk/Software/eqemulator/projecteqemu/EMuShareMem'
make: *** [all] Error 2
I'm just not allowed to play EQ..
Some other force outside of the physical existence we occupy says no..
Reply With Quote
  #4  
Old 05-11-2011, 06:29 PM
WIGGMPk
Fire Beetle
 
Join Date: Apr 2011
Posts: 8
Default

It just keeps throwing em at me.. Wish it was candy..

Fix one, new one, fix one, new one..

Code:
NPCTypes.cpp:42: warning: ‘DLLLoadNPCTypes’ initialized and declared ‘extern’
NPCTypes.cpp:42: error: ‘CALLBACK_DBLoadNPCTypes’ was not declared in this scope
NPCTypes.cpp:42: error: expected primary-expression before ‘iNPCTypeStructSize’
NPCTypes.cpp:42: error: expected primary-expression before ‘*’ token
NPCTypes.cpp:42: error: ‘iNPCTypesCount’ was not declared in this scope
NPCTypes.cpp:42: error: expected primary-expression before ‘*’ token
NPCTypes.cpp:42: error: ‘iMaxNPCTypeID’ was not declared in this scope
NPCTypes.cpp:42: error: initializer expression list treated as compound expression
NPCTypes.cpp:42: error: expected ‘,’ or ‘;’ before ‘{’ token
make[1]: *** [NPCTypes.o] Error 1
make[1]: Leaving directory `/home/wiggmpk/Software/eqemulator/projecteqemu/EMuShareMem'
make: *** [all] Error 2
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:49 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3