Skip Menu |

This queue is for tickets about the Win32-SysPrivilege CPAN distribution.

Report information
The Basics
Id: 79460
Status: new
Priority: 0/
Queue: Win32-SysPrivilege

People
Owner: Nobody in particular
Requestors: PLICEASE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: does not build Strawberry Perl 5.16.1
Below is the output from make. C:\tmp\Win32-SysPrivilege-1.465>perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Win32::SysPrivilege Writing MYMETA.yml and MYMETA.json C:\tmp\Win32-SysPrivilege-1.465>make cp lib/Win32/SysPrivilege.pm blib\lib\Win32\SysPrivilege.pm C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap SysPrivilege.xs > SysPrivilege.xsc && C:\strawberry\perl\bin\perl.e xe -MExtUtils::Command -e mv -- SysPrivilege.xsc SysPrivilege.c Please specify prototyping behavior for SysPrivilege.xs (see perlxs manual) gcc -c -I. -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"1.465\" -DXS_VERSION=\"1.465\ " "-IC:\strawberry\perl\lib\CORE" SysPrivilege.c In file included from SysPrivilege.xs:4:0: main.c:26:7: error: conflicting types for 'GetProcessId' c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/winbase.h:1306:27: note: previous declaration of 'GetProcessId' was here dmake: Error code 129, while making 'SysPrivilege.o' C:\tmp\Win32-SysPrivilege-1.465>perl -v This is perl 5, version 16, subversion 1 (v5.16.1) built for MSWin32-x86-multi-thread Copyright 1987-2012, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Renaming GetProcessId() in main.c seems to get it to compile (I renamed both references to MyGetProcessId). However since there are no tests and documentation is spotty it is hard to say if it works!