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

Hi,

I have a build issue when building Wireshark on Windows 7, 64bit and MSVC2010. The error log returned is:

Build Log      Build started: Project: packaging, Configuration: PortableApps|Win32
 Command Lines      Creating temporary file "C:\Users\RICHAR~1\AppData\Local\Temp\BAT00000357762912.bat" with contents
[
@echo off

nmake -f Makefile.nmake packaging_papps

if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

exit 1

:VCEnd
]
Creating command line "C:\Users\RICHAR~1\AppData\Local\Temp\BAT00000357762912.bat"
Output Window      Performing Makefile project actions
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.
ERROR: The contents of 'C:\Wireshark-win64-libs\current_tag.txt' is (unknown).
It should be 2013-03-09.
? Wireshark Libraries not up-to-date ?
? Do you need to run nmake -f Makefile.nmake setup ?
NMAKE : fatal error U1077: 'exit' : return code '0x1'
Stop.
Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
Results      Build log was saved at "file://c:\WireShark\PortableApps\BuildLog.htm"
packaging - 2 error(s), 0 warning(s)

asked 04 Apr '13, 09:09

Richard%20Drayton's gravatar image

Richard Drayton
11112
accept rate: 0%

edited 04 Apr '13, 11:07

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196


Did you run nmake -f Makefile.nmake setup before trying to build Wireshark?

If not, do so.

permanent link

answered 04 Apr '13, 11:08

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Thanks for the response - yes the project was built from within Visual Studio using the wireshark.sln file provided in the SVN download - the environment was built according to the details in the Win32 setup including the CygWin installation, Python download etc.. Running the setup gives:

c:\WireShark>nmake -f Makefile.nmake setup

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

ERROR: The contents of 'C:\Wireshark-win64-libs\current_tag.txt' is (unknown).
It should be 2013-03-09.

Checking for required applications:
        cl: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/BIN/amd64/cl
        link: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/BIN/amd64/link
        nmake: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/BIN/amd64/nmake
        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: /cygdrive/c/Perl64/bin/perl
        sed: /usr/bin/sed
        unzip: /cygdrive/c/oraclexe/app/oracle/product/11.2.0/server/bin/unzip
        wget: /usr/bin/wget
        cd "C:\Wireshark-win64-libs"
        rm -r -f adns-1.0-win32-05ws
        rm -r -f c-ares-1.5.3ws
        rm -r -f c-ares-1.6.0ws
        rm -r -f c-ares-1.7.0-win??ws
        rm -r -f c-ares-1.7.1-win??ws
        rm -r -f c-ares-1.9.1-win??ws
        rm -r -f gettext-0.14.5
        rm -r -f gettext-runtime-0.17
        rm -r -f gettext-runtime-0.17-1
        rm -r -f gettext-0.17-1            # win64
        rm -r -f glib
        rm -r -f gnutls-2.8.1-1
        rm -r -f gnutls-2.8.5-*-win??ws
        rm -r -f gnutls-2.10.3-*-win??ws
        rm -r -f gnutls-2.12.18-*-win??ws
        rm -r -f gtk2
        rm -r -f gtk+
        rm -r -f gtk-wimp
        rm -r -f kfw-2.5
        rm -r -f kfw-3-2-2-final
        rm -r -f kfw-3.2.2-ws1
        rm -r -f kfw-3-2-2-i386-ws-vc6
        rm -r -f libiconv-1.9.1.bin.woe32
        rm -r -f lua5.1
        rm -r -f lua5.1.4
        rm -r -f libsmi-0.4.5
        rm -r -f libsmi-0.4.8
        rm -r -f libsmi-svn-40773-win??ws
        rm -r -f nasm-2.00
        rm -r -f nasm-2.02
        rm -r -f nasm-2.09.08
        rm -r -f pcre-6.4
        rm -r -f pcre-7.0
        rm -r -f portaudio_v19
        rm -r -f portaudio_v19_2
        rm -r -f upx301w
        rm -r -f upx303w
        rm -r -f user-guide
        rm -r -f zlib123
        rm -r -f zlib125
        rm -r -f zlib-1.2.5
        rm -r -f zlib123-dll
        rm -r -f AirPcap_Devpack_1_0_0_594
        rm -r -f AirPcap_Devpack_4_0_0_1480
        rm -r -f AirPcap_Devpack_4_1_0_1622
        rm -r -f GeoIP-1.4.5ws
        rm -r -f GeoIP-1.4.6-win??ws
        rm -r -f GeoIP-1.4.8-win??ws
        rm -r -f GeoIP-1.4.8-*-win??ws
        rm -r -f WinSparkle-0.3-44-g2c8d9d3-win??ws
        rm -r -f WpdPack
        cd "c:\WireShark"

