POSIX function to dynamically load a library or binary into memory
Questions tagged [dlopen]
685 questions
-1
votes
1 answer
dlopen for different libraries? C
Hi I am working on a program that works like this:
./Filters File [filters...]
The filters can be a lot of .so libraries that I want to create myself and aply them to the File. But all of the libraries have the same function process(a1,a2,a3), it's…

DavidCG
- 141
- 1
- 1
- 10
-1
votes
1 answer
Expose an interface of a class loaded from a framework at runtime
I want to load and manipulate SKUIImageColorAnalyzer and
SKUIAnalyzedImageColors objects from the private StoreKitUI.framework.
First, I attempt to load the framework at runtime:
guard case let libHandle =…

JAL
- 41,701
- 23
- 172
- 300
-1
votes
3 answers
Doing memcpy without allocating memory with malloc before
I am asking myself why this piece of code works well when I haven't allocated memory for fptr. I would expect that it has rather an Undefined Behavior because of doing memcpy without allocating memory for fptr or?
struct conf *pconf = NULL;
void…

user3329849
- 9
- 1
- 2
-1
votes
1 answer
../src/libssh.so.4.3.0: undefined reference to `dlopen'
Installing libssh for ssh call on C.
Ubuntu 13.04
apt-get install gcc --fine
apt-get install cmake -fine
wget openssl-1.0.1e.tar.gz --fine
tar -xzvf openssl-1.0.1e.tar.gz --fine
./config --prefix=/usr/local --openssldir=/usr/local/openssl…

user2817419
- 1
- 1
-1
votes
2 answers
dlopen/dlclose with couple of so, blocked on dlopen
Two different so dlopen & dlclose couple of times, blocked on dlopen.
Hangs on dlopen, which outputs nothing, cpuidle down to 0%, and couldn't quit via ctrl+c.
LOG_TRACE("attaching...");
handle = dlopen(plugin_path.c_str(),…

user2530422
- 109
- 8
-1
votes
1 answer
Error with dlopen
i'm loading dynamic lib (in python via ctypes) and get such error:
OSError: dlopen(mlib.dylib, 6): Symbol not found: _NSLocalizedDescriptionKey
Referenced from: /Users/abc/work/as/mlib.dylib
Expected in: flat namespace
in…

user1261347
- 315
- 2
- 15
-2
votes
1 answer
Symbol not found using dlopen in Python
I compiled BlockSci in macOS High Sierra 10.13.6. This created /usr/local/lib/libblocksci.dylib. I used pip3 to install the blocksci Python analysis library and this created…

Hahnemann
- 4,378
- 6
- 40
- 64
-2
votes
1 answer
An invalid value is passed to a function dynamically loaded from a shared library
Im getting function dynamically from shared library on android 4.4 /system/lib/libgui.so
#include
#include
#include
#include
#include
#include
#include
#define LOGI(...)…

Defernus
- 11
- 3
-3
votes
2 answers
Undefined reference error when using class objects with C++
I had gone through multiple stack overflow posts and tried to implement following example that uses dlopen with c++ objects class
I have following code.
1) File hello.cc
#include
#include "hello.h"
A::A() {
init1();
}
void A::init1()…

TechEnthusiast
- 273
- 4
- 18
-5
votes
1 answer
Should i do malloc() before using dlopen()?
Below shown is the code snippet i am using. Should I allocate space using malloc before doing dlopen?
void* pvHandle = NULL;
/* Dynamically loading library */
pvHandle = dlopen ("libame.so", RTLD_LAZY | RTLD_GLOBAL);
if (!pvHandle)
{
…

A R
- 2,697
- 3
- 21
- 38