C:\perl64\packages\p5-Win32-SecretFile-master>nmake Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl64\bin\perl.exe C:\perl64\site\lib\ExtUtils\xsubpp -typemap C:\Perl64\lib\ExtUtils\typemap SecretFile.xs > SecretFile.xsc && C:\Perl64\bin\perl.exe -MExtUtils::Command -e mv -- SecretFile.xsc SecretFile.c Please specify prototyping behavior for SecretFile.xs (see perlxs manual) cl -c -I. -nologo -GF -W3 -MD -Zi -Ox -GL -fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -Ox -GL -fp:precise -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-IC:\Perl64\lib\CORE" SecretFile.c SecretFile.c SecretFile.xs(55) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data SecretFile.xs(58) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data SecretFile.xs(58) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data SecretFile.xs(82) : warning C4013: 'ConvertSidToStringSid' undefined; assuming extern returning int SecretFile.xs(87) : warning C4013: 'ConvertStringSecurityDescriptorToSecurityDescriptor' undefined; assuming extern returning int SecretFile.xs(99) : warning C4267: 'function' : conversion from 'size_t' to 'DWORD', possible loss of data link -out:blib\arch\auto\Win32\SecretFile\SecretFile.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg -libpath:"C:\Perl64\lib\CORE" -machine:AMD64 SecretFile.obj C:\Perl64\lib\CORE\perl510.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:SecretFile.def Creating library blib\arch\auto\Win32\SecretFile\SecretFile.lib and object blib\arch\auto\Win32\SecretFile\SecretFile.exp SecretFile.obj : error LNK2001: unresolved external symbol ConvertStringSecurityDescriptorToSecurityDescriptor SecretFile.obj : error LNK2001: unresolved external symbol ConvertSidToStringSid blib\arch\auto\Win32\SecretFile\SecretFile.dll : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin\amd64\link.EXE"' : return code '0x460' Stop. #### C:\test>cl /W3 Permissions.c Advapi32.lib Microsoft (R) C/C++ Optimizing Compiler Version 15.00.21022.08 for x64 Copyright (C) Microsoft Corporation. All rights reserved. Permissions.c Microsoft (R) Incremental Linker Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. /out:Permissions.exe Permissions.obj Advapi32.lib #### if (ConvertSidToStringSidA(sid, &sid_as_string)) { PSECURITY_DESCRIPTOR sd = NULL; DWORD sd_size; SV *ssd_as_sv = sv_2mortal(newSVpvf(ssd_template, sid_as_string, sid_as_string)); LocalFree(sid_as_string); if (ConvertStringSecurityDescriptorToSecurityDescriptorA(SvPV_nolen(ssd_as_sv), SDDL_REVISION_1, &sd, &sd_size)) { #### C:\test>pushd \perl64\packages\p5-Win32-SecretFile-master C:\perl64\packages\p5-Win32-SecretFile-master>nmake install Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl64\bin\perl.exe C:\perl64\site\lib\ExtUtils\xsubpp -typemap C:\Perl64\lib\ExtUtils\typemap SecretFile.xs > SecretFile.xsc && C:\Perl64\bin\perl.exe -MExtUtils::Command -e mv -- SecretFile.xsc SecretFile.c Please specify prototyping behavior for SecretFile.xs (see perlxs manual) cl -c -I. -nologo -GF -W3 -MD -Zi -Ox -GL -fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -Ox -GL -fp:precise -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-IC:\Perl64\lib\CORE" SecretFile.c SecretFile.c SecretFile.xs(55) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data SecretFile.xs(58) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data SecretFile.xs(58) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data SecretFile.xs(82) : warning C4013: 'ConvertSidToStringSidA' undefined; assuming extern returning int SecretFile.xs(87) : warning C4013: 'ConvertStringSecurityDescriptorToSecurityDescriptorA' undefined; assuming extern returning int SecretFile.xs(99) : warning C4267: 'function' : conversion from 'size_t' to 'DWORD', possible loss of data link -out:blib\arch\auto\Win32\SecretFile\SecretFile.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg -libpath:"C:\Perl64\lib\CORE" -machine:AMD64 SecretFile.obj C:\Perl64\lib\CORE\perl510.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:SecretFile.def Creating library blib\arch\auto\Win32\SecretFile\SecretFile.lib and object blib\arch\auto\Win32\SecretFile\SecretFile.exp Generating code Finished generating code if exist blib\arch\auto\Win32\SecretFile\SecretFile.dll.manifest mt -nologo -manifest blib\arch\auto\Win32\SecretFile\SecretFile.dll.manifest -outputresource:blib\arch\auto\Win32\SecretFile\SecretFile.dll;2 if exist blib\arch\auto\Win32\SecretFile\SecretFile.dll.manifest del blib\arch\auto\Win32\SecretFile\SecretFile.dll.manifest C:\Perl64\bin\perl.exe -MExtUtils::Command -e chmod -- 755 blib\arch\auto\Win32\SecretFile\SecretFile.dll Files found in blib\arch: installing files in blib\lib into architecture dependent library tree Installing C:\Perl64\site\lib\auto\Win32\SecretFile\SecretFile.dll Installing C:\Perl64\site\lib\auto\Win32\SecretFile\SecretFile.exp Installing C:\Perl64\site\lib\auto\Win32\SecretFile\SecretFile.lib Installing C:\Perl64\site\lib\auto\Win32\SecretFile\SecretFile.pdb Appending installation info to C:\Perl64\lib/perllocal.pod C:\perl64\packages\p5-Win32-SecretFile-master> #### C:\perl64\packages\p5-Win32-SecretFile-master>popd C:\test>perl -MWin32::SecretFile -E"say Win32::SecretFile::_create_secret_file( 'mysecretfile.txt', 'Now is the time for all good men.', 0 );" 1 C:\test>type mysecretfile.txt Now is the time for all good men. C:\test>