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

Wireshark 2.2.5 Build errors

0
     qtui.dir\RelWithDebInfo\moc_protocol_hierarchy_dialog.obj
     qtui.dir\RelWithDebInfo\moc_protocol_preferences_menu.obj
     qtui.dir\RelWithDebInfo\moc_qcustomplot.obj
     qtui.dir\RelWithDebInfo\moc_recent_file_status.obj
     qtui.dir\RelWithDebInfo\moc_related_packet_delegate.obj
     qtui.dir\RelWithDebInfo\moc_resolved_addresses_dialog.obj
     qtui.dir\RelWithDebInfo\moc_response_time_delay_dialog.obj
     qtui.dir\RelWithDebInfo\moc_rpc_service_response_time_dialog.obj
     qtui.dir\RelWithDebInfo\moc_rtp_analysis_dialog.obj
     qtui.dir\RelWithDebInfo\moc_rtp_audio_stream.obj
     qtui.dir\RelWithDebInfo\moc_rtp_player_dialog.obj
     qtui.dir\RelWithDebInfo\moc_rtp_stream_dialog.obj
     qtui.dir\RelWithDebInfo\moc_sctp_all_assocs_dialog.obj
     qtui.dir\RelWithDebInfo\moc_sctp_assoc_analyse_dialog.obj
     qtui.dir\RelWithDebInfo\moc_sctp_chunk_statistics_dialog.obj
     qtui.dir\RelWithDebInfo\moc_sctp_graph_dialog.obj
     qtui.dir\RelWithDebInfo\moc_sctp_graph_arwnd_dialog.obj
     qtui.dir\RelWithDebInfo\moc_sctp_graph_byte_dialog.obj
     qtui.dir\RelWithDebInfo\moc_search_frame.obj
     qtui.dir\RelWithDebInfo\moc_sequence_diagram.obj
     qtui.dir\RelWithDebInfo\moc_sequence_dialog.obj
     qtui.dir\RelWithDebInfo\moc_show_packet_bytes_dialog.obj
     qtui.dir\RelWithDebInfo\moc_simple_dialog.obj
     qtui.dir\RelWithDebInfo\moc_splash_overlay.obj
     qtui.dir\RelWithDebInfo\moc_stats_tree_dialog.obj
     qtui.dir\RelWithDebInfo\moc_service_response_time_dialog.obj
     qtui.dir\RelWithDebInfo\moc_simple_statistics_dialog.obj
     qtui.dir\RelWithDebInfo\moc_stock_icon_tool_button.obj
     qtui.dir\RelWithDebInfo\moc_supported_protocols_dialog.obj
     qtui.dir\RelWithDebInfo\moc_syntax_line_edit.obj
     qtui.dir\RelWithDebInfo\moc_tap_parameter_dialog.obj
     qtui.dir\RelWithDebInfo\moc_tcp_stream_dialog.obj
     qtui.dir\RelWithDebInfo\moc_time_shift_dialog.obj
     qtui.dir\RelWithDebInfo\moc_timeline_delegate.obj
     qtui.dir\RelWithDebInfo\moc_traffic_table_dialog.obj
     qtui.dir\RelWithDebInfo\moc_uat_delegate.obj
     qtui.dir\RelWithDebInfo\moc_uat_dialog.obj
     qtui.dir\RelWithDebInfo\moc_uat_model.obj
     qtui.dir\RelWithDebInfo\moc_uat_tree_view.obj
     qtui.dir\RelWithDebInfo\moc_voip_calls_dialog.obj
     qtui.dir\RelWithDebInfo\moc_wireless_frame.obj
     qtui.dir\RelWithDebInfo\moc_wireshark_application.obj
     qtui.dir\RelWithDebInfo\moc_wireshark_dialog.obj
     qtui.dir\RelWithDebInfo\moc_wlan_statistics_dialog.obj
     qtui.dir\RelWithDebInfo\moc_remote_capture_dialog.obj
     qtui.dir\RelWithDebInfo\moc_remote_settings_dialog.obj
     qtui.dir\RelWithDebInfo\moc_extcap_argument.obj
     qtui.dir\RelWithDebInfo\moc_extcap_argument_file.obj
     qtui.dir\RelWithDebInfo\moc_extcap_argument_multiselect.obj
     qtui.dir\RelWithDebInfo\moc_extcap_options_dialog.obj
     qtui.dir\RelWithDebInfo\qrc_about.obj
     qtui.dir\RelWithDebInfo\qrc_languages.obj
     qtui.dir\RelWithDebInfo\qrc_layout.obj
     qtui.dir\RelWithDebInfo\qrc_toolbar.obj
     qtui.dir\RelWithDebInfo\qrc_wsicon.obj
     qtui.dir\RelWithDebInfo\qrc_i18n.obj
     "qtui.dir\RelWithDebInfo\wireshark-tap-register.obj"
     qtui.vcxproj -> D:\Development\msbuild64\run\RelWithDebInfo\qtui.lib
   FinalizeBuildStatus:
     Deleting file "qtui.dir\RelWithDebInfo\qtui.tlog\unsuccessfulbuild".
     Touching "qtui.dir\RelWithDebInfo\qtui.tlog\qtui.lastbuildstate".