****** WinPcap_4_1_3.exe ******
No HTTP proxy specified (http_proxy and HTTP_PROXY are empty).
Downloading WinPcap_4_1_3.exe into '/cygdrive/c/Wireshark-win64-libs', installing into .
File `WinPcap_4_1_3.exe' already there; not retrieving.

Extracting '/cygdrive/c/Wireshark-win64-libs/WinPcap_4_1_3.exe' into '/cygdrive/c/Wireshark-win64-libs/.'

****** gtk+-bundle_2.24.14-1.1_win64ws.zip ******
No HTTP proxy specified (http_proxy and HTTP_PROXY are empty).
Downloading gtk+-bundle_2.24.14-1.1_win64ws.zip into '/cygdrive/c/Wireshark-win64-libs', installing into gtk2
File `gtk+-bundle_2.24.14-1.1_win64ws.zip' already there; not retrieving.

Extracting '/cygdrive/c/Wireshark-win64-libs/gtk+-bundle_2.24.14-1.1_win64ws.zip' into '/cygdrive/c/Wireshark-win64-libs/gtk2'
    unzip:  cannot find either /cygdrive/c/Wireshark-win64-libs/gtk+-bundle_2.24.14-1.1_win64ws.zip or /cygdrive/c/Wireshark-win64-libs/gtk+-bundle_2.24.14-1.1_win64ws.zip.zip.

ERROR: Couldn't unpack '/cygdrive/c/Wireshark-win64-libs/gtk+-bundle_2.24.14-1.1_win64ws.zip'

NMAKE : fatal error U1077: 'c:\cygwin\bin\bash.EXE' : return code '0x1'
Stop.

c:\WireShark>

Other than the unzip command (which seems to work fine) the result is as per the documentation until the last step.

The error occurs irrespective of the command line build or the MSVC build.

Verify Tools

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

ERROR: The contents of 'C:\Wireshark-win64-libs\current_tag.txt' is (unknown).
It should be 2013-03-09.

Checking for required applications:
        cl: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/BIN/amd64/cl
        link: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/BIN/amd64/link
        nmake: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/BIN/amd64/nmake
        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: /cygdrive/c/Perl64/bin/perl
        sed: /usr/bin/sed
        unzip: /cygdrive/c/oraclexe/app/oracle/product/11.2.0/server/bin/unzip
        wget: /usr/bin/wget

c:\WireShark>

Regards Richard

(04 Apr '13, 14:45) Richard Drayton

Other than the unzip command (which seems to work fine)

Actually, not:

unzip:  cannot find either /cygdrive/c/Wireshark-win64-libs/gtk+-bundle_2.24.14-1.1_win64ws.zip or /cygdrive/c/Wireshark-win64-libs/gtk+-bundle_2.24.14-1.1_win64ws.zip.zip.

What does the command dir c:\Wireshark-win64-libs print?

(04 Apr '13, 15:21) Guy Harris ♦♦

@Richard Drayton

As per my answer, do not use the solution file, it is outdated and doesn't work, you must build from the command prompt.

Your issue with the command prompt is the oracle version of unzip:

unzip: /cygdrive/c/oraclexe/app/oracle/product/11.2.0/server/bin/unzip.

I don't know what it is, but it doesn't behave like a normal unzip. You'll need to remove it from your path and try again with nmake -f Makefile.nmake setup.

(04 Apr '13, 16:12) grahamb ♦

It looks like you're trying to build from within Visual Studio with a makefile project. That won't work, you must use a command prompt prepared as per section 2.2 Win32 setup of the developer's guide. For a successful build you must follow the guide exactly.

permanent link

answered 04 Apr '13, 12:24

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

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:

×110
×103
×2

question asked: 04 Apr '13, 09:09

question was seen: 4,879 times

last updated: 04 Apr '13, 16:12

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