Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ldd(1) [linux man page]

LDD(1)							      General Commands Manual							    LDD(1)

NAME
ldd - print shared library dependencies SYNOPSIS
ldd [OPTION]... FILE... DESCRIPTION
ldd prints the shared libraries required by each program or shared library specified on the command line. OPTIONS
--version Print the version number of ldd. -v --verbose Print all information, including e.g. symbol versioning information. -d --data-relocs Perform relocations and report any missing objects (ELF only). -r --function-relocs Perform relocations for both data objects and functions, and report any missing objects or functions (ELF only). -u --unused Print unused direct dependencies. --help Usage information. BUGS
ldd does not work on a.out shared libraries. ldd does not work with some extremely old a.out programs which were built before ldd support was added to the compiler releases. If you use ldd on one of these programs, the program will attempt to run with argc = 0 and the results will be unpredictable. AUTHOR
Roland McGrath and Ulrich Drepper. SEE ALSO
ldconfig(8), ld.so(8). 30 October 2000 LDD(1)

Check Out this Related Man Page

LDD(1)							      General Commands Manual							    LDD(1)

NAME
ldd - print shared library dependencies SYNOPSIS
ldd [OPTION]... FILE... DESCRIPTION
ldd prints the shared libraries required by each program or shared library specified on the command line. OPTIONS
--version Print the version number of ldd. -v --verbose Print all information, including e.g. symbol versioning information. -d --data-relocs Perform relocations and report any missing objects (ELF only). -r --function-relocs Perform relocations for both data objects and functions, and report any missing objects or functions (ELF only). -u --unused Print unused direct dependencies. --help Usage information. BUGS
ldd does not work on a.out shared libraries. ldd does not work with some extremely old a.out programs which were built before ldd support was added to the compiler releases. If you use ldd on one of these programs, the program will attempt to run with argc = 0 and the results will be unpredictable. AUTHOR
Roland McGrath and Ulrich Drepper. SEE ALSO
ldconfig(8), ld.so(8). 30 October 2000 LDD(1)
Man Page

14 More Discussions You Might Find Interesting

1. Programming

Shared libraries

Hello everybody, I am having major problems at the moment with shared libraries and I have to little knowledge of them to solve them. So please, please help me :) Ok this is the problem: I have a library A, which uses B and C, and C uses again D. If I try to run A as plugin in apache,... (0 Replies)
Discussion started by: Micky
0 Replies

2. Programming

Shared Library

hello all I want to work in shared libraries how can i work in Linux Environment ? (2 Replies)
Discussion started by: rajashekaran
2 Replies

3. Programming

Static objects in libraries

Hi! I have the following problem with C++ programs on Unix: There is a binary executable program called, e.g. Main. It is dynamically linked with two shared libraries: Shared1 and Shared2. Both of these libraries, in turn, are statically linked with a static library called Static. This static... (0 Replies)
Discussion started by: maestro@altiris
0 Replies

4. Programming

ldd doesn't work with 64bit .so library on AIX

I generated my shared library in 64bit on AIX, but when I ran ldd, it says: Could not load program libmylib.so: Could not load module libmylib.so. The module has an invalid magic number. Anyone knows how to list library dependencies with 64bit shared library on AIX? If you... (1 Reply)
Discussion started by: modemer
1 Replies

5. UNIX for Dummies Questions & Answers

ldd output

can anybody tell me wat does the ldd output mean.cant understand it!! (3 Replies)
Discussion started by: laddu
3 Replies

6. Filesystems, Disks and Memory

How to find Dependent libraries in ELF file?

Dear group, I need to load dependent libraries for an application which is in ELF format.please let me know how to parse the ELF file to find dependent libraries. thnaks in advance, Ravinder (3 Replies)
Discussion started by: ravinder.are
3 Replies

7. AIX

How do we fix the library conflicts?

How do we fix library conflicts? When I do ldd on Mysql Driver, I get an error ldd libmyodbc5.so libmyodbc5.so needs: /usr/lib/libdl.a(shr_64.o) Cannot find libodbcinst.so /usr/lib/libc.a(shr_64.o) /usr/lib/libpthreads.a(shr_xpg5_64.o) /unix ... (1 Reply)
Discussion started by: Hangman2
1 Replies

8. Linux

how to backtrace a shared library file (.so)

I have a shared library file (.so) and I need to know some information 1. By which GCC version was this .so built? 2. Was this .so built in 32 bits mode or 64 bits mode Any command / tools to backtrace such kind of information? Thanks in advance! (2 Replies)
Discussion started by: princelinux
2 Replies

9. Solaris

ldd output

Hello, $ldd /usr/lib/libdl.so.1 give nothing in output/ Is this library ok ? *ldd <other_lib.so> libz.so.1 => /<custom_path>/libz.so.1 libz.so.1 (SUNW_1.1) => not found with this error message, are the shared libraries (/<custom_path>/libz.so.1) always be badly compiled ? tx you (1 Reply)
Discussion started by: wolfhurt
1 Replies

10. Shell Programming and Scripting

Find programs that are missing libraries.

I had to whip this up, and it seems useful enough to post here. Say you have been cleaning up your filesystem, and you removed a bunch of libraries, or you shuffled around some library directories, and aren't sure if ld.so.conf is correctly setup. You want to sweep through your file system looking... (0 Replies)
Discussion started by: otheus
0 Replies

11. Red Hat

Linux ODBC driver issue

Hi Gurus, I have a odbc in Linux. when I run command ldd. I got following result: # ldd DWora26.so linux-vdso.so.1 => (0x00007fff26355000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc31e70a000) librt.so.1 => /lib64/librt.so.1 (0x00007fc31e501000) ... (1 Reply)
Discussion started by: ken6503
1 Replies

12. Solaris

Solaris: ldd doesn't find libraries in exported environment variable LD_LIBRARY_PATH

I have given the relevant details below. Why are the libraries in /export/home/builds/pc9x_root/960/build/powrmart/pmbuild/bin/SunOS.64.r are invisible to ldd? %setenv ... (3 Replies)
Discussion started by: old_as_a_fossil
3 Replies

13. SCO

FATAL BOOT ERROR: Can’t load stage 3

I'm under huge pressure to recover data from an old server that only gets booted very infrequently. The data on it is urgently required - isn't always??! .. Server is an HP DL380G5 which is running SCO Unixware 7.11 .. It has 3 partitions in a RAID 5 Configuration: 1 of 10GB (I assume it... (19 Replies)
Discussion started by: BernP
19 Replies

14. Programming

C/C++ shared libraries on Linux.

This is the first time that I created a dynamic library in linux and although the program works, I do not get the correct information about the library when executing ldd. I explain the details: 1) Source code: bye_fn.c: #include <stdio.h> #include "hello.h" void bye (const char*... (9 Replies)
Discussion started by: jose_spain
9 Replies