c2rust icon indicating copy to clipboard operation
c2rust copied to clipboard

`json2cbor.c` fails to build on macOS 10.15

Open jrmuizel opened this issue 3 years ago • 1 comments

  tools/json2cbor/json2cbor.c:201:9: error: implicit declaration of function 'asprintf' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      if (asprintf(&metadatakey, "%s%s", item->string, meta_data_marker) < 0 || metadatakey == NULL)

jrmuizel avatar Sep 22 '22 14:09 jrmuizel

This looks like a duplicate of #353, which has been fixed (but not in a released version, it seems). Can you try building from git (or one of the other workarounds mentioned in discussion on #353)?

fw-immunant avatar Sep 22 '22 14:09 fw-immunant

Building from git seems to help but I run into #676

jrmuizel avatar Sep 22 '22 20:09 jrmuizel