Wireshark-dev: Re: [Wireshark-dev] distclean and build errors
From: Tyler De Haven Brown <Tyler.Brown@xxxxxxxxxxxx>
Date: Fri, 11 May 2007 11:56:20 -0600 (MDT)
I might have found the root of this problem.  I was using cmd.exe instead of command.com.  This is because I get the following error when using command.com:

C:\>"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd"

Attempting to detect a Microsoft Visual Studio Installation

The system cannot find the path specified
Targeting Windows XP 32 DEBUG

If I attempt to keep going and cd into c:\wireshark, the nmake is not found (most likely because the path is wrong due to the error above)

If I use cmd.exe, everything works fine until the distclean and build commands.  I need to know how to fix the command.com error, or if I can use just the cmd.exe instead.



---- Original message ----
>Date: Fri, 11 May 2007 08:11:09 +0200
>From: Ulf Lamping <ulf.lamping@xxxxxx>  
>Subject: Re: [Wireshark-dev] distclean and build errors  
>To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
>
>Tyler De Haven Brown wrote:
>> When I attempt to build wireshark on Microsoft Windows 2000 I get the following error:
>>   
>First of all, read the developer's guide "Quick Setup" section 
>http://www.wireshark.org/docs/wsdg_html_chunked/ChapterSetup.html.
>> -----------------------------------------------------
>> k12text.c(938) : fatal error C1083: Cannot open include file: 'unistd.h': No suc
>> h file or directory
>> NMAKE : fatal error U1077: 'cl' : return code '0x2'
>> Stop.
>> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform SDK for Windows
>>  Server 2003 R2\Bin\nmake.exe"' : return code '0x2'
>> Stop.
>> ----------------------------------------------------- 
>>   
>Well, you need to do a distclean as described in the devel guide.
>> I have tried to do a distclean, yet I receive this error:
>>
>> -----------------------------------------------------
>> NMAKE : fatal error U1052: file 'Makefile.nmake' not found
>> Stop.
>> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform SDK for Windows
>>  Server 2003 R2\Bin\nmake.exe"' : return code '0x2'
>> Stop.
>> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform SDK for Windows
>>  Server 2003 R2\Bin\nmake.exe"' : return code '0x2'
>> Stop.
>> -----------------------------------------------------
>>
>> (after the distclean, the build has the same problem as stated above (no change))
>>  
>>  
>> The Makefile.nmake is in the directory:
>> C:\wireshark
>>   
>Looks like you're running nmake in the wrong directory.
>
>If the problems remain, try to interchange steps 2 and 3 of 
>http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html#ChSetupPrepareCommandCom 
>and please report if that has helped (or not).
>>  
>> All of the other files (that I manually downloaded from http://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/) and then succesfully ran nmake Makefile.nmake setup (to unpack them) are located in the directory:
>>  
>> C:\wireshark-win32-libs
>>  
>> P.S.-I had to download the files manually, because even when setting the http_proxy correctly, I couldn't access the anonsvn server
>>   
>Well, if you've setup http_proxy correctly (to be honest I doubt this), 
>you might sit behind a *very* restrictive corporate proxy. You may use 
>Wireshark to analyze the problem :-)
>
>Regards, ULFL
>_______________________________________________
>Wireshark-dev mailing list
>Wireshark-dev@xxxxxxxxxxxxx
>http://www.wireshark.org/mailman/listinfo/wireshark-dev