This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 08/19] libctf: creation functions


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?

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]