Subject: | Build.PL does not work |
It seems that using Build.PL fails to build the distribution. On a freebsd 10.3 system:
$ perl5.24.0 Build.PL && ./Build && ./Build test
...
# Failed test 'use Crypt::Libmcrypt;'
# at t/Crypt-Libmcrypt.t line 12.
# Tried to use 'Crypt::Libmcrypt'.
# Error: Can't locate loadable object for module Crypt::Libmcrypt in @INC (@INC contains: /home/cpansand/.cpan/build/2017070221/Crypt-Libmcrypt-1.0.5-0/blib/lib /home/cpansand/.cpan/build/2017070221/Crypt-Libmcrypt-1.0.5-0/blib/arch /usr/perl5.24.0p/lib/site_perl/5.24.0/amd64-freebsd /usr/perl5.24.0p/lib/site_perl/5.24.0 /usr/perl5.24.0p/lib/5.24.0/amd64-freebsd /usr/perl5.24.0p/lib/5.24.0 .) at t/Crypt-Libmcrypt.t line 12.
# Compilation failed in require at t/Crypt-Libmcrypt.t line 12.
# BEGIN failed--compilation aborted at t/Crypt-Libmcrypt.t line 12.
# Failed test 'Constants'
# at t/Crypt-Libmcrypt.t line 28.
# Looks like you failed 2 tests of 2.
t/Crypt-Libmcrypt.t ...... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
On the same system there's no test failure if Makefile.PL is used:
$ perl5.24.0 Makefile.PL && make all test
...
t/Crypt-Libmcrypt.t ...... Subroutine AUTOLOAD redefined at /home/cpansand/.cpan/build/2017070221/Crypt-Libmcrypt-1.0.5-0/blib/lib/Crypt/Libmcrypt.pm line 60.
t/Crypt-Libmcrypt.t ...... ok
All tests successful.