Page 1 of 1

parallel routine error: Failed to load the library

Posted: Wed Apr 20, 2016 4:27 pm
by India2000
Hi,

I get a following error running a parallel routine and is a new routine created on:

IBM XL C/C++ for AIX, V11.1 (5724-X13)
Version: 11.01.0000.0017

Failed to load the library "V0S3_Str_Transformer_3.o"; either the directory containing the library file
is not on the library search path, or the library was compiled on a system
that is incompatible with this system: Could not load "V0S3_Str_Transformer_3": rtld: 0712-001 Symbol Str__FPc was referenced from module /RT_BP2709.O/V0S3_Str_Transformer_3.o(), but a runtime definition of the symbol was not found.
rtld: 0712-002 fatal error: exiting..

Could anyone please let me know to resolve this issue?

Posted: Wed Apr 20, 2016 10:00 pm
by chulett
Start by doing an exact search for a unique part of your error message... I just used "either the directory containing the library file" and got almost 100 matches where people have posted the same error. I would suggest working through them, starting with the ones marked as Resolved.

Failed to load the library

Posted: Thu Aug 03, 2017 9:32 pm
by India2000
continuing on the same post..

this worked for simple Cpp function with no call to DS functions.

When I'm calling DS function
#include<stdio.h>
#include "/opt/.../dsapi.h"
char* projects()
{
char* prlist;
prlist=DSGetProjectList();
return prlist;
}

and after configuring the parallel routine, I get the below error:


Failed to load the library "V0S3_Job1_Tran.o"; either the directory containing the library file
is not on the library search path, or the library was compiled on a system
that is incompatible with this system: Could not load "V0S3_Job1_Tran": rtld: 0712-001 Symbol DSGetProjectList/opt/../InformationServer/Server/PXEngine/user_lib/libout.so was referenced
from module /opt/../InformationServer/Server/PXEngine/user_lib/libout.so(), but a runtime definition
of the symbol was not found..






Thanks,

Re: Failed to load the library

Posted: Fri Aug 04, 2017 6:35 am
by chulett
India2000 wrote:I cannot make any modification to dsenv as it requires DS restart.
:?

Posted: Fri Aug 04, 2017 1:00 pm
by UCDI
I have no idea what AIX needs.

This is what we use. You will need to add to it for multiple file sources of course. It may or may not be appropriate for your compile.

-O -fPIC -Wno-deprecated -m64 -mtune=generic -mcmodel=small -shared -m64 -c

Posted: Mon Aug 07, 2017 9:54 am
by UCDI
I found out where we got that from... in director, looking at the jobs, you can see the g++ compiler settings that the datastage server is using. We apparently copied from there. If it still isnt working for you, maybe you can try that approach.

Posted: Mon Aug 07, 2017 11:46 pm
by India2000
thanks UCDI.