This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

When trying to build Wireshark I get NMAKE : fatal error U1077: 'sed' : return code '0x1'

Or to be more precise I get :

c:\wireshark>nmake -f Makefile.nmake all

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved.

sed -e s/@[email protected]/1.7.1-Hg on the test patrol-/  -e "s/@[email protected]/#define HAVE_C_ARES 1/"  -e "s/@[email protected]//"  -e "s/@[email protected]/#define HAVE_MIT_KERBEROS 1/"  -e "s/@[email protected]//"  -e "s/@[email protected]/#define HAVE_LIBZ 1/"  -e "s/@[email protected]/#define HAVE_LIBPCAP 1/"  -e s/@[email protected]/#define HAVE_PCAP_FINDALLDEVS 1/"  -e "s/@[email protected]/#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1/"  -e s/@[email protected]/#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1/"  -e "s/@[email protected]/#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1/"  -e "s/@[email protected]//"  -e "s/@[email protected]/#define HAVE_REMOTE 1/"  -e "s/@[email protected]/#define HAVE_PCAP_REMOTE 1/"  -e "s/@[email protected]/#define HAVE_PCAP_OPEN 1/"-e "s/@[email protected]/#define HAVE_PCAP_OPEN_DEAD 1/"  -e "s/@[email protected]/#define HAVE_PCAP_LIST_DATALINKS 1/"  -e "s/@[email protected]/#define HAVE_PCAP_FREE_DATALINKS 1/"  -e "s/@[email protected]/#define HAVE_PCAP_SET_DATALINK 1/"  -e "s/@[email protected]/#define HAVE_PCAP_SETSAMPLING 1/"  -e "s/@[email protected]/#define HAVE_BPF_IMAGE 1/"  -e "s/@[email protected]/#define HAVE_LIBWIRESHARKDLL 1/"  -e "s/@[email protected]/#define HAVE_LIBGNUTLS 1/"  -e "s/@[email protected]/#define HAVE_LIBGCRYPT 1/"  -e "s/@[email protected]/#define HAVE_LUA 1/"  -e "s/@[email protected]/#define HAVE_LUA_5_1 1/"  -e"s/@[email protected]//"  -e "s/@[email protected]/#define HAVE_AIRPCAP 1/"  -e "s/@[email protected]//"  -e "s/@[email protected]/#define HAVE_LIBPORTAUDIO 1/"  -e "s/@[email protected]//"  -e "s/@[email protected]/#define HAVE_LIBSMI 1/"  -e "s/@[email protected]/#define HAVE_GEOIP 1/"  -e s/@[email protected]/#define HAVE_GEOIP_V6 1/"  -e "s/@[email protected]/#define INET6 1/"  -e "s/@[email protected]/#define HAVE_NTDDNDIS_H 1/"  -e "s/@[email protected]/#define PCAP_NG_DEFAULT 1/"  -e "s/@[email protected]//"  < config.h.win32 > config.h
sed: -e expression #1, char 20: unterminated `s' command
NMAKE : fatal error U1077: 'sed' : return code '0x1'
Stop.

When running verifying tools I get:

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.

Checking for required applications:

    cl: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/cl
    link: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/link
    nmake: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/nmake
    mt: /cygdrive/c/Program Files/Microsoft SDKs/Windows/v6.0A/bin/mt
    bash: /usr/bin/bash
    bison: /usr/bin/bison
    flex: /usr/bin/flex
    env: /usr/bin/env
    grep: /usr/bin/grep
    /usr/bin/find: /usr/bin/find
    peflags: /usr/bin/peflags
    perl: /usr/bin/perl
    C:\\Python27\\python.exe: /cygdrive/c/Python27/python.exe
    sed: /usr/bin/sed
    unzip: /usr/bin/unzip
    wget: /usr/bin/wget

I've reinstalled sed with Cygwin and it hasn't helped. I've tried the solution from http://ask.wireshark.org/questions/7991/nmake-fatal-error-u1077-sed-return-code-0x1 and no difference.

Now I don't know what to try, any tips?

asked 22 Mar '12, 03:39

Hans-J%C3%B6rgen%20Gunnarsson's gravatar image

Hans-Jörgen ...
1111
accept rate: 0%

edited 22 Mar '12, 04:23

grahamb's gravatar image

grahamb ♦
19.8k330206


Totally a guess, but looking at the error message, probably something to do with your version string? You have a version string of "1.7.1-Hg on the test patrol-". Try making it something simpler.

permanent link

answered 22 Mar '12, 04:24

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Good guess, problem solved. Thanks.

(22 Mar '12, 04:41) Hans-Jörgen ...

Glad to be of assistance, can you please accept the answer?

(22 Mar '12, 04:49) grahamb ♦

I accepted the answer, as it solved the problem.

(21 Nov '13, 07:32) Kurt Knochner ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×13

question asked: 22 Mar '12, 03:39

question was seen: 4,899 times

last updated: 21 Nov '13, 07:32

p​o​w​e​r​e​d by O​S​Q​A