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

build Wireshark failed

0

Hi,

i managed to compile wireshark on windows 8 and now when i try to build it with msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln command and i get the following message:

Build FAILED.

   "C:\wireshark-2.0.5\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\wireshark-2.0.5\wsbuild64\docbook\developer_guide_chm.vcxproj.metapr
   oj" (default target) (14) ->
   "C:\wireshark-2.0.5\wsbuild64\docbook\developer_guide_chm.vcxproj" (defa
   ult target) (83) ->
   (CustomBuild target) ->
     CUSTOMBUILD : warning : failed to load external entity "http://docbook
   .sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl" [C:\wireshar
   k-2.0.5\wsbuild64\docbook\developer_guide_chm.vcxproj]

"C:\wireshark-2.0.5\wsbuild64\Wireshark.sln" (default target) (1) -> "C:\wireshark-2.0.5\wsbuild64\docbook\user_guide_chm.vcxproj.metaproj" ( default target) (53) -> "C:\wireshark-2.0.5\wsbuild64\docbook\user_guide_chm.vcxproj" (default t arget) (103) -> CUSTOMBUILD : warning : failed to load external entity "http://docbook .sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl" [C:\wireshar k-2.0.5\wsbuild64\docbook\user_guide_chm.vcxproj]

"C:\wireshark-2.0.5\wsbuild64\Wireshark.sln" (default target) (1) -> "C:\wireshark-2.0.5\wsbuild64\docbook\developer_guide_chm.vcxproj.metapr oj" (default target) (14) -> "C:\wireshark-2.0.5\wsbuild64\docbook\developer_guide_chm.vcxproj" (defa ult target) (83) -> (CustomBuild target) -> CUSTOMBUILD : I/O error : Attempt to load network entity http://docboo k.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl [C:\wireshar k-2.0.5\wsbuild64\docbook\developer_guide_chm.vcxproj] CUSTOMBUILD : compilation error : file /wireshark-2.0.5/docbook/custom _layer_chm.xsl line 8 element import [C:\wireshark-2.0.5\wsbuild64\docbo ok\developer_guide_chm.vcxproj]

"C:\wireshark-2.0.5\wsbuild64\Wireshark.sln" (default target) (1) -> "C:\wireshark-2.0.5\wsbuild64\docbook\user_guide_chm.vcxproj.metaproj" ( default target) (53) -> "C:\wireshark-2.0.5\wsbuild64\docbook\user_guide_chm.vcxproj" (default t arget) (103) -> CUSTOMBUILD : I/O error : Attempt to load network entity http://docboo k.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl [C:\wireshar k-2.0.5\wsbuild64\docbook\user_guide_chm.vcxproj] CUSTOMBUILD : compilation error : file /wireshark-2.0.5/docbook/custom _layer_chm.xsl line 8 element import [C:\wireshark-2.0.5\wsbuild64\docbo ok\user_guide_chm.vcxproj]

2 Warning(s) 4 Error(s)

i am running the Visual Studio Command Prompt as administrator.

thanks in advance, Ran

asked 24 Aug ‘16, 06:46

Ran's gravatar image

Ran
11225
accept rate: 0%


One Answer:

0

The build is attempting to retrieve an external file:

CUSTOMBUILD : I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl

Can you manually download that on the same build machine? Is this related to your other issue of not being able to clone the git repo? Does the build machine have internet access or is it behind some form of proxy?

answered 24 Aug '16, 07:15

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

i can download this file with a browser. the machine have internet access, this is a company's computer so i don't know if it is behind proxy. it is possible that this machine is behind proxy and this is why i could not get the git and the file.

i looked at the files looking for where to change the address from remote to local ( i downloaded the file from the net and want the project to build with the local file and not the remote one ) but i could not find it.

(24 Aug '16, 23:10) Ran

I've never seen that error reported before, I wonder if it's anything to do with building from a source tarball?

I don't have the file in either my source or build trees, and there are multiple copies in my Cygwin installation:

DirectoryName                                                    Length
-------------                                                    ------
C:\Cygwin\etc\asciidoc\docbook-xsl                                  770
C:\Cygwin\usr\share\sgml\docbook\xsl-stylesheets\htmlhelp           924
C:\Cygwin\usr\share\sgml\docbook\xsl-stylesheets\slides\htmlhelp   3182
(25 Aug '16, 03:18) grahamb ♦

i connected the computer to the internet and cloned the git and build it. now it took 11:33 minutes (before it took 20 seconds top) to run and at the end i got:

"C:\Development\wireshark\wsbuild64\Wireshark.sln" (default target) (1) -> "C:\Development\wireshark\wsbuild64\docbook\developer_guide_chm.vcxproj. metaproj" (default target) (15) -> "C:\Development\wireshark\wsbuild64\docbook\developer_guide_chm.vcxproj" (default target) (115) -> (CustomBuild target) -> CUSTOMBUILD : I/O error : Attempt to load network entity http://docboo k.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl [C:\Developm ent\wireshark\wsbuild64\docbook\developer_guide_chm.vcxproj] CUSTOMBUILD : compilation error : file /Development/wireshark/docbook/ custom_layer_chm.xsl line 8 element import [C:\Development\wireshark\wsb uild64\docbook\developer_guide_chm.vcxproj]

"C:\Development\wireshark\wsbuild64\Wireshark.sln" (default target) (1) -> "C:\Development\wireshark\wsbuild64\docbook\user_guide_chm.vcxproj.metap roj" (default target) (64) -> "C:\Development\wireshark\wsbuild64\docbook\user_guide_chm.vcxproj" (def ault target) (118) -> CUSTOMBUILD : I/O error : Attempt to load network entity http://docboo k.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl [C:\Developm ent\wireshark\wsbuild64\docbook\user_guide_chm.vcxproj] CUSTOMBUILD : compilation error : file /Development/wireshark/docbook/ custom_layer_chm.xsl line 8 element import [C:\Development\wireshark\wsb uild64\docbook\user_guide_chm.vcxproj]

85 Warning(s)
4 Error(s)

Time Elapsed 00:11:33.01

same error more warnings. i was connected directly to the internet the whole time.

do you have any other ideas?

(25 Aug '16, 04:30) Ran

A full build does take some time to complete, so 11 minutes isn't unexpected.

You're still getting the errors on attempting to retrieve htmlhelp.xsl, I can't think when I last built without being connected to the internet, but I assume other folks do it and it hasn't been reported before. The line in the .xsl file that causes the import has been in the source code for 2 years.

You could try copying the downloaded version into the source docbook directory and editing docbook\custom_layer_chm.xsl to use an import with a local path:

<xsl:import href="htmlhelp.xsl"/>

I have no idea if that will work.

(25 Aug '16, 06:34) grahamb ♦