This is my first time creating a perl module from C with xs, and I've been stuck for hours with the same problem. (The module is imaginatively titled 'module'.

steve@thelaptop:~/module$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/postfix....NOK 1 # Failed test (t/module.t at line 10) # Tried to use 'module'. # Error: Can't load '/home/steve/module/blib/arch/auto/module/mod +ule.so' for module postfix: libpfq: cannot open shared object file: N +o such file or directory at /usr/lib/perl/5.8/DynaLoader.pm line 225. # at (eval 4) line 2 # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at t/module.t line 10. t/module....ok 2/2# Looks like you failed 1 test of 2. t/module....dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/2 tests, 50.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/postfix.t 1 256 2 1 50.00% 1 Failed 1/1 test scripts, 0.00% okay. 1/2 subtests failed, 50.00% okay. make: *** [test_dynamic] Error 1

The shared object libraries it's looking for are definitely there, and are seem to be compiled correctly- make works alright and to be honest I'm kind of at a loss as to what might be amiss. Has anyone had this problem before and if so, how is it resolvable?


In reply to xs problem by teh_steev

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.