Bug#997251: ocaml-taglib: FTBFS: ld: cannot find -lz
Source: ocaml-taglib
Version: 0.3.6-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> g++ -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DPIC -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I .. -I/usr/include/taglib \
> -I'/usr/lib/ocaml' \
> taglib_stubs.cc -o taglib_stubs.o
> ocamlc.opt -c -dtypes -g -w +A-4@5-7@8-9@11@12@20-35-44-45-50 taglib.mli
> ocamlc.opt -c -dtypes -g -w +A-4@5-7@8-9@11@12@20-35-44-45-50 taglib.ml
> taglib_stubs.cc: In function ‘value caml_taglib_tag_get_string(value, value)’:
> taglib_stubs.cc:317:24: warning: ‘TagLib::String::null’ is deprecated [-Wdeprecated-declarations]
> 317 | String tmp = String::null;
> | ^~~~
> In file included from /usr/include/taglib/tag.h:30,
> from /usr/include/taglib/tfile.h:31,
> from /usr/include/taglib/fileref.h:29,
> from taglib_stubs.cc:44:
> /usr/include/taglib/tstring.h:528:37: note: declared here
> 528 | TAGLIB_DEPRECATED static String null;
> | ^~~~
> taglib_stubs.cc:317:24: warning: ‘TagLib::String::null’ is deprecated [-Wdeprecated-declarations]
> 317 | String tmp = String::null;
> | ^~~~
> In file included from /usr/include/taglib/tag.h:30,
> from /usr/include/taglib/tfile.h:31,
> from /usr/include/taglib/fileref.h:29,
> from taglib_stubs.cc:44:
> /usr/include/taglib/tstring.h:528:37: note: declared here
> 528 | TAGLIB_DEPRECATED static String null;
> | ^~~~
> taglib_stubs.cc:332:22: warning: ‘TagLib::String::null’ is deprecated [-Wdeprecated-declarations]
> 332 | if (tmp == String::null)
> | ^~~~
> In file included from /usr/include/taglib/tag.h:30,
> from /usr/include/taglib/tfile.h:31,
> from /usr/include/taglib/fileref.h:29,
> from taglib_stubs.cc:44:
> /usr/include/taglib/tstring.h:528:37: note: declared here
> 528 | TAGLIB_DEPRECATED static String null;
> | ^~~~
> taglib_stubs.cc:332:22: warning: ‘TagLib::String::null’ is deprecated [-Wdeprecated-declarations]
> 332 | if (tmp == String::null)
> | ^~~~
> In file included from /usr/include/taglib/tag.h:30,
> from /usr/include/taglib/tfile.h:31,
> from /usr/include/taglib/fileref.h:29,
> from taglib_stubs.cc:44:
> /usr/include/taglib/tstring.h:528:37: note: declared here
> 528 | TAGLIB_DEPRECATED static String null;
> | ^~~~
> ar rcs libtaglib_stubs.a taglib_stubs.o
> ocamlmklib -L-Wl,-z,relro -L/usr/lib \
> -o taglib_stubs taglib_stubs.o -ltag -lz -lstdc++ \
>
> /usr/bin/ld: cannot find -lz
> collect2: error: ld returned 1 exit status
The full build log is available from:
http://qa-logs.debian.net/2021/10/23/ocaml-taglib_0.3.6-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Reply to: