Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command - How do I list dynamic dependencies?

Status
Not open for further replies.

1500wing

MIS
Mar 21, 2001
51
US
I'm installing a cobol compiler on a 4.3.3 system. Users are reporting a run time error and I think I am missing a file. How do I determine what the dynamic dependencies of files or shared objects for an application are? On Solaris, (is that a bad word here?) one would use the ldd command. Does AIX offer anything similar?

Thanks

Chris
 
Try these:

lslpp -d fileset

lppchk -v Remember, amateurs built the Ark, professionals built the Titanic.
 
I'm not necessarily looking to add a library file to an existing app right now. I am looking for a command that shows current dynamically linked libraries for an application. After I identify which library is missing, the ar command looks like it will allow me to add it. So that will be a good thing to know. Thanks!

The example of Sun Solaris ldd command below shows the library needed as well as the linked libraries being used. It will also indicate what libraries are missing. My example doesn't show this, though.
Does AIX have a similar command for this?
I'm kind of browsing out there, and I beleive I can get an
AIX version of this. Just have to find and compile it. :)

Thanks much!

Chris

/export/adsm> ldd dsm
libDtHelp.so.1 => /usr/lib/libDtHelp.so.1 libDtSvc.so.1 => /usr/lib/libDtSvc.so.1
libm.so.1 => /usr/lib/libm.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1
libw.so.1 => /usr/lib/libw.so.1
libXm.so.3 => /usr/lib/libXm.so.3
libXt.so.4 => /usr/lib/libXt.so.4
libX11.so.4 => /usr/lib/libX11.so.4
libpthread.so.1 => /usr/lib/libpthread.so.1 libC.so.5 => /usr/lib/libC.so.5
libthread.so.1 => /usr/lib/libthread.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libtt.so.2 => /usr/dt/lib/libtt.so.2
libgen.so.1 => /usr/lib/libgen.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libSM.so.6 => /usr/openwin/lib/libSM.so.6
libICE.so.6 => /usr/openwin/lib/libICE.so.6
libXext.so.0 => /usr/openwin/lib/libXext.so.0
 
Most people find the dump -H does it for them.... first level of dependencies...

dump -n <lib or executable>
or the ar -tv
or
and take a look into the Import File Strings section of the output. Iff
you want to find them out during runtime, you should try the dbx debugger.

dbx -a <the full path to your executable>
...
... wait for the dbx prompt
...
map > <output file >
quit

--------------------------------------

There is no comes with AIX that does it....straight System 5
you can get a shareware version on Bulls site

or so I am told....
a sort of ldd is a part of aixtools found at or
You might try the one at < this one does
attempt to load the executable in question and then dumps out which libraries
have been loaded. This more like the SVR4 ldd works.

Best I can do.........
 
Sounds like a plan, I'll take a look at these sites and go from there. Thanks again!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top