Wireshark-dev: Re: [Wireshark-dev] setting up for win32
From: Roland Knall <rknall@xxxxxxxxx>
Date: Wed, 23 Mar 2011 07:01:19 +0100
Hi

Another issue, at least for me, has been the Windows file endings. In
the file win-setup.sh, there are several file-endings written with
\r\n, which is Windows specific. The cygwin bash can not handle this
file with those endings. Open the file with a text-editor which allows
you to change the line-endings (Notepad++, Notepad2, or any other more
sophisticated), and specifically save the file with unix line endings.

regards,
Roland

On Wed, Mar 23, 2011 at 6:21 AM, Bill Meier <wmeier@xxxxxxxxxxx> wrote:
> On 3/22/2011 11:48 PM, Risto Paasila wrote:
>>
>> Hi,
>>
>> I'm using
>> http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html to
>> set up the environment, in order to compile wireshark under windows.
>>
>> However, while doing the verify tools check, I keep getting this problem
>> (tried on 2 seperate machines):
>>
>> Setting environment for using Microsoft Visual Studio 2008 x86 tools.
>> C:\Program Files\Microsoft Visual Studio 9.0\VC>cd \wireshark
>> C:\wireshark>nmake -f Makefile.nmake verify_tools
>> Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
>> Copyright (C) Microsoft Corporation.  All rights reserved.
>> /cygdrive/c/wireshark/tools/win-setup.sh: line 6: $'\r': command not found
>> /cygdrive/c/wireshark/tools/win-setup.sh: line 14: $'\r': command not
>> found
>> /cygdrive/c/wireshark/tools/win-setup.sh: line 29: syntax error near
>> unexpected
>> token `$'{\r''
>> 'cygdrive/c/wireshark/tools/win-setup.sh: line 29: `err_exit () {
>> /cygdrive/c/wireshark/tools/win-setup.sh: line 6: $'\r': command not found
>> /cygdrive/c/wireshark/tools/win-setup.sh: line 14: $'\r': command not
>> found
>> /cygdrive/c/wireshark/tools/win-setup.sh: line 29: syntax error near
>> unexpected
>> token `$'{\r''
>> 'cygdrive/c/wireshark/tools/win-setup.sh: line 29: `err_exit () {
>> NMAKE : fatal error U1077: 'c:\cygwin\bin\bash.EXE' : return code '0x2'
>> Stop.
>>
>>
>
> I'm guessing you're using the sources from the latest Wireshark 1.4 stable
> release with an up-to-date cygwin; If so you'll need to change the second
> line in tools/win-setup.sh to be as follows: (comments truncated in the
> following)
>
>
> (set -o igncr) 2>/dev/null && set -o igncr;  # ...
>                                             # ...
>
> [The 'shopt -s igncr' previously used is no longer allowed by the current
> cygwin].
>
>
> This patch didn't make it into the release; It will be in the next 1.4
> release.
> ___________________________________________________________________________
> 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
>