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

[PATCH] TokuDB compilation error with glibc 2.20

Details

    Description

      When compiling MariaDB 10.0.14 with TokuDB enabled against glibc 2.20, there is a compilation warning (which is treated as an error):

      [ 77%] Building CXX object storage/tokudb/ft-index/portability/CMakeFiles/tokuportability_static_conv.dir/huge_page_detection.cc.o
      In file included from /usr/include/sys/mman.h:22:0,
                       from /tmp/mariadb-10.0.14/storage/tokudb/ft-index/portability/huge_page_detection.cc:91:
      /usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
       # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
         ^
      cc1plus: all warnings being treated as errors

      A potential fix has already been mention in MDEV-6446. For good measure I'm also attaching the patch we carry locally in our tree.

      Attachments

        Activity

          pprkut Heinz Wiesinger created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Fix Version/s 10.0 [ 16000 ]
          Fix Version/s 5.5 [ 15800 ]
          Assignee Sergei Golubchik [ serg ]
          Summary TokuDB compilation error with glibc 2.20 [PATCH] TokuDB compilation error with glibc 2.20
          serg Sergei Golubchik made changes -
          Labels udf
          serg Sergei Golubchik made changes -
          Labels udf upstream
          serg Sergei Golubchik made changes -
          Fix Version/s 10.0.15 [ 17300 ]
          Fix Version/s 5.5.41 [ 17600 ]
          Fix Version/s 5.5 [ 15800 ]
          Fix Version/s 10.0 [ 16000 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 58315 ] MariaDB v3 [ 65145 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 65145 ] MariaDB v4 [ 148428 ]

          People

            serg Sergei Golubchik
            pprkut Heinz Wiesinger
            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.