Questions tagged [ldd]

ldd is a unix command-line tool to print shared library dependencies for an executable or shared library.

If a program is dynamically linked, i.e. uses shared libraries, the program requires some number of external libraries in order to run. ldd is a tool to list the required libraries and shows if those libraries can be found in the current configuration.

Questions about using and understanding ldd output should use this tag.

From a unix command-line running

man ldd

will provide more information.

254 questions
118
votes
10 answers

What is the equivalent of Linux's ldd on windows?

What is the equivalent of Linux's ldd on Windows?
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
73
votes
2 answers

How to use debug version of libc

Short version of question: How can I get gdb to use the debugging symbols for libc? Longer version: I am debugging a program with gdb and I want to see information about a futex used by libc. However, at some point during debugging I get output such…
Gabriel Southern
  • 9,602
  • 12
  • 56
  • 95
57
votes
6 answers

cross compiler ldd

I have created a cross compiled arm executable. I want to find the library dependency of the executable. I am using ubuntu natty and installed arm-linux-gnueabi tool chain, which does not contain ldd. Is there a tool available to view arm…
Talespin_Kit
  • 20,830
  • 29
  • 89
  • 135
57
votes
4 answers

Hierarchical ldd(1)

Due to using Gentoo, it often happens that after an update programs are linked against old versions of libraries. Normally, revdep-rebuild helps resolving that, but this time it's a dependency on a python library, and python-updater won't pick it…
Astro
  • 858
  • 1
  • 8
  • 8
44
votes
1 answer

What are ld-linux.so.2 and linux-gate.so.1?

When I run ldd program I get an output of the form linux-gate.so.1 => (0xb77ae000) libstdc++.so.6 => /lib/libstdc++.so.6 (0xb76bc000) libm.so.6 => /lib/libm.so.6 (0xb7691000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7674000) …
e271p314
  • 3,841
  • 7
  • 36
  • 61
33
votes
4 answers

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

I am building a C++ executable on Linux. The executable links into some boost libraries. This is the output when I attempt to run the binary: root@yourbox:~/work/dev/c++/projects/testfgci/dist/Debug/GNU-Linux-x86$ ./testfgci ./testfgci: error while…
skyeagle
  • 3,211
  • 11
  • 39
  • 41
29
votes
2 answers

How to interpret the output of the ldd program?

[root@wdctc1281 bin]# ldd node linux-vdso.so.1 => (0x00007fffd33f2000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f70f7855000) librt.so.1 => /lib64/librt.so.1 (0x00007f70f764d000) libstdc++.so.6 =>…
liam xu
  • 2,892
  • 10
  • 42
  • 65
28
votes
3 answers

MacOSX: which dynamic libraries linked by binary?

I have not been able to figure out why my binary is not loading. It is a dylib loaded by MATLAB (MEX-file), and links to quite a few dylibs in different locations. MATLAB tells me it cannot load the MEX-file, but I cannot figure out which of its…
Cris Luengo
  • 55,762
  • 10
  • 62
  • 120
27
votes
2 answers

Does ldd also show dependencies of dependencies?

I have a binary for which ldd shows an unexpected dependency und libicuuc (from "icu"). #ldd A [...] libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007faaf9722000) libicuuc.so.49 => /usr/lib64/libicuuc.so.49 (0x00007faaf5689000) Since on this system…
Thomas
  • 2,093
  • 3
  • 23
  • 28
25
votes
12 answers

Error while loading shared libraries: /usr/local/lib64/libssl.so.1.1

I’m trying to compile openssl-1.1.0e on Centos 7 (7.3.1611) but after i successfully compiled everything without any warning, i get an error when i’m trying any openssl command [mdm@dev openssl-1.1.0e]$ openssl version openssl: error while loading…
fromthestone
  • 1,217
  • 2
  • 13
  • 16
25
votes
3 answers

Linking Rust application with a dynamic library not in the runtime linker search path

I have a shared library that I'd like to dynamically link into several separate binary Cargo applications. I include its location in the linker using the -- -L /path/to/dir format and the application compiles correctly with the significant decrease…
Ameo
  • 2,307
  • 5
  • 21
  • 33
24
votes
2 answers

What is the difference between ldd and objdump?

I am running these two commands, and I'm getting different output: $ ldd `which ls` linux-gate.so.1 => (0x00db3000) libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0x00ba2000) librt.so.1 => /lib/i386-linux-gnu/librt.so.1…
alexgolec
  • 26,898
  • 33
  • 107
  • 159
23
votes
4 answers

ldd equivalent on android

I have a libTest.so that does not load on some devices. logcat is absolutely useless. Using arm-linux-androideabi-readelf.exe -d libTest.so I was able to see all required libs that libTest.so needs. I pulled them all in, into the same folder on my…
Pavel P
  • 15,789
  • 11
  • 79
  • 128
19
votes
1 answer

Does ldd show all recursive dependencies

Suppose I have a A.so file whose dependencies are found from ldd #ldd A [...] libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007faaf9722000) libxyz.so.49 => /usr/lib64/libxyz.so.49 (0x00007faaf5689000) Now does this mean that with the presence of…
Invictus
  • 4,028
  • 10
  • 50
  • 80
18
votes
2 answers

ldd can't find library in LD_LIBRARY_PATH

I'm trying to get a system up and running, and am having problems with the OpenMotif shared libraries. I have their directory in LD_LIBRARY_PATH, but it still can't find them. Here's an example: [root@intrepid netcool]# ldd…
coding_hero
  • 1,759
  • 3
  • 19
  • 34
1
2 3
16 17