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

FW: Re: help: shlibs problem



Is this guy right?

-----FW: <Pine.LNX.4.10.10012221256330.6381-100000@tennyson.netexpress.ne-----

Date: Fri, 22 Dec 2000 13:11:18 -0600 (CST)
From: Steve Langasek <vorlon@netexpress.net>
To: Mariusz Przygodzki <dune@home.pl>
Subject: Re: help: shlibs problem
Cc: debian-mentors@lists.debian.org

On Fri, 22 Dec 2000, Mariusz Przygodzki wrote:

> The binary package 'qub' includes the application 'qub' and the shared 
> library 'libfunUtil'.
> I have debian/shlibs.local with 'libfunUtil 0' but dpkg-shlibdeps says:
> 'warning: could not find path for libfunUtil.so.0'. I have also tried with 
> 'libfunUtil 0 qub' in shlibs.local with the same warning.
> The binary package includes libfunUtil.so.0.0.0 and a proper symlink 
> libfunUtil.so.0 to libfunUtil.so.0.0.0.

> What I am doing wrong?

Hi Mariusz,

I recently ran into this problem myself.  Looking at the source to
dpkg-shlibdeps, this appears to be a bug: what happens is that dpkg-shlibdeps
uses ldd to find all the libraries that your binary 'qub' is linked against.
Since it depends on libfunUtil, this library will show up in the list, and
when ldd searches the *system* path, it of course won't be able to find
libfunUtil, because it's in the package your currently building that hasn't
been installed yet.  dpkg-shlibdeps should look at shlibs.local for libraries
that it can't find on the system, but it does not do this.

A workaround (to suppress the warning message) is to do something like this
in your makefile:

        LD_LIBRARY_PATH=./debian/tmp/usr/lib/ dh_shlibdeps -a

Not very pretty, of course. :)

Steve Langasek
postmodern programmer


--  
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

--------------End of forwarded message-------------------------



Reply to: