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

Archive::Linux Servers Archive area for Linux Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2003, 10:21 PM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default Compile issues on Gentoo 2.4.19-r10

Suprisingly enough, I got farther than I expected while compiling. This is from the Feb 3rd 'Nightly Dump' cvs. Here's the errors I get. Any help would be greatly appreciated.
Quote:
eqemu@box2 world $ make
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/EQNetwork.cpp -o ../common/EQNetwork.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/timer.cpp -o ../common/timer.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/database.cpp -o ../common/database.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/packet_dump.cpp -o ../common/packet_dump.o
../common/packet_dump.cpp: In function `void DumpPacketBin(const void*,
unsigned int)':
../common/packet_dump.cpp:142: warning: cast from `const void*' to `int8*'
discards qualifiers from pointer target type
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/races.cpp -o ../common/races.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/unix.cpp -o ../common/unix.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/Mutex.cpp -o ../common/Mutex.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/MiscFunctions.cpp -o ../common/MiscFunctions.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/serverinfo.cpp -o ../common/serverinfo.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/packet_functions.cpp -o ../common/packet_functions.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/classes.cpp -o ../common/classes.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/TCPConnection.cpp -o ../common/TCPConnection.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/eqtime.cpp -o ../common/eqtime.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include client.cpp -o client.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include net.cpp -o net.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include console.cpp -o console.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include zoneserver.cpp -o zoneserver.o
zoneserver.cpp: In member function `bool ZoneServer::Process()':
zoneserver.cpp:379: warning: unused variable `ServerZonePlayer_Struct*szp'
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include LoginServer.cpp -o LoginServer.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/EQNetwork.o ../common/timer.o ../common/database.o ../common/packet_dump.o ../common/races.o ../common/unix.o ../common/Mutex.o ../common/MiscFunctions.o ../common/serverinfo.o ../common/packet_functions.o ../common/classes.o ../common/TCPConnection.o ../common/eqtime.o client.o net.o console.o zoneserver.o LoginServer.o -L. -lstdc++ -lm -lz -L/usr/lib/mysql -L/usr/mysql/lib -lmysqlclient -o world
../common/EQNetwork.o(.text+0x4bcc): In function `EQNetworkPacket::ReturnPacket(unsigned char**)':
/home/eqemu/eqemu/Source/world/../common/EQNetwork.cpp:1671: undefined reference to `CRC32::Generate(unsigned char const*, unsigned)'
collect2: ld returned 1 exit status
make: *** [world] Error 1

eqemu@box2 zone $ make
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I/usr/mysql/include ../common/packet_dump_file.cpp -o ../common/packet_dump_file.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I/usr/mysql/include zone.cpp -o zone.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I/usr/mysql/include entity.cpp -o entity.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I/usr/mysql/include mob.cpp -o mob.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I/usr/mysql/include client.cpp -o client.o
client.cpp: In member function `sint32 Client::GenericFocus(short unsigned int,
short unsigned int)':
client.cpp:433: warning: comparison between signed and unsigned integer
expressions
client.cpp: In member function `void Client::ChannelMessageReceived(unsigned
char, unsigned char, const char*, const char*)':
client.cpp:657: warning: cast from `const char*' to `char*' discards qualifiers
from pointer target type
client.cpp: In member function `bool Client::VHServerOP(const Seperator*)':
client.cpp:1408: `message' undeclared (first use this function)
client.cpp:1408: (Each undeclared identifier is reported only once for each
function it appears in.)
client.cpp: In member function `bool Client::QuestTroupe(const Seperator*)':
client.cpp:1593: warning: deprecated conversion from string constant to `char*'
client.cpp: In member function `bool Client::NormalUser(const Seperator*)':
client.cpp:3384: warning: deprecated conversion from string constant to `char*'
make: *** [client.o] Error 1
Reply With Quote
  #2  
Old 02-08-2003, 02:07 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Make sure crc32.o is in the list of link objects in the makefile. Thats a new one that was recently introduced, and appears to be where your crapping out.

You may want to check out the newest build. Remember though, cvs code is not supported as it may be in interm states when you check it out..
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #3  
Old 02-08-2003, 07:04 PM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default

Thanks, that did it. It compiles successfully now.

However, I'm having another issue now. :(

Whenever I try to log into a server it gives me about ten seconds at the character select screen before booting me to the server select. While attempting to make a character, I can never get the name approved, because by the time it asks for approval, world already disconnected me.

I'm using 0.4.2-DR2 from latest CVS. I tried using the 0.4.1 db.sql file and the new db.sql file from CVS. Everything loads fine, zone and world both launch. I can connect to the server, but once I get to the character select screen I have about 10-20 seconds to create a character and then I get booted back to the server select.

World shows the following:

