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)

1
vote
0answers
35 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 ...
2
votes
0answers
45 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: ...
1
vote
1answer
26 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) ...
1
vote
1answer
31 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 ...
4
votes
1answer
42 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
33 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 ...
0
votes
1answer
26 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
79 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
51 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
223 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 ...
0
votes
1answer
21 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
52 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 ...
0
votes
0answers
30 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 ...
0
votes
0answers
74 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
305 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
49 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
55 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
69 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
53 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
191 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
172 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: ...
2
votes
1answer
102 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 ...
0
votes
1answer
59 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 $ ...
2
votes
0answers
133 views

Debian: How to resolve relocation error?

I am running Debian 7.1. I tried to apt-get install -f, and messed up. All command line returns ln: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version ...
4
votes
2answers
548 views

Why can't I install multiple versions of a shared library?

There are often instances where a certain program will depend on library version x.y and another on x.z but, as far as I'm aware, no package manager will allow me to install both x.y and x.z. ...
1
vote
0answers
1k views

libmysqlclient.so.18: cannot open shared object file: no such file or directory [closed]

I am using Slackware 14.1 x64 and when I want to run a program that is using mysql.h over C I read the following error: bash-4.2$ /home/normal/Proyectos/a.out /home/normal/Proyectos/a.out: error ...
0
votes
1answer
2k views

“symbol lookup error: /usr/lib/x86_64-linux-gnu/libxfconf-0.so.2: undefined symbol: g_type_class_adjust_private_offset” after upgrading to Jessie

Just upgraded my dev system from Debian Wheezy to Debian Jessie, by the straight-forward method of changing sources.list and apt-get upgrade/dist-upgrade. Now I'm seeing failures when I try to log in ...
3
votes
1answer
257 views

Memory layout of dynamic loaded/linked library

when loading a shared library in Linux system, what is the memory layout of the shared library? For instance, the original memory layout is the following: +-----------+ |heap(ori) | +-----------+ ...
0
votes
2answers
260 views

set library path for current script [closed]

How can I set the library path for the current script that's running? I mean I don't want to list a new path for the libraries in a textfile. I tried it using export LD_LIBRARY_PATH=$(pwd)/lib/ This ...
0
votes
0answers
1k views

libssl undefined reference to symbol 'SSL_load_error_strings@@OPENSSL_1.0.0'

With the following CMakeLists.txt (I tried to snip it AMAP) https://gist.github.com/pbertoni/29200833dc562ab6ee2c I got this error from make at linking time: /usr/bin/ld: ...
2
votes
0answers
398 views

finding undefined symbol

I am trying to run a program whose source I downloaded and compiled. When I try to run the program I keep getting the message: unable to load undefined symbol _z15InvalidateImageSs I am trying to ...
4
votes
2answers
1k 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
107 views

How to make my ELF run with both new and old version of glibc?

When I'm compiling my elf, it is "best practice" to make it link against the oldest version of glibc I can, so it will work both on new and old versions of glibc. i.e. if I use realpath, which in ...
1
vote
3answers
5k views

error while loading shared libraries: libc.so.6: cannot open shared object file

I have a Linux kernel and I chroot it on /var/chroot: I added bash dependencies like so: ldd /bin/bash linux-vdso.so.1 => (0x00007fff9a373000) libtinfo.so.5 => ...
0
votes
0answers
33 views

Accessing xfig from x11 fails

I am trying to get access to xfig from x11 on my mac to draw some diagrams and including them in latex, but it shows the following error bash-3.2$ xfig dyld: Library not loaded: ...
1
vote
1answer
85 views

How do I get linux-gate.dso on a newer linux system?

I would like to find out which method my 32bit QEMU guest is using for system calls. There's an excellent article explaining linux-gate.dso (http://www.trilithium.com/johan/2005/08/linux-gate/). ...
2
votes
1answer
130 views

Types of dynamic linking in Unix/Linux environments

When creating a windows static library, we simply create a .lib file which should be included in the linker path. When creating a windows shared library, along with the .dll, we also a generate a ...
1
vote
2answers
2k views

libGLEW.so.1.11: cannot open shared object file

I am trying to compile an opengl program which results in: error while loading shared libraries: libGLEW.so.1.11: cannot open shared object file: No such file or directory compile: g++ -o ...
0
votes
1answer
155 views

file command to show “for GNU/LINUX 2.x.x” also for shared libraries

Using the command file my_executable_binary I get information like this: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.34, dynamically linked (uses shared libs), stripped ...
1
vote
2answers
1k views

ld.so.preload doesn't differ x86_32 and x86_64

— It's known you can run x86_32 programms with x86_64 kernel if it was compiled with support for that. But dynamic linker doesn't provide any way to define a separate set of preload libraries for ...
2
votes
1answer
2k views

Why does chroot get ENOENT on an existing file?

;TL-DR - Answer: because the dynamic linker ld-linux-x86-64.so.2 was missing. I have mounted a squashfs (shouldn't matter) filesystem -ro,loop at /mnt/foo. It contains among other things the ...
0
votes
1answer
42 views

Where is <libraryname>.pc?

When installing a library with configure, make and make install, does make install copy <libraryname>.pc to some place? If yes: Where is it? If no: Should we copy it somewhere rather than ...
1
vote
1answer
2k views

Testprintenv:error while loading shared libraries:libodbc.so.1: cannot open shared object file

I am trying to invoke a C-Program which returns the value for a given keyword from a configuration file While trying to invoke program it's displaying below error: **Testprintenv: error while ...
3
votes
2answers
3k views

Get ld to pick the correct library

I'm trying to compile a program prog and link it against OpenSSL's 1.0.2 beta, built from source and installed in /usr/local/ssl-1.0.2. On an older system using 0.9.8, this works without too much ...
3
votes
1answer
188 views

Does the Linux loader (ld.so) follow symlinks?

I have stumbled upon a problem by trying to move the ld.so.cache file to another location. I have tried to create a symlink for it in its previous location -- /etc/ -- but it seems that the loader ...
2
votes
2answers
1k views

How to create an environment for libraries and binaries?

I have a tool that cannot be run under my Desktop Linux. So I'd like to make a folder that contains all its requirements, and run it in the folder. Virtual machine or container is not a solution here ...
1
vote
1answer
367 views

Load shared objects relative to executable path

I'm trying to get a C application to load shared objects from a relative directory regardless of where I call it from. So far it only works if I'm in the same directory as the executable when I call ...
1
vote
1answer
684 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 ...
2
votes
1answer
293 views

Mkfs error undefined symbol: ext2fs_numeric_progress_ops

I'm running a Oracle Linux 6.4 under Hyper-V. I have to add a disk. So I add it in Hyper-V, Linux sees it when I run fdisk -l and I can see it. So I did a fdisk /dev/sdb then I created an extended ...