????? ???????????? wrote:
> Imagine I have library libfoofoo.so.1 and library libbarbar.so.1 which
> define both the function yak() and a library libconsumer.so.1 which
> links against both libfoofoo and libbarbar.
> How can I see which version of yak() is used? Dtrace is no option, it
> has been disabled by the administrator and I do not have root rights.


You seem to have several (related) linker questions.
Perhaps the Linker and Libraries Manual would be worth
checking out:

     http://docs.sun.com/app/docs/doc/817-1984

The best way to find out which yak() wins is to turn on
runtime linker debugging:

     % LD_DEBUG=bindings /bin/ls

The only privs needed are the ability to run your application.
LD_DEBUG will send a large amount of information to stderr.

You can learn more about it by asking it for help:

     % LD_DEBUG=help /bin/ls

(The program you use doesn't matter, as it won't
actually run). Or the LLM discusses it

     
http://docs.sun.com/app/docs/doc/817-1984/chapter3-33?l=en&a=view&q=LD_DEBUG

- Ali

Reply via email to