Solaris and SAP SDK RFC compilation

Hi guys,

I am stuck with an issue and i need help to solve.

I have to compile an extension for PHP which would help the server to connect to SAP server through PHP.

Binary is "SAP SDK RFC"

I have the binary downloaded from the SAP official website.

Server on which i have to install this is a solaris server with Sun_OS 5.9 on Sun-Fire-V490 Solaris Sparc

PHP version : PHP 5.2.14

when i compile this binary with the command:

cc -xc -I ../include -L ../lib sapinfo.c -lsocket -lnsl

I get this error
-----------------start---------------------------------------------

/var/tmp//ccAl6OXB.o(.text+0xd8): In function `nlsui_main':
: undefined reference to `RfcGetAllLibVersions'
/var/tmp//ccAl6OXB.o(.text+0x170): In function `nlsui_main':
: undefined reference to `RfcEnvironment'
/var/tmp//ccAl6OXB.o(.text+0x5ec): In function `nlsui_main':
: undefined reference to `RfcOpenEx'
/var/tmp//ccAl6OXB.o(.text+0x6b4): In function `nlsui_main':
: undefined reference to `RfcCall'
/var/tmp//ccAl6OXB.o(.text+0x6fc): In function `nlsui_main':
: undefined reference to `RfcListen'
/var/tmp//ccAl6OXB.o(.text+0x7f4): In function `nlsui_main':
: undefined reference to `RfcReceive'
/var/tmp//ccAl6OXB.o(.text+0x87c): In function `nlsui_main':
: undefined reference to `RfcClose'
/var/tmp//ccAl6OXB.o(.text+0xed8): In function `rfc_error':
: undefined reference to `RfcLastErrorEx'
collect2: ld returned 1 exit status

----------------end-------------------------------------------

Problem here is i dont know if there is a version conflict between the Solaris architecture and the SAP SDK RFC binary or any other issue.

has anyone faced this issue???

Any help would be blessing..

Regards