How
to find dynamic libs linked to progs
On Solaris, we have the ldd command, on HP-UX we have
the chatr command.
Is there any equivalent command available on DEC OSF1
(Digital UNIX)?
OSF is a pain in terms of tools etc... though they are
the innovators. Though it is not as clean as those in Solaris(ldd)
and HP (chtr). But it solves the purpose. For more information see loader(5)
and ld on DEC. Someone at Sybase needed this and
being DEC engineer my ass was on the line, either I had
to write something equiv. to ldd or find a soln or workaround. And here
is what I did to save my butt...
The trick lies in _RLD_ARGS. Set it to -v and you'll find
the list of libs among few other general information. Put it in a shell
script and pass the pgm name as arg to this and simply exec the program.
'lsof' will also give you the this information. Manny
would you happen to have the link for getting 'losf'?
You can also use -trace flag, -log_stdout and -stat to find other interesting
information and to debug a problem (-trace coupled with -stat are sometimes
better than the truss command, they tell you exact point of failure from
user's point of view, if you have paitence to read the terse output)
Have fun.
You can also use <br> % odump -Dl -v file_name
This command is great. Somehow I had forgotten it and
vaguely remembered the name as something similar to dump.
Have a Unix Problem
Do
you have a UNIX Question?
Unix Books :-
UNIX Programming,
Certification, System Administration, Performance Tuning Reference Books
Return to : - Unix
System Administration Hints and Tips
(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
All product names are trademarks of their respective
companies.
The site www.gotothings.com is in no way affiliated with
or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.
|