Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Error installing Storable: t/restrict fails with 'COWs do not become read-only'

by boxofrox (Initiate)
on Jul 11, 2011 at 22:49 UTC ( [id://913797]=perlquestion: print w/replies, xml ) Need Help??

boxofrox has asked for the wisdom of the Perl Monks concerning the following question:

I use dclone() in my perl script and get an "AutoLoader can't find auto/Storable/dclone.al" error. So I'm trying to install the Storable-2.29 module using CPAN, which compiles, but fails on make test.

My system is Ubuntu 11.04.
I've compiled perl-5.8.8 into /usr/local/perl5.8.8 (my company standardizes on 5.8.8, I have no choice on this).

I'm failing to sort this out on my own.
Does anyone know what COW is? (copy on write?)
Any ideas what would cause a COW to not be read-only?
Should I be using an older version of Storable with perl5.8.8? Can you point to a specific version?

If my perl5.8.8 compile options may be the cause, please specify which option you want. My config.sh is 1043 lines and I don't want to spam the thread.

(Edit) Tried >cpan Storable from perl-5.10 (installed with apt-get) and all tests passed

cpan>test Storable Runningtest for module Storable Runningmake for A/AM/AMS/Storable-2.29.tar.gz Is already unwrapped into directory /home/charetjc/.cpan/build/Storabl +e-2.29 Has already been processed within this session Runningmake test PERL_DL_NONLAZY=1/usr/local/perl5.8.8/bin/perl "-MExtUtils::Command::M +M" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/attach_errors.......ok t/attach_singleton....ok t/blessed.............ok t/canonical...........ok t/circular_hook.......ok t/code................ok t/compat01............ok t/compat06............ok t/croak...............ok t/dclone..............ok t/downgrade...........ok t/file_magic..........ok t/forgive.............ok t/freeze..............ok t/integer.............ok t/interwork56.........skipped all skipped: Your IVs are no larger than your longs t/just_plain_nasty....ok t/lock................ok t/malice..............ok t/overload............ok t/recurse.............ok t/restrict............NOK26 #Failed test 'COWs do not become read-only' #in t/restrict.t at line 118. t/restrict............NOK52 #Failed test 'COWs do not become read-only' #in t/restrict.t at line 118. t/restrict............NOK78 #Failed test 'COWs do not become read-only' #in t/restrict.t at line 118. t/restrict............NOK104 #Failed test 'COWs do not become read-only' #in t/restrict.t at line 118. #Looks like you failed 4 tests of 104. t/restrict............dubious Test returned status 4 (wstat 1024, 0x400) DIED.FAILED tests 26, 52, 78, 104 Failed 4/104 tests, 96.15% okay t/retrieve............ok t/sig_die.............ok t/store...............ok t/threads.............ok t/tied................ok t/tied_hook...........ok t/tied_items..........ok t/utf8................ok t/utf8hash............ok t/weak................ok FailedTest Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/restrict.t4 1024 104 4 3.85% 26 52 78 104 1test skipped. Failed1/32 test scripts, 96.88% okay. 4/2352 subtests failed, 99.83% o +kay. make:*** [test_dynamic] Error 255 /usr/bin/make test -- NOT OK
  • Comment on Error installing Storable: t/restrict fails with 'COWs do not become read-only'
  • Download Code

Replies are listed 'Best First'.
Re: Error installing Storable: t/restrict fails with 'COWs do not become read-only'
by Khen1950fx (Canon) on Jul 12, 2011 at 00:03 UTC
Re: Error installing Storable: t/restrict fails with 'COWs do not become read-only'
by boxofrox (Initiate) on Jul 12, 2011 at 19:20 UTC

    I used the force install Storable to install the module. I haven't figured out the copy-on-write test failure.

    However, the error that led me down this path--Autoloader not finding dclone.al--was solved by moving use Storable qw(dclone); to the top of my use list instead of the bottom. I have no idea why this worked, but I've moved past this topic for now.

    Thanks for the suggestions and replies.

Re: Error installing Storable: t/restrict fails with 'COWs do not become read-only'
by sundialsvc4 (Abbot) on Jul 12, 2011 at 12:53 UTC

    You are correct that COW means “copy on write.”   I’m afraid I can”t help you beyond that.   (What makes a read-only COW?   Dunno... did somebody forget to milk her?   Did she spot a Chick Fil-A road sign?)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://913797]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found