Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help Me Compile Example RFCEXEC.C! **PICS**

Former Member
0 Likes
1,025

First:

OS: IBM AIX 5.3

Compiler:IBM XL C V8.0

SAP Version: SAP ECC 6.0 Unicode

I need major help guys. My company had a Custom RFC Program that worked

fine with older versions of SAP. Now, I cannot get the program to compile with

the new RFCSDK (64bit, Unicode version).

So, I decided to go back to the drawing board and see if I could compile

and execute the RFCEXEC.C Program that came with the RFCSDK (64bit, Unicode).

I pulled up the "rfcapiu.htm" document that was provided with the

RFCSDK and began reading. I noticed that there is a three step process provided

when compiling with unicode. The process involves an SAP Provided Perl Script for converting Unicode symbols to "regular" symbols so that not Unicode (UTF-16) compilers can understand the code.

I followed this procedure, here are my exact steps below:

1)

/usr/vac/bin/cc -b64 -DSAPwithUNICODE -DRFCSDKwithoutUTF16_LITERALS 
-I/usr/sap/XM1/SYS/exe/run/rfcsdk/include -P rfcexec.c

2)

cp -p rfcexec.i rfcexec.ii

3)

perl u16lit.pl rfcexec.ii

4)

/usr/vac/bin/cc -b64 -DSAPwithUNICODE -DRFCSDKwithoutUTF16_LITERALS -I 
/usr/sap/XM1/SYS/exe/run/rfcsdk/include -L  
/usr/sap/XM1/SYS/exe/run/rfcsdk/lib/librfcu.a 
/usr/sap/XM1/SYS/exe/run/rfcsdk/lib/librfcum.o rfcexec.i -o rfcexec

I then get this error:

ld: 0711-738 ERROR: Input file /lib/crt0.o:

XCOFF32 object files are not allowed in 64-bit mode.

A google search tells me to put "crt0_64.o" in my -L Path.

I then execute the line below and the same result happens.

/usr/vac/bin/cc -b64 -DSAPwithUNICODE -DRFCSDKwithoutUTF16_LITERALS -I 
/usr/sap/XM1/SYS/exe/run/rfcsdk/include -L /usr/ccs/lib/crt0_64.o 
/usr/sap/XM1/SYS/exe/run/rfcsdk/lib/librfcu.a 
/usr/sap/XM1/SYS/exe/run/rfcsdk/lib/librfcum.o rfcexec.i -o rfcexec

ld: 0711-738 ERROR: Input file /lib/crt0.o:

XCOFF32 object files are not allowed in 64-bit mode.

I cannot compile the old custom RFC Program, and I cannot even compile the example RFC Program that came with the RFCSDK.

I cannot solve this issue, and it has been ruining my work and personal

life for the past week. Can anyone please help me to compile this example

RFCEXEC.C program successfully?

Here is the picture I promised:

My 2004 GTO and my 1966 GTO

http://ls1gto.com/forums/attachment.php?attachmentid=12070&stc=1

I would forever be in your debt, Thank you.

-Nick

Message was edited by:

Nick Gorski

First:

OS: IBM AIX 5.3

Compiler:IBM XL C V8.0

SAP Version: SAP ECC 6.0 Unicode

I need major help guys. My company had a Custom RFC Program that worked

fine with older versions of SAP. Now, I cannot get the program to compile with

the new RFCSDK (64bit, Unicode version).

So, I decided to go back to the drawing board and see if I could compile

and execute the RFCEXEC.C Program that came with the RFCSDK (64bit, Unicode).

I pulled up the "rfcapiu.htm" document that was provided with the

RFCSDK and began reading. I noticed that there is a three step process provided

when compiling with unicode. The process involves an SAP Provided Perl Script for converting Unicode symbols to "regular" symbols so that not Unicode (UTF-16) compilers can understand the code.

I followed this procedure, here are my exact steps below:

1)

/usr/vac/bin/cc -b64 -DSAPwithUNICODE -DRFCSDKwithoutUTF16_LITERALS 
-I/usr/sap/XM1/SYS/exe/run/rfcsdk/include -P rfcexec.c

2)

cp -p rfcexec.i rfcexec.ii

3)

perl u16lit.pl rfcexec.ii

4)

/usr/vac/bin/cc -b64 -DSAPwithUNICODE -DRFCSDKwithoutUTF16_LITERALS -I 
/usr/sap/XM1/SYS/exe/run/rfcsdk/include -L  
/usr/sap/XM1/SYS/exe/run/rfcsdk/lib/librfcu.a 
/usr/sap/XM1/SYS/exe/run/rfcsdk/lib/librfcum.o rfcexec.i -o rfcexec

I then get this error:

ld: 0711-738 ERROR: Input file /lib/crt0.o:

XCOFF32 object files are not allowed in 64-bit mode.

A google search tells me to put "crt0_64.o" in my -L Path.

I then execute the line below and the same result happens.

/usr/vac/bin/cc -b64 -DSAPwithUNICODE -DRFCSDKwithoutUTF16_LITERALS -I 
/usr/sap/XM1/SYS/exe/run/rfcsdk/include -L /usr/ccs/lib/crt0_64.o 
/usr/sap/XM1/SYS/exe/run/rfcsdk/lib/librfcu.a 
/usr/sap/XM1/SYS/exe/run/rfcsdk/lib/librfcum.o rfcexec.i -o rfcexec

ld: 0711-738 ERROR: Input file /lib/crt0.o:

XCOFF32 object files are not allowed in 64-bit mode.

I cannot compile the old custom RFC Program, and I cannot even compile the example RFC Program that came with the RFCSDK.

I cannot solve this issue, and it has been ruining my work and personal

life for the past week. Can anyone please help me to compile this example

RFCEXEC.C program successfully?

Here is the picture I promised:

My 2004 GTO and my 1966 GTO

http://ls1gto.com/forums/attachment.php?attachmentid=12070&stc=1

I would forever be in your debt, Thank you.

-Nick

Message was edited by:

Nick Gorski

5 REPLIES 5
Read only

Former Member
0 Likes
914

bump.

Read only

Former Member
0 Likes
914

bump++;

Read only

Former Member
0 Likes
914

bump

Read only

0 Likes
914

I've got the same problem. Does anybody compile/test/run this bloody rfcsdk examples on AIX 5.3 64bit using xlc ?

  1. xlc -q64 -brtl -bnortllib -L../lib -L../lib/librfcum.o -L../libsapu16_mt.so -L../lib/libsapucum.so -o sapinfo sapinfo.o -bnoquiet

(ld): setopt 64

(ld): halt 4

(ld): setopt rtl

(ld): setopt nortllib

(ld): setopt symbolic:1

(ld): lrgpage 0

(ld): savename sapinfo

(ld): filelist 4 1

(ld): i /lib/crt0_64.o

(ld): i sapinfo.o

ld: 0711-738 ERROR: Input file sapinfo.o:

XCOFF32 object files are not allowed in 64-bit mode.

INSERT: The return code is 8.

somebody knows what to hell is going on ?

Read only

0 Likes
914

The problem you are having is due to you are compiling with a 32bit version of sapinfo.o. Have your SAP admin install the 64bit version of the RFCSDK.