EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   CVS Compile Issues (https://www.eqemulator.org/forums/showthread.php?t=18454)

Penguin_nv 05-02-2005 03:16 AM

CVS Compile Issues
 
Hello,

I apologize in advance if this is in the wrong forum.

I have just recently downloaded the latest source from cvs, and EMuShareMem compiled just fine, but when I tried to compile world, I get 2652 errors and 703 warnings. Maybe I'm not doing something right, but I couldn't find anyone else who had this problem on the forums. Below is a sample of the errors, all of them are about the same.

*EDIT* Oops, forgot, this is using VC++ 6

Code:

c:\program files\microsoft visual studio\vc98\include\mswsock.h(69) : error C2065: 'SOCKET' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\mswsock.h(69) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(69) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\mswsock.h(73) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(89) : error C2146: syntax error : missing ')' before identifier 'hSocket'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(89) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\mswsock.h(96) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(101) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(101) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\mswsock.h(109) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(131) : error C2146: syntax error : missing ')' before identifier 'hSocket'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(131) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\program files\microsoft visual studio\vc98\include\mswsock.h(131) : error C2071: 'LPFN_TRANSMITFILE' : illegal storage class
c:\program files\microsoft visual studio\vc98\include\mswsock.h(138) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(146) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(146) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\program files\microsoft visual studio\vc98\include\mswsock.h(146) : error C2071: 'LPFN_ACCEPTEX' : illegal storage class
c:\program files\microsoft visual studio\vc98\include\mswsock.h(154) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(85) : error C2378: 'SOCKET' : redefinition; symbol cannot be overloaded with a typedef
c:\program files\microsoft visual studio\vc98\include\winsock2.h(101) : error C2146: syntax error : missing ';' before identifier 'fd_array'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(101) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winsock2.h(101) : error C2501: 'fd_array' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winsock2.h(104) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1422) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1422) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1422) : error C2370: 'SOCKET' : redefinition; different storage class
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1424) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1424) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1424) : error C2501: 'accept' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1427) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1445) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1445) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1445) : error C2491: 'bind' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1448) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : error C2491: 'closesocket' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1483) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1483) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1483) : error C2491: 'connect' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1486) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1504) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1504) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1504) : error C2491: 'ioctlsocket' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1507) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1525) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1525) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1525) : error C2491: 'getpeername' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1528) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1546) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1546) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1546) : error C2491: 'getsockname' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1549) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1567) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1567) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1567) : error C2491: 'getsockopt' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1572) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1660) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1660) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2651) : fatal error C1003: error count exceeds 100; stopping compilation

Thank you

sdabbs65 05-02-2005 04:26 AM

socket.h
 
'SOCKET' : undeclared identifier

Your compiler is trying to tell you that you're using an identifier that hasn't been declared anywhere, it's not known.

make sure socket.h is defined somewhere is my guess.

#include socket.h

Penguin_nv 05-02-2005 09:20 AM

Nope, still giving me the ame errors, and there is no file called socket.h either

*EDIT* - I'm not sure if this is related, but 0.6.0-DR2 compiles just fine, so maybe something has changed in the setup?

phasepuma 05-03-2005 08:30 AM

I am getting this same error also.

OrtRestave 05-03-2005 01:28 PM

Make sure your VS6 is updated with Service Pack 5, and also install the appropriate Platform SDK, that will eliminate this problem.

Penguin_nv 05-03-2005 04:02 PM

Quote:

Originally Posted by OrtRestave
Make sure your VS6 is updated with Service Pack 5, and also install the appropriate Platform SDK, that will eliminate this problem.

Have VS6 w/SP6, but not sure what you mean by appropriate Platform SDK

*EDIT*-Found the SDK, microsoft likes to hide those things...

sdabbs65 05-04-2005 12:41 AM

sdk
 
Quote:

Originally Posted by Penguin_nv
Have VS6 w/SP6, but not sure what you mean by appropriate Platform SDK

*EDIT*-Found the SDK, microsoft likes to hide those things...



i'm looking 2 where did you find it ?

Penguin_nv 05-04-2005 12:52 AM

Well, I feel retarded, thanks for the help, it solved the problem

rmcgraw1 05-04-2005 01:04 AM

im assuming this is the platform sdk that your talking about
 
http://www.microsoft.com/msdownload/...ULLInstall.htm

hope this is it im on dial up it will take forever

Penguin_nv 05-04-2005 04:55 AM

Yes, that is the link

sonicintuition 05-04-2005 11:51 AM

This solution works, thanks for the tip. Unfortunately I still cannot compile this, because of unresolved externals that are pointing to files that I cannot find in the dump. I'm not an expert or anything but I've been able (up to this point) to figure out what files are missing from the project from the error messages and finish the compiles flawlessly.

When compiling world.exe, I originally had about 30 or so unresolved externals, after I fixed what I could I ended up with the following unresolved externals:
Quote:

