[Gambas-user] Dinamic Libraries unused with ldd

craf prog at ...2177...
Fri Dec 25 00:07:29 CET 2009


Ok Benoit, Thank you very much. 


-----Mensaje original-----
De: Benoît Minisini <gambas at ...1...>
Reply-to: mailing list for gambas users
<gambas-user at lists.sourceforge.net>
Para: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Asunto: Re: [Gambas-user] Dinamic Libraries unused with ldd
Fecha: Thu, 24 Dec 2009 17:36:07 +0100


> Hello
> 
> I'm seeing the dynamic libs that depends gbx2 file.
> 
> For that I use:
> 
> $ ldd / usr/local/bin/gbx2.
> 
> The result gives me is:
> 
> linux-gate.so.1 =>  (0xb8033000)
> libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ff3000)
> libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7fef000)
> libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7fd5000)
> libffi.so.5 => /usr/lib/libffi.so.5 (0xb7fcd000)
> libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e6a000)
> /lib/ld-linux.so.2 (0xb8034000)
> 
> Now with the -u option, the result is, the result is:
> 
> /lib/tls/i686/cmov/libm.so.6
> /lib/tls/i686/cmov/libdl.so.2
> /lib/tls/i686/cmov/libpthread.so.0
> 
> The -u option (unused) shows me what dependencies are not being used.
> 
> Question:
> 
> Can I ignore these dependencies, since they are not being taken into
> account?
> 
> Regards.

No. Apparently the "-u" option is wrong: the mathematical library is used, 
otherwise how could the Sin() interpreter function work? libdl is used for 
loading component, and libpthread is needed by some components too, but not by 
the interpreter directly.

Moreover, as the interpreter usually loads components at program startup, you 
will have to add all the dependencies of these components.

Regards,




More information about the User mailing list