Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Wireshark v1.7.0 build issue with MSVC 2005

From: wsgd <wsgd@xxxxxxx>
Date: Thu, 14 Jul 2011 14:01:17 +0200
Le 14/07/2011 13:38, wsgd a écrit :
Le 14/07/2011 11:39, Graham Bloice a écrit :
On 14/07/2011 05:10, Pradip Biswas wrote:



From: wsgd <wsgd@xxxxxxx>
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Sent: Thu, July 14, 2011 2:40:15 AM
Subject: Re: [Wireshark-dev] Wireshark v1.7.0 build issue with MSVC 2005

Le 13/07/2011 20:21, Pradip Biswas a écrit :
Hi,
I tried building the latest 1.7.0 code on WinXP (32-bit) and Win7 (64-bit) both having MSVC 2005. I am stuck with the error "'ml': is not recognized as an internal or external command, operable program or batch file" almost at the beginning of "nmake -f Makefile.nmake all."
Producing 64 bits version should require ml64.exe.
If you have this error on your Win7 64 bits,
 I think you did not call something like "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat",
 and so, you are going to produce 32 bits version.

[PB]: Ok. I am fine with 32-bit build. But the build failed on WinXP 32bit with the same MSVC 2005 producing the same ml error.

Do I need to do something special to get past this issue? I searched for ml.exe in the MSVC installation folder, I did not find anything there. Though there is a file called ml64.exe. I have not installed either the VC run-time Redistributable package nor the PSDK. Do I need any of those?
PSDK was needed for me on Win7 64bits with MSVC 2008 EE (to have ml64.exe).
ml64.exe is supposed to be included in the not EE version of MSVC 2008.

Even after installing PSDK (from : http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=3138),
 I have no ml.exe or ml64.exe into my installation of MSVC 2005 EE.

[PB]: So how did you resolve it finally? Should the error go away if I install PSDK?

To make sure the SDK tools are used in preference to the MS VC tools, prepare your command shell by running the SDK "SetEnv.cmd" command file instead of "vcvarsxx.bat".  This sets the paths to use all the tools, headers and libraries from the SDK.  Note that it takes parameters to control the build environment, look at the start of the file to discover them.
I did not use SetEnv.cmd previously.

But it fails completely, due to this kind of section :
IF "x!ORIGINALPATH!x" == "xx" (
SET "ORIGINALINCLUDE=!INCLUDE!"
SET "ORIGINALLIB=!LIB!"
SET "ORIGINALPATH=!PATH!"
) ELSE (
SET "INCLUDE=!ORIGINALINCLUDE!"
SET "LIB=!ORIGINALLIB!"
SET "PATH=!ORIGINALPATH!"
)

After this, the PATH contains !ORIGINALPATH!.
So the end of the script fails.
Replacing ! by % into all the script works (e;g. PATH seems correct).

Is this syntax (using !) supposed to work ?
How can I have this file content ?
First answer, see : http://social.msdn.microsoft.com/Forums/en/windowssdk/thread/b8f02d5d-a52c-4fa2-8ff1-5b0a0cd60255
solution 1) Start, Run, cmd /V:ON : ok, no error and PATH seems correct
solution 2) setlocal enabledelayedexpansion : no error BUT PATH not updated
solution 3) modify registry : not tested


-- 
Regards,

Graham Bloice
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe


-- 
Wireshark Generic Dissector http://wsgd.free.fr
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe


-- 
Wireshark Generic Dissector http://wsgd.free.fr