Questions tagged [libdl]
19 questions
6
votes
0 answers
Exception Access Violation Error when executing C code within Julia Programming language
I am following along with some example code from JuliaAcademy (https://github.com/JuliaAcademy).
I am trying to run C code from within Julia. I am using Windows 10, 64-bit and I have gcc installed on my computer and the Atom IDE to run Julia.
Here…

DarkLink
- 355
- 4
- 16
5
votes
0 answers
How to link with libdl library in cmake
My application depends on OpenSSL. So, I downloaded and built OpenSSL, and placed the static libraries (libssl.a and libcrypto.a) I require in known directory I have control over. In my application's cmake file, I use the find_library command to…

Mike Finch
- 746
- 1
- 7
- 20
3
votes
0 answers
How to install libdl.so on linux contianers?
I am using Visual Studio .net Core with Linux Docker Contianers.
I am attempting to use dlopen, which is part of the libdl.so library.
I get:
DllNotFoundException
.
Unable to load shared library libdl.so or one of its dependencies
I was going to…

Jimmer Flash
- 31
- 6
3
votes
1 answer
How can "plugins" loaded by libdl refer to symbols in the program which loaded them?
Imagine that you have an application with a plugin based architecture, where each plugin is a *.so file that is dynamically loaded with dlopen().
The main application can refer to symbols via dlsym(), and so it may call functions of the plugin. How…

brenns10
- 3,109
- 3
- 22
- 24
2
votes
0 answers
how to modify glibc dynamic linker to use with an x86 interpreter that doesn't support static binary?
I don't know if I can ask these kind of question here but I do it anyway.
I'm trying to run 32-bit linux binaries in the browser in doing so I compiled box86 to wasm (box86js) and run couples of simple binaries directly in the browser.
now I want a…

raoof
- 538
- 1
- 6
- 12
2
votes
1 answer
How can I find the DynaLoader mapping of module names to opaque pointers?
According to the docs on DynaLoader
dl_unload_file() Dynamically unload $libref, which must be an opaque 'library reference' as returned from dl_load_file. Returns one on success and zero on failure. This function is optional and may not…

Evan Carroll
- 78,363
- 46
- 261
- 468
2
votes
1 answer
Buildroot: how to add libraries
I am working on a buildroot project to make a small custom os. I only include the absolute necessary packages. One of the things I add is a precompiled program that uses certain libraries that are not included on the system. I want the system to…

Steven
- 131
- 1
- 8
1
vote
1 answer
Weird Backtrace After a Call Instruction Targeting Signal Functions
I tried to trace evince-3.28.4 execution using GDB. There is a callq instruction at some point in libdl, which is shown below (i.e., at _dl_lookup_symbol_x+840):
│0x7ffff7de03f5 <_dl_lookup_symbol_x+837> mov %rbx,%rsi …

TheAhmad
- 810
- 1
- 9
- 21
1
vote
0 answers
How to fix: Undefined undefined reference to symbol 'dlclose@@GLIBC_2.2.5 - libdl.so missing from CL
I've been porting this code to work with opencv3.
https://github.com/anhttran/extreme_3d_faces
So far I have made it through most of the compilation but I keep getting this error when its almost complete. I have looked at a number of occurances of…

spiketg
- 11
- 1
- 4
0
votes
0 answers
No rule to make target '/usr/lib/x86_64-linux-gnu/libdl.a'
I am developing a C++ project which mostly was developed in my local machine.
It consists of the following folders:
installations/ #repository where I installed all the dependencies of my code
src/
applications/
It builds/compiles/run without no…

NCLibardi
- 1
- 1
0
votes
1 answer
Tesseract .net on macos, how to reference libdl.dylib on macOS12?
I'm running a .net application that requires a reference to libdl.so
System.DllNotFoundException : Unable to load shared library 'libdl.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the…

jamesdlivesinatree
- 1,016
- 3
- 11
- 36
0
votes
1 answer
How to fix ImportError: System.DllNotFoundException: libdl.so
When I tried to import aesim.simba (power electronics package) in Jupyter notebook (I have Ubuntu budgie 21.10 as operating system), I got the following error
import…

Messaoud Makhlouf
- 51
- 3
0
votes
1 answer
dynamically loading a function in a shared library causes a segmentation fault
I have this simple library
lib.h:
int lib()
lib.c:
#include
#include
#define VK_NO_PROTOTYPES
#include
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr;
PFN_vkEnumerateInstanceLayerProperties…

Jim Morrison
- 401
- 4
- 9
0
votes
0 answers
Warning: Unfamiliar unsecured document opened
I am editing a Word document in Genero Enterprise. Before opening the document I receive the following warning:
This translates to:
Unfamiliar unsecured document opened.
This suggests that the user who created the document is not the same as the…

Ajita Gupta
- 1
- 1
0
votes
0 answers
How to specify gcc to use "libdl.so.2" library for linking using CMake?
I'm getting this error while cross-compiliing mosquitto library.
Linking C executable mosquitto
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: CMakeFiles/mosquitto.dir/security.c.obj: undefined reference to symbol…

ck0ba
- 1
- 1