Subject: Re: libssh2 links against libgpg-error.so.0

Re: libssh2 links against libgpg-error.so.0

From: Simon Josefsson <simon_at_josefsson.org>
Date: Thu, 13 Aug 2009 11:46:36 +0200

Mikhail Gusarov <dottedmag_at_dottedmag.net> writes:

> Hello,
>
> I've noticed the following warning in build log:
>
> dpkg-shlibdeps: warning: dependency on libgpg-error.so.0 could be
> avoided if "debian/libssh2-1/usr/lib/libssh2.so.1.0.1" were not
> uselessly linked against it (they use none of its symbols).
>
> And indeed, libssh2.so.1.0.1 links against libgpg-error.so.0 due to this
> library being mentioned in libgcrypt.la.
>
> Is there a way to make libtool know that modern(tm) OSes(tm) have the
> notion of interlibrary dependencies, so libgpg-error.so.0 won't be
> linked to libssh2.so.x.y.z?

Upstream libtool doesn't support this yet, as far as I understand, but
Debian's libtool package should have a patch in it that may make it
work. There have been quite some discussion on this, see for example:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=405239

But unfortunately it has not yet been resolved.

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-08-13