Solaris and SAP SDK RFC compilation


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris and SAP SDK RFC compilation
# 1  
Old 02-01-2011
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:
Code:
cc -xc -I ../include -L ../lib sapinfo.c -lsocket -lnsl

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

Code:
/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

Last edited by pludi; 02-01-2011 at 12:28 PM.. Reason: code tags, please
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Programming

Header file compilation using gcc in Sparc Solaris

I am facing problem while migrating the c++ code from Linux to Solaris. In linux the code is absolutly compiled fine with GCC compiler but when i am using the same in Solaris it coomplains bash-3.1$ gcc LibSip.h gcc: Compilation of header file requested The same command is working fine in... (2 Replies)
Discussion started by: mrupesh74
2 Replies

2. Solaris

Solaris : compilation error

Hi All, while building, i am receiving the following error...... Undefined first referenced symbol in file void os_directory::create(const std::string &) obj.release/BOConfig.o (symbol belongs to implicit dependency... (2 Replies)
Discussion started by: vinod_kumar_k
2 Replies

3. Shell Programming and Scripting

speeding up the compilation on SUN Solaris environment

Dear friends, Please let me know how do I increase the speed of my compilation in SUN Solaris environment. actually I have many subfolders which contains .cc files. when I compile makefile at the root it will take much time to compile all the subfolders and generates object(.o) files. Can... (2 Replies)
Discussion started by: swamymns
2 Replies

4. UNIX for Dummies Questions & Answers

compilation diff between aix & solaris

what is the difference in awk stmt for awk in Aix & SOLARIS files="$@" for filename in $files do awk ' BEGIN { if ( FILENAME ~ ".*bad.trans.dsm" ) code = "bad"; else if ( FILENAME ~ ".*here.*.dsm" ) code = "here"; else ... (2 Replies)
Discussion started by: ls1429
2 Replies
Login or Register to Ask a Question