[ https://issues.apache.org/jira/browse/AVRO-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16857130#comment-16857130 ]
Anthony Hsu commented on AVRO-2036: ----------------------------------- I noticed this too while trying to build the Avro C library from source using Bazel for a Bazel project. Seems like [avro CMakeLists.txt file|https://github.com/apache/avro/blob/master/lang/c/src/CMakeLists.txt] purposely excludes {{schema_specific.c}}, where the compilation error happens. After I exclude {{schema_specific.c}} from the build, the build succeeds. > Avro fails to compile for C > --------------------------- > > Key: AVRO-2036 > URL: https://issues.apache.org/jira/browse/AVRO-2036 > Project: Apache Avro > Issue Type: Bug > Components: c > Affects Versions: 1.8.2 > Environment: Linux > Reporter: Don Snedigar > Priority: Major > > AVRO for C fails to compile. > Could be duplicate of AVRO-778 > First instance of failure (of many) occures in avro_schema_to_header : > static int avro_schema_to_header(avro_schema_t schema, specific_ctx * ctx) > { > size_t i; > FILE *fp = ctx->header; > indent(ctx, fp); > ctx->depth++; > if (is_avro_primitive(schema) && !ctx->name) { > <function continues....> > ctx has no member name. > The definition of the struct above is : > enum specific_state { > START_STATE, > }; > typedef enum specific_state specific_state; > struct specific_ctx { > FILE *header; > FILE *source; > int depth; > specific_state state; > }; > typedef struct specific_ctx specific_ctx; > So every instance of ctx->name fails..... > -- This message was sent by Atlassian JIRA (v7.6.3#76005)