cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation/Linking of SAPRFC SDK on Linux

Former Member
0 Kudos

Dear All,

I have downloaded SAPRFC SDK version 6.4 ia32 bit for Linux. I am trying to compile sample code which is with SDK but getting lots of error as below. I am doubting about the mismatch of Linux version/compiler version.

I am using gcc 3.2 and Linux EL3( $uname -a

Linux localhost.localdomain 2.4.21-27.EL #1 Wed Dec 1 22:08:15 EST 2004 i686 i686 i386 GNU/Linux)

Can anyone guide us to resolve the issue.

Thanks & Regards,

Manish Mittal

===========================================================

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x637): In function `xmlprintbuf':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x2c6d): In function `get_parameter_from_file':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x2dd8): In function `get_parameter_from_file':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x721f): In function `RfcQueueInsert':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x183e4): In function `normalizeOption':

: undefined reference to `__ctype_tolower'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x1bd44): In function `RfcNormalizeTabOrFldName':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x1cbf6): In function `ComputeNextField':

: undefined reference to `__ctype_tolower'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x1cc14): In function `ComputeNextField':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x1d2ce): In function `RfcStructureToFile50':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x1d419): In function `RfcStructureToFile50':

: undefined reference to `__ctype_tolower'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x1e10a): In function `RfcGetStructureInfoAsTable':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x1ea45): In function `RfcGetFunctionInfoAsTable':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x1f5a5): In function `RfcAlignFunctionInterface':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x2cd4a): In function `ab_dumpreg(char *, unsigned int, unsigned char *, unsigned int)':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x35156): In function `ab_rfcScanKey':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x36c3d): In function `RfcRaiseTables':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x36c43): In function `RfcRaiseTables':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x4749a): In function `langRepresent':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x4d155): In function `copy_upper':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x4d416): In function `rfcio_setopt':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x4d44e): In function `rfcio_setopt':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x4e562): In function `rfcerrtrc':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x4f5b9): In function `rfc_hexdump':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6469b): In function `UTF8_mapEncoding':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6a1dd): In function `escape_to_xml_default':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6a30d): In function `escape_to_xml_default':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6a4c9): In function `escape_to_xml_to_lower':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6a5fb): In function `escape_to_xml_to_lower':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6a609): In function `escape_to_xml_to_lower':

: undefined reference to `__ctype_tolower'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6a7fa): In function `escape_to_xml_mixed':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6a808): In function `escape_to_xml_mixed':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6a9db): In function `escape_to_xml_mixed':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6a9f3): In function `escape_to_xml_mixed':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6aa01): In function `escape_to_xml_mixed':

: undefined reference to `__ctype_tolower'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6acaf): In function `escape_to_abap_default':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6ada4): In function `escape_to_abap_to_upper':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6ae10): In function `escape_to_abap_to_upper':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6af08): In function `escape_to_abap_mixed':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6afce): In function `escape_to_abap_mixed':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6b020): In function `escape_to_abap_mixed':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6b0f3): In function `escape_to_abap_mixed':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(rfcilib.o)(.text+0x6b1a6): In function `escape_to_abap_mixed':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0xd84): In function `sap_cmilogin':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0xe54): In function `sap_cmilogin':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0xf3b): In function `sap_cmilogin':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x1017): In function `sap_cmilogin':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x10ec): more undefined references to `__ctype_toupper' follow

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x1759): In function `TranslConvTab':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x2f6b5): In function `rstrdump':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x2ffdf): In function `sap_str2llong':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x32176): In function `CTrcINewComp':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x32942): In function `CTrcSwitch':

: undefined reference to `__ctype_tolower'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x32a54): In function `CTrcActComps':

: undefined reference to `__ctype_tolower'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x32b2f): In function `CTrcActComps':

: undefined reference to `__ctype_tolower'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x355ee): In function `DpTrcPatternMatch':

: undefined reference to `__ctype_toupper'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x48283): In function `SncIProfileParam':

: undefined reference to `__ctype_b'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x4b887): In function `NiIInitSocket(int, SI_SOCK *)':

: undefined reference to `__throw'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x4b891): In function `NiIInitSocket(int, SI_SOCK *)':

: undefined reference to `__start_cp_handler'

/home/oracle/Hutch/SAPServer/LIB/librfc.a(cpictlib.o)(.text+0x4b89e): In function `NiIInitSocket(int, SI_SOCK *)':

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you are running RHEL3 U4, correct?

RHEL3 uses glibc-2.3.2, which is in some ways incomaptible with glibc 2.2.

The RFC SDK libs you want to use, were build against glibc-2.2 though and therefore need some of those symbols.

One possible solution to this is to provide the missing symbols on your own.

Check <http://www.ticam.utexas.edu/misc/ctype.c> for this approach.

Regards,

Oliver

Former Member
0 Kudos

I had the same problem.

I found the solution in SAP n° Note 955397 ( RFC SDK on linux).

In resum, they are some incompatibily betwean gcc version, glic version and library RFC version..

On my system, we had :

gcc version 4.1.1

glibc version 2.5

RFC library version 640

With this versions, we had the same compilation error.

We upgraded RFC library on version 700, and all works !!

Answers (0)