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

Re: [xml/sgml-pkgs] Re: Build failure: cannot find -lz



On Tue, Jul 25, 2006 at 11:44:54AM -0700, Steve Langasek <vorlon@debian.org> wrote:
> On Tue, Jul 25, 2006 at 08:27:58PM +0200, Mike Hommey wrote:
> > On Tue, Jul 25, 2006 at 11:16:30AM -0700, Steve Langasek <vorlon@debian.org> wrote:
> > > On Tue, Jul 25, 2006 at 07:45:53PM +0200, Martin Michlmayr wrote:
> > > > A number of applications currently fail to build with something like:
> 
> > > > | sparc-linux-gnu-gcc -g -O2 -o .libs/ots ots.o ../src/.libs/libots-1.so /usr/lib/libglib-2.0.so /usr/lib/libxml2.so -ldl -lz -lm /usr/lib/libpopt.so
> > > > | /usr/bin/ld: cannot find -lz
> 
> > > > In bug #378494, filed on one of these packages (ices2), Julien Cristau
> > > > first claims "this -lz comes from libxml2's .la file, which libtool
> > > > uses to link ices2.  This could be fixed by libxml2-dev depending on
> > > > zlib1g-dev again, or not installing libxml2.la (which would probably
> > > > be better in the long term, but risks breaking existing packages)."
> > > > He later adds, "Actually, relibtoolizing ices2 (with the Debian libtool)
> > > > seems to be enough to fix this."
> 
> > > > Should I file individual bugs on these packages or one grave bug on
> > > > libxml2.
> 
> > > One grave bug on libxml2, please.  The common case of linking against
> > > libxml2 using libtool is now broken, for no discernable reason.  This is
> > > irresponsible library maintenance; it shouldn't be left to the maintainers
> > > of all the *other* packages to make this work again, particularly when we
> > > have freeze deadlines we want to be hitting...
> 
> > The thing is, linking against libxml2 using libtool DOES work. If you use
> > a correct version of libtool.
> 
> This is no excuse for breaking the buildability of dozens of packages that
> *don't* use that version of libtool without first coordinating.

That was not intended... I checked that packages using libtool would
still continue to build. It just happens that those I tested use the
version of libtool that doesn't break.

(...)
> So yes, please re-add the dependency on libxml2-dev for the time being.

We're still not so much in a rush. Freeze is not tomorrow. Let's first
fix packages that don't use a correct libtool, and then let's see if we
need the dependency again if the time is too short to fix everything.

Mike



Reply to: