Build failure: cannot find -lz
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. Are the xml-sgml folks aware of this problem?
The (probably incomplete) list of packages is: