2007 Feb 02 12:54 AM
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.c2)
cp -p rfcexec.i rfcexec.ii3)
perl u16lit.pl rfcexec.ii4)
/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 rfcexecI 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 rfcexecld: 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.c2)
cp -p rfcexec.i rfcexec.ii3)
perl u16lit.pl rfcexec.ii4)
/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 rfcexecI 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 rfcexecld: 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
2007 Feb 02 3:17 PM
2007 Feb 02 11:03 PM
2007 Feb 05 3:16 PM
2007 Feb 13 7:10 PM
I've got the same problem. Does anybody compile/test/run this bloody rfcsdk examples on AIX 5.3 64bit using xlc ?
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 ?
2007 Feb 13 7:21 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |