Skip Menu |

This queue is for tickets about the Spawn-Safe CPAN distribution.

Report information
The Basics
Id: 68079
Status: resolved
Priority: 0/
Queue: Spawn-Safe

People
Owner: jeagle [...] cpan.org
Requestors: stefanos [...] cpan.org
Cc:
AdminCc:

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



Subject: not for win32 ?
i have trouble with the install on windows 7 with perl 5.10 (mingw) and the command "cpanp i Spawn::Safe" on cmd. The Problem is "Time::HiRes::clock_gettime(): unimplemented in this platform", any idea? See the errorlog: Running [C:\Perl\bin\perl.exe C:\Perl\bin\cpanp-run-perl C:\Users\user\AppData\R oaming\.cpanplus\5.10.1\build\Spawn-Safe\Makefile.PL]... Set up gcc environment - 3.4.5 (mingw-vista special r3) Checking if your kit is complete... Looks good Writing Makefile for Spawn::Safe Running [C:\Perl\site\bin\dmake.exe]... cp lib/Spawn/Safe.pm blib\lib\Spawn\Safe.pm Running [C:\Perl\site\bin\dmake.exe test]... C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t Time::HiRes::clock_gettime(): unimplemented in this platform at C:\Users\user\Ap pData\Roaming\.cpanplus\5.10.1\build\Spawn-Safe\blib\lib/Spawn/Safe.pm line 7 BEGIN failed--compilation aborted at C:\Users\user\AppData\Roaming\.cpanplus\5.1 0.1\build\Spawn-Safe\blib\lib/Spawn/Safe.pm line 7. Compilation failed in require at t/Spawn-Safe.t line 7. BEGIN failed--compilation aborted at t/Spawn-Safe.t line 7. t/Spawn-Safe.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/Spawn-Safe.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=1, Tests=0, 0 wallclock secs ( 0.05 usr + 0.01 sys = 0.06 CPU) Result: FAIL Failed 1/1 test programs. 0/0 subtests failed. dmake.exe: Error code 130, while making 'test_dynamic' [ERROR] MAKE TEST failed: C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" " test_harness(0, 'blib\lib', 'blib\arch')" t/*.t Time::HiRes::clock_gettime(): unimplemented in this platform at C:\Users\user\Ap pData\Roaming\.cpanplus\5.10.1\build\Spawn-Safe\blib\lib/Spawn/Safe.pm line 7 BEGIN failed--compilation aborted at C:\Users\user\AppData\Roaming\.cpanplus\5.1 0.1\build\Spawn-Safe\blib\lib/Spawn/Safe.pm line 7. Compilation failed in require at t/Spawn-Safe.t line 7. BEGIN failed--compilation aborted at t/Spawn-Safe.t line 7. t/Spawn-Safe.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/Spawn-Safe.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=1, Tests=0, 0 wallclock secs ( 0.05 usr + 0.01 sys = 0.06 CPU) Result: FAIL Failed 1/1 test programs. 0/0 subtests failed. dmake.exe: Error code 130, while making 'test_dynamic' The tests for 'Spawn::Safe' failed.
Wow, that was fast. I had a feeling this might break somewhere. Sorry. I can implement it via time() if clock_gettime is unavailable, but I'm worried that could fail if the system clock is stepped while the app is running. Win32 provides gettickcount, which should increase monotonically, so maybe that's a better answer...
I've updated Spawn::Safe with 1.9, which no longer uses clock_gettime().