DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
This topic has been marked "Resolved."
Author Message
sensiva



Group memberships:
Premium Members

Joined: 22 Aug 2017
Posts: 7

Points: 115

Post Posted: Mon May 28, 2018 2:15 am Reply with quote    Back to top    

DataStage® Release: 11x
Job Type: Parallel
OS: Unix
Hello,

I am getting the same error as noted here.

Code:
trfRoutine: Error when checking composite operator: Failed to load the library "V0S1_TestJob_trfRoutine.so"; 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 "V0S1_TestJob_trfRoutine": /xxxx/iws/xxx/xxx/xxx/RT_BP369.O/V0S1_TestJob_trfRoutine.so: undefined symbol: DSGetProjectList.


My routine works fine if there is no call to ds functions. I searched the site for similar other errors and implemented stuffs like updating the LD_lib path, shell search path, compiling with different other options provided in the site. I have not restarted the datastage server after making any of these changes as ours is a mutulaized server. Not sure if that is required as well.

ld path = /usr/lib:.:/bustools/oracle/product/12.1.0.2_client/lib:/bustools/wmq/800/lib64
shell search path = /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:.

I updated both the above paths to point to my object file but didnt work, i get the same error.

These are my compiler options
compiler OPT = -c -O -fPIC -Wno-deprecated -m64 -mtune=generic -mcmodel=small
compiler = g++

My programs is very simple
Code:
#include <stdio.h>
#include "/xxxx/iws/InformationServer/Server/DSEngine/include/dsapi.h"

char* projects1()
{
char* prlist;
prlist=DSGetProjectList();
return prlist;
}


Any pointers would be really helpful

Thanks

_________________
sen
PaulVL



Group memberships:
Premium Members

Joined: 17 Dec 2010
Posts: 1245

Points: 8171

Post Posted: Mon May 28, 2018 5:34 am Reply with quote    Back to top    

Did you do a Force Compile?

Maybe it can't find stdio.h ?
Rate this response:  
Not yet rated
sensiva



Group memberships:
Premium Members

Joined: 22 Aug 2017
Posts: 7

Points: 115

Post Posted: Mon May 28, 2018 6:26 am Reply with quote    Back to top    

Yes, i did force compile as well. As suggested, i manually added the stdio.h file, but didnt make any difference. As mentioned earlier, any non ds function works fine. Only the DS functions are failing with "unknown symbol" error

_________________
sen
Rate this response:  
Not yet rated
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 42621
Location: Denver, CO
Points: 219439

Post Posted: Mon May 28, 2018 9:04 am Reply with quote    Back to top    

Let's get you into your own post so you have control over its future... done.

_________________
-craig

And I'm hovering like a fly, waiting for the windshield on the freeway...
Rate this response:  
Not yet rated
ArndW

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup

Joined: 16 Nov 2004
Posts: 16311
Location: Germany
Points: 92496

Post Posted: Mon Jun 04, 2018 2:57 am Reply with quote    Back to top    

The Symbol "DSGetProjectList" is in the library (yourpath)/Server/DSEngine/lib/libvmdsapi.so

Is that Directory in your LD_LIBRARY_PATH at runtime?

_________________

Image
Rate this response:  
Not yet rated
sensiva



Group memberships:
Premium Members

Joined: 22 Aug 2017
Posts: 7

Points: 115

Post Posted: Wed Jun 20, 2018 7:02 am Reply with quote    Back to top    

Hi ArndW

No, this path is not in my LD_LIBRARY_PATH. We have usr/lib which contains most object files but not libvmdsapi.so. Thanks for pointing, after updating the lib path, it works fine

_________________
sen
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours