Hi Everybody,
I am getting following error message during execution of my c++ executable "ofsrm" . I am using AIX 6.1 OS LEVEL 6100-09 with Oracle 11g database. Any suggestion on the same?
Could not load program ofsrm: rtld: 0712-001 Symbol GetOracleDriver__FiPc was referenced from module /build1/build/SourcePro/ficdb/lib/libFSGBU/libaccess.a(libaccess.o), but a run time definition of the symbol was not found. rtld: 0712-002 fatal error: exiting.
I checked my executable with ldd . It is loading all the library other than liboci.a . I have also added the corresponding path in LIB_PATH . Still same issue is coming.
The symbol was there when you compiled, so something is amiss in your environment. I like 'ldd -rsv' to see more detail. Google says that's '$LIBPATH' !
Hi,
Following is the sample program. Same is working in AIX6.1 OS Level 6100-04 but showing following error in the AIX 6.1 OS LEVEL 6100-09 with Oracle11g .
test.cpp
#include<iostream>
using namespace std;
int main()
{
cout<<"Test Program."<<endl;
return 1;
}
./testExe
Could not load program testExe:
rtld: 0712-001 Symbol GetOracleDriver__FiPc was referenced
from module /build1/build/SourcePro/ficdb/lib/libFSGBU/libaccess.a(libaccess.o), but a runtime definition
of the symbol was not found.
rtld: 0712-002 fatal error: exiting.
Apparently AIX has a very limited ldd command. However, when you compiled, all symbols were resolved. Somewhere in the compile is a full path to a library or object, or an -L option that specifices where to find dynamic objects, or a -R PATH, and you need that directory/PATH in the exported LIBPATH environment variable. The linking part of the compile is described in the ld command: IBM Knowledge Center
An additional way to debug is to use dump -H of the executable as well as the libraries.
Seeing the output of the program when it fails is also useful for debugging. You need to read the error message carefully as it tells you which member it is loading and that member cannot find a dependency - and which dependency iit is missing.
Or have you solved this already?
If so, please share your solution!
---------- Post updated at 12:33 PM ---------- Previous update was at 12:18 PM ----------
Errr... Preview threw it all away. So, short version.
ofsrm <> testExe
Based on the error message I would compare dump -H of the following files: