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 09-26-2002, 08:13 AM
Psychobabble
Fire Beetle
 
Join Date: Sep 2002
Posts: 16
Default Compile errors with 0.3.7 on Mandrake 8.2

I have made sure my zlib and mysql header files are in the proper places and ldconfig knows about them, however I cannot get the 0.3.7 sources to compile for either world or zone. After filtering out the unbeLIEVEable amount of warnings (!) I am left with this for world:

gcc -c -g -mcpu=i486 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -I/usr/inc
lude/mysql -I/usr/mysql/include console.cpp -o console.o
console.cpp: In member function `virtual void Console::SendEmoteMessage(const
char*, unsigned int, unsigned int, const char*, ...)':
console.cpp:222: `va_list' undeclared (first use this function)
console.cpp:222: (Each undeclared identifier is reported only once for each
function it appears in.)
console.cpp:222: parse error before `;' token
console.cpp:225: `argptr' undeclared (first use this function)
console.cpp:225: `va_start' undeclared (first use this function)
console.cpp:227: `va_end' undeclared (first use this function)
console.cpp: In member function `void Console::SendExtMessage(const char*,
...)':
console.cpp:232: parse error before `;' token
console.cpp: In member function `void Console::SendMessage(unsigned char, const
char*, ...)':
console.cpp:248: parse error before `;' token
console.cpp: In member function `void Console::CheckBuffer()':
console.cpp:351: `hex' undeclared (first use this function)
console.cpp:351: `dec' undeclared (first use this function)
make: *** [console.o] Error 1

and this for zone:

gcc -c -O -g -mcpu=i486 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/incl
ude/mysql -I/usr/mysql/include client.cpp -o client.o
client.cpp: In member function `void Client::ChannelMessageSend(const char*,
const char*, unsigned char, unsigned char, const char*, ...)':
client.cpp:2139: `va_list' undeclared (first use this function)
client.cpp:2139: (Each undeclared identifier is reported only once for each
function it appears in.)
client.cpp:2139: parse error before `;' token
client.cpp:2142: `argptr' undeclared (first use this function)
client.cpp:2142: `va_start' undeclared (first use this function)
client.cpp:2144: `va_end' undeclared (first use this function)
client.cpp: In member function `void Client::Message(unsigned int, const char*,
...)':
client.cpp:2178: parse error before `;' token
make: *** [client.o] Error 1

doing some grepping on the undeclared vars to see what I come up with but I am not a C++ coder, so any help would be greatly appreciated.

thanks in advance

Psychobabble
Reply With Quote
  #2  
Old 09-26-2002, 09:24 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

You have the exact same problem I had with RH 7.2 and gcc 3.0.4 (I think).


http://forums.eqemu.net/showthread.p...p;threadid=980

You need to throw a few includes in for a couple of files... For some reason, certain ones that use va functions need stdargs.h included in. I never did figure out why I was the only one having that problem, figured it was my weird shit development box.
Reply With Quote
  #3  
Old 09-26-2002, 04:24 PM
Psychobabble
Fire Beetle
 
Join Date: Sep 2002
Posts: 16
Default

Excellent! Thank you for the lead, Trumpcard!

world compiled with virtually no errors.

zone, however, borked on me. Unfortunately in all the previous excitement i got a little burnt =P so now i am far too retarted to deal with the likes of this:

gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include ../common/EQNetwork.cpp -o ../common/EQNetwork.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include ../common/timer.cpp -o ../common/timer.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include ../common/database.cpp -o ../common/database.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include ../common/packet_dump.cpp -o ../common/packet_dump.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include ../common/packet_functions.cpp -o ../common/packet_functions.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include ../common/unix.cpp -o ../common/unix.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -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 -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include ../common/Mutex.cpp -o ../common/Mutex.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include ../common/MiscFunctions.cpp -o ../common/MiscFunctions.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include zone.cpp -o zone.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include entity.cpp -o entity.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include mob.cpp -o mob.o
mob.cpp: In member function `void Mob::SetAttackTimer()':
mob.cpp:714: warning: passing `float' for argument 1 of `void
Timer::Start(unsigned int, bool)'
mob.cpp:721: warning: passing `float' for argument 1 of `void
Timer::Start(unsigned int, bool)'
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include client.cpp -o client.o
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include client_process.cpp -o client_process.o
client_process.cpp: In member function `virtual bool Client::Process()':
client_process.cpp:2283: warning: passing `float' for argument 1 of `void
Client::SetEXP(unsigned int, unsigned int, bool)'
client_process.cpp:2783: warning: passing `double' for argument 1 of `void
Client::TakeMoneyFromPP(unsigned int)'
client_process.cpp:3153: warning: passing `double' for argument 1 of `void
Client::AddMoneyToPP(unsigned int)'
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include npc.cpp -o npc.o
npc.cpp: In constructor `NPC::NPC(const NPCType*, Spawn2*, float, float, float,
float, bool)':
npc.cpp:87: warning: passing `const float' for argument 39 of `Mob::Mob(const
char*, const char*, int, int, unsigned char, unsigned char, unsigned char,
unsigned char, unsigned char, unsigned int, const int8*, float, float,
float, float, float, float, float, unsigned char, const int8*, unsigned
char, unsigned char, short unsigned int, short unsigned int, unsigned char,
unsigned char, unsigned char, unsigned char, unsigned char, unsigned char,
unsigned char, unsigned char, unsigned char, unsigned char, unsigned char,
unsigned char, unsigned char, unsigned char, short unsigned int, short
unsigned int, short unsigned int)'
gcc -c -O -g -march=i586 -funroll-loops -fomit-frame-pointer -fno-strength-reduce
-ffast-math -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I
/usr/mysql/include net.cpp -o net.o
net.cpp: In function `void LoadSPDat()':
net.cpp:360: `nocreate' is not a member of type `std::basic_ios<char,
std::char_traits<char> >'
net.cpp:360: `openprot' is not a member of type `std::basic_filebuf<char,
std::char_traits<char> >'
make: *** [net.o] Error 1

