Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 21484
Status: resolved
Priority: 0/
Queue: CPAN

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

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



Subject: Use of non-cross platform alaram
I guess it's "only" Windows that doesn't have alarm, but still: cpan shell -- CPAN exploration and modules installation (v1.87) ReadLine support available (try 'install Bundle::CPAN') Show quoted text
cpan> install Time::ParseDate
... The Unsupported function alarm function is unimplemented at C:/Perl/lib/CPAN.pm line 5179, <FIN> line 1. Show quoted text
cpan> exit
Terminal does not support GetHistory. Lockfile removed. C:\.cpan\build\Schedule-Cron-0.9>perl -V Summary of my perl5 (revision 5 version 6 subversion 1) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='cl', ccflags ='-nologo -O1 -MD -Zi -DNDEBUG -DWIN32 - D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CO NTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX', optimize='-O1 -MD -Zi -DNDEBUG', cppflags='-DWIN32' ccversion='', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4 alignbytes=8, usemymalloc=n, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf - libpath:"C:\Perl\lib\CORE" -machine:x86' libpth="C:\Perl\lib\CORE" libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32. lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug - opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86 ' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS Locally applied patches: ActivePerl Build 638 Built under MSWin32 Compiled at Apr 13 2004 19:24:21 @INC: C:/Perl/lib C:/Perl/site/lib . C:\.cpan\build\Schedule-Cron-0.9>
Subject: Re: [rt.cpan.org #21484] Use of non-cross platform alaram
Date: Thu, 14 Sep 2006 21:16:25 +0200
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Thu, 14 Sep 2006 10:00:42 -0400, "lee via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
cpan> install Time::ParseDate
Show quoted text
> ... > The Unsupported function alarm function is unimplemented at > C:/Perl/lib/CPAN.pm line 5179, <FIN> line 1.
1. Please set your inactivity_timeout to zero. You can do so by running o conf inactivity_timout 0 o conf commit Does this solve your problem? 2. What does this say on your system: perl -V:d_alarm As perlport.pod does not talk about alarm in particular, I guess that I should use this Config variable. If you know anything about alarm on Win32, please let me know. Thanks! -- andreas
From: LGODDARD [...] cpan.org
Show quoted text
> 1. Please set your inactivity_timeout to zero. You can do so by > running > > o conf inactivity_timout 0 > o conf commit > > Does this solve your problem?
Sadly not: please see below. Show quoted text
> 2. What does this say on your system: > > perl -V:d_alarm
Please see below. Show quoted text
> As perlport.pod does not talk about alarm in particular, I guess > that I should use this Config variable.
My 5.6.1 perlport does, please see below. Show quoted text
> If you know anything about alarm on Win32, please let me know.
If I did, I'd've sent you a patch! Thanks for looking into this. Show quoted text
cpan> o conf inactivity_timout 0
Warning: unknown configuration variable 'inactivity_timout' inactivity_timout [0] Show quoted text
cpan> o conf commit
Dropping unknown config variable 'inactivity_timout' commit: wrote 'C:/Perl/lib/CPAN/Config.pm' Show quoted text
cpan> install Tk::Wizard
Running install for module Tk::Wizard Running make for L/LG/LGODDARD/Tk-Wizard-Bases-1.9451.tar.gz Is already unwrapped into directory C:\.cpan\build\Tk-Wizard-Bases- 1.9451 CPAN.pm: Going to build L/LG/LGODDARD/Tk-Wizard-Bases-1.9451.tar.gz The Unsupported function alarm function is unimplemented at C:/Perl/lib/CPAN.pm line 5179. Show quoted text
cpan>exit
... X:\>perl -V:d_alarm d_alarm='undef'; X:\>perldoc perlport | grep alarm alarm SECONDS alarm Not implemented. (Win32) X:\> X:\>perl -V Summary of my perl5 (revision 5 version 6 subversion 1) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='cl', ccflags ='-nologo -O1 -MD -Zi -DNDEBUG -DWIN32 - D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CO NTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX', optimize='-O1 -MD -Zi -DNDEBUG', cppflags='-DWIN32' ccversion='', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4 alignbytes=8, usemymalloc=n, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf - libpath:"C:\Perl\lib\CORE" -machine:x86' libpth="C:\Perl\lib\CORE" libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32. lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug - opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86 ' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS Locally applied patches: ActivePerl Build 638 Built under MSWin32 Compiled at Apr 13 2004 19:24:21 @INC: C:/Perl/lib C:/Perl/site/lib . X:\>
Subject: Re: [rt.cpan.org #21484] Use of non-cross platform alaram
Date: Fri, 15 Sep 2006 13:14:25 +0200
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Fri, 15 Sep 2006 06:39:51 -0400, "lee via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
cpan> o conf inactivity_timout 0
Show quoted text
> Warning: unknown configuration variable 'inactivity_timout' > inactivity_timout [0]
Sorry, I made a typo, I should have typed o conf inactivity_timeout 0 (this time I verified what I typed) Please retry with this, then you can at least continue to use CPAN.pm without waiting for the next release. Show quoted text
> X:\>perl -V:d_alarm > d_alarm='undef';
Very good, this helps me to fix my code for the next release. Show quoted text
> X:\>perldoc perlport | grep alarm > alarm SECONDS > alarm Not implemented. (Win32)
Ahh, I see, maybe this is fixed in bleadperl and removed from the manpage for that reason. Whatever, I will base my code on $Config{d_alarm}. Thanks, -- andreas
Subject: Re: [rt.cpan.org #21484] Use of non-cross platform alaram
Date: Fri, 15 Sep 2006 19:52:58 +0100
To: bug-CPAN [...] rt.cpan.org
From: Lee Goddard <lee [...] leegoddard.net>
Show quoted text
> > Warning: unknown configuration variable 'inactivity_timout' > > inactivity_timout [0]
> > Sorry, I made a typo, I should have typed > > o conf inactivity_timeout 0 > > (this time I verified what I typed) >
No worries - only sorry I didn't spot it. I wasn't even reading properly, it's been one of those weeks. Show quoted text
> Please retry with this, then you can at least continue to use CPAN.pm > without waiting for the next release. >
I'll give it a go when I get back to that box on Monday. Just tried my perl 5.6.1 here and it's find, which is strange. I'll compare the CPAN::Config files on Mon Thanks for your work - it's much appreciated. Lee

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #21484] Use of non-cross platform alaram
Date: Sat, 16 Sep 2006 13:27:47 +0200
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Fri, 15 Sep 2006 14:53:21 -0400, "west.finchley@leegoddard.net via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> Queue: CPAN > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21484 >
I just uploaded 1.87_64 to CPAN which you can get from my directory via Show quoted text
cpan> install ANDK/CPAN-1.87_64.tar.gz
It should fix this bug. The workaround in case you trip again over alarm(), would be to set inactivity_timeout to 0. -- andreas
Fixed in 1.88 but untested on windows.