jrm@
Developer
I'm working on porting a C++ application to FreeBSD. It's compiling, but a call to dlopen() is failing. Here's a code snippet.
The output is:
The library name is correct and has permissions -rwxr-xr-x.
I can post truss, nm, or objdump output if it's helpful.
Code:
static void *lib=NULL;
lib=dlopen(filename,RTLD_NOW);
const char* blah;
if(blah=dlerror()) {
info(filename);
cout << blah << "\n";
}
Code:
/home/jrm/cold/lib/cold/libCode61.so.1.0.0
Invalid shared object handle 0x802045cd0
I can post truss, nm, or objdump output if it's helpful.