29851 New client from ip: XXX.XXX.XXX.XXX port: 2305
Logged in: LS#127: steve
Guild Send Request...
Sending character information.
Unknown opcode: 0x7af8 size:0
Unknown opcode: 0x8080 size:0
Unknown opcode: 0x8510 size:0
Unknown opcode: 0x8e10 size:0
Unknown opcode: 0x95f0 size:0
Unknown opcode: 0x9ae0 size:0
Unknown opcode: 0x9ef8 size:0
Unknown opcode: 0xa4c4 size:0
Unknown opcode: 0x26af size:0
Unknown opcode: 0xb0f8 size:0
Unknown opcode: 0x8cfe size:0
Unknown opcode: 0x94ff size:0
Unknown opcode: 0xa1fc size:0
Unknown opcode: 0xa8ff size:0
Unknown opcode: 0xb0f8 size:0
Unknown opcode: 0xb710 size:0
Unknown opcode: 0xbcfc size:0
Unknown opcode: 0xffff size:0
Unknown opcode: 0x269e size:0
Unknown opcode: 0x9fff size:0
Unknown opcode: 0xa3ff size:0
Unknown opcode: 0xa8ff size:0
Unknown opcode: 0xb4ab size:0
Client disconnected
Removing client from ip:XXX.XXX.XXX.XXX port:2305

The box does not have a firewall, router, or switch. It's directly connected via cable to the internet, with it's own ip address. I've dropped and resourced the db's so many times I think I'm wearing out the hard drive :/

I'm using the files from the eqfix zip, and I've placed the spells file from that zip into my EMU directory. I've tried starting zone different ways multiple times.

./zone . externalip 7995 127.0.0.1
./zone . hostname 7995 127.0.0.1
./zone . externalip 7995 externalip
./zone . hostname 7995 hostname

./world
Using database 'emu' at localhost
EQEMu 0.4.2-DR2
Loading zone names & items...
...done.
LoginServer.ini read.
Loading guild ranks...done.
Loading EQ time of day...done.
Breaking bards...done
World server listening on: externalip:9000
Connected to LoginServer: eqlogin2.eqemu.net:5999
New TCP connection: 127.0.0.1:33276
New zoneserver: #1 127.0.0.1:33276
Zoneserver SetConnectInfo: 127.0.0.1:33276: externalip:7995
33858 New client from ip: myip port: 4899
Account Attempting to be created:steve 0
Logged in: LS#127: steve
Guild Send Request...
Sending character information.
Unknown opcode: 0x47c0 size:0
Unknown opcode: 0x4aff size:0
Unknown opcode: 0x5340 size:0
Unknown opcode: 0x3f5a size:0
Unknown opcode: 0x3f5d size:0
Unknown opcode: 0x62fc size:0
Unknown opcode: 0x69c0 size:0
Unknown opcode: 0x3f6c size:0
Unknown opcode: 0xfc44 size:0
Unknown opcode: 0x01e0 size:0
Unknown opcode: 0x8afc size:0
Client disconnected
Removing client from ip:myip port:4899

./zone . externalip 7995 127.0.0.1
Using database 'emu' at localhost
EQEMu 0.4.2-DR2
Loading zone names, items, loottables & NPCs...
...done.
If this is the last message you see, you forgot to move spells_en.txt from your EQ dir to this dir.
Spells loaded.
Loading guild ranks...done.
Loading faction data...done.
Connected to worldserver: 127.0.0.1:9000
Entering sleep mode

ANY help at all would be greatly appreciated. Spent the past two nights on this, and no luck at all. I'm about ready to pull my hair out. I've had this working on RedHat before, so I'm not completely new to setting up the EMU.
Reply With Quote
  #4  
Old 02-08-2003, 09:01 PM
JP
Fire Beetle
 
Join Date: Feb 2003
Location: Oz
Posts: 9
Default

ok, i'm new to eqemu, but based on what i've seen so far:

1) does it make a difference if you load the zoneserver as a static server, ie put the zone name on the commandline instead of the dot. if so it suggests either ram shortage (you running full gnome/kde in X?) or a scheduler issue.

2) if you're sure it's not memory related try nicing the zoneservers to a higher priority (brutal, but if its cycle starved might make a difference)

3) do you have your swap partition running on a different ide controller to your binaries/database files? This can make a huge difference when it's swap latency issues.

You might also want to try fiddling with some settings in /proc if you have a uniprocessor system. I can't recall which ones, but you can adjust timeslice sizes, scheduling paramters and thread slices as i recall. dtails in /usr/src/linux/Documentation/ . be careful, no warrantees, your risk etc. if you dont understand it dont do it, as it's tweaking the kernel runtime behaviour.


Note that I'm thinking from a Debian perspective, but isnt Gentoo based on Debian?

I've got to get my linux boxes back up... this wondoze thing is making me stupid.
Reply With Quote
  #5  
Old 02-08-2003, 11:54 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Looks to me to be an issue with the client files your using... Can anyone else log onto your server, and can you log onto others servers?
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #6  
Old 02-09-2003, 08:34 PM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default

Yes, I can login to other servers just fine.

The one person that responded when I needed someone to attempt to login, could not login either. He crashed in the same way I did.

I'm using the client files from the eqfix zip, so they are the right files... otherwise I couldn't login anyone else's server.
Reply With Quote
  #7  
Old 02-10-2003, 03:18 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Is the linux box your NAT/Firewall machine, or is it inside the network?
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #8  
Old 02-13-2003, 06:00 PM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default

It's not inside my network, it's directly connected to the cable modem. No firewall running...
Reply With Quote
  #9  
Old 02-14-2003, 12:26 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Have you read the threads on connecting to your NAT machine?

world listens on both interfaces if you're multihomed. Take a look at the NAT threads if you havent done so..
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
Reply


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 09:23 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3