parallel routine error: Failed to load the library

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

parallel routine error: Failed to load the library

Post 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?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

Failed to load the library

Post 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,
Last edited by India2000 on Fri Aug 04, 2017 2:11 pm, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Failed to load the library

Post by chulett »

India2000 wrote:I cannot make any modification to dsenv as it requires DS restart.
:?
-craig

"You can never have too many knives" -- Logan Nine Fingers
UCDI
Premium Member
Premium Member
Posts: 383
Joined: Mon Mar 21, 2016 2:00 pm

Post 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
UCDI
Premium Member
Premium Member
Posts: 383
Joined: Mon Mar 21, 2016 2:00 pm

Post 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.
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

Post by India2000 »

thanks UCDI.
Post Reply