Because I'm on the Perl.com newsletter mailing list, I learned recently about chromatic's fascinating series on Refactoring the Everything Engine. I was particularly intrigued with Test::MockObject because it addressed a weakness of one of my current development situations, that of being unable to test a web application in a controlled manner. (This is a whole other can of worms .. I'm trying to stay on topic here.)

So, all enthused, I went over to my FC4 test system and went to install Test::MockObject, only to see it fail as follows:

Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/base............NOK 1# Failed test (t/base.t at line 8) + # Tried to use 'Test::MockObject'. # Error: Weak references are not implemented in the version of pe +rl at /root/.cpan/build/Test-MockObject-1.06/b lib/lib/Test/MockObject.pm line 9 # BEGIN failed--compilation aborted at /root/.cpan/build/Test-MockObje +ct-1.06/blib/lib/Test/MockObject.pm line 9. # Compilation failed in require at (eval 1) line 2. ...

I have done some research, and it's been suggested that Red Hat in general has this kind of problem. I'm using Perl 5.8.6, and I did do a yum -y update a week or two ago, so I believe things are up to date.

Thoughts?

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds


In reply to Weak references error when installing Test::MockObject by talexb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.