[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ldd -u (Re: Solving recursive dependency disease in KDE-based packages)

* Nathanael Nerode [Sun, 11 Dec 2005 07:35:41 -0500]:

>   To work out which libraries you're linked to which you don't actually need,
>   ldd -u <executable or library> is invaluable.

  This seems like not the case _at all_ to me (the "invaluable" bit):

    % ldd -u /usr/lib/amarok/amarokapp
    Unused direct dependencies:

    % nm -D  /usr/lib/libpq.so.4 | grep PQconnectdb
    00009a90 T PQconnectdb

    % nm -D /usr/lib/amarok/amarokapp | grep PQconnectdb
             U PQconnectdb

  If this has an explanation (other than bogus ones like "some other
  dependency links against libpq.so.4", which I don't think it's the
  case, but mentioning as an example), please be my guest. For now, I
  plan on sticking to Henning Makholm's "libneeded" lintian check:

    % lintian -C libneeded amarok_1.3.7-1_i386.deb | grep usr/lib/amarok/amarokapp
    W: amarok: unneeded-explicit-linking usr/lib/amarok/amarokapp libz.so.1 libkutils.so.1

Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
Acaba de...
Acaba de una vez...
Acaba de una vez conmigo
                -- Astrud, Masaje

Reply to: