on 01-31-2011 2:30 PM
Hi guys,
I need to intall saprfc extension on sun sparc system, so that i can program PHP to connect to the SAP system and extract data. I have the source downloaded from the SAP website.
SAPRFC source - "Solaris_SPARC_64bit"
PHP version - "PHP 5.2.14"
I tried to compile the source "Solaris_SPARC_64bit" using the agruments which was there under the readme file inside the source directory.
$cc -xc -I ../include -L ../lib sapinfo.c -o sapinfo -lsocket -lnsl -ldl -lm -lw
It gave me an error as :
-
Start----
/var/tmp//ccuP1Mhy.o(.text+0xd8): In function `nlsui_main':
: undefined reference to `RfcGetAllLibVersions'
/var/tmp//ccuP1Mhy.o(.text+0x170): In function `nlsui_main':
: undefined reference to `RfcEnvironment'
/var/tmp//ccuP1Mhy.o(.text+0x5ec): In function `nlsui_main':
: undefined reference to `RfcOpenEx'
/var/tmp//ccuP1Mhy.o(.text+0x6b4): In function `nlsui_main':
: undefined reference to `RfcCall'
/var/tmp//ccuP1Mhy.o(.text+0x6fc): In function `nlsui_main':
: undefined reference to `RfcListen'
/var/tmp//ccuP1Mhy.o(.text+0x7f4): In function `nlsui_main':
: undefined reference to `RfcReceive'
/var/tmp//ccuP1Mhy.o(.text+0x87c): In function `nlsui_main':
: undefined reference to `RfcClose'
/var/tmp//ccuP1Mhy.o(.text+0xed8): In function `rfc_error':
: undefined reference to `RfcLastErrorEx'
collect2: ld returned 1 exit status
-
END----
Can you guys help me to solve this issue.
Regards,
Vipin
I'm not an expert (I'm a Perl guy) but 2 questions arise immediately:
1) Do you have the sap nwrfcsdk downloaded from SAP and installed?
2) Have you set your LD_LIBRARY_PATH?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.