I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2005-11-09 13:42:56-08 by chulinn
Howto compile SAP-Rfc-1.39 on HP-UX?
Hello @,
finally after trying everything I could imagine I gave up on compiling SAP::RFC on HP-UX 11.11.
I have no 32bit library /usr/lib/libdl.sl, only a /usr/lib/pa20_64/libdl.sl, therefore I conclude I have to compile SAP::RFC with 64bit. Unfortunately this doesn't work either: I downloaded the rfcsdk 6.40 HP-UX 64bit (PA-RISC) from the SAP Service Marketplace and put it in /usr/sap/rfcsdk. /opt/perl_64/bin/perl Makefile.PL worked fine, it doesn't complain about missing libraries:
Checking if your kit is complete...
Looks good
"make" works but shows some warnings:
cp lib/SAP/Config.pm blib/lib/SAP/Config.pm cp Rfc.pm blib/lib/SAP/Rfc.pm cp Idoc.pm blib/lib/SAP/Idoc.pm cp Iface.pm blib/lib/SAP/Iface.pm /opt/perl_64/bin/perl /opt/perl_64/lib/5.8.3/ExtUtils/xsubpp -typemap /opt/perl_64/lib/5.8 +.3/ExtUtils/typemap Rfc.xs > Rfc.xsc && mv Rfc.xsc Rfc.c cc -c -I/usr/sap/rfcsdk/include -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE + -Wl,+vnocompatwarnings +DD64 -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Ono +limit +Opromote_indirect_calls -DVERSION=\"1.39\" -DXS_VERSION=\"1.39\" +Z "-I/opt/perl_64/lib +/5.8.3/PA-RISC2.0-thread-multi-LP64/CORE" -DSUMITELSE Rfc.c cc: "Rfc.xs", line 215: warning 729: Argument #3 converts int* to long*. cc: "Rfc.xs", line 232: warning 729: Argument #3 converts int* to long*. cc: "Rfc.xs", line 1425: warning 562: Redeclaration of "call_handler" with a different storage clas +s specifier: "call_handler" will have internal linkage. Running Mkbootstrap for SAP::Rfc () chmod 644 Rfc.bs rm -f blib/arch/auto/SAP/Rfc/Rfc.sl LD_RUN_PATH="/usr/sap/rfcsdk/lib" /usr/bin/ld -b +vnocompatwarnings -L/lib/pa20_64 Rfc.o +-o blib/arch/auto/SAP/Rfc/Rfc.sl -lm -ldl -lpthread -L/usr/sap/rfcsdk/lib -lrfccm chmod 755 blib/arch/auto/SAP/Rfc/Rfc.sl cp Rfc.bs blib/arch/auto/SAP/Rfc/Rfc.bs chmod 644 blib/arch/auto/SAP/Rfc/Rfc.bs Manifying blib/man3/SAP::Config.3 Manifying blib/man3/SAP::Rfc.3 Manifying blib/man3/SAP::Idoc.3 Manifying blib/man3/SAP::Iface.3
"make test" always fails:
PERL_DL_NONLAZY=1 /opt/perl_64/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'bl +ib/lib', 'blib/arch')" t/*.t t/00use..../usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/ +usr/sap/rfcsdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__PureVirtualCalled' in load module '/usr/sap/rfc +sdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied data symbol '[Vtable]key:__dt__21__versioned_type_infoFv' in l +oad module '/usr/sap/rfcsdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied data symbol '[Vtable]key:__dt__21__versioned_type_infoFv' in l +oad module '/usr/sap/rfcsdk/lib/librfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__dl__FPv' in load module '/usr/sap/rfcsdk/lib/li +brfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__dla__FPv' in load module '/usr/sap/rfcsdk/lib/l +ibrfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__dla__FPv' in load module '/usr/sap/rfcsdk/lib/l +ibrfccm.sl'. /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__shlTerm' in load module '/usr/sap/rfcsdk/lib/li +brfccm.sl'. Can't load '/root/home/hpdmfo/SAP-Rfc-1.39/blib/arch/auto/SAP/Rfc/Rfc.sl' for module SAP::Rfc: Unre +solved external at /opt/perl_64/lib/5.8.3/PA-RISC2.0-thread-multi-LP64/DynaLoader.pm line 229. 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 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay

What do I do wrong?
Mark
Direct Responses: 1461 | Write a response
Posted on 2005-12-13 08:28:58-08 by chulinn in response to 1446
Re: Howto compile SAP-Rfc-1.39 on HP-UX?
Hello @,
finally I figured out myself how to compile SAP::Rfc.
- use the HP ANSI CC (gcc should also work)
- export LD_PRELOAD=/usr/lib/libcl.2 (to avoid some linker errors)
Can't shl_load() a library containing Thread Local Storage: /usr/lib/libcl.2
- use RFCSDK 4.6C 32bit, since the 6.20 and 6.40 versions of RFCSDK did not work for me
Cheers,
Mark
Direct Responses: Write a response