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

Build error in sql/mdl.cc on OS X 10.10

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1.4
    • 10.1.5
    • Compiling
    • None
    • Mac OS X 10.10.

    Description

      cmake ../server/ -DBUILD_CONFIG=mysql_release -DWITH_WSREP=OFF -DPLUGIN_TOKUDB=NO -DPLUGIN_MROONGA=NO

      [ 43%] Building CXX object sql/CMakeFiles/sql.dir/mdl.cc.o
      /Users/kolbe/Devel/git/maria/server/sql/mdl.cc:562:43: error: default initialization of an object of const type 'const MDL_lock::MDL_scoped_lock' requires a user-provided default constructor
      const MDL_lock::MDL_scoped_lock MDL_lock::m_scoped_lock_strategy;
                                                ^
      /Users/kolbe/Devel/git/maria/server/sql/mdl.cc:563:43: error: default initialization of an object of const type 'const MDL_lock::MDL_object_lock' requires a user-provided default constructor
      const MDL_lock::MDL_object_lock MDL_lock::m_object_lock_strategy;
                                                ^
      /Users/kolbe/Devel/git/maria/server/sql/mdl.cc:669:39: warning: offset of on non-POD type 'MDL_key' [-Winvalid-offsetof]
        MDL_key *mdl_key= (MDL_key*) (key - offsetof(MDL_key, m_ptr));
                                            ^                 ~~~~~
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include/stddef.h:87:24: note: expanded from macro 'offsetof'
      #define offsetof(t, d) __builtin_offsetof(t, d)
                             ^
      1 warning and 2 errors generated.
      make[2]: *** [sql/CMakeFiles/sql.dir/mdl.cc.o] Error 1
      make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
      make: *** [all] Error 2

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              kolbe Kolbe Kegel (Inactive)
              Votes:
              1 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.