This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH v2 08/19] libctf: creation functions
On 29 May 2019, Szabolcs Nagy spake thusly:
> On 17/05/2019 23:09, Nick Alcock wrote:
>> --- a/include/ctf-api.h
>> +++ b/include/ctf-api.h
>> @@ -27,6 +27,7 @@
>> #include <sys/param.h>
>> #include <sys/types.h>
>> #include <ctf.h>
>> +#include <zlib.h>
>
> is zlib guaranteed to be available everywhere where
> ctf-api.h may be used?
I hoped to be using the internal implementation in that case.
> in particular i see
>
> In file included from /S/libctf/ctf-impl.h:25:0,
> from /S/libctf/ctf-archive.c:20:
> /S/libctf/../include/ctf-api.h:30:18: fatal error: zlib.h: No such file or directory
> #include <zlib.h>
> ^
> compilation terminated.
> make[2]: *** [ctf-archive.o] Error 1
>
> when the host has no zlib.h
> (in that case the binutils internal zlib.h should be used,
> ZLIBINC etc should be set up in the Makefile of libctf)
Hm. I thought I'd done everything necessary for that (deps in
Makefile.tpl etc). Clearly I've missed something. I'll do what other
zlib users do...
--
NULL && (void)