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

Re: Quirk in debian/rules



On 4 Nov 1998, Ben Gertzfield wrote:

> >>>>> "Jason" == Jason Gunthorpe <jgg@gpu.srv.ualberta.ca> writes:
> 
>     Jason> There is a small bug in the rules file, you need to set
>     Jason> LD_LIBRARY_PATH before generating the shared library
>     Jason> dependencies. If you do not do this it is possible to get a
>     Jason> double dependency on libstdc++2.8 and libstdc++2.9 because
>     Jason> ldd finds the installed version of APT's library.
> 
> Actually, no, this is not possible, now that I think about it..
> 
> [ben@gilgamesh:~]% cat /var/lib/dpkg/info/apt.shlibs                     6:20PM
> libpkg 0 apt
> 
> libpkg will only depend on apt.

Nonon, when you run ldd on the compiled apt it will see that apt is linked
against libstdc++2.9 and libpkg. It will then look at libpkg and see it is
linked with libstc++2.8! So you end up with ldd outputing two lines for
each libstdc++ and then you will have it depened on both libstdc++2.8 and
libstdc++2.9. The LDD_LIBRARY_PATH is designed to get rid of the 2.8
dependency.

jason


Reply to: