Bug#1111894: libjson-hyper-perl: FTBFS with Perl 5.42: Undefined subroutine &Scalar::Util::refaddr called
Niko Tyni
ntyni at debian.org
Sat Aug 23 13:21:00 BST 2025
Source: libjson-hyper-perl
Version: 0.011-3
Severity: important
Tags: ftbfs forky sid upstream
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=157586
User: debian-perl at lists.debian.org
Usertags: perl-5.42-transition
This package fails to build with Perl 5.42 (currently in experimental.)
https://perl.debian.net/rebuild-logs/perl-5.42-throwaway/libjson-hyper-perl_0.011-3/libjson-hyper-perl_0.011-3_amd64-2025-08-22T10:46:50Z.build
PERL5LIB=. dh_auto_configure
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/libjson-hyper-perl-LcIFD7/libjson-hyper-perl-0.011=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2" "LD=x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/libjson-hyper-perl-LcIFD7/libjson-hyper-perl-0.011=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z,relro"
*** Module::AutoInstall version 1.06
*** Checking for Perl dependencies...
[Core Features]
- ExtUtils::MakeMaker ...loaded. (7.76 >= 6.59)
- Test::More ...loaded. (1.302210 >= 0.61)
- JSON ...loaded. (4.10 >= 2.00)
- URI ...loaded. (5.30 >= 1.30)
- URI::Escape ...loaded. (5.30)
- LWP::UserAgent ...loaded. (6.78)
- JSON::Path ...loaded. (1.0.6)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
CPAN::Meta::YAML->errstr and $CPAN::Meta::YAML::errstr is deprecated at /usr/share/perl/5.42/CPAN/Meta.pm line 627.
Undefined subroutine &Scalar::Util::refaddr called
at /usr/share/perl/5.42/ExtUtils/MM_Any.pm line 1702.
END failed--call queue aborted.
It looks like this is because there's a bundled and stripped version of
Scalar::Util in inc/ that doesn't have refaddr(), but ExtUtils::MakeMaker
now requires it. I expect that removing the bundled version will fix
the issue.
If you want to test changes against Perl 5.42 in experimental and run
into uninstallability problems, there is a test repository of rebuilt
Debian sid packages for amd64 available at <https://perl.debian.net/>.
Thanks for your work on Debian,
--
Niko Tyni ntyni at debian.org
More information about the pkg-perl-maintainers
mailing list