Unix Technical Forum

dynamic linking

This is a discussion on dynamic linking within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> I get result from ldd that I don't know how to interpret: ldd outputs the paths of the shared ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 08:11 PM
alex
 
Posts: n/a
Default dynamic linking

I get result from ldd that I don't know how to interpret:
ldd outputs the paths of the shared libraries dynamically linked by an
executable.

I find multiple entries for a given library, viz. one entry with the
original path used at compilation on the development machine - and
which doesn't exist on the target machine- and another with the version
of the library located in the SHLIB_PATH collection of search paths.

Now the application runs, so the path indicated by ldd is not the one
used, so it is presumably using the copy indicated in SHLIB_PATH.

When I use the option "-s" I see that ldd does try the correct
location, but then prints out the original, wrong path.

Does any understand this, and in particular why the application runs?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 08:11 PM
Carl Burch
 
Posts: n/a
Default Re: dynamic linking

This behavior is a known defect in the PA32 ldd, which is fixed in a
patch scheduled for release in September 2005. If you want to check
the release notes for it then, it is JAGaf60602 "ldd32 shows paths as
recorded instead of dynamic path search result".

- Carl Burch
HP WDB Team

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 06:45 AM.


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