Weak references are not implemented ...
Normally, that problem is related to a version of
Scalar::Util that hasn't been built with XS support.
Scalar::Util can in principle be built as a pure Perl module with
restricted functionality (e.g. no weaken routine), or as the
fully functioning XS version. Storable's weak.t test
loads Scalar::Util, which is where you're getting the error, because Scalar::Util realizes it doesn't have XS support and thus can't honor the import requests:
...
require Scalar::Util;
Scalar::Util->import(qw(weaken isweak)); # line 28 in weak.t
if (grep { /weaken/ } @Scalar::Util::EXPORT_FAIL) {
print("1..0 # Skip: No support for weaken in Scalar::Util\n");
exit 0;
}
Now, the real question is, why do you have a non-XS
Scalar::Util? A couple of possible reasons:
- Your version of Perl is too old (< v5.6) and truly doesn't support
weak references (unlikely)
- Due to a configure error, Scalar::Util has been built as the pure
Perl version
- A wrong version of Scalar::Util is being loaded (e.g. from a
different installation of Perl), for example because you have PERL5LIB
pointing to directories which don't belong to the version of Perl
you're currently dealing with.
- Scalar::Util's associated (existing) .so file isn't being loaded for whatever reason.
- ...
So... What version(s) of Perl do you have on that machine? Which version
are you trying to build with debug support? What were the configure
options you used (post output of perl -V)? Any unusual
messages/errors during configuring/building? Which platform are you on?
PS. see also Weak references are not implemented and Test::Deep - weak references are not implemented
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.