106>Done Building Project "D:\Development\msbuild64\ui\qt\qtui.vcxproj" (default targets). 40>Done Building Project "D:\Development\msbuild64\ui\qt\qtui.vcxproj.metaproj" (default targets). 2>Done Building Project "D:\Development\msbuild64\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED. 1>Done Building Project "D:\Development\msbuild64\Wireshark.sln" (default targets) -- FAILED.

Build FAILED.

   "D:\Development\msbuild64\Wireshark.sln" (default target) (1) ->
   "D:\Development\msbuild64\docbook\release_notes_html.vcxproj.metaproj" (default target) (46) ->
   "D:\Development\msbuild64\docbook\release_notes_html.vcxproj" (default target) (101) ->
   (CustomBuild target) ->
     a2x : error : "xmllint" --nonet --noout --valid "/cygdrive/d/Development/msbuild64/docbook/release-notes.xml" returned non-zero exit status 4 [D:\Development\ms
   build64\docbook\release_notes_html.vcxproj]

"D:\Development\msbuild64\Wireshark.sln" (default target) (1) -> "D:\Development\msbuild64\wsutil\wsutil.vcxproj.metaproj" (default target) (77) -> "D:\Development\msbuild64\wsutil\wsutil.vcxproj" (default target) (97) -> (Link target) -> LINK : fatal error LNK1181: cannot open input file 'gmodule-2.0.lib' [D:\Development\msbuild64\wsutil\wsutil.vcxproj]

