Subject: | Tests fail with perl-5.20.0: "SvREFCNT_inc" is not exported by the Devel::Peek module |
Perl-5.20's Devel::Peek removed SvREFCNT_inc and SvREFCNT_dec as commented in <https://rt.perl.org/Public/Bug/Display.html?id=117793#txn-1227501> by this commit:
commit da1929e7566d4399b20541f8609bd48b40663034
Author: Tony Cook <tony@develop-help.com>
Date: Fri Aug 9 11:41:26 2013 +1000
[perl #117793] remove dangerous functions and improve SvREFCNT()
This allows Devel::Peek::SvREFCNT() to work on any variable, not just
scalars, but has a chance of breaking backward compatibility.
Also changes the type of SvREFCNT() to U32 to match the type returned by
the underlying macro
This causes Qt tests failure:
$ prove -b -v "/home/test/fedora/perl-Qt/Qt-0.96.0/qtcore/t/a_loading.t"
/home/test/fedora/perl-Qt/Qt-0.96.0/qtcore/t/a_loading.t ..
1..2
ok 1 - use QtCore4;
not ok 2 - use QtGui4;
# Failed test 'use QtGui4;'
# at /home/test/fedora/perl-Qt/Qt-0.96.0/qtcore/t/a_loading.t line 3.
# Tried to use 'QtGui4'.
# Error: "SvREFCNT_inc" is not exported by the Devel::Peek module
# Can't continue after import errors at /home/test/fedora/perl-Qt/Qt-0.96.0/build/blib/lib/QtGui4.pm line 25.
# BEGIN failed--compilation aborted at /home/test/fedora/perl-Qt/Qt-0.96.0/build/blib/lib/QtGui4.pm line 25.
# Compilation failed in require at /home/test/fedora/perl-Qt/Qt-0.96.0/qtcore/t/a_loading.t line 3.
# BEGIN failed--compilation aborted at /home/test/fedora/perl-Qt/Qt-0.96.0/qtcore/t/a_loading.t line 3.
# Looks like you failed 1 test of 2.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
And because the Devel::Peek::SvREFCNT_inc is used by the library code, even the library cannot be compiled.