Skip Menu |

This queue is for tickets about the Crypt-Libmcrypt CPAN distribution.

Report information
The Basics
Id: 122330
Status: new
Priority: 0/
Queue: Crypt-Libmcrypt

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.0.5
Fixed in: (no value)



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.
On 2017-07-02 15:51:03, SREZIC wrote: Show quoted text
> 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.
Unfortunately using EUMM does not help on linux systems. Here it still fails: ... # Failed test 'use Crypt::Libmcrypt;' # at t/Crypt-Libmcrypt.t line 12. # Tried to use 'Crypt::Libmcrypt'. # Error: Can't load '/home/cpansand/.cpan/build/2017070218/Crypt-Libmcrypt-1.0.5-dBcN9h/blib/arch/auto/Crypt/Libmcrypt/Libmcrypt.so' for module Crypt::Libmcrypt: /home/cpansand/.cpan/build/2017070218/Crypt-Libmcrypt-1.0.5-dBcN9h/blib/arch/auto/Crypt/Libmcrypt/Libmcrypt.so: undefined symbol: mcrypt_module_is_block_algorithm_mode at /opt/perl-5.22.2/lib/5.22.2/x86_64-linux/DynaLoader.pm line 193. # 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. ...
On 2017-07-02 15:55:18, SREZIC wrote: Show quoted text
> On 2017-07-02 15:51:03, SREZIC wrote:
> > 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.
> > > Unfortunately using EUMM does not help on linux systems. Here it still > fails: > > ... > # Failed test 'use Crypt::Libmcrypt;' > # at t/Crypt-Libmcrypt.t line 12. > # Tried to use 'Crypt::Libmcrypt'. > # Error: Can't load '/home/cpansand/.cpan/build/2017070218/Crypt- > Libmcrypt-1.0.5-dBcN9h/blib/arch/auto/Crypt/Libmcrypt/Libmcrypt.so' > for module Crypt::Libmcrypt: > /home/cpansand/.cpan/build/2017070218/Crypt-Libmcrypt-1.0.5- > dBcN9h/blib/arch/auto/Crypt/Libmcrypt/Libmcrypt.so: undefined symbol: > mcrypt_module_is_block_algorithm_mode at /opt/perl- > 5.22.2/lib/5.22.2/x86_64-linux/DynaLoader.pm line 193. > # 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. > ...
It is not quite clear if this module needs an external mcrypt library to work successfully (maybe adapt the documentation and tell what system packages have to be installed?). It seems that the failure above happens if libmcrypt is not installed. Probably it would be better if already the build failed in this situation.