Skip Menu |

This queue is for tickets about the Win32 CPAN distribution.

Report information
The Basics
Id: 43503
Status: new
Priority: 0/
Queue: Win32

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

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



Subject: getting warnings because f some deprecated functions in MSVC 9.0
See the attached dump of a `test Win32` session. Perhaps it's better to declare _CRT_SECURE_NO_WARNINGS as the warning suggests?
Subject: deprecate.txt
Setting environment for using Microsoft Visual Studio 2008 x86 tools. c:\Program Files\Microsoft Visual Studio 9.0\VC>cpan cpan shell -- CPAN exploration and modules installation (v1.9301) ReadLine support enabled cpan[1]> test Win32 Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz Fetching with LWP: http://ppm.activestate.com/CPAN/modules/02packages.details.txt.gz Fetching with LWP: http://ppm.activestate.com/CPAN/modules/03modlist.data.gz Database was generated on Fri, 20 Feb 2009 19:35:50 GMT Updating database file ... Gathering information from index files ... Obtaining current state of database ... Populating database tables ... Done! Running test for module 'Win32' Running make for J/JD/JDB/Win32-0.39.tar.gz Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/J/JD/JDB/Win32-0.39.tar.gz Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/J/JD/JDB/CHECKSUMS Checksum for C:\Perl\cpan\sources\authors\id\J\JD\JDB\Win32-0.39.tar.gz ok Scanning cache C:\Perl/cpan/build for sizes .............................................................---------------DONE DEL(1/2): C:\Perl\cpan\build\Alien-wxWidgets-0.42-V2JUID DEL(2/2): C:\Perl\cpan\build\Alien-wxWidgets-0.42-V2JUID.yml Win32-0.39/ Win32-0.39/Changes Win32-0.39/longpath.inc Win32-0.39/Makefile.PL Win32-0.39/MANIFEST Win32-0.39/META.yml Win32-0.39/README Win32-0.39/t/ Win32-0.39/t/CreateFile.t Win32-0.39/t/ExpandEnvironmentStrings.t Win32-0.39/t/GetCurrentThreadId.t Win32-0.39/t/GetFileVersion.t Win32-0.39/t/GetFolderPath.t Win32-0.39/t/GetFullPathName.t Win32-0.39/t/GetLongPathName.t Win32-0.39/t/GetOSName.t Win32-0.39/t/GetOSVersion.t Win32-0.39/t/GetShortPathName.t Win32-0.39/t/GuidGen.t Win32-0.39/t/Names.t Win32-0.39/t/Unicode.t Win32-0.39/Win32.pm Win32-0.39/Win32.xs CPAN.pm: Going to build J/JD/JDB/Win32-0.39.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Win32 (C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site exited with 0) CPAN::Reporter: Makefile.PL result is 'pass', No errors. Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. cp Win32.pm blib\lib\Win32.pm C:\Perl\bin\perl.exe C:\Perl\site\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\typemap Win32.xs > Win32.xsc && C:\P erl\bin\perl.exe -MExtUtils::Command -e mv Win32.xsc Win32.c cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVL IB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\" 0.39\" -DXS_VERSION=\"0.39\" "-IC:\Perl\lib\CORE" Win32.c Win32.c c:\perl\cpan\build\win32-0.39-fvktot\longpath.inc(85) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(74) : see declaration of 'strcpy' c:\perl\cpan\build\win32-0.39-fvktot\longpath.inc(102) : warning C4996: 'strcpy': This function or variable may be unsafe. Conside r using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(74) : see declaration of 'strcpy' c:\perl\cpan\build\win32-0.39-fvktot\longpath.inc(85) : warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(252) : see declaration of 'wcscpy' c:\perl\cpan\build\win32-0.39-fvktot\longpath.inc(102) : warning C4996: 'wcscpy': This function or variable may be unsafe. Conside r using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(252) : see declaration of 'wcscpy' Win32.xs(1015) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable d eprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(366) : see declaration of 'sprintf' Win32.xs(1476) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable dep recation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(74) : see declaration of 'strcpy' Win32.xs(1512) : warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable dep recation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(252) : see declaration of 'wcscpy' Win32.xs(1528) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable dep recation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(74) : see declaration of 'strcpy' Win32.xs(1569) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable dep recation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(74) : see declaration of 'strcpy' Running Mkbootstrap for Win32 () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Win32.bs C:\Perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"Win32\", 'DLBASE' => 'Win32', 'DL_FUNCS' => { }, 'F UNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" link -out:blib\arch\auto\Win32\Win32.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -mac hine:x86 Win32.obj C:\Perl\lib\CORE\perl510.lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi 32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib -def:Win32.def Creating library blib\arch\auto\Win32\Win32.lib and object blib\arch\auto\Win32\Win32.exp mt -nologo -manifest blib\arch\auto\Win32\Win32.dll.manifest -outputresource:blib\arch\auto\Win32\Win32.dll;2 && del blib\ arch\auto\Win32\Win32.dll.manifest C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arch\auto\Win32\Win32.dll C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Win32.bs blib\arch\auto\Win32\Win32.bs C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arch\auto\Win32\Win32.bs (nmake exited with 0) CPAN::Reporter: nmake result is 'pass', No errors. JDB/Win32-0.39.tar.gz nmake -- OK Running make test Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/CreateFile..................ok t/ExpandEnvironmentStrings....ok t/GetCurrentThreadId..........ok t/GetFileVersion..............ok t/GetFolderPath...............ok t/GetFullPathName.............ok t/GetLongPathName.............ok t/GetOSName...................ok t/GetOSVersion................ok t/GetShortPathName............ok t/GuidGen.....................ok t/Names.......................ok t/Unicode.....................ok All tests successful. Files=13, Tests=145, 2 wallclock secs ( 0.08 usr + 0.09 sys = 0.17 CPU) Result: PASS (nmake test exited with 0) CPAN::Reporter: Test result is 'pass', All tests successful. CPAN::Reporter: preparing a CPAN Testers report for Win32-0.39 CPAN::Reporter: sending test report with 'pass' to cpan-testers@perl.org JDB/Win32-0.39.tar.gz nmake test -- OK cpan[2]>