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
1answer
22 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
0answers
12 views

Linking synergyc: libcurl - undefined reference

I'm trying to compile synergy 1.5.0 on openSUSE 13.1 (Kernel 3.11.10-17). While linking, I get the following error: ... [ 83%] Built target ipc [ 84%] Built target client Linking CXX executable ...
0
votes
1answer
28 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
68 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 ...
2
votes
2answers
77 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
34 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 ...
1
vote
2answers
27 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
0answers
27 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
77 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
72 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 ...
1
vote
1answer
689 views

libcurl.so.4 undefined reference error

Even after installation of curl and all concerned libcurl packages such as curl libcurl3 libcurl3-gnutls libcurl4-doc libcurl4-nss-dev libcurl-ocaml libcurl3-dbg libcurl3-nss libcurl4-gnutls-dev ...
0
votes
0answers
18 views

Unable to link with shared object file

I am trying to generate traces of GPGPU benchmarks on X86 cpu using GPUocelot. For this reason, I am compiling the benchmarks with -locelot and -locelotTrace linker flags. My benchmarks compile and ...
4
votes
2answers
70 views

Identifying running programs that are using the old version of a library I just replaced

After installing updates to address CVE-2014-0160 (the OpenSSL Heartbleed bug), I had to take care to restart anything that might be using libssl -- many services, such as Apache and my VPN software, ...
1
vote
1answer
82 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?
2
votes
2answers
188 views

Can I use my own ld.so.cache?

ldconfig has two interesting options: -f conf Use conf instead of /etc/ld.so.conf. -C cache Use cache instead of /etc/ld.so.cache. I tried copying /etc/ld.so.conf to my own home ...
0
votes
1answer
144 views

Solving a shared object linkage

I tried to run icecat. [hibudevb@localhost icecat-24.0]$ ./icecat XPCOMGlueLoad error for file /home/hibudevb/icecat-24.0/libxul.so: libjpeg.so.8: cannot open shared object file: No such file or ...
1
vote
2answers
137 views

ldd: cannot find library for xl c compiled binary but could for gcc compiled binary on AIX

I have compile on AIX two version of proftpd one with gcc and one with the xl c compiler from IBM. The command line to compile both version are almost the excat same, but when I do a ldd on the gcc ...
1
vote
1answer
152 views

Finding function parameters for functions in shared object libraries

I am currently fiddling around with some c libraries without documentation. I am wondering if it is at all possible to retrieve more metadata, such as parameters and return values, outside of what is ...
3
votes
2answers
675 views

Confusion about linking boost library while compilation

For a client I needed to add boost 1.54 to the system. So I downloaded the latest version (1.55) and built it within a special directory: /usr/local/lib/boost1.55/. This works. Then I had to adapt the ...
3
votes
2answers
845 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 ...
1
vote
2answers
54 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 ...
2
votes
1answer
84 views

Using prelink on manually loaded libraries? (like Java native libraries)

As far as I can tell, prelink can only works with dynamic libraries which an executable declares it needs at compile time (the libraries that can be found with ldd). It doesn't seem to include ...
3
votes
2answers
785 views

shared library not found even with ld.so.conf updated

$ sudo ldconfig -v|grep libOpenNI 355: libOpenNI2.so -> libOpenNI2.so but when I am executing the program I'm getting ./SimpleRead: error while loading shared libraries: libOpenNI2.so: cannot ...
4
votes
2answers
541 views

Cannot execute binary - No such file or directory

I tried to install the current oracle jre on a VM running NixOS. Now the following happens: [michas@cc:~]$ tar xvzf jre-7u40-linux-x64.tar.gz |grep bin/java jre1.7.0_40/bin/javaws ...
0
votes
1answer
237 views

libpcrecpp.so.0 error in 64bit

I'm trying to execute a file and it throws this error error while loading shared libraries: libpcrecpp.so.0: cannot open shared object file: No such file or directory I browse Synaptic Packge ...
3
votes
2answers
158 views

Why does ldd show this dynamic linker location?

Here's the link command. Notice the specially defined dynamic linker near the beginning. time gcc -Wl,-rpath,/data/data/org.freesoft.Macaulay2/files/lib ...
7
votes
1answer
117 views

Can you change a dynamic link target without recompiling?

I downloaded a program that unfortunately doesn't come as a source distribution. When I go to run it, I get the error error while loading shared libraries: libjpeg.so.62: cannot open shared object ...
1
vote
0answers
179 views

linking problems when installing python module and dependencies as non-root

I want to install a certain (non-public, numerical) python module on a remote (Debian squeeze) system on which I do not have root (or sudo) privileges. As the python-dev package was not installed, I ...
4
votes
7answers
830 views

how to share environment variables between shells like globals related to a master pid?

