Fellow Monks,

This is not a direct perl question but it has to do with the use of a perl module. Maybe somebody here can enlighten me. :-)

I'm trying to use the CPAN module SAP::Rfc against a unicode SAP system and am having a problem getting the module to make successfully.

It mentions in the module Readme that unicode is supported with the special unicode version of the SAP RFCSDK. Ok.. I have that SDK. http://cpansearch.perl.org/src/PIERS/SAP-Rfc-1.55/README

This is what I'm using:

Debian version 5.0.3
Perl v5.10.0 built for x86_64-linux-gnu-thread-multi
SAP RFCSDK Unicode.

The make and make test with non-unicode works fine... (skipping the make results below)..

hostblabla:/tmp/saprfctest/SAP-Rfc-1.55# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00use....ok + t/01sap....ok + All tests successful. Files=2, Tests=7, 1 wallclock secs ( 0.14 cusr + 0.01 csys = 0.15 C +PU) hostblabla:/tmp/saprfctest/SAP-Rfc-1.55#
The problem appears when running the test against a unicode system. I can make everything OK, however, the tests fail. I don't know if this is a problem with the Makefile, perl version, module, or the OS.
hostblabla:/tmp/saprfctest/SAP-Rfc-1.55# perl Makefile.PL --unicode O-ohhh -unicode!! /usr/local/lib does not seem to contain the librfcu (or librfcum) libr +ary files /usr/lib does not seem to contain the librfcu (or librfcum) library fi +les Found rfcum installed in /usr/sap/rfcsdk Which librfc build path do you want to link against? [/usr/sap/rfcsdk]
The make finishes successfully... here the test:
hostblabla:/tmp/saprfctest/SAP-Rfc-1.55# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00use....Can't load '/tmp/saprfctest/SAP-Rfc-1.55/blib/arch/auto/SAP +/Rfc/Rfc.so' for module SAP::Rfc: /tmp/saprfctest/SAP-Rfc-1.55/blib/a +rch/auto/SAP/Rfc/Rfc.so: undefined symbol: memsetU16 at /usr/lib/perl +/5.10/DynaLoader.pm line 196. at t/00use.t line 4 Compilation failed in require at t/00use.t line 4. BEGIN failed--compilation aborted at t/00use.t line 4. t/00use....dubious + Test returned status 2 (wstat 512, 0x200) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/01sap....Can't load '/tmp/saprfctest/SAP-Rfc-1.55/blib/arch/auto/SAP +/Rfc/Rfc.so' for module SAP::Rfc: /tmp/saprfctest/SAP-Rfc-1.55/blib/a +rch/auto/SAP/Rfc/Rfc.so: undefined symbol: memsetU16 at /usr/lib/perl +/5.10/DynaLoader.pm line 196. at t/01sap.t line 4 Compilation failed in require at t/01sap.t line 4. BEGIN failed--compilation aborted at t/01sap.t line 4. t/01sap....dubious + Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-6 Failed 6/6 tests, 0.00% okay Failed Test Stat Wstat Total Fail List of Failed ---------------------------------------------------------------------- +--------- t/00use.t 2 512 1 1 1 t/01sap.t 2 512 6 11 1-6 Failed 2/2 test scripts. 7/7 subtests failed. Files=2, Tests=7, 0 wallclock secs ( 0.08 cusr + 0.01 csys = 0.09 C +PU) Failed 2/2 test programs. 7/7 subtests failed. make: *** [test_dynamic] Error 2

Undefined symbol: memsetU16.... I've search on perlmonks and googled but can't seem to find an answer.

Anybody know how to get around this problem?

regexes

In reply to 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.