Skip Menu |

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

Report information
The Basics
Id: 93943
Status: resolved
Priority: 0/
Queue: Win32-TaskScheduler

People
Owner: Nobody in particular
Requestors: chris.nighswonger [...] gmail.com
Cc:
AdminCc:

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



Subject: Status of Win32::TaskScheduler and Compile Bug
Date: Mon, 17 Mar 2014 11:47:07 -0400
To: unicolet [...] netscape.net, bug-Win32-TaskScheduler [...] rt.cpan.org
From: Christopher Nighswonger <chris.nighswonger [...] gmail.com>
Hi, Is this code still maintained? It does not compile under the most current version of g++. Below is some output. Any pointers would be greatly appreciated! Kind Regards, Chris C:\strawberry\cpan\build\TaskScheduler-wEI2Ix>perl Makefile.PL CC=g++ Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Win32::TaskScheduler Writing MYMETA.yml and MYMETA.json C:\strawberry\cpan\build\TaskScheduler-wEI2Ix>dmake test cp Example.pl blib\lib\Win32\Example.pl cp runTime.pl blib\lib\Win32\runTime.pl cp TaskScheduler.pm blib\lib\Win32\TaskScheduler.pm cp trigger.pl blib\lib\Win32\trigger.pl Running Mkbootstrap for Win32::TaskScheduler () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 TaskScheduler.bs C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap TaskScheduler.xs > TaskScheduler.xsc & & C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv -- TaskScheduler.xsc TaskScheduler.c Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in TaskScheduler.xs, line 727 Please specify prototyping behavior for TaskScheduler.xs (see perlxs manual) g++ -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"2.0.3\" -DXS_VERSION=\"2.0.3\" "-IC:\strawberry\perl\lib\CORE" -TP TaskScheduler.c In file included from c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686-w64-mingw32/include/urlmon.h:219:0, from c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686-w64-mingw32/include/objbase.h:348, from c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686-w64-mingw32/include/ole2.h:16, from TaskScheduler.h:3, from TaskScheduler.xs:5: c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2667:116: error: macro "PerlLIO_open" passed 5 arguments, but takes just 2 c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2671:48: error: macro "PerlSock_send" requires 4 arguments, b ut only 1 given c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2667:120: error: 'PerlLIO_open' declared as a 'virtual' field c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2671:52: error: 'PerlSock_send' declared as a 'virtual' field In file included from TaskScheduler.h:17:0, from TaskScheduler.xs:5: misc.h: In function 'int IntFromHash(HV*, const char*)': misc.h:11:56: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] misc.h:19:10: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] misc.h: In function 'IV IVFromHash(HV*, const char*)': misc.h:27:56: warning: converting to non-pointer type 'IV {aka long long int}' from NULL [-Wconversion-null] misc.h:35:10: warning: converting to non-pointer type 'IV {aka long long int}' from NULL [-Wconversion-null] misc.h: In function 'int IntToHash(HV*, const char*, int)': misc.h:64:56: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] misc.h:73:10: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] misc.h: In function 'IV IVToHash(HV*, const char*, IV)': misc.h:81:56: warning: converting to non-pointer type 'IV {aka long long int}' from NULL [-Wconversion-null] misc.h:90:10: warning: converting to non-pointer type 'IV {aka long long int}' from NULL [-Wconversion-null] TaskScheduler.xs: In function 'void XS_Win32__TaskScheduler_GetTriggerString(PerlInterpreter*, CV*)': TaskScheduler.xs:775:11: warning: deprecated conversion from string constant to'char*' [-Wwrite-strings] dmake: Error code 129, while making 'TaskScheduler.o' C:\strawberry\cpan\build\TaskScheduler-wEI2Ix>
Hi Chris, sorry it too so long to reply. To build win32::taskscheduler you will need to use the same compiler used by Perl. The only supported compiler is Microsoft VC. Best, Umberto Il Lun 17 Mar 2014 11:47:42, chris.nighswonger@gmail.com ha scritto: Show quoted text
> Hi, > > Is this code still maintained? > > It does not compile under the most current version of g++. Below is > some output. > > Any pointers would be greatly appreciated! > > Kind Regards, > Chris > > > C:\strawberry\cpan\build\TaskScheduler-wEI2Ix>perl Makefile.PL CC=g++ > Checking if your kit is complete... > Looks good > Generating a dmake-style Makefile > Writing Makefile for Win32::TaskScheduler > Writing MYMETA.yml and MYMETA.json > > C:\strawberry\cpan\build\TaskScheduler-wEI2Ix>dmake test > cp Example.pl blib\lib\Win32\Example.pl > cp runTime.pl blib\lib\Win32\runTime.pl > cp TaskScheduler.pm blib\lib\Win32\TaskScheduler.pm > cp trigger.pl blib\lib\Win32\trigger.pl > Running Mkbootstrap for Win32::TaskScheduler () > C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 > TaskScheduler.bs > C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp > -typemap C:\strawberry\perl\lib\ExtUtils\typemap TaskScheduler.xs > > TaskScheduler.xsc & > & C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv -- > TaskScheduler.xsc TaskScheduler.c > Warning: Found a 'CODE' section which seems to be using 'RETVAL' but > no 'OUTPUT' section. in TaskScheduler.xs, line 727 > Please specify prototyping behavior for TaskScheduler.xs (see perlxs > manual) > g++ -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO > -fno-strict-aliasing -mms-bitfields -s -O2 > -DVERSION=\"2.0.3\" -DXS_VERSION=\"2.0.3\" > "-IC:\strawberry\perl\lib\CORE" -TP TaskScheduler.c > In file included from > c:\strawberry\c\bin\../lib/gcc/i686-w64- > mingw32/4.7.3/../../../../i686-w64-mingw32/include/urlmon.h:219:0, > from > c:\strawberry\c\bin\../lib/gcc/i686-w64- > mingw32/4.7.3/../../../../i686-w64-mingw32/include/objbase.h:348, > from > c:\strawberry\c\bin\../lib/gcc/i686-w64- > mingw32/4.7.3/../../../../i686-w64-mingw32/include/ole2.h:16, > from TaskScheduler.h:3, > from TaskScheduler.xs:5: > c:\strawberry\c\bin\../lib/gcc/i686-w64- > mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2667:116: > error: macro "PerlLIO_open" passed 5 arguments, but > takes just 2 > c:\strawberry\c\bin\../lib/gcc/i686-w64- > mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2671:48: > error: macro "PerlSock_send" requires 4 arguments, b > ut only 1 given > c:\strawberry\c\bin\../lib/gcc/i686-w64- > mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2667:120: > error: 'PerlLIO_open' declared as a 'virtual' field > > c:\strawberry\c\bin\../lib/gcc/i686-w64- > mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2671:52: > error: 'PerlSock_send' declared as a 'virtual' field > > In file included from TaskScheduler.h:17:0, > from TaskScheduler.xs:5: > misc.h: In function 'int IntFromHash(HV*, const char*)': > misc.h:11:56: warning: converting to non-pointer type 'int' from NULL > [-Wconversion-null] > misc.h:19:10: warning: converting to non-pointer type 'int' from NULL > [-Wconversion-null] > misc.h: In function 'IV IVFromHash(HV*, const char*)': > misc.h:27:56: warning: converting to non-pointer type 'IV {aka long > long int}' from NULL [-Wconversion-null] > misc.h:35:10: warning: converting to non-pointer type 'IV {aka long > long int}' from NULL [-Wconversion-null] > misc.h: In function 'int IntToHash(HV*, const char*, int)': > misc.h:64:56: warning: converting to non-pointer type 'int' from NULL > [-Wconversion-null] > misc.h:73:10: warning: converting to non-pointer type 'int' from NULL > [-Wconversion-null] > misc.h: In function 'IV IVToHash(HV*, const char*, IV)': > misc.h:81:56: warning: converting to non-pointer type 'IV {aka long > long int}' from NULL [-Wconversion-null] > misc.h:90:10: warning: converting to non-pointer type 'IV {aka long > long int}' from NULL [-Wconversion-null] > TaskScheduler.xs: In function 'void > XS_Win32__TaskScheduler_GetTriggerString(PerlInterpreter*, CV*)': > TaskScheduler.xs:775:11: warning: deprecated conversion from string > constant to'char*' [-Wwrite-strings] > dmake: Error code 129, while making 'TaskScheduler.o' > > C:\strawberry\cpan\build\TaskScheduler-wEI2Ix>
Here you will find an updated version that works with mingw-dmake: https://github.com/unicolet/win32-taskscheduler you will need to install the CORE SDK for your Windows version and edit Makefile.pl to use the right lib directory. Closing. Il Mar 17 Mar 2015 06:24:09, UNICOLET ha scritto: Show quoted text
> Hi Chris, > sorry it too so long to reply. > > To build win32::taskscheduler you will need to use the same compiler > used by Perl. > The only supported compiler is Microsoft VC. > > Best, > Umberto > > > Il Lun 17 Mar 2014 11:47:42, chris.nighswonger@gmail.com ha scritto:
> > Hi, > > > > Is this code still maintained? > > > > It does not compile under the most current version of g++. Below is > > some output. > > > > Any pointers would be greatly appreciated! > > > > Kind Regards, > > Chris > > > > > > C:\strawberry\cpan\build\TaskScheduler-wEI2Ix>perl Makefile.PL CC=g++ > > Checking if your kit is complete... > > Looks good > > Generating a dmake-style Makefile > > Writing Makefile for Win32::TaskScheduler > > Writing MYMETA.yml and MYMETA.json > > > > C:\strawberry\cpan\build\TaskScheduler-wEI2Ix>dmake test > > cp Example.pl blib\lib\Win32\Example.pl > > cp runTime.pl blib\lib\Win32\runTime.pl > > cp TaskScheduler.pm blib\lib\Win32\TaskScheduler.pm > > cp trigger.pl blib\lib\Win32\trigger.pl > > Running Mkbootstrap for Win32::TaskScheduler () > > C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 > > TaskScheduler.bs > > C:\strawberry\perl\bin\perl.exe > > C:\strawberry\perl\lib\ExtUtils\xsubpp > > -typemap C:\strawberry\perl\lib\ExtUtils\typemap TaskScheduler.xs > > > TaskScheduler.xsc & > > & C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv -- > > TaskScheduler.xsc TaskScheduler.c > > Warning: Found a 'CODE' section which seems to be using 'RETVAL' but > > no 'OUTPUT' section. in TaskScheduler.xs, line 727 > > Please specify prototyping behavior for TaskScheduler.xs (see perlxs > > manual) > > g++ -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS > > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO > > -fno-strict-aliasing -mms-bitfields -s -O2 > > -DVERSION=\"2.0.3\" -DXS_VERSION=\"2.0.3\" > > "-IC:\strawberry\perl\lib\CORE" -TP TaskScheduler.c > > In file included from > > c:\strawberry\c\bin\../lib/gcc/i686-w64- > > mingw32/4.7.3/../../../../i686-w64-mingw32/include/urlmon.h:219:0, > > from > > c:\strawberry\c\bin\../lib/gcc/i686-w64- > > mingw32/4.7.3/../../../../i686-w64-mingw32/include/objbase.h:348, > > from > > c:\strawberry\c\bin\../lib/gcc/i686-w64- > > mingw32/4.7.3/../../../../i686-w64-mingw32/include/ole2.h:16, > > from TaskScheduler.h:3, > > from TaskScheduler.xs:5: > > c:\strawberry\c\bin\../lib/gcc/i686-w64- > > mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2667:116: > > error: macro "PerlLIO_open" passed 5 arguments, but > > takes just 2 > > c:\strawberry\c\bin\../lib/gcc/i686-w64- > > mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2671:48: > > error: macro "PerlSock_send" requires 4 arguments, b > > ut only 1 given > > c:\strawberry\c\bin\../lib/gcc/i686-w64- > > mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2667:120: > > error: 'PerlLIO_open' declared as a 'virtual' field > > > > c:\strawberry\c\bin\../lib/gcc/i686-w64- > > mingw32/4.7.3/../../../../i686-w64-mingw32/include/msxml.h:2671:52: > > error: 'PerlSock_send' declared as a 'virtual' field > > > > In file included from TaskScheduler.h:17:0, > > from TaskScheduler.xs:5: > > misc.h: In function 'int IntFromHash(HV*, const char*)': > > misc.h:11:56: warning: converting to non-pointer type 'int' from NULL > > [-Wconversion-null] > > misc.h:19:10: warning: converting to non-pointer type 'int' from NULL > > [-Wconversion-null] > > misc.h: In function 'IV IVFromHash(HV*, const char*)': > > misc.h:27:56: warning: converting to non-pointer type 'IV {aka long > > long int}' from NULL [-Wconversion-null] > > misc.h:35:10: warning: converting to non-pointer type 'IV {aka long > > long int}' from NULL [-Wconversion-null] > > misc.h: In function 'int IntToHash(HV*, const char*, int)': > > misc.h:64:56: warning: converting to non-pointer type 'int' from NULL > > [-Wconversion-null] > > misc.h:73:10: warning: converting to non-pointer type 'int' from NULL > > [-Wconversion-null] > > misc.h: In function 'IV IVToHash(HV*, const char*, IV)': > > misc.h:81:56: warning: converting to non-pointer type 'IV {aka long > > long int}' from NULL [-Wconversion-null] > > misc.h:90:10: warning: converting to non-pointer type 'IV {aka long > > long int}' from NULL [-Wconversion-null] > > TaskScheduler.xs: In function 'void > > XS_Win32__TaskScheduler_GetTriggerString(PerlInterpreter*, CV*)': > > TaskScheduler.xs:775:11: warning: deprecated conversion from string > > constant to'char*' [-Wwrite-strings] > > dmake: Error code 129, while making 'TaskScheduler.o' > > > > C:\strawberry\cpan\build\TaskScheduler-wEI2Ix>