Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-28051

Error on compiling of libmariadb/plugins/compress/c_zstd.c

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.8.3
    • Component/s: libmariadb
    • Labels:
      None

      Description

      server-10.8/libmariadb/plugins/compress/c_zstd.c:37:28: error: redefinition of typedef 'ZSTD_CCtx' is a C11 feature [-Werror,-Wtypedef-redefinition]
      typedef struct ZSTD_CCtx_s ZSTD_CCtx;
                                 ^
      /usr/local/include/zstd.h:200:28: note: previous definition is here
      typedef struct ZSTD_CCtx_s ZSTD_CCtx;
                                 ^
      server-10.8/libmariadb/plugins/compress/c_zstd.c:38:28: error: redefinition of typedef 'ZSTD_DCtx' is a C11 feature [-Werror,-Wtypedef-redefinition]
      typedef struct ZSTD_DCtx_s ZSTD_DCtx;
                                 ^
      /usr/local/include/zstd.h:223:28: note: previous definition is here
      typedef struct ZSTD_DCtx_s ZSTD_DCtx;
                                 ^
      2 errors generated.
      

      Running make with the option VERBOSE=1 shows that compiler is invoked with the option -std=gnu99 that is the reason of the above compilation failure.

        Attachments

          Activity

            People

            Assignee:
            marko Marko Mäkelä
            Reporter:
            shulga Dmitry Shulga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.