develooper Front page | perl.perl5.porters | Postings from May 2003

Re: files that do not pass syntax check

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 30, 2003 00:23
Subject:
Re: files that do not pass syntax check
Message ID:
20030530092027.380ad9e4.rgarciasuarez@free.fr
Alexey Tourbin wrote:
> 
> As of the previous maint snapshot (19525) installed on a modern linux
> system, I found out that some perl source files do not pass 'perl -c'
> syntax check.  Though some cases may be arguable (especially demos), I
> believe it would be neat if all those files compile and run perfectly.
> 
> Other cases show that some modules required for other modules to run are
> simply inexistent, which in turn means that perl bundle is not
> self-sufficient.  Though some rate of inconsistency could be admitted,
> there's nothing in it one should get excited about, either.
> 
> Here is the full (or almost full) list of the files:
> 
> BEGIN failed--compilation aborted at /usr/lib/perl5/Attribute/Handlers/demo/demo.pl line 4.
> BEGIN failed--compilation aborted at /usr/lib/perl5/Attribute/Handlers/demo/demo2.pl line 4.
> BEGIN failed--compilation aborted at /usr/lib/perl5/Attribute/Handlers/demo/demo3.pl line 2.
> BEGIN failed--compilation aborted at /usr/lib/perl5/Attribute/Handlers/demo/demo4.pl line 1.
> BEGIN failed--compilation aborted at /usr/lib/perl5/Attribute/Handlers/demo/demo_hashdir.pl line 1.
> BEGIN failed--compilation aborted at /usr/lib/perl5/Attribute/Handlers/demo/demo_range.pl line 3.

Demos : one can keep them, for consistency with the CPAN dist.

> BEGIN failed--compilation aborted at /usr/lib/perl5/Class/ISA/test.pl line 16.

I don't think the test.pl files should be installed. The *.t files
aren't.

> BEGIN failed--compilation aborted at /usr/lib/perl5/File/Spec/VMS.pm line 13.

As you're not on VMS, it's normal File::Spec::VMS doesn't compile. It
requires a module that's built only on VMS.

> BEGIN failed--compilation aborted at /usr/lib/perl5/Pod/Perldoc/ToRtf.pm line 8.
> BEGIN failed--compilation aborted at /usr/lib/perl5/Pod/Perldoc/ToTk.pm line 23.
> BEGIN failed--compilation aborted at /usr/lib/perl5/Pod/Perldoc/ToXml.pm line 8.

They require external modules, and moreover they're not supposed to be
used by themselves, as they're perldoc plugin. (but it's true perldoc
could issue a more friendly error message)

> BEGIN failed--compilation aborted at /usr/lib/perl5/bytes_heavy.pl line 4.

The failure for bytes_heavy.pl is normal, it's not self-contained.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About