Skip Menu |

This queue is for tickets about the PerlIO-Layers CPAN distribution.

Report information
The Basics
Id: 76299
Status: resolved
Priority: 0/
Queue: PerlIO-Layers

People
Owner: Nobody in particular
Requestors: sisyphus [...] cpan.org
Cc: fawaka [...] gmail.com
AdminCc:

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



CC: fawaka [...] gmail.com
Subject: Fails on most (but not all) versions of perl on Win32
Hi, I'm building PerlIO-Layers-0.008 on MS Windows. With perl-5.8.0, I get the error: Undefined subroutine &PerlIO::get_layers called at C:\sisyphusion\PerlIO-Layers-0.008\blib\lib/PerlIO/Layers.pm line 119. This happens during the 'make test' stage when 10-basics.t is run. It kills the test script before running any of the tests. With perl-5.8.9 and 5.12.0 I have no issues. With perl-5.10.0, 4 of the tests in 10-basics.t fail - namely tests 50, 55, 60 and 65. With perl-5.14.0 and 5.15.9 one of the tests in 10-basics.t fails - namely test 30. Any ideas ? I can happily provide more details if needed. On those perls where it fails I've gone ahead and installed it anyway. Main interest is in building File::Map, which builds fine and passes all of its tests - even on those perls that experienced PerlIO-Layers-0.008 failures (except for 5.8.0, where the problem is a blocker). Cheers, Rob
On Wed, Apr 4, 2012 at 3:21 PM, Sisyphus via RT <bug-PerlIO-Layers@rt.cpan.org> wrote: Show quoted text
> Hi,
Hi, Thanks for your bug report :-) Show quoted text
> I'm building PerlIO-Layers-0.008 on MS Windows. > With perl-5.8.0, I get the error: > > Undefined subroutine &PerlIO::get_layers called at > C:\sisyphusion\PerlIO-Layers-0.008\blib\lib/PerlIO/Layers.pm line 119. > > This happens during the 'make test' stage when 10-basics.t is run. It > kills the test script before running any of the tests.
Frankly I think the only thing I can do is increase the minimal version to 5.8.1. Show quoted text
> With perl-5.10.0, 4 of the tests in 10-basics.t fail - namely tests 50, > 55, 60 and 65. > > With perl-5.14.0 and 5.15.9 one of the tests in 10-basics.t fails - > namely test 30. > > Any ideas ?
That was an oversight. I had thought 0.008 had fixed it, but I had missed the other half. It's fixed in 0.009. Leon
On Wed Apr 04 17:01:40 2012, LEONT wrote: Show quoted text
> On Wed, Apr 4, 2012 at 3:21 PM, Sisyphus via RT
Show quoted text
> > I'm building PerlIO-Layers-0.008 on MS Windows. > > With perl-5.8.0, I get the error:
(snip) Show quoted text
> Frankly I think the only thing I can do is increase the minimal version > to 5.8.1.
Yes, I think that's right. Show quoted text
> > Any ideas ?
> > That was an oversight. I had thought 0.008 had fixed it, but I had > missed the other half. It's fixed in 0.009.
I still get the same failures on perl-5.10.0 - though it's now fixed for the other perl versions. (Thanks for the prompt response !) Attached is the 'dmake test' output for 0.009 on perl-5.10.0. Cheers, Rob
Subject: t.txt
t/00-compile.t ............ ok # Failed test 'File opened with <:encoding(utf8) should return 1 on test crlf' # at t/10-basics.t line 68. # got: '0' # expected: '1' # $VAR1 = [ # 'unix', # undef, # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # $VAR2 = [ # 'crlf', # undef, # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # $VAR3 = [ # 'encoding', # 'utf8', # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # Failed test 'File opened with <:encoding(utf-8) should return 1 on test crlf' # at t/10-basics.t line 68. # got: '0' # expected: '1' # $VAR1 = [ # 'unix', # undef, # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # $VAR2 = [ # 'crlf', # undef, # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # $VAR3 = [ # 'encoding', # 'utf-8-strict', # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # Failed test 'File opened with <:encoding(UTF-8) should return 1 on test crlf' # at t/10-basics.t line 68. # got: '0' # expected: '1' # $VAR1 = [ # 'unix', # undef, # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # $VAR2 = [ # 'crlf', # undef, # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # $VAR3 = [ # 'encoding', # 'utf-8-strict', # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # Failed test 'File opened with <:encoding(latin1) should return 1 on test crlf' # at t/10-basics.t line 68. # got: '0' # expected: '1' # $VAR1 = [ # 'unix', # undef, # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # $VAR2 = [ # 'crlf', # undef, # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # $VAR3 = [ # 'encoding', # 'iso-8859-1', # [ # 'UTF8', # 'CANREAD', # 'FASTGETS' # ] # ]; # Looks like you failed 4 tests of 78. t/10-basics.t ............. Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/78 subtests t/release-kwalitee.t ...... skipped: these tests are for release candidate testing t/release-pod-coverage.t .. skipped: these tests are for release candidate testing t/release-pod-syntax.t .... skipped: these tests are for release candidate testing Test Summary Report ------------------- t/10-basics.t (Wstat: 1024 Tests: 78 Failed: 4) Failed tests: 51, 56, 61, 66 Non-zero exit status: 4 Files=5, Tests=79, 2 wallclock secs ( 0.16 usr + 0.09 sys = 0.25 CPU) Result: FAIL Failed 1/5 test programs. 4/79 subtests failed.
RT-Send-CC: fawaka [...] gmail.com
On Wed Apr 04 20:24:34 2012, SISYPHUS wrote: Show quoted text
> I still get the same failures on perl-5.10.0 - though it's now fixed for > the other perl versions. (Thanks for the prompt response !) > > Attached is the 'dmake test' output for 0.009 on perl-5.10.0.
I've just checked 0.010. I'm still experiencing the same 4 failures in t/10-basics.t with perl-5.10.0. Cheers, Rob
Subject: Re: [rt.cpan.org #76299] Fails on most (but not all) versions of perl on Win32
Date: Sat, 7 Apr 2012 19:27:26 +0200
To: bug-PerlIO-Layers [...] rt.cpan.org
From: Leon Timmermans <fawaka [...] gmail.com>
On Thu, Apr 5, 2012 at 2:24 AM, Sisyphus via RT <bug-PerlIO-Layers@rt.cpan.org> wrote: Show quoted text
> I still get the same failures on perl-5.10.0 - though it's now fixed for > the other perl versions. (Thanks for the prompt response !) > > Attached is the 'dmake test' output for 0.009 on perl-5.10.0. > > > #   Failed test 'File opened with <:encoding(utf8) should return 1 on test crlf' > #   at t/10-basics.t line 68. > #          got: '0' > #     expected: '1' > # $VAR1 = [ > #           'unix', > #           undef, > #           [ > #             'UTF8', > #             'CANREAD', > #             'FASTGETS' > #           ] > #         ]; > # $VAR2 = [ > #           'crlf', > #           undef, > #           [ > #             'UTF8', > #             'CANREAD', > #             'FASTGETS' > #           ] > #         ]; > # $VAR3 = [ > #           'encoding', > #           'utf8', > #           [ > #             'UTF8', > #             'CANREAD', > #             'FASTGETS' > #           ] > #         ];
Quite frankly I can't explain this. The debugging output indicates that indeed the CRLF flag isn't set, but I can't explain why. For all I know it should be. Leon
RT-Send-CC: fawaka [...] gmail.com
On Sat Apr 07 13:27:53 2012, fawaka@gmail.com wrote: Show quoted text
> Quite frankly I can't explain this. The debugging output indicates > that indeed the CRLF flag isn't set, but I can't explain why. For all > I know it should be.
Thanks for taking a look, anyway - maybe it's just a 5.10.0 bug. I'll see if anyone over at perlmonks is interested in taking a look. FWIW, I get the same errors with both 32-bit MinGW-built perl-5.10.0, and 64-bit ActivePerl-5.10.0 (build 1005). In both instances I build PerlIO-Layers using the exact same compiler as was used to build perl itself - namely "gcc-4.5.2" and "Microsoft Platform SDK for Windows Server 2003 R2", respectively. Cheers, Rob
On Sun Apr 08 08:51:22 2012, SISYPHUS wrote: Show quoted text
> On Sat Apr 07 13:27:53 2012, fawaka@gmail.com wrote: >
> > Quite frankly I can't explain this. The debugging output indicates > > that indeed the CRLF flag isn't set, but I can't explain why. For all > > I know it should be.
> > Thanks for taking a look, anyway - maybe it's just a 5.10.0 bug. > I'll see if anyone over at perlmonks is interested in taking a look. > > FWIW, I get the same errors with both 32-bit MinGW-built perl-5.10.0, > and 64-bit ActivePerl-5.10.0 (build 1005). In both instances I build > PerlIO-Layers using the exact same compiler as was used to build perl > itself - namely "gcc-4.5.2" and "Microsoft Platform SDK for Windows > Server 2003 R2", respectively.
I've removed the offending test. It pretty much has to be a perl bug. Not the first I hit in PerlIO::Layers. Leon