regexes has asked for the wisdom of the Perl Monks concerning the following question:
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.3The make and make test with non-unicode works fine... (skipping the make results below)..
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# 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 make finishes successfully... here the test: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]
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: SAP::Rfc module with unicode
by almut (Canon) on Nov 17, 2009 at 16:49 UTC | |
by Anonymous Monk on Apr 28, 2014 at 10:03 UTC | |
Re: SAP::Rfc module with unicode
by cdarke (Prior) on Nov 17, 2009 at 11:58 UTC | |
by regexes (Hermit) on Nov 17, 2009 at 12:52 UTC | |
Re: SAP::Rfc module with unicode
by ajt (Prior) on Apr 15, 2014 at 13:52 UTC |