Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2036

Avro fails to compile for C

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.2
    • None
    • c
    • None
    • Linux

    Description

      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.....

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            dsnedigar Don Snedigar

            Dates

              Created:
              Updated:

              Slack

                Issue deployment