opcodemgr.obj : error LNK2001: unresolved external symbol "char const * * OpcodeNames" (?OpcodeNames@@3PAPBDA)
EQPacket.obj : error LNK2001: unresolved external symbol "char const * * OpcodeNames" (?OpcodeNames@@3PAPBDA)
I am assuming that I need to include a file called OpcodeNames.cpp ...but one does not exist in the project ..so is there another file or something? A bit confused on this.

When compiling zone.exe the story is a bit different. Lots of unresolved externals on the default build, I was able to bring it down to 13. They are as follows:
Quote:

Zone error LNK2019: unresolved external symbol "public: __thiscall TitleManager::TitleManager(void)" (??0TitleManager@@QAE@XZ) referenced in function _$E13
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(char const *,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXPBDMMME_NW4ZoneMode@@@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(char const *,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXPBDMMME_NW4ZoneMode@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::SetBindPoint(int,float,float,float)" (?SetBindPoint@Client@@QAEXHMMM@Z) referenced in function "void __cdecl command_bind(class Client *,class Seperator const *)" (?command_bind@@YAXPAVClient@@PBVSeperator@@@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::SetBindPoint(int,float,float,float)" (?SetBindPoint@Client@@QAEXHMMM@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::SetBindPoint(int,float,float,float)" (?SetBindPoint@Client@@QAEXHMMM@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::MovePC(float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXMMME_NW4ZoneMode@@@Z) referenced in function "void __cdecl command_goto(class Client *,class Seperator const *)" (?command_goto@@YAXPAVClient@@PBVSeperator@@@Z)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall NPC::Gate(void)" (?Gate@NPC@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall NPC::Gate(void)" (?Gate@NPC@@UAEXXZ)
Zone error LNK2019: unresolved external symbol "public: bool __thiscall TitleManager::LoadTitles(void)" (?LoadTitles@TitleManager@@QAE_NXZ) referenced in function _main
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Mob::Gate(void)" (?Gate@Mob@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Mob::Gate(void)" (?Gate@Mob@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Mob::Gate(void)" (?Gate@Mob@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Client::Gate(void)" (?Gate@Client@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Client::GoToBind(void)" (?GoToBind@Client@@UAEXXZ)
Zone error LNK2019: unresolved external symbol "public: class EQApplicationPacket * __thiscall TitleManager::MakeTitlesPacket(class Client *)" (?MakeTitlesPacket@TitleManager@@QAEPAVEQApplicati onPacket@@PAVClient@@@Z) referenced in function "public: void __thiscall Client::Handle_Connect_OP_ReqNewZone(class EQApplicationPacket const *)" (?Handle_Connect_OP_ReqNewZone@Client@@QAEXPBVEQAp plicationPacket@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::GoToSafeCoords(unsigned short)" (?GoToSafeCoords@Client@@QAEXG@Z) referenced in function "public: void __thiscall Client::Handle_OP_GMZoneRequest2(class EQApplicationPacket const *)" (?Handle_OP_GMZoneRequest2@Client@@QAEXPBVEQApplic ationPacket@@@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::GoToSafeCoords(unsigned short)" (?GoToSafeCoords@Client@@QAEXG@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::GoToSafeCoords(unsigned short)" (?GoToSafeCoords@Client@@QAEXG@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::GoToSafeCoords(unsigned short)" (?GoToSafeCoords@Client@@QAEXG@Z) referenced in function "protected: virtual __thiscall std::numpunct<char>::~numpunct<char>(void)" (??1?$numpunct@D@std@@MAE@XZ)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z) referenced in function "public: void __thiscall Client::Handle_OP_GMGoto(class EQApplicationPacket const *)" (?Handle_OP_GMGoto@Client@@QAEXPBVEQApplicationPac ket@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z) referenced in function "int __cdecl command_init(void)" (?command_init@@YAHXZ)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::Handle_OP_ZoneChange(class EQApplicationPacket const *)" (?Handle_OP_ZoneChange@Client@@QAEXPBVEQApplicatio nPacket@@@Z) referenced in function "void __cdecl MapOpcodes(void)" (?MapOpcodes@@YAXXZ)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::MovePC(char const *,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXPBDMMME_NW4ZoneMode@@@Z) referenced in function "private: void __thiscall Client::OPGMSummon(class EQApplicationPacket const *)" (?OPGMSummon@Client@@AAEXPBVEQApplicationPacket@@@ Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(char const *,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXPBDMMME_NW4ZoneMode@@@Z)
It would appear that I need a file called EQApplicationPacket.cpp and TitleManager.cpp ...however they do not exist in the dump.

I may be reading these wrong - as stated above I am by no means an expert on this and is why I seek help. Any insight would be appreciated very much.

Regards,
SI

Penguin_nv 05-04-2005 11:56 AM

Ok, I can sorta help you out.

The world resolve errors, include emu_opcodes.cpp emu_opcodes.h , and that should fix it, I added those in the project, and it compiled fine. As for zone.exe, you are at the same point I am, sorry I couldn't help you there.

I'm not an expert either, but after playing around with it for a bit, I got world fixed, maybe someone else got zone.exe fixed?

sonicintuition 05-04-2005 11:58 AM

Sweet, thanks for the quick reply! :) Still working on Zone.exe, getting frustrated lol. If you find anything post.

Regards,
SI

Penguin_nv 05-04-2005 12:01 PM

Np, so that fixed it then? I had added several files at once, so I wasn't too sure which ones it was

sonicintuition 05-04-2005 12:05 PM

Yeah, that fixed world.exe. So close to the newest build, damn zone.exe errors :(. Anyway with zone.exe (not sure if I was supposed to do this) I added everything in the common folder except a couple files that were producing errors, like EQnetwork.cpp and end up with what I posted above and is why I think there are missing files or something. Thanks again for fixing world.exe, thats cool.

Regards,
SI

Penguin_nv 05-04-2005 12:08 PM

Oh, btw, I when I try to run world.exe with the new EMuShareMem.dll, (or whatever its called), world.exe has error #127 and dies

Code:

[Status] Starting Log: logs/eqemu_world_2496.log
[Status] CURRENT_WORLD_VERSION:EQEMu 0.6.1-DR1
[Status] Loading opcodes..
[Error] Starting Log: logs/eqemu_error_world_2496.log
[Error] Function Attach Error: Error #127

[Error] LoadEMuShareMemDLL::Load() failed to attach a function.
Unable to load EMuShareMem for opcodes.
[Error] Loading opcodes failed. I cant live like this!

Not sure what to do about that, but looking into that as well

sonicintuition 05-04-2005 12:21 PM

Okay, Hmmmmm. Not sure about the world thing. Probably some config file is needed or something.

Went to compile zone.exe again, this time tried it with the perl configuration (added c:\perl\lib\core include directories and the EMBPERL,EMBPERL_PLUGIN preprocessors) and I started getting the winsock2.h errors (all 423 of them lmao). Is that perl configuration obsololete now or something? The build worked fine when I did it without that config ...well...except for the unresolved externals.

Regards,
SI

Penguin_nv 05-04-2005 12:24 PM

I get all sorts of bizzare errors when I try to compile with perl, and yes, perl is installed. So I stopped with perl, and went with the release instead, still got unresolved errors though

sonicintuition 05-04-2005 12:33 PM

Dude, I think I got it. I'll edit this post if it works and tell you how it's done.


EDIT: I GOT IT! :D Here's how its done.

Empty out the Zone project folders in the solution explorer, including the common source and header folders. Then go in and add existing items, ALL files in the zone folder, .cpp and .h and then add all .cpp and .h from the common folder into your common source and header folders. (do all this thru the solution explorer) Once you do that, remove the following files from the Source folder (solution explorer) - Quest.cpp, dbmemshare.cpp, unix.cpp, Wesquests.cpp, tasks.cpp. Once you do that, with release configuration it will compile with 0 errors or warnings. :-D I may have forgot a file but if I did, it will tell you in the build window, whatever file causes an error just remove it. Very glad to have gotten this to work. :-D

Regards,
SI

sonicintuition 05-04-2005 12:53 PM

Okay, got everything up and running with one problem ...the opcode error thing you posted above. Anyone have a solution on how to get past that? Please post. Thanks in advance.

Regards,
SI

Penguin_nv 05-04-2005 01:17 PM

Thanks for the help, got zone to compile, now to work on the world error

*EDIT* - Ran zone, and it also died from lack of opcodes but this is zone.exe's output:

Code:

[Status] CURRENT_ZONE_VERSION: EQEMu 0.6.1-DR1
[Status] Loading opcodes..
Unable to open opcodes file './opcodes.conf'. Thats bad.
[Error] Loading opcodes failed. I cant live like this!

Is there a file we don't know about?

Hmm... I should just stop posting... Found the file in the utils dir

phasepuma 05-04-2005 03:28 PM

This is a nightmare heh

Penguin_nv 05-04-2005 03:42 PM

More like a giant puzzle, but you don't have all of the pieces, or a few fell under the couch :D

phasepuma 05-05-2005 06:48 AM

Has anyone got zone w/perl compiled yet?

Darktanion 05-12-2005 10:52 AM

Will compiling the newest stuff screw up my Minilogin account. I mean if I want to keep up with all of you will compiling mess me up?

Sarepean 05-13-2005 10:59 AM

People have gotten it compiled. I'm only a few steps away from having a successful compile myself. Not sure how they did it, but I know that in Visual Studio, if you have all your include directories right and then you drop EQNetwork.cpp, it only gives winsock2.h errors. Working on fixing that now.

phasepuma 05-13-2005 12:15 PM

I have not yet been able to figure out the winsock2 errors in visual studio.


All times are GMT -4. The time now is 04:34 PM.

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