WOOT ! World compiling with gcc 3.2.1
Im pumped, got it compiling..
Heres how I worked through it..
First, alot of the messages are warnings, so I filtered out the ones I didnt want to see by removing -Waggregate-returns from the makefile, and added -Wno-deprecated so I wouldnt have so much crap to look at..
At that point, the 1st issue.
packet_dump.cpp and packet_dump.h.
3.2 did not like the header file defining default arguments in the function prototype, then defining them again in the function call iteself in .cpp, so in packet_dump.h I changed this..
//void DumpPacketAscii(uchar* buf, int32 size, int32 cols=16, int32
void DumpPacketAscii(uchar* buf, int32 size, int32 cols, int32 skip);
//void DumpPacketHex(uchar* buf, int32 size, int32 cols=16, int32 s
void DumpPacketHex(uchar* buf, int32 size, int32 cols, int32 skip);
Ok, that gets us further.. Next are namespace problems..
ALL hex and dec calls need to be prefixed with std::
so in console.cpp and zoneserver.cpp, I added the namespaces to the beginning of those calls (maybe in packet too).
va functions missing.
Easy enough,
add
#include <stdarg.h> into the else section after the win32 ifdef
that way for linux, you'll get the extra include.
Put this in console.cpp and zoneserver.cpp.
I think that was it, world compiled !
Im at work , so I can test my new world binary out, but looking forward to trying it. Next will be zone, and I bet it will be alot tougher.
If it works properly tonght, I'll send my changes to image to get him to roll them into the code and then start working on zone.
The big confusion was coming from the million and one deprecated header messages (which I'll work on fixing also), and the aggregate return messages. Once those got filtered out, it really wasnt that hard to run the problems down.
Update: The problem child in zone appears to be packet_dump_file.cpp.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|