Parallel routine error
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
Parallel routine error
I am getting the following error when i used parallel routine in a transformer.I wrote c++ code and i compiled and produced *.o
file and i used that file in the library path of the parallel routine dialogbox.
I got following fatal error when i ran the job and then it aborted.
Transformer_3: Failed to load the library "V0S3_testPR_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_testPR_Transformer_3": rtld: 0712-001 Symbol PMExists__Fi was referenced
from module /IISPROJECTS/Sales/RT_BP3065.O/V0S3_testPR_Transformer_3.o(), but a runtime definition
of the symbol was not found..
Used Object File option while creating the parallel routine in DataStage. Provide the path of the object file(.o). The external name provided will be the name of my function as its in the code.
Thanks
Venkat
file and i used that file in the library path of the parallel routine dialogbox.
I got following fatal error when i ran the job and then it aborted.
Transformer_3: Failed to load the library "V0S3_testPR_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_testPR_Transformer_3": rtld: 0712-001 Symbol PMExists__Fi was referenced
from module /IISPROJECTS/Sales/RT_BP3065.O/V0S3_testPR_Transformer_3.o(), but a runtime definition
of the symbol was not found..
Used Object File option while creating the parallel routine in DataStage. Provide the path of the object file(.o). The external name provided will be the name of my function as its in the code.
Thanks
Venkat
Re: Parallel routine error
Can you post the C++ code as well? It will give us a better idea about the error.
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
#include <string>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
//================================
int PMExists(string& elem)
{
size_t startpos = elem.find_first_not_of(" \t\n");
size_t endpos = elem.find_last_not_of(" \t\n");
int ans =0;
if((string::npos != startpos) && ( string::npos != endpos))
{
// elem=elem.substr( startpos, endpos-startpos+1 );
ans=1;
}
// else elem=""; return elem;
return ans;
}
#include <stdlib.h>
#include <stdio.h>
using namespace std;
//================================
int PMExists(string& elem)
{
size_t startpos = elem.find_first_not_of(" \t\n");
size_t endpos = elem.find_last_not_of(" \t\n");
int ans =0;
if((string::npos != startpos) && ( string::npos != endpos))
{
// elem=elem.substr( startpos, endpos-startpos+1 );
ans=1;
}
// else elem=""; return elem;
return ans;
}
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
#include <string>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
//================================
int PMExists(string& elem)
{
size_t startpos = elem.find_first_not_of(" \t\n");
size_t endpos = elem.find_last_not_of(" \t\n");
int ans =0;
if((string::npos != startpos) && ( string::npos != endpos))
{
// elem=elem.substr( startpos, endpos-startpos+1 );
ans=1;
}
// else elem=""; return elem;
return ans;
}
#include <stdlib.h>
#include <stdio.h>
using namespace std;
//================================
int PMExists(string& elem)
{
size_t startpos = elem.find_first_not_of(" \t\n");
size_t endpos = elem.find_last_not_of(" \t\n");
int ans =0;
if((string::npos != startpos) && ( string::npos != endpos))
{
// elem=elem.substr( startpos, endpos-startpos+1 );
ans=1;
}
// else elem=""; return elem;
return ans;
}
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
Hmmm, I can't quite comment on WHY it doesn't exist. Hopefully some of the experts will take notice of this post and write about possible reasons. But, can you just create a user defined environment variable for your project and use it in your job - just have the LD_LIBRARY_PATH equal to the URL of the folder where you have deployed the object file.
It took me fifteen years to discover I had no talent for ETL, but I couldn't give it up because by that time I was too famous.
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
-
- Participant
- Posts: 80
- Joined: Sat Mar 18, 2006 10:27 pm
-
- Participant
- Posts: 342
- Joined: Tue Nov 04, 2008 10:38 am
- Location: Chennai, India