How to create shared C++ object and use them in datastage

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
harishvardhan
Premium Member
Premium Member
Posts: 14
Joined: Wed Feb 01, 2006 8:50 am
Contact:

How to create shared C++ object and use them in datastage

Post by harishvardhan »

How to create shared C++ code object and use them in datastage parallel routine . please give me all the steps that i need to create for this.
Harish vardhan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It's all documented so there's really no reason for someone to list "all of the steps" here. This is a good place to start, other official resources exist online as well. Then feel free to come back for help if you have any specific questions or issues.
-craig

"You can never have too many knives" -- Logan Nine Fingers
harishvardhan
Premium Member
Premium Member
Posts: 14
Joined: Wed Feb 01, 2006 8:50 am
Contact:

Post by harishvardhan »

i am getting this error
##W IIS-DSEE-TBLD-00000 17:14:39(003) <main_program> Error when checking composite operator: Output from subprocess: ld: 0711-736 ERROR: Input file /opt/IBM/InformationServer/Server/PXEngine/lib/liborchbuildopaix64.so:
XCOFF64 object files are not allowed in 32-bit mode.

can any one tell how to create an object file in AIX 6.1.
i am creating object file using this command

$ /usr/vacpp/bin/xlC_r -c <filename with extension>

with the above command the .o file will be created.

the datastage has the following ENV values


APT_COMPILER /usr/vacpp/bin/xlC_r
APT_LINKER /usr/vacpp/bin/xlC_r
APT_COMPILEOPT -O -q64 -c
APT_LINKOPT -G -q64
Harish vardhan
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Try this:-

APT_COMPILEOPT=-O -q64 -c
APT_COMPILER=/usr/vacpp/bin/xlC_r

$<APT_COMPILER> <APT_COMPILEOPT> File_name.cpp
harishvardhan
Premium Member
Premium Member
Posts: 14
Joined: Wed Feb 01, 2006 8:50 am
Contact:

Post by harishvardhan »

I compiled successfully using the options you specified.
but i am getting this error when i run this job
Xfm: Failed to load the library "V0S0_LdFactDemographic_Xfm.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 "V0S0_LdFactDemographic_Xfm": rtld: 0712-001 Symbol sumof__FiT1 was referenced
from module /var/opt/apps/etl/projects/AAP_EDW/RT_BP2692.O/V0S0_LdFactDemographic_Xfm.o(), but a runtime definition
of the symbol was not found.
rtld: 0712-002 fatal error: exiting..

please help.
Harish vardhan
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

very obvious error. Where is the object file stored for your custom px routine ? Is it part of the PATH env variable seen in the environment settings message of the job log?
Umbix62
Participant
Posts: 79
Joined: Mon Jan 16, 2006 2:47 pm

Post by Umbix62 »

I have the same problem. I execute all the steps described in this issue. The LIBPATH environment variable points to the folder containing the object file (file.o) but the Jobs aborts again reporting in its log the same message....
Post Reply