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

TokuDB not recognized for compilation

    XMLWordPrintable

Details

    Description

      Hello, I tried to pack the new 10.2.11 into Fedora.

      Everything's fine but TokuDB, which won't compile anymore.
      The Cmake won't recognize it as usable: "Performing Test TOKUDB_OK - Failed"

      I think the issue lies within this commit: 7f1900705b
      https://github.com/MariaDB/server/commit/7f1900705b
      Within file "storage/tokudb/CMakeLists.txt"

      The new code there is:

      # tokudb requires F_NOCACHE, O_DIRECT, and designated initializers
      CHECK_CXX_SOURCE_COMPILES(
      "
      #include <fcntl.h>
      struct a {int b; int c; };
      struct a d = { .b=1, .c=2 };
      int main() { return F_NOCACHE + O_DIRECT; }
      " TOKUDB_OK)
      

      While the 'O_DIRECT' can be set

       The O_DIRECT, O_NOATIME, O_PATH, and  O_TMPFILE  flags  are  Linux-spe‐cific. One must define _GNU_SOURCE to obtain their definitions
      

      The 'F_NOCACHE' is Darwin Kernel (Mac OS X) specific and not present in Fedora.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              mschorm Michal Schorm
              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.