Subject: | Build fails on Strawberry Perl 5.24.1.1 (64bit) Windows 10 |
Platform: Build fails on Strawberry Perl 5.24.1.1 (64bit) Windows 10
Win32::Process::Perf version: 1.05
root cause: pdh.dll and pdh.lib are not installed by Windows XP and higher by default. The readme should be updated to state this.
Show quoted text
cpan> install Win32::Process::Perf
Running install for module 'Win32::Process::Perf'
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/R/RP/RPAGITSCH/Win32-Process-Perf-1.05.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/R/RP/RPAGITSCH/CHECKSUMS
Checksum for C:\Perl\STRAWB~1\cpan\sources\authors\id\R\RP\RPAGITSCH\Win32-Process-Perf-1.05.tar.gz ok
Configuring R/RP/RPAGITSCH/Win32-Process-Perf-1.05.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Win32::Locale 0.03 not found.
Warning (mostly harmless): No library found for pdh.lib
Generating a dmake-style Makefile
Writing Makefile for Win32::Process::Perf
Writing MYMETA.yml and MYMETA.json
RPAGITSCH/Win32-Process-Perf-1.05.tar.gz
C:\Perl\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for R/RP/RPAGITSCH/Win32-Process-Perf-1.05.tar.gz
Show quoted text---- Unsatisfied dependencies detected during ----
---- RPAGITSCH/Win32-Process-Perf-1.05.tar.gz ----
Win32::Locale [requires]
Running install for module 'Win32::Locale'
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/S/SB/SBURKE/Win32-Locale-0.04.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/S/SB/SBURKE/CHECKSUMS
Checksum for C:\Perl\STRAWB~1\cpan\sources\authors\id\S\SB\SBURKE\Win32-Locale-0.04.tar.gz ok
Configuring S/SB/SBURKE/Win32-Locale-0.04.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Win32::Locale
Writing MYMETA.yml and MYMETA.json
SBURKE/Win32-Locale-0.04.tar.gz
C:\Perl\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for S/SB/SBURKE/Win32-Locale-0.04.tar.gz
cp Locale.pm blib\lib\Win32\Locale.pm
SBURKE/Win32-Locale-0.04.tar.gz
C:\Perl\STRAWB~1\c\bin\dmake.exe -- OK
Running make test
"C:\Perl\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches;
test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/00winlocale.t .. ok
All tests successful.
Files=1, Tests=2, 0 wallclock secs ( 0.05 usr + 0.02 sys = 0.06 CPU)
Result: PASS
SBURKE/Win32-Locale-0.04.tar.gz
C:\Perl\STRAWB~1\c\bin\dmake.exe test -- OK
Running make install
Installing C:\Perl\STRAWB~1\perl\site\lib\Win32\Locale.pm
Appending installation info to C:\Perl\STRAWB~1\perl\lib/perllocal.pod
SBURKE/Win32-Locale-0.04.tar.gz
C:\Perl\STRAWB~1\c\bin\dmake.exe install UNINST=1 -- OK
RPAGITSCH/Win32-Process-Perf-1.05.tar.gz
Has already been unwrapped into directory C:\Perl\STRAWB~1\cpan\build\Win32-Process-Perf-1.05-0
RPAGITSCH/Win32-Process-Perf-1.05.tar.gz
Has already been prepared
Running make for R/RP/RPAGITSCH/Win32-Process-Perf-1.05.tar.gz
cp lib/Win32/Process/Perf.pm blib\lib\Win32\Process\Perf.pm
cp lib/Win32/Process/Perf/de-at.dat blib\lib\Win32\Process\Perf\de-at.dat
cp lib/Win32/Process/Perf/cs.dat blib\lib\Win32\Process\Perf\cs.dat
cp lib/Win32/Process/Perf/en-us.dat blib\lib\Win32\Process\Perf\en-us.dat
cp lib/Win32/Process/Perf/en-gb.dat blib\lib\Win32\Process\Perf\en-gb.dat
cp lib/Win32/Process/Perf/de-de.dat blib\lib\Win32\Process\Perf\de-de.dat
cp lib/Win32/Process/Perf/cz.dat blib\lib\Win32\Process\Perf\cz.dat
Running Mkbootstrap for Perf ()
"C:\Perl\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "Perf.bs"
"C:\Perl\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- Perf.bs blib\arch\auto\Win32\Process\Pe
rf\Perf.bs 644
"C:\Perl\Strawberry\perl\bin\perl.exe" "C:\Perl\Strawberry\perl\lib\ExtUtils\xsubpp" -typemap C:\Perl\STRAWB~1\perl\lib
\ExtUtils\typemap Perf.xs > Perf.xsc
Please specify prototyping behavior for Perf.xs (see perlxs manual)
"C:\Perl\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- Perf.xsc Perf.c
gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
S -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" "-IC:\Perl\STRAWB
~1\perl\lib\CORE" Perf.c
In file included from C:\Perl\STRAWB~1\perl\lib\CORE/perl.h:5560:0,
from Perf.xs:31:
Perf.xs: In function 'XS_Win32__Process__Perf_open_query':
Perf.xs:128:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
XPUSHs(sv_2mortal(newSViv((long)hQwy)));
^
C:\Perl\STRAWB~1\perl\lib\CORE/pp.h:458:55: note: in definition of macro 'XPUSHs'
#define XPUSHs(s) STMT_START { EXTEND(sp,1); *++sp = (s); } STMT_END
^
Perf.xs:128:11: note: in expansion of macro 'sv_2mortal'
XPUSHs(sv_2mortal(newSViv((long)hQwy)));
^
Perf.xs:128:22: note: in expansion of macro 'newSViv'
XPUSHs(sv_2mortal(newSViv((long)hQwy)));
^
Perf.xs: In function 'XS_Win32__Process__Perf_add_counter':
Perf.xs:196:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
XPUSHs(sv_2mortal(newSViv((long)cnt)));
^
C:\Perl\STRAWB~1\perl\lib\CORE/pp.h:458:55: note: in definition of macro 'XPUSHs'
#define XPUSHs(s) STMT_START { EXTEND(sp,1); *++sp = (s); } STMT_END
^
Perf.xs:196:13: note: in expansion of macro 'sv_2mortal'
XPUSHs(sv_2mortal(newSViv((long)cnt)));
^
Perf.xs:196:24: note: in expansion of macro 'newSViv'
XPUSHs(sv_2mortal(newSViv((long)cnt)));
^
Perf.xs: In function 'XS_Win32__Process__Perf_explain_counter':
Perf.xs:532:60: warning: passing argument 4 of 'PdhMakeCounterPathA' makes integer from pointer without a cast
stat = PdhMakeCounterPath(&GStruct, (char*)str, &dwSize, NULL);
^
In file included from Perf.xs:34:0:
C:/Perl/Strawberry/c/x86_64-w64-mingw32/include/PDH.h:322:16: note: expected 'DWORD' but argument is of type 'void *'
PDH_FUNCTION PdhMakeCounterPathA(PPDH_COUNTER_PATH_ELEMENTS_A pCounterPathElements,LPSTR szFullPathBuffer,LPDWORD pcc
hBufferSize,DWORD dwFlags);
^
"C:\Perl\Strawberry\perl\bin\perl.exe" -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Win32::Process::Perf\", 'DLBASE' => 'Perf', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS
' => { }, 'DL_VARS' => []);"
g++ Perf.def -o blib\arch\auto\Win32\Process\Perf\Perf.xs.dll -mdll -s -L"C:\Perl\STRAWB~1\perl\lib\CORE" -L"C:\Perl\STR
AWB~1\c\lib" Perf.o "C:\Perl\STRAWB~1\perl\lib\CORE\libperl524.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libmoldna
me.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libkernel32.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libuser32.a"
"C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libgdi32.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinspool.a" "C:\Per
l\STRAWB~1\c\x86_64-w64-mingw32\lib\libcomdlg32.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libadvapi32.a" "C:\Perl\ST
RAWB~1\c\x86_64-w64-mingw32\lib\libshell32.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libole32.a" "C:\Perl\STRAWB~1\c
\x86_64-w64-mingw32\lib\liboleaut32.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libnetapi32.a" "C:\Perl\STRAWB~1\c\x86
_64-w64-mingw32\lib\libuuid.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libws2_32.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mi
ngw32\lib\libmpr.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinmm.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\li
bversion.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbc32.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbccp
32.a" "C:\Perl\STRAWB~1\c\x86_64-w64-mingw32\lib\libcomctl32.a" -Wl,--enable-auto-image-base
Perf.o:Perf.c:(.text+0x6e7): undefined reference to `PdhMakeCounterPathA'
Perf.o:Perf.c:(.text+0x70c): undefined reference to `PdhGetCounterInfoA'
Perf.o:Perf.c:(.text+0x751): undefined reference to `PdhGetCounterInfoA'
Perf.o:Perf.c:(.text+0x9e4): undefined reference to `PdhConnectMachineA'
Perf.o:Perf.c:(.text+0xab1): undefined reference to `PdhConnectMachineA'
Perf.o:Perf.c:(.text+0xbe6): undefined reference to `PdhEnumObjectsA'
Perf.o:Perf.c:(.text+0xc19): undefined reference to `PdhEnumObjectsA'
Perf.o:Perf.c:(.text+0xe4b): undefined reference to `PdhGetFormattedCounterValue'
Perf.o:Perf.c:(.text+0x103c): undefined reference to `PdhCollectQueryData'
Perf.o:Perf.c:(.text+0x1108): undefined reference to `PdhCollectQueryData'
Perf.o:Perf.c:(.text+0x1382): undefined reference to `PdhAddCounterA'
Perf.o:Perf.c:(.text+0x1672): undefined reference to `PdhCloseQuery'
Perf.o:Perf.c:(.text+0x1701): undefined reference to `PdhOpenQueryA'
Perf.o:Perf.c:(.text+0x17f3): undefined reference to `PdhEnumObjectsHA'
collect2.exe: error: ld returned 1 exit status
dmake.exe: Error code 129, while making 'blib\arch\auto\Win32\Process\Perf\Perf.xs.dll'
RPAGITSCH/Win32-Process-Perf-1.05.tar.gz
C:\Perl\STRAWB~1\c\bin\dmake.exe -- NOT OK
Stopping: 'install' failed for 'R/RP/RPAGITSCH/Win32-Process-Perf-1.05.tar.gz'.
Failed during this command:
RPAGITSCH/Win32-Process-Perf-1.05.tar.gz : make NO
cpan>