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

Hi

Wireshark Version: 2.0.2, I tried building latest wireshark code on my Windows 7, MSVC2013 Compiler

Text from for the above Error

cd doc
    "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" /
                   -f Makefile.nmake

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

        bash -o igncr pod2html   --title="The Wireshark Network Analyzer 2.0.2"  -css=ws.css -noindex                                  wireshark.pod > wireshark.html
Can't execute /usr/bin/pod2html.
NMAKE : fatal error U1077: 'bash' : return code '0x1d'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Please Help.

Thanks Dinesh Sadu

asked 25 Apr '16, 23:10

Dinesh%20Babu%20Sadu's gravatar image

Dinesh Babu ...
16131517
accept rate: 0%

edited 25 Apr '16, 23:51

grahamb's gravatar image

grahamb ♦
19.8k330205


This is a duplicate of this question which unfortunately wasn't resolved as the questioner didn't come back.

Does pod2html exist in the Cygwin install of /usr/bin?

permanent link

answered 25 Apr '16, 23:54

grahamb's gravatar image

grahamb ♦
19.8k330205
accept rate: 22%

I did changes to CYGWIN_PATH in config.nmake in Wireshark base code CYGWIN_PATH=D:\Cygwin-Cust\bin

Path: Pod2html file is present in “D:\Cygwin-Cust\bin” <d:\\cygwin-cust\\bin\\pod2html>

