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