Page 1 of 1

The passion of writing PX Routine, not paying off

Posted: Tue Nov 14, 2006 2:35 pm
by Sanket_Saraph
Hi DS Gurus,

I have written a simple PX routine.
For this I wrote simple C code which just returns simple int value.
Then compiled the code with gcc & created the object file.

Now when I am calling that routine from a PX transformer, getting following compilation error :cry:

Transformer_221: Failed to load the library "V0S221_PXRoutine_Transformer_221.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 "V0S221_PXRoutine_Transformer_221": ld.so.1: osh: fatal: relocation error: file /home_new/dsadm/Ascential/DataStage/Projects/NPM2PXDEV1/RT_BP2947.O/V0S221_PXRoutine_Transformer_221.so: symbol __1cLTestSanket16F_i_: referenced symbol not found.

Please share your suggestions and experiences on the same 8) .

Thanks in advance,
Sanket...

Posted: Tue Nov 14, 2006 2:50 pm
by seanc217
Try to compile it as an object and not a shared object. I could never get .so files to work, but I got .o files to work.

Hope this helps.

Posted: Tue Nov 14, 2006 3:48 pm
by clshore
I noticed that you compiled with gcc, what UNIX platform are you on?
ISTR that they tightened up on supported compilers, if you read the release notes there is more info.
I was able to create a PX routine, just followed the instructions in the documentation. Can't remember if it was *.o or *.so though.

Carter