(26 Apr '16, 00:28) Dinesh Babu ...

And what happens if you temporarily add Cygwin to the path and try to execute the command, e.g.

set PATH=%PATH%;D:\Cygwin-Cust\bin
bash -o igncr pod2html   --title="The Wireshark Network Analyzer 2.0.2"  -css=ws.css -noindex wireshark.pod > wireshark.html

Note there are only two lines, the set and the bash, the display might wrap them.

(26 Apr '16, 03:14) grahamb ♦

Cygwin Path setup is done in System Environment Varaibles but even though i tried in setting path in command, but it didn't work I got the same error. Error: Can't execute /usr/bin/pod2html.

So i did two below changes in config.namke and build is sucessful

POD2MAN=$(SH) /usr/bin/pod2man

POD2HTML=$(SH) /usr/bin/pod2html

(26 Apr '16, 05:42) Dinesh Babu ...

The above command works as expected on my Build VM. As this is an infrequent issue I think there's something odd in your Cygwin setup.

What does the Cygwin mount command show when called form DOS (as you have Cygwin already on your path)? I get:

c:\>mount
C:/Cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/Cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/Cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
(26 Apr '16, 06:21) grahamb ♦

Please find as below what does Cygwin mount gave in my build.env

E:\Packages\Software\Dinesh\wireshark-2.0.2>mount

D:/Cygwin-Cust/bin on /usr/bin type ntfs (binary,auto)
D:/Cygwin-Cust/lib on /usr/lib type ntfs (binary,auto)
D:/Cygwin-Cust on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)
(26 Apr '16, 06:59) Dinesh Babu ...

OK, looks good, odd then that bash can't execute pod2html which is in the directory mounted as /usr/bin.

Try these lines from a command prompt:

C:\>bash

[email protected] /cygdrive/c
$ which pod2html

[email protected] /cygdrive/c
$ echo $PATH
(26 Apr '16, 07:25) grahamb ♦

Tried running bash command. Please find the below

E:\Pac~\Soft~\Dinesh\wireshark-2.0.2>bash 
bash-3.2# /cygdrive/c/ 
bash: /cygdrive/c/: is a directory 
bash-3.2# cd /cygdrive/c/ 
bash-3.2# which pod2html 
/usr/bin/pod2html 
bash-3.2# echo $PATH
{ /cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/Common7/IDE/CommonExtensions/Microsoft/TestWindow:/cygdrive/c/Prg~Files (x86)/Microsoft SDKs/F#/3.1/Framework/v4.0/:/cygdrive/c/Prg~Files (x86)/MSBuild/12.0/bin:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/Common7/IDE/:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/VC/BIN:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/Common7/Tools:/cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/VC/VCPackages:/cygdrive/c/Prg~Files (x86)/HTML Help Workshop:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/Team Tools/Performance Tools:/cygdrive/c/Prg~Files (x86)/Windows Kits/8.1/bin/x86:/cygdrive/c/Prg~Files (x86)/Microsoft SDKs/Windows/v8.1A/bin/NETFX 4.5.1 Tools/:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/Common7/IDE/CommonExtensions/Microsoft/TestWindow:/cygdrive/c/Prg~Files (x86)/Microsoft SDKs/F#/3.1/Framework/v4.0/:/cygdrive/c/Prg~Files (x86)/MSBuild/12.0/bin:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/Common7/IDE/:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/VC/BIN:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/Common7/Tools:/cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/VC/VCPackages:/cygdrive/c/Prg~Files (x86)/Mic~Vis~Stud 12.0/Team Tools/Performance Tools:/cygdrive/c/Prg~Files (x86)/Windows Kits/8.1/bin/x86:/cygdrive/c/Prg~Files (x86)/Microsoft SDKs/Windows/v8.1A/bin/NETFX 4.5.1 Tools/:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0/:/cygdrive/c/Prg~Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Prg~Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Prg~Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Prg~Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Prg~Files (x86)/Windows Kits/8.1/Windows Performance Toolkit/:/cygdrive/c/Prg~Files/Microsoft SQL Server/110/Tools/Binn/:/cygdrive/c/Prg~Files (x86)/Microsoft SDKs/Windows/v7.1A/Include:/cygdrive/c/Prg~Files (x86)/Microsoft SDKs/Windows/v7.1A/Bin:/cygdrive/e/Packages/Software:/cygdrive/c/Prg~Files (x86)/Microsoft SDKs/Windows/v7.1A/Lib:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/usr/bin:/usr/include }
(27 Apr '16, 01:38) Dinesh Babu ...

Apart from the odd shortening of paths with "~" that all looks OK. pod2html is on the path which includes /usr/bin as the which command shows.

I'm at a loss why the nmake command fails to execute pod2html.

(27 Apr '16, 02:15) grahamb ♦

Grahamb, Due to character constraint in Comment section, I did them shorten

Program Files = Prg~Files

Microsoft Visual Studio = Mic~Vis~Stud

(27 Apr '16, 02:24) Dinesh Babu ...

OK, I was a bit confused by that.

So the issue is that from a DOS CMD prompt, you can't execute the pod2html command via bash.

Can you try bash -o igncr pod2html --help from your build command prompt?

(27 Apr '16, 02:38) grahamb ♦

Tried

E:\Packages\Software\Dinesh\wireshark-2.0.2>bash -o igncr pod2html --help

Can't execute /usr/bin/pod2html.
but with command /usr/bin/pod2html it worked.
(27 Apr '16, 02:55) Dinesh Babu ...

Your installation of bash appears to be ignoring the path it has. When you supply the path then it works.

Just to rule out the fact that somehow we're picking up the wrong bash, what does where bash show?

(27 Apr '16, 03:54) grahamb ♦

Command Where Bash:

E:\Packages\Software\Dinesh\wireshark-2.0.2>where bash
E:\Packages\Software\Dinesh\wireshark-2.0.2\bash
D:\Cygwin-Cust\bin\bash.exe

It shows the correct path of Cygwin Bin Directory

(27 Apr '16, 04:43) Dinesh Babu ...

I'm guessing it's a path issue of some sort, but I don't know what.

In your path you showed earlier, there are a lot of duplicate entries and none of the standard Windows directories, although I don't think that has anything to do with the problem.

I'm stumped, I can't think of what to look at next. Sorry about that.

(27 Apr '16, 05:09) grahamb ♦
showing 5 of 14 show 9 more comments
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:

×1,620
×28
×1

question asked: 25 Apr '16, 23:10

question was seen: 1,028 times

last updated: 27 Apr '16, 05:09

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