Subject: | Installation bug, cpan Printer, on my laptop |
Date: | Sat, 28 May 2016 12:57:25 -0700 |
To: | bug-Printer [...] rt.cpan.org |
From: | William Barrett <billbarrett04 [...] gmail.com> |
My laptop also has Windows 10, but the installation report failure is
rather different. See previous bug report. Maybe this will help...
This was installed through an Administrative window.
Windows 10, 64 bit.
Perl version:
This is perl 5, version 22, subversion 1 (v5.22.1) built for
MSWin32-x64-multi-thread
-------------------------------------------------------------
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cpan Win32::Printer
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: CPAN::SQLite loaded ok (v0.211)
CPAN: LWP::UserAgent loaded ok (v6.15)
CPAN: Time::HiRes loaded ok (v1.9728)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
CPAN: YAML::XS loaded ok (v0.62)
Fetching with LWP:
http://cpan.strawberryperl.com/modules/02packages.details.txt.gz
Fetching with LWP:
http://cpan.strawberryperl.com/modules/03modlist.data.gz
Database was generated on Fri, 06 May 2016 23:57:13 GMT
Updating database file ...
Done!
Running install for module 'Win32::Printer'
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/W/WA/WASX/Win32-Printer-0.9.1.zip
CPAN: Digest::SHA loaded ok (v5.95)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/W/WA/WASX/CHECKSUMS
'" "' is not recognized as an internal or external command,
operable program or batch file.
Checksum for
C:\strawberry\cpan\sources\authors\id\W\WA\WASX\Win32-Printer-0.9.1.zip ok
CPAN: Archive::Zip loaded ok (v1.56)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: CPAN::Meta loaded ok (v2.150005)
Configuring W/WA/WASX/Win32-Printer-0.9.1.zip with Makefile.PL
DEFAULT BUILD OPTIONS - W/O 3PLibs (SET ANY ARGUMENT TO INVOKE THE PROMPT!)
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for Delayimp.lib
Generating a dmake-style Makefile
Writing Makefile for Win32::Printer
Writing MYMETA.yml and MYMETA.json
WASX/Win32-Printer-0.9.1.zip
C:\strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for W/WA/WASX/Win32-Printer-0.9.1.zip
CPAN: Module::CoreList loaded ok (v5.20160121)
cp Printer/Enum.pm blib\lib\Win32\Printer\Enum.pm
cp Printer.pm blib\lib\Win32\Printer.pm
cp Printer/Direct.pm blib\lib\Win32\Printer\Direct.pm
Running Mkbootstrap for Win32::Printer ()
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644
"Printer.bs"
"C:\strawberry\perl\bin\perl.exe" "C:\strawberry\perl\lib\ExtUtils\xsubpp"
-typemap "C:\strawberry\perl\lib\ExtUtils\typemap" -typemap "typemap"
Printer.xs > Printer.xsc && "C:\strawberry\perl\bin\perl.exe"
-MExtUtils::Command -e mv -- Printer.xsc Printer.c
gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE
-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv
-fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.9.1\"
-DXS_VERSION=\"0.9.1\" "-IC:\strawberry\perl\lib\CORE" Printer.c
Printer.xs: In function 'XS_Win32__Printer__CreatePen':
Printer.xs:910:16: warning: assignment makes integer from pointer without a
cast
lb.lbHatch = NULL;
^
Printer.xs: In function 'XS_Win32__Printer__GetWinMetaFile':
Printer.xs:1260:8: error: unknown type name '_int16'
_int16 left;
^
Printer.xs:1261:8: error: unknown type name '_int16'
_int16 top;
^
Printer.xs:1262:8: error: unknown type name '_int16'
_int16 right;
^
Printer.xs:1263:8: error: unknown type name '_int16'
_int16 bottom;
^
Printer.xs:1301:38: warning: passing argument 2 of 'GetMetaFileBitsEx'
makes integer from pointer without a cast
nSize = GetMetaFileBitsEx(hmf, NULL, NULL);
^
In file included from
C:/strawberry/c/x86_64-w64-mingw32/include/windows.h:71:0,
from C:\strawberry\perl\lib\CORE/win32.h:131,
from C:\strawberry\perl\lib\CORE/win32thread.h:4,
from C:\strawberry\perl\lib\CORE/perl.h:3063,
from Printer.xs:8:
C:/strawberry/c/x86_64-w64-mingw32/include/wingdi.h:2858:25: note: expected
'UINT' but argument is of type 'void *'
WINGDIAPI UINT WINAPI GetMetaFileBitsEx(HMETAFILE hMF,UINT
cbBuffer,LPVOID lpData);
^
Printer.xs: In function 'XS_Win32__Printer__EBbl':
Printer.xs:1332:14: warning: assignment makes integer from pointer without
a cast
RETVAL = NULL;
^
Printer.xs: In function 'XS_Win32__Printer__GhostPDF':
Printer.xs:1828:12: warning: assignment makes integer from pointer without
a cast
RETVAL = NULL;
^
dmake.exe: Error code 129, while making 'Printer.o'
WASX/Win32-Printer-0.9.1.zip
C:\strawberry\c\bin\dmake.exe -- NOT OK
Stopping: 'install' failed for 'Win32::Printer'.
C:\WINDOWS\system32>
--
William Barrett
billbarrett04@gmail.com
http://www.wbarrett.us