Operating System - HP-UX
1826373 Members
4822 Online
109692 Solutions
New Discussion

The attribute of shared library list

 
sr71
New Member

The attribute of shared library list

Folks,

We used chatr to list the dependency of libwireshark.sl:
...
static /usr/local/lib/libroken.sl
dynamic /usr/local/lib/libcrypto.sl
static /usr/local/lib/libsmi.sl.2
dynamic /usr/lib/libm.2
...

I don't understand why libroken.sl is linked as "static"??

Thanks
Rick
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: The attribute of shared library list

Static means you linked it as /usr/local/lib/libroken.sl.
Dynamic means you linked it as: -L/usr/local/lib -lcrypto -lm.

You can change these with "chatr -l" or "chatr +l"
ranganath ramachandra
Esteemed Contributor

Re: The attribute of shared library list

These indicate where the library will be picked up from at runtime -
"static" means that there is no search at runtime, only the specified (recorded) path will be used to look for the library.
"dynamic" means that the library will be searched for in all the applicable paths (from embedded path, SHLIB_PATH and LD_LIBRARY_PATH) and finally in the specified (recorded) path.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

sr71
New Member

Re: The attribute of shared library list

Thanks for Dennis and ranganath's help. It's fixed now.
sr71
New Member

Re: The attribute of shared library list

ok