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

Compilation errors upon building with bundled SSL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • N/A
    • 10.8.1
    • Compiling, SSL
    • None

    Description

      Building with -DWITH_SSL=bundled causes errors at least on Debian/Ubuntu (different versions, different GCC versions).

      preview-10.8-MDEV-25785-openssl3.0 1b238e343

      In file included from /data/src/preview-10.8-MDEV-25785-openssl3.0-build/mysys_ssl/my_crypt.cc:18:
      /data/src/preview-10.8-MDEV-25785-openssl3.0-build/mysys_ssl/my_crypt.cc: In member function 'virtual int MyCTX_nopad::init(const EVP_CIPHER*, int, const uchar*, uint, const uchar*, uint)':
      /data/src/preview-10.8-MDEV-25785-openssl3.0-build/include/my_global.h:383:74: error: narrowing conversion of '-1' from 'int' to 'long unsigned int' [-Wnarrowing]
        383 |     typedef char compile_time_assert[(X) ? 1 : -1] __attribute__((unused)); \
            |                                                                          ^
      /data/src/preview-10.8-MDEV-25785-openssl3.0-build/mysys_ssl/my_crypt.cc:109:5: note: in expansion of macro 'compile_time_assert'
        109 |     compile_time_assert(MY_AES_CTX_SIZE >= sizeof(MyCTX_nopad));
            |     ^~~~~~~~~~~~~~~~~~~
      /data/src/preview-10.8-MDEV-25785-openssl3.0-build/include/my_global.h:383:42: error: size '-1' of array 'compile_time_assert' is negative
        383 |     typedef char compile_time_assert[(X) ? 1 : -1] __attribute__((unused)); \
            |                                      ~~~~^~~~~~~~
      /data/src/preview-10.8-MDEV-25785-openssl3.0-build/mysys_ssl/my_crypt.cc:109:5: note: in expansion of macro 'compile_time_assert'
        109 |     compile_time_assert(MY_AES_CTX_SIZE >= sizeof(MyCTX_nopad));
            |     ^~~~~~~~~~~~~~~~~~~
      [ 31%] Linking CXX executable my_rdtsc-t
      make[2]: *** [mysys_ssl/CMakeFiles/mysys_ssl.dir/build.make:173: mysys_ssl/CMakeFiles/mysys_ssl.dir/my_crypt.cc.o] Error 1
      make[1]: *** [CMakeFiles/Makefile2:10384: mysys_ssl/CMakeFiles/mysys_ssl.dir/all] Error 2
      make[1]: *** Waiting for unfinished jobs....
      

      -DMYSQL_MAINTAINER_MODE=OFF does not help.

      Not reproducible on the baseline 10.8.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.