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
0 answers

QPluginLoader: custom plugin (with dependencies) failing to load in Qt

I am using QPluginLoader to build a QT application, using the Qt Plugin framework. I have built a plugin, but the framework is failing to load the plugin. My plugin has a dependency on a third party shlib (log4qt). The file is correctly identified,…
Homunculus Reticulli
  • 65,167
  • 81
  • 216
  • 341
0
votes
1 answer

Library choice according to $LD_LIBRARY_PATH and architecture

For the demonstration I made 2 folders with 2 versions of libgcc_s.so.1 And I looked for library choice according to ldd: > file {A,B}/libgcc_s.so.1 A/libgcc_s.so.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV),…
Alcolo47
  • 91
  • 1
  • 4
0
votes
0 answers

Creating static binary

I want to run dynamically linked executable on a simulator. But the simulator supports only statically linked executables. So, I am using ELF statifier for converting dynamically linked executables into statically linked executables. When I am…
pbhayana
  • 13
  • 4
0
votes
1 answer

FreeBSD 9.2 (x64) libmysqlclient.so.18

I'm using FreeBSD 9.2 64bit on my dedicated server, and i have library which was compiled on FreeBSD 32bit system. This library using libmysqlclient.so.18 and i have problem becouse i dont know how to install 32 bit version on my 64 bit os without…
Adams
  • 41
  • 5
0
votes
1 answer

strange rpm requirement: perl(a)

I am packaging several parts of my company icinga installation as RPMs, to be used in the transaction from a central monitoring solution to a distributed one. Along the way I have packaged the nagios plugins folder easily and I have discovered that…
Bruno9779
  • 1,551
  • 2
  • 14
  • 31
0
votes
1 answer

CentOS - program can't find missing library but ld.conf points to it

When I run ldd on /opt/Qt5.1.0/5.1.0/gcc_64/plugins/sqldrivers/libqsqlmysql.so I see that it can't find libmysqlclient_r.so.16 linux-vdso.so.1 => (0x00007fffe2dfe000) libmysqlclient_r.so.16 => not found libQt5Sql.so.5 =>…
TSG
  • 4,242
  • 9
  • 61
  • 121
0
votes
1 answer

Regular expression to extract filename broken on '++' in filename

I'm working on a utility to assist others in resolving dependency hell. I can extract the UNIX path output by ldd but in one case my regex is not able to handle the presence of 2 +'s in the filename. My regular expression is…
dom_hutton
  • 148
  • 1
  • 7
0
votes
1 answer

ldd library not found

I get the following error launching my program: error while loading shared libraries: libnetcdf.so.6: cannot open shared object file: No such file or directory The point is the libnetcdf.so.6 is the old version of the library, I have deleted it…
user2617702
  • 51
  • 2
  • 3
0
votes
0 answers

Dynamic library not linking on ubuntu

I am using following makefile SHELL = /bin/sh CXXFLAGS += -fPIC TARGET = product_bridge.so MYPRODUCT = /tmp/product JAVASDK = /x86.linux/include/ CXXFLAGS += -I$(JAVASDK) -I$(JAVASDK)/linux -I$(GFCPP)/include -Wl,-rpath, -L$(MYPRODUCT)/lib…
Avinash
  • 12,851
  • 32
  • 116
  • 186
0
votes
2 answers

Environment for a Qt Program

I have a Qt executable file. When this program runs on a Ubuntu 11.04 virtual machine, the GUI is ugly though you can still tell it is the GUI that you want. When it runs on Ubuntu 12.04 of my laptop, however, everything goes well. Thus I guess…
beaver
  • 550
  • 1
  • 9
  • 23
0
votes
1 answer

How can I get the size of a library/executable's executable code section?

I'm performing an analysis of the executable sizes of various codebases, and I'm looking to get data about how large the executable section of a library or executable is. I know I can sort of get an idea by looking at /proc/xxx/maps, but is there…
alexgolec
  • 26,898
  • 33
  • 107
  • 159
-1
votes
1 answer

read debug/static symbols when on own process on linux without disk I/O in C/Linux?

Is it possible to read own symbol name by it's address using some API, when we assume that the whole program (and all related .so-files) has been deleted ? I found some pieces how to get this information using objdump, readelf, nm etc., but are…
Ivan Baidakou
  • 713
  • 9
  • 14
-1
votes
1 answer

ldd weirdness on old binaries

I got the following weirdness with ldd $ sudo ldd ./monit not a dynamic executable $ readelf -d monit Dynamic section at offset 0x25ea90 contains 27 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) …
fusillator
  • 47
  • 6
-1
votes
1 answer

Finding the version of the compiled executable

I'm trying to create a script which detects binary files and gets the version which compiled it. For example, if I have an executable which was compiled with gcc, I would like to get the version of gcc. I find out that I can use the Linux command…
TTaJTa4
  • 810
  • 1
  • 8
  • 22
1 2 3
16
17