Windows10 compile of WS 3.4.2 fails due to Perl modules
Hi,
I'm having a bit of difficulty compiling 3.4.2 - I've compiled 3.2.x many times without issue.
Build FAILED.
"c:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
"c:\Development\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default target) (3) ->
"c:\Development\wsbuild64\text2pcap.vcxproj.metaproj" (default target) (67) ->
"c:\Development\wsbuild64\version_info.vcxproj.metaproj" (default target) (68) ->
"c:\Development\wsbuild64\version.vcxproj.metaproj" (default target) (69) ->
"c:\Development\wsbuild64\version.vcxproj" (default target) (77) ->
(CustomBuild target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.ta
rgets(231,5): error MSB6006: "cmd.exe" exited with code 2. [c:\Development\wsbuild64\version.vcxproj]
"c:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
"c:\Development\wsbuild64\doc\docs.vcxproj.metaproj" (default target) (21) ->
"c:\Development\wsbuild64\doc\docs.vcxproj" (default target) (111) ->
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.ta
rgets(231,5): error MSB6006: "cmd.exe" exited with code 2. [c:\Development\wsbuild64\doc\docs.vcxproj]
0 Warning(s)
2 Error(s)
Both errors relate to "missing" Perl modules:
1>Project "c:\Development\wsbuild64\Wireshark.sln" (1) is building "c:\Development\wsbuild64\ui\qt\qtui.vcxproj.me
taproj" (45) on node 1 (default targets).
45>Project "c:\Development\wsbuild64\ui\qt\qtui.vcxproj.metaproj" (45) is building "c:\Development\wsbuild64\ui\qt\
qtui.vcxproj" (117) on node 5 (default targets).
117>InitializeBuildStatus:
Creating "qtui.dir\RelWithDebInfo\qtui.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
All outputs are up-to-date.
111>CustomBuild:
Can't locate Pod/Man.pm in @INC (you may need to install the Pod::Man module) (@INC contains: C \APPS\actperl\
Perl64\lib;C \APPS\actperl\Perl64\site\lib;C \APPS\actperl\Perl64\lib\CGIC \APPS\actperl\Perl64\lib;C \APPS\ac
tperl\Perl64\site\lib;C \APPS\actperl\Perl64\lib\CGI;C \APPS\actperl\Perl64\lib\Pod; /usr/lib/perl5/site_perl
/usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /u
sr/share/perl5/core_perl) at C:/apps/actperl/Perl64/bin/pod2man line 18.
BEGIN failed--compilation aborted at C:/apps/actperl/Perl64/bin/pod2man line 18.
111>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targ
ets(231,5): error MSB6006: "cmd.exe" exited with code 2. [c:\Development\wsbuild64\doc\docs.vcxproj]
111>Done Building Project "c:\Development\wsbuild64\doc\docs.vcxproj" (default targets) -- FAILED.
21>Done Building Project "c:\Development\wsbuild64\doc\docs.vcxproj.metaproj" (default targets) -- FAILED.
So it is complaining about this:
Can't locate Pod/Man.pm in @INC (you may need to install the Pod::Man module)
It is definitely there ... C:\apps\actperl\Perl64\lib\Pod
So I added C:\apps\actperl\Perl64\lib\Pod specifically to the PERLLIB environment variable but it still fails.
The other error was similar - it too can be found in C:\apps\actperl\Perl64\lib\Pod:
111>CustomBuild:
Generating AUTHORS-SHORT-FORMAT
77>CustomBuild:
Can't locate Pod ...