So, I need to share environment variables between shells, and that the changes on the variables be promptly recognized by all shells, like global variables. But they must be related to a master pid, ...
1
vote
1answer
356 views

How to use 32 bit compiled shared object (.so) file on 64 bit RHEL?

I have a shared object file libfault.so for my 32 bit compiled application on RHEL 6.4. I want to preload this file while starting my application. I have placed it in /usr/local/lib/ directory. But ...
0
votes
0answers
55 views

Eclipse : GLib-ERROR

I have an JAVA application which includes .so file.I have included the VM argument path in the Run configuration -Djava.library.path="${workspace_loc}/JlibFprint/resources:${env_var:PATH}" But when ...
0
votes
3answers
315 views

Finding the absolute path of shared libraries used by an executable

Considering lshw as a sample program, here is what ldd gives: $ ldd /usr/sbin/lshw linux-vdso.so.1 => (0x00007fff8bdaf000) libresolv.so.2 => /lib64/libresolv.so.2 (0x000000360e400000) ...
1
vote
1answer
2k views

Can't run 32 bit python on 64 bit Ubuntu: error while loading shared libraries: libutil.so.1

I'm trying to run a 32 bit version of python on 64 bit Ubuntu 12.04. There are alternatives to running this specific binary, but I'm more interested in understanding what's causing the error than ...
4
votes
1answer
157 views

Effect of static and dynamic linking on start address

I have a simple C program. I run: $ gcc Q1.c -Wall -save-temps -o Q1 Then I inspect the executable generated: $ objdump -f Q1 Q1: file format elf32-i386 architecture: i386, flags 0x00000112: ...
4
votes
2answers
992 views

How to upgrade shared library without crash?

Here it says that you can rewrite an executable file and the process will run just fine - it will be re-read when a process restarts. However, when I try to replace a binary file while the process is ...
2
votes
1answer
172 views

Invoking a script with ld-linux.so?

I just downloaded a tar file that is supposed to include everything required to run a program that we can call some_binary. I extracted it's contents, and I see the following: A binary (let's call ...
4
votes
1answer
812 views

Which parts of an ELF executable get loaded into memory, and where?

What I already know: An ELF executable has a number of sections, obviously the .text and .data sections get loaded into memory as these are the main parts of the program. But for a program to work, ...
0
votes
1answer
85 views

Are .so files in Fedora considered ELF files?

ELF 'Executable and Linkable Format' So if I generate Shared Object files .so are those considered ELF files?
7
votes
1answer
241 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 ...
2
votes
1answer
132 views

Installing shared library - questions and problems

I'm having trouble "installing" a shared library I download online. The library name is run time access (http://www.runtimeaccess.com/). In the quick start guide, they explain how to use the library ...
1
vote
0answers
712 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 ...
2
votes
2answers
731 views

Arch Linux and optional dependencies

I installed XChat on an Arch Linux system. Every time I run it, I get the following error message: Python interface loaded Perl interface loaded AutoLoad failed for: /usr/lib/xchat/plugins/tcl.so ...
3
votes
1answer
374 views

Environment settings on setuid executables

I am observing a curious behavior when running a program with setuid bit enabled. Program foo is owned by user bar with setuid bit set. User execbar runs foo foo reports that one of the dynamic ...
5
votes
1answer
721 views

Debugging a Segmentation Fault

I have an application that runs on an embedded Linux device that I am expanding with new features. The new features require GLib so, I am dynamically linking the required libraries to the application. ...
3
votes
2answers
2k views

File not found for file which is there [duplicate]

Possible Duplicate: “No such file or directory” lies on Optware installed binaries I am currently trying to get some piece of hardware to work on an embedded device. One part of ...
4
votes
1answer
457 views

Can I use a chroot on my dev machine to build an application to run on embedded linux installation?

I am trying to develop an application to run on an embedded linux installation. It comes with an older version of libc than I have on my development maching. If I were to create a chroot environment ...
2
votes
2answers
477 views

Is it safe to just copy shared libraries onto embedded Linux device?

The following is contained in the vendor user manual for its embedded Linux distro on the hardward board they supply Developers can put their program onto X-Linux device via FTP or NFS. Before ...
5
votes
2answers
7k views

error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

anisha@linux-y3pi:~/> google-earth ./googleearth-bin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory anisha@linux-y3pi:~/> locate ...
0
votes
1answer
113 views

Can two application share library loaded at runtime?

I have 2 application lets say A1 ,A2 shared one shared object(lets say lib1) which loaded in application at runtime. A1 load lib1 using dlopen successfully. Now A2 wants to load library. Can A2?(as ...
2
votes
2answers
4k views

PulseAudio cannot open shared library

I'm running Debian wheezy (x86) with GNOME on a Intel Core i7 machine. I'm having problems getting PulseAudio to work properly. Since GNOME 3 automatically installs PulseAudio I'm pretty much stuck ...