Indeed, this particular problem is resolved. Unfortunately, I’m now experiencing another failure, possibly due to a cmake version difference? From
https://gitlab.com/wireshark/wireshark/-/jobs/10080092481, I can see CMake 3.30.5 is in use, but my environment is using version 3.31.6.
Build FAILED.
"C:\Wireshark\builds\x64\master\Wireshark.sln" (default target) (1) ->
"C:\Wireshark\builds\x64\master\wireshark.vcxproj.metaproj" (default target
) (2) ->
"C:\Wireshark\builds\x64\master\epan\epan.vcxproj.metaproj" (default target
) (7) ->
"C:\Wireshark\builds\x64\master\epan\dfilter\dfilter.vcxproj.metaproj" (def
ault target) (10) ->
"C:\Wireshark\builds\x64\master\tools\lemon\lemon.vcxproj.metaproj" (defaul
t target) (11) ->
"C:\Wireshark\builds\x64\master\tools\lemon\lemon.vcxproj" (default target)
(106) ->
(ClCompile target) ->
cl : command line warning D9025: overriding '/W3' with '/w' [C:\Wireshar
k\builds\x64\master\tools\lemon\lemon.vcxproj]
"C:\Wireshark\builds\x64\master\Wireshark.sln" (default target) (1) ->
"C:\Wireshark\builds\x64\master\wireshark.vcxproj.metaproj" (default target
) (2) ->
"C:\Wireshark\builds\x64\master\ui\qt\qtui.vcxproj.metaproj" (default targe
t) (21) ->
"C:\Wireshark\builds\x64\master\ui\qt\qtui_autogen.vcxproj.metaproj" (defau
lt target) (22) ->
"C:\Wireshark\builds\x64\master\ui\qt\qtui_autogen.vcxproj" (default target
) (99) ->
(CustomBuild target) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft
\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build fo
r 'C:\Wireshark\builds\x64\master\CMakeFiles\8d4498c73f6c4c25c95ff94fdf915f
56\wireshark_ca.qm.rule;C:\Wireshark\builds\x64\master\CMakeFiles\8d4498c73
f6c4c25c95ff94fdf915f56\wireshark_de.qm.rule;C:\Wireshark\builds\x64\master
\CMakeFiles\8d4498c73f6c4c25c95ff94fdf915f56\wireshark_en.qm.rule;C:\Wiresh
ark\builds\x64\master\CMakeFiles\8d4498c73f6c4c25c95ff94fdf915f56\wireshark
_es.qm.rule;C:\Wireshark\builds\x64\master\CMakeFiles\8d4498c73f6c4c25c95ff
94fdf915f56\wireshark_fr.qm.rule;C:\Wireshark\builds\x64\master\CMakeFiles\
8d4498c73f6c4c25c95ff94fdf915f56\wireshark_ga_IE.qm.rule;C:\Wireshark\build
s\x64\master\CMakeFiles\8d4498c73f6c4c25c95ff94fdf915f56\wireshark_hu.qm.ru
le;C:\Wireshark\builds\x64\master\CMakeFiles\8d4498c73f6c4c25c95ff94fdf915f
56\wireshark_it.qm.rule;C:\Wireshark\builds\x64\master\CMakeFiles\8d4498c73
f6c4c25c95ff94fdf915f56\wireshark_ja_JP.qm.rule;C:\Wireshark\builds\x64\mas
ter\CMakeFiles\8d4498c73f6c4c25c95ff94fdf915f56\wireshark_ko.qm.rule;C:\Wir
eshark\builds\x64\master\CMakeFiles\8d4498c73f6c4c25c95ff94fdf915f56\wiresh
ark_pl.qm.rule;C:\Wireshark\builds\x64\master\CMakeFiles\8d4498c73f6c4c25c9
5ff94fdf915f56\wireshark_pt_BR.qm.rule;C:\Wireshark\builds\x64\master\CMake
Files\8d4498c73f6c4c25c95ff94fdf915f56\wireshark_ru.qm.rule;C:\Wireshark\bu
ilds\x64\master\CMakeFiles\8d4498c73f6c4c25c95ff94fdf915f56\wireshark_sv.qm
.rule;C:\Wireshark\builds\x64\master\CMakeFiles\8d4498c73f6c4c25c95ff94fdf9
15f56\wireshark_tr_TR.qm.rule;C:\Wireshark\builds\x64\master\CMakeFiles\8d4
498c73f6c4c25c95ff94fdf915f56\wireshark_uk.qm.rule;C:\Wireshark\builds\x64\
master\CMakeFiles\8d4498c73f6c4c25c95ff94fdf915f56\wireshark_zh_CN.qm.rule;
C:\Wireshark\builds\x64\master\CMakeFiles\a98377d28d711909e84a92bab36586c0\
qtui_autogen.rule;C:\Wireshark\src\master\ui\qt\CMakeLists.txt' exited with
code -1073741819. [C:\Wireshark\builds\x64\master\ui\qt\qtui_autogen.vcxpr
oj]
1 Warning(s)
1 Error(s)
- Chris
I updated to the latest version of Visual Studio and saw the same warnings. They should be fixed now.
I can see why all of those are warnings, as there's some incorrect casts or entries from the wrong enum (with the correct value, though) used. I suppose the latest MSVC is warning
but the earlier versions don't.
I’m using Visual Studio 17.14.0 (MSVC 19.44.35207.1) and seeing warnings with master, which are causing a build failure. It looks like
https://gitlab.com/wireshark/wireshark/-/jobs/10045948387 is working fine, but it’s using MSVC 19.41.34123.0, so maybe that’s why it works there but not for me? Anyone else seeing this?
"C:\Wireshark\builds\x64\master\Wireshark.sln" (default target) (1) ->
"C:\Wireshark\builds\x64\master\wireshark.vcxproj.metaproj" (default target
"C:\Wireshark\builds\x64\master\epan\epan.vcxproj.metaproj" (default target
"C:\Wireshark\builds\x64\master\epan\dissectors\dissectors.vcxproj.metaproj
" (default target) (13) ->
"C:\Wireshark\builds\x64\master\epan\dissectors\dissectors.vcxproj" (defaul
C:\Wireshark\src\master\epan\dissectors\packet-netlink-generic.c(251,7):
warning C5286: implicit conversion from enum type '<unnamed-enum-WS_CTRL_CM
D_UNSPEC>' to enum type 'ws_genl_ctrl_attr'; use an explicit cast to silenc
e this warning [C:\Wireshark\builds\x64\master\epan\dissectors\dissectors.v
C:\Wireshark\src\master\epan\dissectors\packet-netlink-net_dm.c(232,7): w
arning C5286: implicit conversion from enum type 'ws_net_dm_attrs_stats' to
enum type 'ws_net_dm_attrs_port'; use an explicit cast to silence this war
ning [C:\Wireshark\builds\x64\master\epan\dissectors\dissectors.vcxproj]
C:\Wireshark\src\master\epan\dissectors\packet-netlink-netfilter.c(580,8)
: warning C5286: implicit conversion from enum type 'ws_ctattr_l4proto' to
enum type 'ws_ctattr_ip'; use an explicit cast to silence this warning [C:\
Wireshark\builds\x64\master\epan\dissectors\dissectors.vcxproj]
C:\Wireshark\src\master\epan\dissectors\packet-netlink-netfilter.c(584,8)
: warning C5286: implicit conversion from enum type 'ws_ctattr_l4proto' to
enum type 'ws_ctattr_ip'; use an explicit cast to silence this warning [C:\
Wireshark\builds\x64\master\epan\dissectors\dissectors.vcxproj]
C:\Wireshark\src\master\epan\dissectors\packet-netlink-netfilter.c(588,8)
: warning C5286: implicit conversion from enum type 'ws_ctattr_l4proto' to
enum type 'ws_ctattr_ip'; use an explicit cast to silence this warning [C:\
Wireshark\builds\x64\master\epan\dissectors\dissectors.vcxproj]
C:\Wireshark\src\master\epan\dissectors\packet-tcpcl.c(1306,45): warning
C5287: operands are different enum types 'Tcpclv3MessageType' and 'Tcpclv3D
ataSegmentFlag'; use an explicit cast to silence this warning [C:\Wireshark
\builds\x64\master\epan\dissectors\dissectors.vcxproj]
C:\Wireshark\src\master\epan\dissectors\packet-netlink-netfilter.c(854,8)
: warning C5286: implicit conversion from enum type 'ws_ctattr_expect_nat'
to enum type 'ws_ctattr_expect'; use an explicit cast to silence this warni
ng [C:\Wireshark\builds\x64\master\epan\dissectors\dissectors.vcxproj]
C:\Wireshark\src\master\epan\dissectors\packet-netlink-netfilter.c(858,8)
: warning C5286: implicit conversion from enum type 'ws_ctattr_expect_nat'
to enum type 'ws_ctattr_expect'; use an explicit cast to silence this warni
ng [C:\Wireshark\builds\x64\master\epan\dissectors\dissectors.vcxproj]