Subject: | Bundled version of Devel::CheckLib too old |
The bundled inc/Devel/CheckLib.pm does not work with newer perl versions:
Output from '/bbbike/perl-5.25.4/bin/perl5.25.4 Makefile.PL':
syntax error at inc/Devel/CheckLib.pm line 180, near "$mm_attr_key qw(LIBS INC)"
syntax error at inc/Devel/CheckLib.pm line 187, near "}"
Global symbol "%args" requires explicit package name (did you forget to declare "my %args"?) at inc/Devel/CheckLib.pm line 191.
syntax error at inc/Devel/CheckLib.pm line 195, near "}"
syntax error at inc/Devel/CheckLib.pm line 201, near "}"
Can't redeclare "my" in "my" at inc/Devel/CheckLib.pm line 205, near "my"
Global symbol "@headers" requires explicit package name (did you forget to declare "my @headers"?) at inc/Devel/CheckLib.pm line 209.
Global symbol "@headers" requires explicit package name (did you forget to declare "my @headers"?) at inc/Devel/CheckLib.pm line 252.
Global symbol "@libs" requires explicit package name (did you forget to declare "my @libs"?) at inc/Devel/CheckLib.pm line 255.
Global symbol "@libpaths" requires explicit package name (did you forget to declare "my @libpaths"?) at inc/Devel/CheckLib.pm line 262.
Global symbol "@libpaths" requires explicit package name (did you forget to declare "my @libpaths"?) at inc/Devel/CheckLib.pm line 269.
Global symbol "@libpaths" requires explicit package name (did you forget to declare "my @libpaths"?) at inc/Devel/CheckLib.pm line 279.
Global symbol "@libpaths" requires explicit package name (did you forget to declare "my @libpaths"?) at inc/Devel/CheckLib.pm line 289.
syntax error at inc/Devel/CheckLib.pm line 304, near "}"
inc/Devel/CheckLib.pm has too many errors.
Compilation failed in require at Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.
See also http://matrix.cpantesters.org/?dist=Crypt-Nettle%200.3 for an overview of test reports.
Nowadays it's probably better to define CONFIGURE_REQUIRES instead of bundling modules.