unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



ldd(1)								       ldd(1)



NAME

  ldd -	List dynamic dependencies of executable	files or shared	objects

SYNOPSIS

  ldd [-rdV] filename

OPTIONS

  -d  Prints warnings for any unresolved data symbol references	that would
      occur as a result	of filename being executed. (Checks references to
      only data	objects, not functions.)

  -r  Prints warnings for any unresolved symbol	references that	would occur
      as a result of filename being executed. (Checks references to both data
      objects and functions.)

  -V  Displays the version of the ldd command.

DESCRIPTION

  The ldd command lists	the dynamic dependencies of an executable file or
  shared object:

    +  If filename is an executable file, ldd lists the	pathnames of all
       shared objects that would be loaded as a	result of executing filename.

    +  If filename is a	shared object, ldd lists the pathnames of all shared
       objects that would be loaded as a result	of loading filename. The ldd
       command expects shared objects to have execute permission, and if this
       is not the case,	it will	issue a	warning	before attempting to process
       the file.

NOTES

  The ldd command does not list	shared objects explicitly attached by using
  dlopen().

  The ldd command prints the record of shared object pathnames to stdout. The
  optional list	of symbol resolution problems are printed to stderr.

EXIT STATUS

  If filename is not an	executable file	or a shared object, a non-zero exit
  status is returned.








EXAMPLES

   1.  The following command lists the static dependencies of libXm.so:
	    ldd	/usr/shlib/libXm.so

   2.  The following command lists the static dependencies of libXm.so as
       well as any unresolved symbol in	libXm.so or any	of its dependents:
	    ldd	-r /usr/shlib/libXm.so



SEE ALSO

  loader(5)