Re: How to find out what libraries a binary calls?



On 30 Aug 2006 16:17:25 -0700, composlinuxmisc <altcomphardware@xxxxxxxxxxx> wrote:
| Hi guys. The same binary on two different machines produces two
| different results. One machine is an x86_64 and another is an i586.
|
| My previous tests with the same CPUs and binaries produced identical
| results. The only difference is that now my x86_64 had an upgrade from
| SuSE 9.2 to SuSE 10.0, and in the process I installed a few different
| libraries. Some were done through YaST, some were just copied over from
| a 32-bit machine to /usr/lib (when I couldn't find the appropriate
| library on the SuSE CD)
|
| For now, I'm guessing it is a library problem but I can't remember what
| library I copied over in such an ad hoc manner.
|
| Is there a way for me to tell what library a binary calls?


For most binaries, doing 'ldd /path/to/binary' will show you a list of
libraries that the loader will link the binary against before it runs.

There is a way for a binary to try and load a library while it is
running. You may be able to find these by running 'strings' against the
binary and looking for the library file names in the output.


--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
.



Relevant Pages

  • Re: How Common Lisp sucks
    ... not be so easy to use libraries in various CL implementations. ... programming language implementations that target vanilla OS/processor ... standard OS/processor "virtual" machines instead of targeting the ...
    (comp.lang.lisp)
  • Re: Problem With database on other computers
    ... References ... Firstly, see if you can uncheck the OLE and VB App Ext. libraries, and still ... On the Win 98 machines that have the problem, ... Compact the database. ...
    (microsoft.public.access.forms)
  • Re: Can not load libraries for tk84.dll
    ... libraries that are not in those machines. ... S-Y. ... I am having this strange problem with my Tcl shell. ...
    (comp.lang.tcl)
  • RE: [SLE] SuSE 9.3 and Latest Binaries - Library Conflict
    ... SuSE 9.3 and Latest Binaries - Library Conflict ... error: Failed dependencies: ... Now in SuSE 9.3, the installed libraries are: ...
    (SuSE)
  • standalone gnuplot build with all libraries
    ... error while loading shared libraries: libreadline.so.6: cannot open ... The binary and the local gp libs are located in a separate folder in the ... home directory (which is the same for all machines in the network). ...
    (comp.graphics.apps.gnuplot)