
| ldd(1) | ldd(1) | 
DIAGNOSTICS
ldd prints the record of shared library path names to stdout. The optional list of symbol resolution problems are printed to stderr.
ldd returns zero when the operation is successful. A 
EXAMPLES
By default ldd prints a simple dynamic path information. This consists of the dependencies recorded in the executable (or the shared library) followed by the physical location where these libraries are found.
| ldd a.out | 
 | 
 | 
| ./libx.sl => | ./libx.sl | |
| libc.2 | => | /lib/pa20_64/libc.2 | 
| libdl.1 | => | /lib/pa20_64/libdl.1 | 
The 
| ldd  | a.out | 
 | 
| find | library=./libx.sl; required by a.out | |
| ./libx.sl => | ./libx.sl | |
| find | library=libc.2; required by a.out | |
| libc.2 => | /lib/pa20_64/libc.2 | |
| find | library=libdl.1; required by /lib/pa20_64/libc.2 | |
| libdl.1 => | /lib/pa20_64/libdl.1 | |
The 
| ldd  | 
 | |
| ./libx.sl => | ./libx.sl | |
| libc.2 | => | /lib/pa20_64/libc.2 | 
| libdl.1 | => | /lib/pa20_64/libdl.1 | 
| symbol not found: val1 (./libx.sl) | ||
| symbol not found: count (./libx.sl) | ||
| symbol | not found: func1 (./libx.sl) | |
WARNINGS
ldd does not list shared libraries explicitly loaded using dlopen(3C) or shl_load(3X).
| FILES | 
 | output ®le | 
| a.out | 
 | |
| /usr/lib/dld.sl | ||
| /usr/lib/pa20_64/dld.sl | ||
| /usr/ccs/lib/lddstub | ||
| 
 | 
 | of shared libraries | 
| /usr/ccs/lib/pa20_64/lddstub | ||
| 
 | 
 | of shared libraries | 
| /usr/lib/nls/$LANG/ldd.cat | message catalog | |
| SEE ALSO | 
 | 
 | 
| System Tools: | 
 | 
 | 
| ld(1) | invoke the link editor | 
 | 
| Miscellaneous: | 
 | 
 | 
| a.out(4) | assembler, compiler, and linker output | |
| dld.sl(5) | dynamic loader | 
 | 
Texts and Tutorials:
l
| − 2 − | Section 1−441 |