My guess would be that the wrong mix of libraries have been linked.

AFAICT, Rfc.xs itself does not directly reference memsetU16, it uses memsetU instead, which presumably is mapped to memsetU16 (the UTF-16 variant — also see an old proposal) somewhere in one of the SAP libs when compiled with Unicode support. The correct library which provides the implementation of the symbol, however, doesn't seem to have been specified to the linker... (which - with memsetU16 being an indirect dependency - wouldn't necessarily produce an error at build-time, but only at run-time...)

I can't be more specific (as I don't have the SAP libs), but the following tools might help to narrow down on where the problem lies:  ldd (list shared lib dependencies), and nm or objdump (list symbols a lib provides/references).  For example, try

$ ldd ./blib/arch/auto/SAP/Rfc/Rfc.so

to find out which (SAP-)libs the module's XS component has in fact been linked against (and what they map to at load time).  Then something like

$ objdump -tT /path/to/sap-libs/libsapu16.so | grep memsetU $ objdump -ftT /path/to/sap-libs/* | grep 'file format\|memsetU'

to hunt for which libs implement (type ".text") or reference (type "*UND*") the respective memsetU* function(s) ... — You get the idea.   (As I said, my guess would be that the lib which does provide memsetU16 will not show up in the ldd output.)

With that info you'll likely have a better chance of figuring out what went wrong with perl Makefile.PL, and how to fix it...  Good luck!


In reply to Re: SAP::Rfc module with unicode by almut
in thread SAP::Rfc module with unicode by regexes

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.