Skip Menu |

This queue is for tickets about the Mac-Carbon CPAN distribution.

Report information
The Basics
Id: 2186
Status: resolved
Priority: 0/
Queue: Mac-Carbon

People
Owner: cnandor [...] cpan.org
Requestors: ken [...] mathforum.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: 0.05



Subject: Bareword error in Mac::Files
Just tried installing Mac::Carbon 0.04 on Mac OS X 10.2.4 with the Dec 2002 Dev Tools. I got these errors: t/Carbon............Bareword "true" not allowed while "strict subs" in use at blib/lib/Mac/Files.pm line 159. Compilation failed in require at (eval 3) line 2. BEGIN failed--compilation aborted at (eval 3) line 2. ...propagated at blib/lib/Mac/Carbon.pm line 243. BEGIN failed--compilation aborted at blib/lib/Mac/Carbon.pm line 256. Compilation failed in require at t/Carbon.t line 7. BEGIN failed--compilation aborted at t/Carbon.t line 7. t/Carbon............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay Components/t/Components.ok [...] Files/t/Files.t 255 65280 1 1 100.00% 1 Speech/t/Speech.t 255 65280 34 34 100.00% 1-34 Types/t/Types.t 255 65280 4 4 100.00% 1-4 t/Carbon.t 255 65280 4 4 100.00% 1-4 All four script failures seemed to be because of this. -Ken
Date: Thu, 6 Mar 2003 20:20:59 -0500
To: bug-Mac-Carbon [...] rt.cpan.org
From: Chris Nandor <cnandor [...] cpan.org>
Subject: Re: [cpan #2186] Bareword error in Mac::Files
CC: "AdminCc of cpan Ticket #2186": ;
RT-Send-Cc:
Weird. I do not get that error. I'll try to figure it out, thanks. -- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Development Network pudge@osdn.com http://osdn.com/
Date: Thu, 6 Mar 2003 20:28:13 -0500
To: bug-Mac-Carbon [...] rt.cpan.org
From: Chris Nandor <cnandor [...] cpan.org>
Subject: Re: [cpan #2186] Bareword error in Mac::Files
CC: "AdminCc of cpan Ticket #2186": ;
RT-Send-Cc:
Ah, I see, I ran a script over Folders.h and it had the true/false macros. Should be 1/0. I still can't figure out why I am not getting those errors, though. I'll do a new release soon, thanks. -- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Development Network pudge@osdn.com http://osdn.com/
Urk ... this error shows up only in perl 5.6, not 5.8. It has something to do with the prototypes. [pudge@bourque pudge]$ perl5.6.0 -wle 'use strict; sub foo () { true } print foo' Bareword "true" not allowed while "strict subs" in use at -e line 1. Execution of -e aborted due to compilation errors. [pudge@bourque pudge]$ perl5.8.0 -wle 'use strict; sub foo () { true } print foo' true [pudge@bourque pudge]$ perl5.8.0 -wle 'use strict; sub foo { true } print foo' Bareword "true" not allowed while "strict subs" in use at -e line 1. Execution of -e aborted due to compilation errors. It doesn't affect the fixing of the bug, but it does tell me I should run the test suite with perl5.6.0 in the future. :-)