Unix Technical Forum

Library dependency follower

This is a discussion on Library dependency follower within the AIX Operating System forums, part of the Unix Operating Systems category; --> Is anyone aware of a tool that can follow library dependencies for a given executable? For example, executable a.out ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 09:22 PM
Allan Chandler
 
Posts: n/a
Default Library dependency follower

Is anyone aware of a tool that can follow library dependencies for a given
executable? For example, executable a.out uses libc.a[shr.o] and
libdummy.a[dummy.o] which in turn uses libc.a[strcat.o]. This would
generate:
a.out
libc.a[shr.o]
libdummy.a[dummy.o]
libc.a[strcat.o]

The reason I ask is that I'm getting a large number of programs unable to
load librarties because of these dependencies and it's tedious doing the
manual work of using dump, ar, et al. Before I launch into writing a script
to do it automatically, I thought I'd ask the experts (<- sound of
grovelling here).

Any assistance would be appreciated.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 09:22 PM
Nicholas Dronen
 
Posts: n/a
Default Re: Library dependency follower

Allan Chandler <nobody@nowhere.com> wrote:
AC> Is anyone aware of a tool that can follow library dependencies for a given
AC> executable? For example, executable a.out uses libc.a[shr.o] and
AC> libdummy.a[dummy.o] which in turn uses libc.a[strcat.o]. This would
AC> generate:
AC> a.out
AC> libc.a[shr.o]
AC> libdummy.a[dummy.o]
AC> libc.a[strcat.o]

AC> The reason I ask is that I'm getting a large number of programs unable to
AC> load librarties because of these dependencies and it's tedious doing the
AC> manual work of using dump, ar, et al. Before I launch into writing a script
AC> to do it automatically, I thought I'd ask the experts (<- sound of
AC> grovelling here).

I don't know of one but a Perl script using recursion would be easy
to write. If not one posts code for you to use, would you mind
posting the code you write to the group for others to use?
Regards,

Nicholas

--
http://www.faqs.org/rfcs/rfc1855.html
3.1.1 General Guidelines for mailing lists and NetNews
3.1.3 NetNews Guidelines
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:20 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com