Subject: | use Moo; use Scalar::Does dies on FreeBSD |
Trivial script of "use Moo; use Scalar::Does;" dies with the error and stack shown below. Same versions of Moo and Scalar::Does on Linux does not exhibit the same behavior. Not a blocker for me, but am willing to help diagnose it if you are unable to reproduce it.
freebsd% which_pm Moo Scalar::Does
Moo 1.004001 /home/ollisg/perl5/lib/perl5/Moo.pm
Scalar::Does 0.201 /home/ollisg/perl5/lib/perl5/Scalar/Does.pm
freebsd% perl -d -MMoo -MScalar::Does
Loading DB routines from perl5db.pl version 1.33
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
Can't weaken a nonreference at /home/ollisg/perl5/lib/perl5/Moo/HandleMoose/_TypeMap.pm line 18.
Compilation failed in require at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48.
at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48.
Scalar::Does::BEGIN() called at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48
eval {...} called at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48
require Scalar/Does.pm called at - line 0
main::BEGIN() called at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48
eval {...} called at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48
BEGIN failed--compilation aborted at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48.
at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48.
require Scalar/Does.pm called at - line 0
main::BEGIN() called at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48
eval {...} called at /home/ollisg/perl5/lib/perl5/Scalar/Does.pm line 48
Compilation failed in require.
at - line 0.
main::BEGIN() called at - line 0
eval {...} called at - line 0
BEGIN failed--compilation aborted.
at - line 0.
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.