Ticket #1059 (closed defect: fixed)
Padre 0.74 build failure on 5.8.9
| Reported by: | azawawi | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | editor | Version: | 0.74 |
| Keywords: | Cc: |
Description
Mark Dootson reported in Padre developer mailing list
ActivePerl 5.8 on win , linux & mac all produce following test failure
building Padre 0.74:
t/44-perl-syntax.t ......... 11/55
# Failed test 'Trivially broken package statement'
# at t/44-perl-syntax.t line 82.
# Structures begin differing at:
# $got->[0]{msg} = 'Use of "package" with no arguments is
deprecated'
# $expected->[0]{msg} = 'syntax error, at EOF'
# Failed test 'Trivially broken package statement'
# at t/44-perl-syntax.t line 95.
# Structures begin differing at:
# $got->[0]{msg} = 'Use of "package" with no arguments is
deprecated'
# $expected->[0]{msg} = 'syntax error, near "package;"'
# Looks like you failed 2 tests of 55.
t/44-perl-syntax.t ......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/55 subtests
Change History
Note: See
TracTickets for help on using
tickets.

Interesting parsing on 5.8.9 perlbrew Ubuntu. Basically on 5.8.9 it was reported as syntax OK but diagnostics issued a deprecated issue on it. perl 5.8.9+ reports it as a syntax error.
azawawi@ubuntu:~$ perl -v | head -2 This is perl, v5.8.9 built for i686-linux-thread-multi azawawi@ubuntu:~$ perl -c -Mdiagnostics test.pl Use of "package" with no arguments is deprecated at test.pl line 1 (#1) (D deprecated) You used the package keyword without specifying a package name. So no namespace is current at all. Using this can cause many otherwise reasonable constructs to fail in baffling ways. use strict; instead. test.pl syntax OK azawawi@ubuntu:~$ cat test.pl package azawawi@ubuntu:~$ perl -c test.pl test.pl syntax OK