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.

learn more… | top users | synonyms (1)

7
votes
2answers
288 views

Is there a mechanism that protects applications during library upgrade?

If user works on an application that is dynamically linked, and system is being upgraded, is there any protection mechanism that prevents application corruption? Or is it up to application?
5
votes
1answer
186 views

Fedora 21 texstudio fails with symbol lookup error

I just installed Fedora 21 on a laptop, and among other things I installed Texstudio. While the install seems to work fine in general, I get absolutely no reaction from this single program. I have ...
63
votes
4answers
29k views

How do SO (shared object) numbers work?

I'm aware that shared objects under Linux use "so numbers", namely that different versions of a shared object are given different extensions, for example: example.so.1 example.so.2 I understand ...
5
votes
2answers
42k views

Error Loading Shared Libraries when Installing Redhat Directory Server

While Installing the Red Hat Directory Server on the Red Hat Linux Server 5 (x86_64)i am getting the following error bin/slapd/server/dsktune: error while loading shared libraries: libstdc++.so.5: ...
1
vote
0answers
16 views

Running apache on offline system

I want to install apache using yum on CentOS 7 and check its shared libraries with ldd and pack the binary and files in apache's rpm and those libraries with full paths and transfer them to offline ...
1
vote
1answer
35 views

Do .so files get loaded as a whole into memory?

When a program causes a .so file to be loaded into memory, does is get loaded as a whole, or or does it only load the necessary "chunks"?
1
vote
1answer
45 views

Program linked against two versions of the same library?

I have two systems, both running Debian Jessie 8.4, and both have open-vm-tools installed. Files are identical on both sides. However, on one side the vmtoolsd links to an old libicu, althougth the ...
-1
votes
1answer
99 views

Where do C# executables running on an Ubuntu Linux 16.04 desktop which use source code that DLLImport's shared objects look for them at runtime? [closed]

Where do C# executables running on an Ubuntu Linux 16.04 Lenovo Thinkstation desktop which use source code that DLLImport's shared objects (so's) look for shared objects at runtime? Even if the shared ...
1
vote
1answer
847 views

ldconfig not following user-created symbolic link

I'm attempting to run Inkscape 0.48.4-15 (armv7) which is installed via pacman from Arch Linux ARM. $ inkscape inkscape: error while loading shared libraries: libMagick++-6.Q16HDRI.so.3: cannot open ...
4
votes
1answer
195 views

Find out if library is in path

Assuming I want to test if a library is installed and usable by a program. I can use ldconfig -p | grep mylib to find out if it's installed on the system. but what if the library is only known via ...
2
votes
1answer
39 views

What would suddenly cause programs to read /etc/ld.so.preload when they start up?

Apparmor enforcement messages have begun appearing in the syslog of a Trisquel 7 machine. The affected programs requested open of the file /etc/ld.so.preload, in read mode and were denied by apparmor ...
8
votes
3answers
13k views

Find where is a shared library symbol defined on a live system / list all symbols exported on a system

Basically, this is two questions into one - because if I can list all symbols exported within a system, along with their shared library path, then I could simply grep that output. For kernel symbols,...
0
votes
0answers
90 views

Non-Root Container

I'm attempting to create some kind of gentoo "subsystem" without root permissions. I've encountered a problem with my approach and I'm wondering if it's possible to do or not. The way I'm attempting ...
9
votes
2answers
493 views

ELF shared libraries - motivation for the PLT

