Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dynamic-linking]

In computing, a dynamic linking is the process of an operating system (OS) that loads (copies from persistent storage to RAM) and links (fills jump tables and relocates pointers) the shared libraries needed by an executable at run time, that is, when it is executed.

1
vote
1answer
45 views

ldd equivalent which fail when library not found

Assume I perform ldd /bin/ls with the pthread library removed. I obtain linux-vdso.so.1 (0x00007ffcc3563000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f87e5459000) libcap.so.2 => /...
-1
votes
1answer
49 views

what are the executable ELF files respectively for static linker, dynamic linker, loader and dynamic loader?

In Linux, what are the executable ELF files respectively for static linker dynamic linker loader dynamic loader? Which of them are invoked by execve() by dlopen()? How are they invoked by execve(...
0
votes
1answer
64 views

How does Linux kernel dynamically use a module?

Understanding the Linux Kernel says The kernel has two key tasks to perform in managing modules. The first task is mak- ing sure the rest of the kernel can reach the module’s global symbols, such ...
-1
votes
1answer
55 views

Running a custom-compiled executable returns “No such file or directory”

I have an executable but when I run it I get "No such file or directory" $ chmod a+x bin $ file bin bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/...
1
vote
0answers
15 views

How to add ssmtp into initramfs?

I'm trying to add ssmtp into initramfs. However, I can not find (or compile at the moment) the statically linked version. I guess my only option is adding the current, dynamically linked version. I'...
0
votes
1answer
66 views

How to run programs with ld-linux.so?

The dynamic linker can be run either indirectly by running some dynamically linked program or shared object (in which case no command-line options to the dynamic linker can be passed and, in the ELF ...
1
vote
0answers
224 views

Apache + mod_ssl build not linking to my OpenSSL build

I have spent some time searching online but none of what I found seems to help. I'm running CentOS 6 64bit and would like to compile Apache with mod_ssl and need to link it to my own OpenSSL build (...
-1
votes
1answer
25 views

Can I programmatically remove funcionality from a shared library that is not used by a specified executable? [closed]

I have a library taking up a lot of disk space. Only one program I use links to that library. I am pretty sure that the program uses only a tiny fraction of the functionality provided by that library. ...
1
vote
1answer
79 views

executed “chmod 666 ld-2.17.so” - how can i recover?

While trying to learn about how ld-2.17.so works to change the permission of chmod executable itself, and thought if i can change the permission of ld-2.17.so itself. I ran chmod 666 ld-2.17.so in a ...
1
vote
1answer
66 views

Interpreting the unhandled signal exception in Linux

I'm trying to debug a prototype CPU that throws unhandled signal 11s and signal 7s in the startup process. Here is what the kernel prints out. I have added extra print statements to the kernel to ...
2
votes
0answers
38 views

Does Debian define what GPL compliance means for the purposes of packaging?

The GPL license speaks of "derivative works". Debian has taken the position that deterministically linking against a library with LD_PRELOAD does not make your program a derivative work. This allows ...
0
votes
1answer
68 views

What does “statically linked” mean?

As my understanding, so file is the dynamic library. We can use ldd to print its dependencies. For example, I can execute ldd -r /usr/lib/aarch64-linux-gnu/libstdc++.so.6 to get the output as below: ...
4
votes
1answer
216 views

Fix hardcoded dynamic linking for executable

I have an executable file called reg with the following shared library dependencies: [terminal]$ ldd ./reg linux-vdso.so.1 => (0x00007ffc40d90000) libpthread.so.0 => /lib64/libpthread.so.0 (...
1
vote
1answer
202 views

Why can't I find the symbol tables in the C libraries in MacOS?

I've looked at the hexdump of both libc.dylib and xlib.dylib, and I can't find the symbols for the C functions in those libraries within those files. I figure they should be in there, because I've ...
2
votes
1answer
141 views

De-prioritize ld.conf.so.d library path resolution

From a separate question, and other articles on the subject, it appears that additional library paths defined by ld.so.conf.d will always be resolved (i.e. in the case of a name clash, such as when ...
0
votes
1answer
42 views

When is the dynamic library needed [duplicate]

I was told that the dynamic library is good because it can save RAM, it's only needed while the program is running. Now I have a question: if a program can be executed, can I say that all of dynamic ...
0
votes
1answer
191 views

Are shared library ABI compatible as long as their versions are the same?

Suppose I have a program compiled that's linked against libc.so.6 on one system (e.g., Ubuntu x64). If I take this binary to another system that has the same libc version 6 (e.g., Fedora x64), it ...
0
votes
1answer
128 views

Undefined reference problems with libusb

I'm trying to use pyuvc module which depends on libuvc which depends on libusb. However, when I try to import uvc in python, I get ImportError: /usr/local/lib/libuvc.so.0: undefined symbol: ...
0
votes
2answers
79 views

Will dynamic link library must be loaded into RAM

As we know, any executable file, which is running, is loaded into RAM. Also, we have two kinds of libs: static link library and dynamic link library. The two kinds of libs should be loaded into RAM ...
1
vote
0answers
37 views

list the link files of a process [duplicate]

Saying that there is a running process named a. Is it possible to list all of the lib files that a needs, including static link files and dynamic link files (.a, .so)?
0
votes
1answer
212 views

A strange problem when trying to install GNU MPFR

I'm trying to install GNU MPFR. I've downloaded the source, cd'd into it and typed ./configure, which goes through a load of checks (which are all okay, as far as I can see.) The problem occurs when ...
5
votes
2answers
414 views

ld.so.cache file is not a binary file

I am currently studying for Comptia Linux+ exam and I am at the Shared Library chapter. Among all, it says that the /etc/ld.so.cache file is a binary file, but in my case it is not. It is a regular ...
3
votes
2answers
445 views

What does the interpreter reported by `file` refer to?

I'm trying to run perl executable provided by a debug library on Ubuntu 16.04, but for some reason the file "isn't executable" even though it seems to be a match for my architecture. The perl ...
3
votes
1answer
71 views

Shared library minor version management

I have a simple program called main: #include <iostream> #include "random.h" int main() { std::cout << "The program has started\n"; return get_another_random_number(); } ...
2
votes
2answers
1k views

Get hex-only output from objdump

Say for example I've got this C function: void f(int *x, int *y) { (*x) = (*x) * (*y); } When saved to f.c, compiling with gcc -c f.c produces f.o. objdump -d f.o gives this: f.o: file ...
0
votes
1answer
428 views

Library is found by ldconfig but not by ldd for any program using this library

Running arch linux, I have qt5-base installed, which provides libQt5Core.so.5. Running ldconfig finds the shared object: $ sudo ldconfig -v | grep libQt5Core libQt5Core.so.5 -> libQt5Core.so.5.10....
2
votes
0answers
384 views

anaconda Qt vs system Qt

The anaconda python framework includes its own Qt shared libraries, among other ones. Because of the nature of the framework, it must appear first in the PATH environment variable so its python ...
4
votes
0answers
427 views

Shared library link time reference relocation error

I'm using a custom Linux distribution on an ARM box, that is based off of Ångström. Since all of the packages that I could find in the package manager are horribly out of date, I rebuilt all of the ...
0
votes
0answers
25 views

successful dynamic linking from terminal, failed via double click

I've built a wxWidgets project using Code::Blocks 16.01 on Debian 9 x86_64. The project uses three dynamic libraries to work: libarjois.so libcryptocore.so libcryptopp.so.5.6 The first uses the ...
0
votes
2answers
205 views

Fedora 27 new install doesn't bring login dialog

I just installed the latest updates today 11/25/17 and getting to "F" icon during boot and nothing happens. Logging in "single" mode, I get these messages: FAILED to start Journal Serice FAILED to ...
2
votes
1answer
52 views

How does Qubes do memory management, especially with regard to shared objects?

I'm just reading about Qubes OS, and I have a very simple question -- how does it do memory management and shared object use? Feel free to correct any misconceptions or errs in vocab, but we have the ...
1
vote
1answer
433 views

How to force executable to link dynamic library

I have this compiled executable: ./run.x I have moved it to other computer, but there the dynamic dependencies are not satisfied: ldd ./run.x libx.1.so => not found However on the ...
6
votes
1answer
307 views

Why should or should not shared libraries be executable (e.g. Red Hat vs Debian)?

This is almost but not quite a duplicate of "Why are .so files executable?". I note that on Red Hat based systems shared libraries have execute permission but on Debian they do not. Logically shard ...
2
votes
0answers
71 views

Is there anyway to verify validity of dlopen handle?

In my case after my program cas dlclose program is crashing and I am not getting stack trace for dlclose or any function on upper frames. I know handle value of dlclose . Is there anyway to check if ...
-1
votes
3answers
79 views

How to force programs in /usr/bin to always use libs in /usr/lib

I'm struggling with a path problem on Fedora 26. I am building updated programs and libraries and placing them at /usr/local. Programs in /usr/local/bin use the libraries in /usr/local/lib. For some ...
1
vote
1answer
150 views

In what library on Linux are the system calls and how is this library linked to the executable object file that contains the system calls?

I know that the system calls are not in the C standard Library. Is there any library (some sort of a system library) where the system calls are? If there is such a library how is this library linked ...
1
vote
1answer
3k views

Is the vdso shared library (linux-vdso.so) the library that contains the kernel object code (system calls)?

I noticed that all my programs compiled to gcc are linked to vdso library. Is this the library that contain the system calls to the kernel, like mmap() and fork() and other system calls? I know that ...
1
vote
3answers
184 views

Installed 2 libraries side to side and need both. What solution to avoid linking problems?

I installed two versions of openCV one is openCV3 and another one openCV2.4 on my ubuntu 16.04 machine and need both. However I am now unable to compile C++ code which is intended for openCV3. I get ...
10
votes
3answers
11k views

Linux executable fails with “File not found” even though the file is there and in PATH

I want to launch the wine executable (Version 2.12), but I get the following error ($=shell prompt): $ wine bash: /usr/bin/wine: No such file or directory $ /usr/bin/wine bash: /usr/bin/wine: No such ...
2
votes
1answer
452 views

What is the correct arrangement of symlinks to allow both openssl 1.1.0 and 1.0.2 shared libraries to co-exist?

I want to have openssl-1.0.2 and openssl-1.1.0 both available for dynamic linking to different applications. I'm slightly unsure about this, because I would expect 1.0.2 to be installed in a file ...
0
votes
1answer
3k views

How to Change Text in Shared Libraries (*.so files) in Linux

When I search text in a folder using bash I can see that text is in binary file. I would like to change the text in *.so file. Regards.
0
votes
1answer
400 views

Using shared libraries to run bitcoin-qt / litecoin-qt [closed]

I am receiving the following error when I'm trying to run the compiled litecoin-qt, Error while loading shared libraries: libdb_cxx-4.8.so: cannot open shared object file How do I make a new path ...
0
votes
1answer
890 views

Shared object “libarchive.so.7” not found, required by “pkg”

I'm using FreeBSD 12-CURRENT and recently I tried to update my packages with pkg. pkg update finished successfully, but pkg upgrade returned the following error: Shared object "libarchive.so.5" not ...
0
votes
2answers
448 views

How to distribute a portable Linux commercial closed-source program? [closed]

First of, I've found this similar question How to make a portable Linux app? but it doesn't really address my questions, it's more about how to compile to make the application portable which I already ...
5
votes
1answer
6k views

What is the order that Linux's dynamic linker searches paths in?

This is not a duplicate because this is dealing with a peculiarity I noticed when I use /etc/ld.so.conf. To get the paths that the dynamic linker searches in for libraries, I run the command ldconfig ...
2
votes
0answers
135 views

How to identify system shared libraries?

My software tool has some external dependencies. I am distributing it as a conda package for linux64 with precompiled dependencies including shared libraries. Unfortunately I don't know how to ...
1
vote
0answers
168 views

Updating 'Available Version' in .so

I'm trying to run the gitbook-editor on Arch Linux, and running in the openssl version issues. The error messages states: .... /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found ... However ...
0
votes
1answer
70 views

NetBSD: unable to start KDE because of missing shared objects

I'm relatively new to UNIX-like OS's, though I know some basic concepts. I managed to build X server and KDE workspace from pkgsrc for my NetBSD 7.0.2. X starts normally, but KDE won't, because it ...
2
votes
1answer
275 views

LD_PRELOAD equivalent for running process?

Is there a way to swap out the implementation of a shared library function after the library has already been loaded into a running process? I'm looking for behavior like LD_PRELOAD would normally get ...
3
votes
2answers
908 views

Cannot find shared object file even though it's in library path

I am trying to install plexmediaplayer from source. This involves compiling libmpv.so.1 which I've done and installed under /usr/local/lib When I run plexmediaplayer, I get the following error: $ ...