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

mysys_ssl/my_crypt.cc reports the errors on MSVC compiler

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.5.28, 10.6.21, 10.11.11, 11.4.5
    • None
    • Compiling
    • None
    • OS: Microsoft Windows Server 2019
      The CXX compiler: MSVC 19.29.30158.0

    Description

      We need to use C+17 because WolfSSL's static assert uses C17 feature but MariaDB uses C+11. So mysys_ssl/my_crypt.cc reports the following errors on MSVC compiler.

      D:\a\mroonga\mroonga\mariadb\extra\wolfssl\wolfssl\wolfssl/wolfcrypt/error-crypt.h(321,56): error C2429: language feature 'terse static assert' requires compiler flag '/std:c++17'
      wc_static_assert((int)WC_LAST_E <= (int)WC_SPAN2_LAST_E);
                                                             ^
      D:\a\mroonga\mroonga\mariadb\extra\wolfssl\wolfssl\wolfssl/wolfcrypt/error-crypt.h(322,51): error C2429: language feature 'terse static assert' requires compiler flag '/std:c++17'
      wc_static_assert((int)MIN_CODE_E <= (int)WC_LAST_E);
                                                        ^
      D:\a\mroonga\mroonga\mariadb\extra\wolfssl\wolfssl\wolfssl/wolfcrypt/error-crypt.h(323,61): error C2429: language feature 'terse static assert' requires compiler flag '/std:c++17'
      wc_static_assert((int)MIN_CODE_E <= (int)WC_SPAN2_MIN_CODE_E);
                                                                  ^
      D:\a\mroonga\mroonga\mariadb\extra\wolfssl\wolfssl\wolfssl/error-ssl.h(244,55): error C2429: language feature 'terse static assert' requires compiler flag '/std:c++17'
      wc_static_assert((int)WC_LAST_E <= (int)WOLFSSL_LAST_E);
                                                            ^
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              komainu8 Horimoto Yasuhiro
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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