The error is: "Error: Can't load '/eng/proj/pacsun/DEV/MyPackage/blib/arch/auto/MyPackage/MyPackage.so' for module MyPackage: ld.so.1: /eng/proj/pacsun/TOOLS/bin/perl: fatal: relocation error: file /eng/proj/pacsun/DEV/MyPackage/blib/arch/auto/MyPackage/MyPackage.so: symbol cout: referenced symbol not found at /eng/proj/pacsun/TOOLS/lib/5.8.8/sun4-solaris-thread-multi/DynaLoader.pm line 230."

I think you might be educating me here ... I downloaded the Perl binary for 5.8.8 from ActiveState. This is the Perl that I am running and trying to build XS based modules in. Are you telling me that I must use the same compiler as ActiveState used to generate the binary? If so, how do I know what compiler they used?

I'm not sure I completely understand if this is true. While running 5.6, I would routinely create XS modules using C++ code. Typically I would compile using gcc. But Perl is compiled using some C compiler i.e. not gcc. I thought the XS generated library just created machine code and that the typemap dealt with passing data to and from the C/Perl object to your C++/XS object.


In reply to Re^4: XS module build not working for Perl 5.8 by Anonymous Monk
in thread XS module build not working for Perl 5.8 by rzer10

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.