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
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)
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)
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)
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)