Could self-modifying code be used to speed up function calling in dynamically linked libraries? As far as I understand it, ELF shared libraries use a kind of indirect jump table (the procedure ...
0
votes
0answers
49 views

Ubuntu does not find shared object file; sudo ldconfig -v did not help

I'm on a 32 bit Xubuntu 15.04 installation on which I have to work with a legacy application, which I only have in binary form. That binary requires libstdc++-libc6.2-2.so.3, which I managed to find ...
0
votes
1answer
77 views

Fixing problems with deleted dynamic libraries

I have run strace on a simple C program, here is the output of it: ~ $ strace ./test execve(...
5
votes
2answers
2k views

libssl and libcrypto backward compatible?

I have an old server application that requires libssl.so.0.9.6 and libcrypto.so.0.9.6. My issue is I currently have libssl.so.1.0.0a and libcrypto.so.1.0.0a on my system. I tried symlinking to the ...
3
votes
2answers
8k views

How does rpm resolve library dependencies?

I try to make a package of a program which is linked to such library (output from ldd): libwx_baseu-2.8.so.0 => /usr/lib64/wx-2.8-wxcontainer/libwx_baseu-2.8.so.0 Pretty straightforward, right?...
0
votes
1answer
158 views

no video using webex with fedora 22 and firefox

I can connect into a webex presentation on my Fedora 22 x64 workstation with Firefox x64 but I can't see any video. I am using Firefox version 43.0.3 with the icedtea-web plugin version 4.6.2. I have ...
2
votes
1answer
340 views

Symbol lookup errors in (Qt?) dynamically linked libraries

I'm using Ubuntu 15.10 Problem: For some days now I have been getting Errors like this when opening some applications: /usr/lib/x86_64-linux-gnu/libpoppler-qt5.so.1: undefined symbol: ...
3
votes
1answer
2k views

Installing flash player for Firefox

I would like to install Flash player for Firefox on Linux. I downloaded the .tar.gz, and there are some compiled shared libraries. I am not sure how to make them work, and I am looking for a hint. ...
1
vote
1answer
151 views

patch: “bad file descriptor” in combination with pipe and LD_PRELOAD/ libtrash

Very short summary: cat "$file" | patch produces a Bad file descriptor-error, but patch < "$file" works, when libtrash is preloaded with LD_PRELOAD, and only on bigger projects. Description: For ...
4
votes
2answers
2k views

How to use libraries installed by nix at run-time?

I'm using nix in "single-user mode" in a system where I'm not the root (see below for a description of my nix setup). I wanted to quickly run one of my binaries which is dynamically linked with a ...
1
vote
1answer
58 views

Environment variable to blacklist a shared library?

I've had a problem with Mono disrespecting my fglrx libGL library and loading the Mesa library instead. So far I've been fixing it by deleting or moving the Mesa library (/usr/lib64/libGL.so.1.2.0) ...
3
votes
1answer
2k views

ntp cannot open shared object file: Permission denied

On a server I haven't worked on, ntpd is broken: # /etc/init.d/ntpd start ntpd: error while loading shared libraries: libz.so.1: cannot open shared object file: Permission denied but permissions ...
4
votes
1answer
45 views

Is there a way of setting the library search path temporarily

We deploy our application with all the necessary dependencies in one directory. Our application sets LD_LIBRARY_PATH to this location. Some of the libraries (for instance OpenSSL) are also present at ...
1
vote
1answer
42 views

why does setgid permission on an SO cause failures?

When I load a particular version of Python on a server, I get the following error: python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file ...
1
vote
1answer
93 views

How to determine where an executable searches for a shared library?

I know I have the library, but the executable can't find it. If I knew where it was searching, I could just create a symlink where it expects to find the lib. $ ~/Apps/simutrans/simutrans /home/dan/...
0
votes
1answer
31 views

In theory, can a .so file created in one RHEL version be used in any other RHEL version?

I have done the compilation of a source package and installed in a custom path, binaries and some shared objects libraries were created and the tool is working. Can the same installation be used in ...
2
votes
1answer
231 views

ldd returns “not a dynamic executable” for a 64-bit ELF, even though objdump and readelf disagree

(This question is an indirect continuation of my previous question which has been solved.) Small summary of what I'm trying to do I've got a .so file named pin_sim.so for the architectural simulator ...
3
votes
1answer
141 views

Error while building snipersim: “relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC”

I know that snipersim isn't a very typical "project" but this is more a linux/linking problem than anything else, so I think it goes here. I have also contacted the developers, but have yet to receive ...
0
votes
1answer
806 views

Compiling FFMPEG from source: cannot find shared library

I'm compiling FFMPEG from source using the guide for Ubuntu which I've used before with success. I'm compiling on a Vagrant virtual machine in VirtualBox on Ubuntu server 14.04. You can clone the ...
1
vote
2answers
80 views

Do applications usually use dynamic linked libraries?

If I want to compile an application which needs packages that are not provided by distribution's package manager and I want to generate a distribution package from it, do users who use this ...
0
votes
1answer
26 views

How can I check whether my cross-compilation of a dynamic library has been done correctly?

I used my arm toolchain to compile the glibc library, I have already deployed this on the target device (linux) with no issues. How can I be sure that my compilation and deployment is done correctly ...
2
votes
1answer
60 views

How process know address of shared library?

As far my understanding, when I compile my C source code GCC/LD does the address binding at compile time. Typically this address starts at zero. When I call a function from shared library how the ...
2
votes
1answer
197 views

library file is found by ldconfig but not by ldd

I have built OpenGL acceleration libraries (libGL and libGLU) which I keep in a specific directory, /usr/lib/mali. I also have a software implementation of OpenGL which is installed in /usr/lib/arm-...
0
votes
0answers
54 views

custom runtime environment - libpthread segmentation fault

I have built a project using gcc 4.9.2 (libstdc++.so.6.0.20). When I want to run that program on the virtual machine which is equipped with gcc 4.6.3 (libstdc++.so.6.0.16) I have to deliver libstd++/...
34
votes
4answers
34k views

Where do executables look for shared objects at runtime

The title is pretty explicit. I understand how to define include shared objects at linking/compile time. However I still wonder how do executables look for the shared object (*.so libraries) at ...
0
votes
0answers
151 views

Can I have two different files with the same file path (that is, two versions of a file) dlopen'd at the same time?

I'm making a program that uses a .so library (also being developed by me). I want to be able to update and re-deploy the .so as I develop it, without restarting the program that uses it. I've ...
1
vote
1answer
890 views

LD_LIBRARY_PATH ignored by Python 2.7

I'm trying to install Theano on a box for which I have no root access and it looks like that LD_LIBRARY_PATH is ignored by my installation of Python 2.7. Since I can't install packages at the system ...
3
votes
1answer
114 views

Shared library on NFS mount not found from one host, works fine from another

I am experiencing some very weird behaviour regarding the loading of a shared library from an NFS4 mount, and am hoping someone can shed light on it. Consider the following: $ ucto ucto: error ...
2
votes
2answers
115 views

how an expression which contains LD_DEBUG is processed?

An example usage of LD_DEBUG looks like this: LD_DEBUG=libs applicationName LD_DEBUG=libs is just an assignment - so how it works (prints result) in bash ?
1
vote
1answer
168 views

dynamic linker/loader libs - missing ld.so

Following manual describes dynamic linker/loader libs: The program ld.so handles a.out binaries, a format used long ago; ld-linux.so* handles ELF (/lib/ld-linux.so.1 for libc5, /lib/ld-linux.so.2 ...
1
vote
2answers
68 views

Specifying local libc does call global libc?

If I run the command foo specifying a a different libc to use as follows: LD_LIBRARY_PATH=$PATH_TO_MY_CUSTOM_LIBC foo Is the globally defined libc used to run any of the command given above? For ...
4
votes
1answer
300 views

LD_LIBRARY_PATH environment variable

I am trying to test the LD_LIBRARY_PATH environment variable. I have a program test.c as follows: int main() { func("hello world"); } I have two files func1.c and func2.c: // func1.c #include ...
14
votes
4answers
2k views

What system call is used to load libraries in Linux?

In strace outputs, the paths to the libraries that executables call are in calls to open(). Is this the system call used by executables that are dynamically linked? What about dlopen()? open() isn't a ...
2
votes
1answer
409 views

ldd shows library exists and is linked, program doesn't find it

Console Output: bitnami@linux:~$ sudo svnmucc propset svn:needs-lock 1 file:///opt/bitnami/repositories/Standard/Ipc/trunk -m "test set" svnmucc: error while loading shared libraries: libsvn_client-1....
15
votes
8answers
48k views

Problem to launch java at Debian: “error while loading shared libraries: libjli.so”

I'm trying to launch java: $ java -version java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory $ ldd /usr/lib/jvm/java-6-openjdk/jre/bin/...
1
vote
1answer
101 views

Shared libraries for GCC installed via yum on Fedora 20

Unintentionally I erased my system gcc with a manually built one. To get things back, I did yum reinstall gcc and gcc --version attested that the initial version was back: $ which gcc /usr/bin/gcc $ ...
9
votes
2answers
16k views

How to find out the dynamic libraries executables loads when run

I want to find out the list of dynamic libraries a binary loads when run (With their full paths). I am using CentOS 6.0. How to do this?