any ideas?
Reply With Quote
  #4  
Old 09-26-2002, 04:26 PM
Psychobabble
Fire Beetle
 
Join Date: Sep 2002
Posts: 16
Default

.
Reply With Quote
  #5  
Old 11-19-2002, 12:48 AM
adrian
Fire Beetle
 
Join Date: Nov 2002
Posts: 1
Default net.cpp problem?

my net.cpp problem
I already copy the spell_en.txt to the zone directory,and make
change above.
anyone know where is the problem ?

[root@bulldog zone]# make
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Ws
trict-prototypes -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i486 -p
thread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/include/mysql -I/usr/mysql/in
clude net.cpp -o net.o
In file included from /usr/local/include/c++/3.2/backward/iostream.h:31,
from net.cpp:19:
/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning T
his file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examp
les include substituting the <X> header for the <X.h> header for C++ includes, o
r <sstream> instead of the deprecated header <strstream.h>. To disable this warn
ing use -Wno-deprecated.
In file included from ../common/Mutex.h:24,
from ../common/EQNetwork.h:29,
from net.cpp:36:
../common/unix.h:32:7: warning: no newline at end of file
In file included from zone.h:27,
from client.h:34,
from net.cpp:43:
../common/eqtime.h:39:7: warning: no newline at end of file
In file included from net.cpp:78:
../common/unix.h:32:7: warning: no newline at end of file
net.cpp: In function `void LoadSPDat()':
net.cpp:369: `nocreate' is not a member of type `std::basic_ios<char,
std::char_traits<char> >'
net.cpp:369: `openprot' is not a member of type `std::basic_filebuf<char,
std::char_traits<char> >'
make: *** [net.o] Error 1
Reply With Quote
  #6  
Old 11-19-2002, 03:13 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

eqemu doesnt compile nicely with gcc3.2


/usr/local/include/c++/3.2/backward/iostream.h:31,
__________________
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 06:28 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