Home » MODDING HQ 1.13 » v1.13 Multiplayer Development & Bug Reports » MP stuff breaks release build (sort of)
MP stuff breaks release build (sort of)[message #212751] Sat, 11 April 2009 03:13 Go to next message
SpaceViking

 
Messages:760
Registered:January 2004
Location: Rochester, Minnesota, USA
If you do a "Release" build you get all the errors shown below. A "Debug" build works OK.

------ Build started: Project: ja2_2005Express, Configuration: Release Win32 ------
1>Linking...
1>warning C4742: 'struct player_stats * gMPPlayerStats' has different alignment in 'c:\Users\Bill\Desktop\JA2 Source\Multiplayer\client.cpp' and 'c:\Users\Bill\Desktop\JA2 Source\MPScoreScreen.cpp': 1 and 4
1>warning C4742: 'struct player_stats * gMPPlayerStats' has different alignment in 'c:\Users\Bill\Desktop\JA2 Source\Multiplayer\server.cpp' and 'c:\Users\Bill\Desktop\JA2 Source\Multiplayer\client.cpp': 4 and 1
1>Generating code
1>Finished generating code
1>RakNetLibStatic.lib(BigInt.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(BitStream.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(CheckSum.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(CommandParserInterface.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(ConnectionGraph.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(ConsoleServer.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(DataBlockEncryptor.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(DS_HuffmanEncodingTree.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(GetTime.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(Itoa.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(LogCommandParser.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(NetworkIDManager.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(NetworkIDObject.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(PacketConsoleLogger.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(PacketFileLogger.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(PacketLogger.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(PluginInterface.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RakMemoryOverride.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RakNetCommandParser.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RakNetTransport.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RakNetTypes.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RakNetworkFactory.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RakPeer.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RakSleep.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RakString.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RakThread.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(Rand.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(ReliabilityLayer.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(ReplicaManager.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(rijndael.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(Router.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RPCMap.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(RSACrypt.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(SHA1.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(SimpleMutex.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(SocketLayer.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(StringCompressor.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(StringTable.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(SystemAddressList.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(TCPInterface.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(TelnetTransport.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>RakNetLibStatic.lib(WSAStartupSingleton.obj) : warning LNK4099: PDB 'raknetlibstatic.pdb' was not found with '.\Multiplayer\raknet\RakNetLibStatic.lib' or at 'f:\Games\Jagged Alliance 2 Gold\raknetlibstatic.pdb'; linking object as if no debug info
1>Embedding manifest...
1>Build log was saved at "file://c:\Users\Bill\Desktop\JA2 Source\Release\BuildLog.htm"
1>ja2_2005Express - 0 error(s), 42 warning(s)
========== Build: 1 succeeded, 0 failed, 10 up-to-date, 0 skipped ==========


Re: MP stuff breaks release build (sort of)[message #212789] Sat, 11 April 2009 14:16 Go to previous messageGo to next message
RoWa21

 
Messages:2039
Registered:October 2005
Location: Austria
These are only WARNINGS that in release build no PDB file (file which contains debug information) is available for th raknet library. You can just ignore it. Maybe we can suppress the warning in the project settings.

In Debug we use a debug version of the raknet library which has a PDB file. So there are no warnings in Debug.

[Updated on: Sat, 11 April 2009 14:18] by Moderator



Re: MP stuff breaks release build (sort of)[message #212954] Sun, 12 April 2009 16:34 Go to previous messageGo to next message
BirdFlu

 
Messages:445
Registered:September 2007
Location: Lampukistan
SpaceViking
If you do a "Release" build you get all the errors shown below. A "Debug" build works OK.

------ Build started: Project: ja2_2005Express, Configuration: Release Win32 ------
1>Linking...
1>warning C4742: 'struct player_stats * gMPPlayerStats' has different alignment in 'c:\Users\Bill\Desktop\JA2 Source\Multiplayer\client.cpp' and 'c:\Users\Bill\Desktop\JA2 Source\MPScoreScreen.cpp': 1 and 4
1>warning C4742: 'struct player_stats * gMPPlayerStats' has different alignment in 'c:\Users\Bill\Desktop\JA2 Source\Multiplayer\server.cpp' and 'c:\Users\Bill\Desktop\JA2 Source\Multiplayer\client.cpp': 4 and 1


These warning are a result of this statement in client.cpp
...
 98 : #include "MessageBoxScreen.h"
 99 :
100 : #pragma pack(1)
101 :
102 : #include "keys.h"
...

Why is it there in the first place?

Re: MP stuff breaks release build (sort of)[message #212993] Sun, 12 April 2009 21:58 Go to previous messageGo to next message
RoWa21

 
Messages:2039
Registered:October 2005
Location: Austria
@birdflu: So how we should change it that the warnings go away? Where should we put the #pragma?


Re: MP stuff breaks release build (sort of)[message #213018] Mon, 13 April 2009 05:22 Go to previous messageGo to next message
SpaceViking

 
Messages:760
Registered:January 2004
Location: Rochester, Minnesota, USA
Why is the pragma there? It will change the packing of data within structures that follow it. The compiler is complaining because the other file doesn't have one.

If no one knows why it is in there it should be removed. If someone does know why they need to resolve the difference in the two files.


Re: MP stuff breaks release build (sort of)[message #213074] Mon, 13 April 2009 16:58 Go to previous messageGo to next message
Zathras

 
Messages:44
Registered:December 2008
Location: Sydney, Australia
We need the MP data strutures to be byte-aligned to send over the network. I'll fix the warning for that data structure.


Re: MP stuff breaks release build (sort of)[message #214952] Sat, 02 May 2009 18:20 Go to previous messageGo to next message
RoWa21

 
Messages:2039
Registered:October 2005
Location: Austria
I added the missing RakNet pdb file. Now Release version also compiles without any RakNet warnings.


Re: MP stuff breaks release build (sort of)[message #214955] Sat, 02 May 2009 18:32 Go to previous messageGo to next message
SpaceViking

 
Messages:760
Registered:January 2004
Location: Rochester, Minnesota, USA
That fixed most of the problems but I am still seeing:

2>Linking...
2>warning C4742: 'struct player_stats * gMPPlayerStats' has different alignment in 'c:\Users\Bill\Desktop\JA2 Source\Multiplayer\client.cpp' and 'c:\Users\Bill\Desktop\JA2 Source\MPScoreScreen.cpp': 1 and 4
2>warning C4742: 'struct player_stats * gMPPlayerStats' has different alignment in 'c:\Users\Bill\Desktop\JA2 Source\Multiplayer\server.cpp' and 'c:\Users\Bill\Desktop\JA2 Source\Multiplayer\client.cpp': 4 and 1



Re: MP stuff breaks release build (sort of)[message #214961] Sat, 02 May 2009 19:04 Go to previous message
RoWa21

 
Messages:2039
Registered:October 2005
Location: Austria
Zath will fix these 2 warnings.


Previous Topic: multiplayer bug reports
Next Topic: Features you would like
Goto Forum:
  


Current Time: Sun Sep 23 00:41:38 EEST 2018

Total time taken to generate the page: 0.00867 seconds