Subject: | t/1-basic.t test fails with ExtUtils::MakeMaker-7.12: Bareword "Symbol::gensym" not allowed while "strict subs" |
t/1-basic.t test fails after upgrading ExtUtils-MakeMaker from 7.10 to 7.12:
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/1-basic.t
Bareword "Symbol::gensym" not allowed while "strict subs" in use at t/1-basic.t line 25.
Execution of t/1-basic.t aborted due to compilation errors.
t/1-basic.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6/6 subtests
This can be reduced to:
perl -w -e 'use strict; use ExtUtils::MakeMaker; require Symbol; my $a = Symbol::gensym'
This passes with 7.10, fails with 7.12.
See code without using ExtUtils::MakeMaker:
$ perl -w -e 'use strict; require Symbol; my $a = Symbol::gensym'
Bareword "Symbol::gensym" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.
It looks like EU::MM 7.12 stopped disabling "strict subs" warning.