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
0
votes
1 answer

How to help an executable find a shared library?

I'm trying to run RF-TrulyMagical, but it says: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory I've tried re-installing the library and running apt-get update and ldconfig, but nothing's…
Raf
  • 33
  • 2
  • 7
0
votes
1 answer

LDD: /usr/lib/aarch64-linux-gnu/libdl.so: version `LIBC' not found (required by ./libNative.so)

I want to use native library .SO files from APK that I extracted. After fixing many errors, I found this one that I didn't understand. ./libNative.so: /usr/lib/aarch64-linux-gnu/libdl.so: version `LIBC' not found (required by ./libNative.so) …
0
votes
2 answers

gcc and ld is refusing to link library statically

Just for fun (and for learning compiling in general), I gave myself the task to build a xorg-server with all libraries statically linked, except for glibc. For some reason, gcc simply ignores some of my static libraries. When I run something like…
Daniele Testa
  • 1,538
  • 3
  • 16
  • 34
0
votes
0 answers

Determinate the environment and the version of the Binary file

I have some Binary file and I suspected in was created with Java. Is there a way to find out which environment created that file (for example if its Java or gcc). And if it was created with Java, how can I determine the version of the Java. I know…
vesii
  • 2,760
  • 4
  • 25
  • 71
0
votes
0 answers

Linking against a shared library with setuid

I want to link against a shared library which has its owner changed to root and setuid is set: $ ls -la total 3616 drwxrwxr-x 2 chiron chiron 4096 Mai 29 21:59 . drwxrwxr-x 4 chiron chiron 4096 Mai 29 23:16 .. -rwsr-xr-x 1 root chiron…
Felix Crazzolara
  • 982
  • 9
  • 24
0
votes
1 answer

Boost. Link dependency with short name

I'am trying build boost 1.69 on Solaris 11.3 with gcc 4.8.2. Then build is complete i'am see (with ldd libname.so) that linker using relative path in dynamic section tag NEEDED…
Shampoo
  • 417
  • 5
  • 8
0
votes
1 answer

ldd: Library cannot be found

I am running ldd command on libqqnx.so on my target board. This list few certain dependent libraries and then throw error called ldd: Library cannot be found. If I do same on libcpp.so.4 of qnx then it does not show such errors. My question is, the…
0
votes
1 answer

How to know which so the app has linked in run time?

Background: I have following code structure on linux, and have two different versions of caculate.c in the folder correct_so & wrong_so. I want to know which so the app has linked when it starts. libcac.so which was built out with caculate.c will be…
atline
  • 28,355
  • 16
  • 77
  • 113
0
votes
1 answer

Discrepancy in behavior of Linux loaders (ld-linux-x86-64) between Glibc 2.12 and Glibc 2.17

I'm trying to compile the same lib on two x86 separate machines. Both use the same toolchain (exactly same set of files) but have different Glibc versions. When I run command LD_DEBUG=libs /lib64/ld-linux-x86-64.so.2 --list ./libl2ps.so I notice the…
frperies
  • 41
  • 6
0
votes
1 answer

Java program using JNI cannot find dependant shared objects outside of Eclipse

I have a program that is running inside eclipse right now and uses a JNI call to a shared object I created as a wrapper for another shared object on the system. This works just fine when I run it from inside eclipse however when I run it from the…
Shawn
  • 3
  • 1
0
votes
1 answer

Oracle Version Independent Pro*C Code

I compiled my Proc*C code on Red Hat Enterprise Linux Server release 6.0 (Santiago) with Oracle 12C setup. It was working fine . When I migrated the same executable to another server with Oracle 11G set up , I get this issue "libclntsh.so.12.1:…
chetan
  • 1,385
  • 4
  • 15
  • 31
0
votes
2 answers

Buildroot adding custom libraries originating from FPC

I have a buildroot project in which I want to add a library compiled with pascal. The reason for this is that it is a custom library and porting it to C is too much work at this point. I am compiling it for a raspberry pi CM3. How it currently…
Steven
  • 131
  • 1
  • 8
0
votes
0 answers

How can a symbol become undefined after linking?

I'm experiencing a strange build issue on Linux and would like to know how this could happen, since it doesn't seem possible. My project is a static library, 'libMyLib.a', and consists of a single source file, 'MyClass.cpp'. It's built with CMake…
Bungles
  • 1,969
  • 2
  • 25
  • 54
0
votes
1 answer

Ldd show different version of library on the same c++ executable between different Ubuntu machines

I have created a c++ app that needs libboost_iostreams.so.1.63.0 library. In a Ubuntu 16.04 VM I have built the library and the ldd command on my executable gives the following: ldd ./c++_app | grep boost libboost_iostreams.so.1.63.0 =>…
dk13
  • 1,461
  • 4
  • 20
  • 47
0
votes
0 answers

ldd:FATAL: couldnt load library mylib.so

I have a shared library has built in rational rose and the target system is set to ppcbe. I try load the created so file by dlopen() command in QNX Momentics IDE while connecting to target system. QNX IDE resides on WIN7 64bit. I set the mylib.so…
hamid
  • 19
  • 7