Subject: | Cast to pointer errors during installation. |
Date: | Thu, 21 Jan 2016 17:10:07 +0000 |
To: | "bug-Win32-GuiTest [...] rt.cpan.org" <bug-Win32-GuiTest [...] rt.cpan.org> |
From: | Mathew Shember <Mathew.Shember [...] synopsys.com> |
Greetings,
It looks like Cygwin 2.0.4 has issues with the module. Simply trying a "CPAN Win32::GuiTest" produced:
$ cpan Win32::GuiTest
CPAN: Storable loaded ok (v2.27)
Going to read '/home/mshember/.local/share/.cpan/Metadata'
Database was generated on Tue, 19 Jan 2016 04:53:29 GMT
CPAN: LWP::UserAgent loaded ok (v6.13)
Fetching with LWP:
http://cpan.kinghost.net/authors/01mailrc.txt.gz
CPAN: YAML loaded ok (v1.15)
Going to read '/home/mshember/.local/share/.cpan/sources/authors/01mailrc.txt.gz'
CPAN: Compress::Zlib loaded ok (v2.033)
............................................................................DONE
Fetching with LWP:
http://cpan.kinghost.net/modules/02packages.details.txt.gz
Going to read '/home/mshember/.local/share/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Thu, 21 Jan 2016 06:53:56 GMT
..............
New CPAN.pm version (v2.10) available.
[Currently running version is v1.960001]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
..............................................................DONE
Fetching with LWP:
http://cpan.kinghost.net/modules/03modlist.data.gz
Going to read '/home/mshember/.local/share/.cpan/sources/modules/03modlist.data.gz'
DONE
Going to write /home/mshember/.local/share/.cpan/Metadata
Running install for module 'Win32::GuiTest'
Running make for K/KA/KARASIK/Win32-GuiTest-1.60.tar.gz
CPAN: Digest::SHA loaded ok (v5.95)
Checksum for /home/mshember/.local/share/.cpan/sources/authors/id/K/KA/KARASIK/Win32-GuiTest-1.60.tar.gz ok
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.150001)
CPAN: Module::CoreList loaded ok (v2.49_07)
CPAN.pm: Going to build K/KA/KARASIK/Win32-GuiTest-1.60.tar.gz
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Win32::GuiTest
Writing MYMETA.yml and MYMETA.json
cp lib/Win32/GuiTest/GuiTest.pc blib/lib/Win32/GuiTest/GuiTest.pc
cp lib/Win32/GuiTest/Examples.pm blib/lib/Win32/GuiTest/Examples.pm
cp lib/Win32/GuiTest.pm blib/lib/Win32/GuiTest.pm
cp lib/Win32/GuiTest/Cmd.pm blib/lib/Win32/GuiTest/Cmd.pm
Running Mkbootstrap for Win32::GuiTest ()
chmod 644 "GuiTest.bs"
"/usr/bin/perl.exe" -I/usr/lib/perl5/5.14/x86_64-cygwin-threads -I/usr/lib/perl5/5.14 "/usr/lib/perl5/5.14/ExtUtils/xsubpp" -typemap "/usr/lib/perl5/5.14/ExtUtils/typemap" -typemap "perlobject.map" -typemap "typemap" GuiTest.xs >xstmp.c && mv xstmp.c GuiTest.cpp
g++ -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.14.4-3 -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.14.4=/usr/src/debug/perl-5.14.4-3 -fwrapv -fno-strict-aliasing -fstack-protector -DUSEIMPORTLIB -O3 -DVERSION=\"1.60\" -DXS_VERSION=\"1.60\" "-I/usr/lib/perl5/5.14/x86_64-cygwin-threads/CORE" GuiTest.cpp
cc1plus: warning: command line option '-Wimplicit-function-declaration' is valid for C/ObjC but not for C++
GuiTest.xs: In function 'void XS_Win32__GuiTest_FreeVirtualBufferImp(PerlInterpreter*, CV*)':
GuiTest.xs:712:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
BOOL result = VirtualFreeEx( ( HANDLE )hProcess,
^
GuiTest.xs:713:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
( LPVOID )pBuffer,
^
GuiTest.xs: In function 'void XS_Win32__GuiTest_ReadFromVirtualBufferImp(PerlInterpreter*, CV*)':
GuiTest.xs:745:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if( !ReadProcessMemory( ( HANDLE ) hProcess,
^
GuiTest.xs:746:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
( LPVOID )pVirtBuffer,
^
GuiTest.xs: In function 'void XS_Win32__GuiTest_WriteToVirtualBufferImp(PerlInterpreter*, CV*)':
GuiTest.xs:783:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if( !WriteProcessMemory( ( HANDLE )hProcess,
^
GuiTest.xs:784:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
( LPVOID )pVirtBuffer,
^
GuiTest.xs: In function 'void XS_Win32__GuiTest_GetMenuItemIndex(PerlInterpreter*, CV*)':
GuiTest.xs:1569:64: error: 'strnicmp' was not declared in this scope
strnicmp(minfo.dwTypeData, sitem, strlen(sitem)) == 0) {
^
Makefile:357: recipe for target 'GuiTest.o' failed
make: *** [GuiTest.o] Error 1
KARASIK/Win32-GuiTest-1.60.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Mathew Shember
----------------------------------------------------------------------
Synopsys, Inc. * Generalist * +1.650.584.2985 * mathew.shember@synopsys.com<mailto:mathew.shember@synopsys.com>
Message body is not shown because it is too large.