Calling Shared Library

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Calling Shared Library

Post by admin »

Hi All,

I am trying to create a parallel routine in DataStage version 7.0 which will
call a unix shared library. I was able to create the shared library and the
parallel function from datastage designer but getting an error while calling
the parallel function from transformer. The error is coming at the time of
runing not compilation.. The error is given below..

"Transformer_2: Failed to load the library
"V9S3_PxDirFirstThree1_Transformer_2.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
"V9S3_PxDirFirstThree1_Transformer_2".

Waiting for suggession.

Regards

Amitava Ghosh
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Calling Shared Library

Post by admin »

Does the environment variable that controls the search path for shared libraries (LD_LIBRARY_PATH or SHLIB_PATH depending on what kind of UNIX you're on) include the directory in which V9S3_PxDirFirstThree1_Transformer_2.o resides?
Was the library compiled, linked, etc., on this system?

----- Original Message -----
From: "AmitavaJr_Ghosh"
Date: Wed, 12 Nov 2003 15:16:56 +0530
To:
Subject: Calling Shared Library

> Hi All,
>
> I am trying to create a parallel routine in DataStage version 7.0 which will
> call a unix shared library. I was able to create the shared library and the
> parallel function from datastage designer but getting an error while calling
> the parallel function from transformer. The error is coming at the time of
> runing not compilation.. The error is given below..
>
> "Transformer_2: Failed to load the library
> "V9S3_PxDirFirstThree1_Transformer_2.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
> "V9S3_PxDirFirstThree1_Transformer_2".
>
> Waiting for suggession.
>
> Regards
>
> Amitava Ghosh
>
>
>

>
> DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Se
> rvices takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you.
>
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Calling Shared Library

Post by admin »

1. Yes I have set the LD_LIBRARY_PATH, LIBPATH and PATH variables for
V9S3_PxDirFirstThree1_Transformer_2.o in DSENV file.. I am using AIX and
visualage C++ compiler..

2. while creating shared library , I have used the following commands
xlC test.c -c

xlC -qmkshrob -o test.so test.o

ar rv test.a test.so ( .a means archive file)

Still the same error is coming..

Regards

Amitava





----- Original Message -----
From: "Ray Wurlod"
To:
Sent: Wednesday, November 12, 2003 4:56 PM
Subject: Re: Calling Shared Library


> Does the environment variable that controls the search path for shared
libraries (LD_LIBRARY_PATH or SHLIB_PATH depending on what kind of UNIX
you're on) include the directory in which
V9S3_PxDirFirstThree1_Transformer_2.o resides?
> Was the library compiled, linked, etc., on this system?
>
> ----- Original Message -----
> From: "AmitavaJr_Ghosh"
> Date: Wed, 12 Nov 2003 15:16:56 +0530
> To:
> Subject: Calling Shared Library
>
> > Hi All,
> >
> > I am trying to create a parallel routine in DataStage version 7.0 which
will
> > call a unix shared library. I was able to create the shared library and
the
> > parallel function from datastage designer but getting an error while
calling
> > the parallel function from transformer. The error is coming at the time
of
> > runing not compilation.. The error is given below..
> >
> > "Transformer_2: Failed to load the library
> > "V9S3_PxDirFirstThree1_Transformer_2.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
> > "V9S3_PxDirFirstThree1_Transformer_2".
> >
> > Waiting for suggession.
> >
> > Regards
> >
> > Amitava Ghosh
> >
> >
> >
>
> >
> > DISCLAIMER: The information contained in this message is intended only
and solely for the addressed individual or entity indicated in this message
and for the exclusive use of the said addressed individual or entity
indicated in this message (or responsible for delivery of the message to
such person) and may contain legally privileged and confidential information
belonging to Tata Consultancy Services. It must not be printed, read,
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by
any person other than the addressee. Unauthorized use, disclosure or copying
is strictly prohibited and may constitute unlawful act and can possibly
attract legal action, civil and/or criminal. The contents of this message
need not necessarily reflect or endorse the views of Tata Consultancy
Services on any subject matter. Any action taken or omitted to be taken
based on this message is entirely at your risk and neither the originator of
this message nor Tata Consultancy Se
> > rvices takes any responsibility or liability towards the same.
Opinions, conclusions and any other information contained in this message
that do not relate to the official business of Tata Consultancy Services
shall be understood as neither given nor endorsed by Tata Consultancy
Services or any affiliate of Tata Consultancy Services. If you have received
this message in error, you should destroy this message and may please notify
the sender by e-mail. Thank you.
> >
>
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Locked