Mon Jul 12 17:24:59 2010: Request 39730 was acted upon. Transaction: Correspondence added by ikegami Queue: Win32-API Subject: Passing NULL when has_proto is true Broken in: (no value) Severity: Normal Owner: COSIMO Requestors: ikeg...@cpan.org Status: open Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=39730 >
I can't get it to build (Win7, 64bit, ActivePerl 5.12.1, Visual Studio 10) ---- BEGIN ---- CPAN.pm: Going to build C/CO/COSIMO/Win32-API-0.59.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Win32::API::Callback Writing Makefile for Win32::API CPAN: Module::CoreList loaded ok (v2.33) Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. cp Type.pm blib\lib\Win32/API/Type.pm cp Callback.pm blib\lib\Win32/API/Callback.pm cp Test.pm blib\lib\Win32/API/Test.pm cp Struct.pm blib\lib\Win32/API/Struct.pm cp API.pm blib\lib\Win32/API.pm C:\PROGRA~2\MICROS~1.0\VC\BIN\nmake.exe -f Makefile all -nologo C:\Progs\perl5121-ap1201\bin\perl.exe C:\Progs\perl5121-ap1201\lib\ExtUtils\xsubpp -typemap C:\Progs\perl5121-ap1201\lib\ExtUtils\typemap Callback.xs > Callback.xsc && C:\Progs\perl5121-ap1201\bin\perl.exe -MExtUtils::Command -e "mv" -- Callback.xsc Callback.c cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -Wp64 -fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -Ox -GL -Wp64 -fp:precise -DVERSION=\"0.59\" -DXS_VERSION=\"0.59\" "-IC:\Progs\perl5121-ap1201\lib\CORE" Callback.c cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release Callback.c C:\Progs\perl5121-ap1201\lib\CORE\sys/socket.h(34) : warning C4005: 'ENOTSOCK' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\errno.h(120) : see previous definition of 'ENOTSOCK' Callback.xs(250) : warning C4311: 'type cast' : pointer truncation from 'char *' to 'long' Callback.xs(256) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(867) : see declaration of 'itoa' Callback.xs(257) : warning C4267: 'function' : conversion from 'size_t' to 'I32', possible loss of data Callback.xs(276) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'SV *' of greater size Callback.xs(305) : warning C4312: 'type cast' : conversion from 'int' to 'char *' of greater size Callback.xs(313) : warning C4312: 'type cast' : conversion from 'int' to 'char *' of greater size Callback.xs(365) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(867) : see declaration of 'itoa' Callback.xs(366) : warning C4267: 'function' : conversion from 'size_t' to 'I32', possible loss of data Callback.xs(381) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data Callback.xs(524) : warning C4018: '<' : signed/unsigned mismatch Callback.xs(559) : warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data Callback.xs(581) : warning C4311: 'type cast' : pointer truncation from 'SV *' to 'int' Callback.xs(596) : warning C4311: 'type cast' : pointer truncation from 'unsigned char *' to 'long' Callback.xs(597) : warning C4311: 'type cast' : pointer truncation from 'SV *' to 'int' Callback.xs(623) : warning C4018: '<' : signed/unsigned mismatch Callback.xs(630) : warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data Callback.xs(637) : warning C4311: 'type cast' : pointer truncation from 'int *__w64 ' to 'int' Callback.xs(680) : warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data Callback.xs(687) : warning C4311: 'type cast' : pointer truncation from 'int *__w64 ' to 'int' Callback.xs(731) : warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data Callback.xs(738) : warning C4311: 'type cast' : pointer truncation from 'int *__w64 ' to 'int' Callback.xs(784) : warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data Callback.xs(847) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data Callback.xs(864) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data Callback.xs(868) : warning C4311: 'type cast' : pointer truncation from 'unsigned char *' to 'unsigned int' Callback.xs(896) : warning C4311: 'type cast' : pointer truncation from 'SV *' to 'int' Running Mkbootstrap for Win32::API::Callback () C:\Progs\perl5121-ap1201\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 Callback.bs C:\Progs\perl5121-ap1201\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"Win32::API::Callback\", 'DLBASE' => 'Callback', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" link -out:..\blib\arch\auto\Win32\API\Callback\Callback.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg -libpath:"C:\Progs\perl5121-ap1201\lib\CORE" -machine:AMD64 Callback.obj C:\Progs\perl5121-ap1201\lib\CORE\perl512.lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib bufferoverflowU.lib msvcrt.lib -def:Callback.def Callback.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' ---- END ---- Putting that aside, do you have the output of the failing test?