steve@thelaptop:~/module$ make test_static cd ccode && make make[1]: Entering directory `/home/steve/module/ccode' gcc -shared -Wl,-soname,libpfq -Wl,-E -Wl,-rpath,/usr/lib/perl/5.8.7/C +ORE -o libpfq.so.1 socket.o services.o -lc make[1]: Leaving directory `/home/steve/module/ccode' rm -rf blib/arch/auto/module/module.a cp ccode/libpfq blib/arch/auto/module/module.a /usr/bin/ar cr blib/arch/auto/module/module.a module.o && : blib/arch/ +auto/module/module.a /usr/bin/ar: blib/arch/auto/module/module.a: File format not recognize +d make: *** [blib/arch/auto/module/module.a] Error 1

I've just tried it with a diagnostics enabled as well and it has replied with:

Compilation failed in require at test.pl line 5 (#1) (F) The module you tried to load failed to load a dynamic extensio +n. This may either mean that you upgraded your version of perl to one that + is incompatible with your old dynamic extensions (which is known to h +appen between major versions of perl), or (more likely) that your dynami +c extension was built against an older version of the library that i +s installed on your system. You may need to rebuild your old dynamic extensions.

Which library is 'the library'? Do they mean libc or some library in perl itself? There's nothing in perlxs or perlxstut that says I should link against a specific library.

The C functions operate on mail queues- deferring and deleting messages and so on.

Oh, and thanks to the people who set me straight (and edited my post) about formatting- I was going to use code tags but I didn't see it in the list of allowed tags. I should always remember to read the next line as well.


In reply to Re^2: xs problem by teh_steev
in thread 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.