"D:\Development\msbuild64\Wireshark.sln" (default target) (1) -> "D:\Development\msbuild64\epan\dissectors\dissectors.vcxproj.metaproj" (default target) (19) -> "D:\Development\msbuild64\epan\dissectors\dissectors.vcxproj" (default target) (89) -> (ClCompile target) -> D:\Development\WireShark\epan\dissectors\packet-ipv6.c(2093): error C2275: 'guint16' : illegal use of this type as an expression [D:\Development\msbuild64\epan
dissectors\dissectors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-ipv6.c(2093): error C2146: syntax error : missing ';' before identifier 'mapped_port' [D:\Development\msbuild64
epan\dissectors\dissectors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-ipv6.c(2093): error C2065: 'mapped_port' : undeclared identifier [D:\Development\msbuild64\epan\dissectors\disse ctors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-ipv6.c(2104): error C2065: 'mapped_port' : undeclared identifier [D:\Development\msbuild64\epan\dissectors\disse ctors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-usb-i1d3.c(434): error C2275: 'guint32' : illegal use of this type as an expression [D:\Development\msbuild64\ep an\dissectors\dissectors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-usb-i1d3.c(434): error C2146: syntax error : missing ';' before identifier 'response_code' [D:\Development\msbui ld64\epan\dissectors\dissectors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-usb-i1d3.c(434): error C2065: 'response_code' : undeclared identifier [D:\Development\msbuild64\epan\dissectors
dissectors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-usb-i1d3.c(436): error C2065: 'response_code' : undeclared identifier [D:\Development\msbuild64\epan\dissectors
dissectors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-usb-i1d3.c(438): error C2065: 'response_code' : undeclared identifier [D:\Development\msbuild64\epan\dissectors
dissectors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-usb-i1d3.c(439): error C2065: 'response_code' : undeclared identifier [D:\Development\msbuild64\epan\dissectors
dissectors.vcxproj] D:\Development\WireShark\epan\dissectors\packet-usb-i1d3.c(442): error C2065: 'response_code' : undeclared identifier [D:\Development\msbuild64\epan\dissectors
dissectors.vcxproj]

"D:\Development\msbuild64\Wireshark.sln" (default target) (1) -> "D:\Development\msbuild64\docbook\user_guide_chm.vcxproj.metaproj" (default target) (62) -> "D:\Development\msbuild64\docbook\user_guide_chm.vcxproj" (default target) (105) -> (CustomBuild target) -> CUSTOMBUILD : I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd [D:\Development\msbuild64\docbook\user_guide_chm .vcxproj]

"D:\Development\msbuild64\Wireshark.sln" (default target) (1) -> "D:\Development\msbuild64\docbook\developer_guide_chm.vcxproj.metaproj" (default target) (14) -> "D:\Development\msbuild64\docbook\developer_guide_chm.vcxproj" (default target) (111) -> CUSTOMBUILD : I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd [D:\Development\msbuild64\docbook\developer_guid e_chm.vcxproj]

0 Warning(s) 15 Error(s)

Time Elapsed 00:07:54.83

I just took the sources code and started building it. no idea wat is causing the build errors as i fallowed the procedure as mentioned in the developers guide.

asked 24 Mar ‘17, 03:08

DhanuShalz's gravatar image

DhanuShalz
36101115
accept rate: 100%

The above was observed!

(24 Mar ‘17, 07:29) DhanuShalz

Does your build machine have internet access? Among other things it seems to be failing to download some xml files. You also have a problem with gmodule.

Please post the output (as text) of the CMake generation step, i.e.

cmake -G … > cmake.txt

I need to see what’s in cmake.txt

To post msbuild output use the following redirection to capture the build info:

msbuild … 2>&1 > msbuild.txt
(24 Mar ‘17, 08:59) grahamb ♦

cmake.txt

msbuid.txt

@grahamb please find the attached log

(27 Mar ‘17, 02:19) DhanuShalz


One Answer:

0

The CMake output looks OK, the build errors were:

   "D:\Development\msbuild64\Wireshark.sln" (default target) (1) ->
   "D:\Development\msbuild64\docbook\generate_user-guide.xml.vcxproj.metaproj" (default target) (32) ->
   "D:\Development\msbuild64\docbook\generate_user-guide.xml.vcxproj" (default target) (97) ->
   (CustomBuild target) -> 
     asciidoc : warning : user-guide.asciidoc: line 3: {include:/cygdrive/d/Development/WireShark/docbook/user-guide-docinfo.xml}: file does not exist [D:\Development\msbuild64\docbook\generate_user-guide.xml.vcxproj]

"D:\Development\msbuild64\Wireshark.sln" (default target) (1) -> "D:\Development\msbuild64\docbook\generate_developer-guide.xml.vcxproj.metaproj" (default target) (31) -> "D:\Development\msbuild64\docbook\generate_developer-guide.xml.vcxproj" (default target) (96) -> asciidoc : warning : developer-guide.asciidoc: line 3: {include:/cygdrive/d/Development/WireShark/docbook/developer-guide-docinfo.xml}: file does not exist [D:\Development\msbuild64\docbook\generate_developer-guide.xml.vcxproj]

"D:\Development\msbuild64\Wireshark.sln" (default target) (1) -> "D:\Development\msbuild64\docbook\release_notes_html.vcxproj.metaproj" (default target) (51) -> "D:\Development\msbuild64\docbook\release_notes_html.vcxproj" (default target) (105) -> (CustomBuild target) -> a2x : error : "xmllint" –nonet –noout –valid "/cygdrive/d/Development/msbuild64/docbook/release-notes.xml" returned non-zero exit status 4 [D:\Development\msbuild64\docbook\release_notes_html.vcxproj]

"D:\Development\msbuild64\Wireshark.sln" (default target) (1) -> "D:\Development\msbuild64\docbook\user_guide_chm.vcxproj.metaproj" (default target) (64) -> "D:\Development\msbuild64\docbook\user_guide_chm.vcxproj" (default target) (115) -> CUSTOMBUILD : I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd [D:\Development\msbuild64\docbook\user_guide_chm.vcxproj]

"D:\Development\msbuild64\Wireshark.sln" (default target) (1) -> "D:\Development\msbuild64\docbook\developer_guide_chm.vcxproj.metaproj" (default target) (15) -> "D:\Development\msbuild64\docbook\developer_guide_chm.vcxproj" (default target) (117) -> CUSTOMBUILD : I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd [D:\Development\msbuild64\docbook\developer_guide_chm.vcxproj]

"D:\Development\msbuild64\Wireshark.sln" (default target) (1) -> "D:\Development\msbuild64\wsutil\wsutil.vcxproj.metaproj" (default target) (80) -> "D:\Development\msbuild64\wsutil\wsutil.vcxproj" (default target) (98) -> (Link target) -> LINK : fatal error LNK1181: cannot open input file 'gmodule-2.0.lib' [D:\Development\msbuild64\wsutil\wsutil.vcxproj]

The first few errors are issues with building the documentation, some of which seem to be an inability to download required xml files from the internet. I repeat my question, does the build machine have direct internet access?

The link error is an inability to locate gmodule-2.0.lib, this is because CMake has picked up some other form of gmodule (and gthread2) as can be seen by the CMake output:

– Checking for one of the modules 'gmodule-2.0'
– GMODULE2 FOUND
– GMODULE2 includes: /usr/include/glib-2.0;/usr/lib/glib-2.0/include
– GMODULE2 libs: gmodule-2.0;glib-2.0;intl

– Checking for one of the modules 'gthread-2.0' – GTHREAD2 FOUND – GTHREAD2 includes: /usr/include/glib-2.0;/usr/lib/glib-2.0/include – GTHREAD2 libs: gthread-2.0;glib-2.0;intl

To fix this you’ll need to locate where these are coming from, possibly Cygwin or something else on your PATH and either remove the items or remove them from your PATH, delete CMakecache.txt and re-run the CMake generation step.

answered 27 Mar ‘17, 02:50

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

The first few errors are issues with building the documentation, some of which seem to be an inability to download required xml files from the internet. I repeat my question, does the build machine have direct internet access?

the machine does have a direct internet connection

(27 Mar ‘17, 02:59) DhanuShalz

The download errors are:

115>CUSTOMBUILD : I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd [D:\Development\msbuild64\docbook\user_guide_chm.vcxproj]
user-guide-plain-title.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
^
117>CUSTOMBUILD : I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd [D:\Development\msbuild64\docbook\developer_guide_chm.vcxproj]
developer-guide-plain-title.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
(27 Mar ‘17, 03:38) grahamb ♦

You can modify the CMake command so that the documentation isn’t built so those xml errors won’t occur by deleting CMakeCache.txt and running the CMake generation step, but omitting the “-DENABLE_CHM_GUIDES=on” part, but note that if you try to build the installer that will fail.

(27 Mar ‘17, 03:41) grahamb ♦

@grahamb

– Checking for one of the modules ‘gmodule-2.0’ – GMODULE2 FOUND – GMODULE2 includes: /usr/include/glib-2.0;/usr/lib/glib-2.0/include – GMODULE2 libs: gmodule-2.0;glib-2.0;intl

– Checking for one of the modules ‘gthread-2.0’ – GTHREAD2 FOUND – GTHREAD2 includes: /usr/include/glib-2.0;/usr/lib/glib-2.0/include – GTHREAD2 libs: gthread-2.0;glib-2.0;intl

Can i get more insight on this, As i have tried removing the file from this location(/usr/include/glib-2.0), im facing the same error? and no such PATH is set.

(28 Mar ‘17, 07:25) DhanuShalz

Cmake uses “modules” to find libraries, for gmodule and gthread they are in the Wireshark source tree under cmake\modules\FINDGMODULE2.cmake and FINDGTHREAD2.cmake respectively.

Both modules try to use pkgconfig to locate the libraries first, normally that doesn’t work on Windows as there is no pkgconfig, and then the modules take a hint which includes the Wireshark 3rd party libraries downloaded for the build (in your case Wireshark-win64-libs-2.2), and looks in there.

However from your CMake output it seems that the Cygwin pkgconfig was found:

Found PkgConfig: C:/cygwin64/bin/pkg-config.exe (found version "0.29.1")

I suspect this is messing things up for you, probably because you have the Cygwin bin dir on your path (C:\cygwin64\bin). All my Wireshark build VM’s do NOT have Cygwin on the path because of issues like this, even extending back to the nmake days.

(28 Mar ‘17, 08:47) grahamb ♦

@DhanuShalz I’m seeing the same errors you’re seeing related to glib…working with grahamb here:

https://ask.wireshark.org/questions/59065/updating-custom-dissector-from-16-wireshark-to-22-wireshark

Just so you know. Working on finding a solution right now. I will post an answer here when I do.

(30 Mar ‘17, 13:45) aawale15

“D:\Development\msbuild\Wireshark.sln” (default target) (1) -> “D:\Development\msbuild\docbook\developer_guide_chm.vcxproj.metaproj” (default target) (16) -> “D:\Development\msbuild\docbook\developer_guide_chm.vcxproj” (default target) (101) -> (CustomBuild target) -> HHC5003 : error : Compilation failed while compiling ws.css. [D:\Development\msbuild\docbook\developer_guide_chm.vcxproj]

“D:\Development\msbuild\Wireshark.sln” (default target) (1) -> “D:\Development\msbuild\docbook\all_guides.vcxproj.metaproj” (default target) (3) -> “D:\Development\msbuild\docbook\user_guides.vcxproj.metaproj” (default target) (30) -> “D:\Development\msbuild\docbook\user_guide_chm.vcxproj.metaproj” (default target) (33) -> “D:\Development\msbuild\docbook\user_guide_chm.vcxproj” (default target) (124) -> (CustomBuild target) -> HHC5003 : error : Compilation failed while compiling ws.css. [D:\Development\msbuild\docbook\user_guide_chm.vcxproj]

not sure what is causing it to fail! @grahamb

(05 Apr ‘17, 22:57) DhanuShalz

You seemed to have moved on a bit. In the past I had issues with ws.css being created by Cygwin with odd permissions. Deleting ws.css in your build directory docbook directory fixed that for me and then rebuilding.

(06 Apr ‘17, 01:43) grahamb ♦
showing 5 of 8 show 3 more comments