[Catalyst] Catalyst::Plugin::Authentication under ActivePerl 5.8.7.813

Will Hawes info at whawes.co.uk
Tue Jan 3 18:49:59 CET 2006


Will Hawes wrote:
> Will Hawes wrote:
>> ActivePerl does not seem to have a PPD available for 
>> Catalyst::Plugin::Authentication. I tried to install via cpanp, but it 
>> failed:
>>
>> Installing Catalyst::Plugin::Authentication
>> t\04_authentication....ok
>> t\05_password..........ok
>> t\06_user..............ok
>> t\live_app.............Weak references are not implemented in the 
>> version of perl at C:\Perl\site\lib/Catalyst.pm line 18
>> BEGIN failed--compilation aborted at C:\Perl\site\lib/Catalyst.pm line 
>> 18.
>> Compilation failed in require at t\live_app.t line 14.
>> BEGIN failed--compilation aborted at t\live_app.t line 14.
>> t\live_app.............dubious
>>         Test returned status 2 (wstat 512, 0x200)
> 
> I removed ActivePerl from my machine completely and began from scratch 
> with ActivePerl 5.8.7.815. I've installed Catalyst 5.61 via ppm. I'm 
> using the nmake from the link provided by Andy Grundman.
> 
> I'm still having problems with Catalyst::Plugin::Authentication as 
> follows (suggestions welcome):
> 
> CPAN Terminal> i Catalyst::Plugin::Authentication
> 
> Installing Catalyst::Plugin::Authentication
> Running [C:\WINDOWS\system32\nmake.EXE test]...
>         C:\ActivePerl5.8.7.815\bin\perl.exe "-MExtUtils::Command::MM" 
> "-e" "test
> _harness(0, 'blib\lib', 'blib\arch')" t\04_authentication.t 
> t\05_password.t t\06
> _user.t t\live_app.t t\live_app_session.t t\pod.t t\pod_coverage.t
> t\04_authentication....ok
> t\05_password..........ok
> t\06_user..............ok
> t\live_app.............dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> t\live_app_session.....skipped
>         all skipped: This test needs Test::WWW::Mechanize::Catalyst, 
> Catalyst::P
> lugin::Session and Catalyst::Plugin::Session::State::Cookie installed
> t\pod..................skipped
>         all skipped: Test::Pod 1.14 required
> t\pod_coverage.........skipped
>         all skipped: Test::Pod::Coverage 1.04 required
> Failed Test  Stat Wstat Total Fail  Failed  List of Failed
> ------------------------------------------------------------------------------- 
> 
> t\live_app.t  255 65280    ??   ??       %  ??
> 3 tests skipped.
> 
> Microsoft (R) Program Maintenance Utility   Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> Can't dup stdin: Bad file descriptor at 
> C:/ActivePerl5.8.7.815/site/lib/Catalyst
> /Test.pm line 102
> # Looks like your test died before it could output anything.
> Failed 1/7 test scripts, 85.71% okay. 0/13 subtests failed, 100.00% okay.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code 
> '0xff'
> Stop.
> [ERROR] MAKE TEST failed: Bad file descriptor 
> C:\ActivePerl5.8.7.815\bin\perl.
> exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 
> 'blib\arch')" t\
> 04_authentication.t t\05_password.t t\06_user.t t\live_app.t 
> t\live_app_session.
> t t\pod.t t\pod_coverage.t
> t\04_authentication....ok
> t\05_password..........ok
> t\06_user..............ok
> t\live_app.............dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> t\live_app_session.....skipped
>         all skipped: This test needs Test::WWW::Mechanize::Catalyst, 
> Catalyst::P
> lugin::Session and Catalyst::Plugin::Session::State::Cookie installed
> t\pod..................skipped
>         all skipped: Test::Pod 1.14 required
> t\pod_coverage.........skipped
>         all skipped: Test::Pod::Coverage 1.04 required
> Failed Test  Stat Wstat Total Fail  Failed  List of Failed
> ------------------------------------------------------------------------------- 
> 
> t\live_app.t  255 65280    ??   ??       %  ??
> 3 tests skipped.
> 
> Microsoft (R) Program Maintenance Utility   Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> Can't dup stdin: Bad file descriptor at 
> C:/ActivePerl5.8.7.815/site/lib/Catalyst
> /Test.pm line 102
> # Looks like your test died before it could output anything.
> Failed 1/7 test scripts, 85.71% okay. 0/13 subtests failed, 100.00% okay.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code 
> '0xff'
> Stop.
> 

A bit more info on this one. If I do the following:

CPAN Terminal> z Catalyst::Plugin::Authentication
...\Catalyst-Plugin-Authentication-0.05> perl Makefile.PL
...\Catalyst-Plugin-Authentication-0.05> nmake
...\Catalyst-Plugin-Authentication-0.05> nmake test

Instead of:

CPAN Terminal> i Catalyst::Plugin::Authentication

Then all tests pass.

In HTTP::Request::AsCGI 0.02 as installed with Catalyst 5.61, at line 94

     open( $self->{restore}->{stdin}, '>&', STDIN->fileno )
       or croak("Can't dup stdin: $!");

you get "Can't dup stdin: Bad file descriptor" when running from the 
CPANPLUS terminal. This doesn't happen when installing manually.

Seems to be Win32 specific - installing Catalyst::Plugin::Authentication 
from the CPANPLUS terminal using the same version of everything works 
flawlessly under Linux.



More information about the Catalyst mailing list