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

-DPLUGIN_ROCKSDB=YES leads to errors during build

Details

    Description

      -DPLUGIN_ROCKSDB=YES lead to an error in attempt to build static engine:

      sql/libsql.a(sql_builtin.cc.o):(.data.rel+0x18): undefined reference to `builtin_maria_rocksdb_plugin'
      collect2: error: ld returned 1 exit status
      

      Workaround: say nothing about PLUGIN_ROCKSDB to cmake and it will build dynamic.

      Attachments

        Activity

          sanja Oleksandr Byelkin created issue -
          sanja Oleksandr Byelkin made changes -
          Field Original Value New Value
          Description
          -DPLUGIN_ROCKSDB=YES lead to an error in attempt to build static engine:

          sql/libsql.a(sql_builtin.cc.o):(.data.rel+0x18): undefined reference to `builtin_maria_rocksdb_plugin'
          collect2: error: ld returned 1 exit status
          -DPLUGIN_ROCKSDB=YES lead to an error in attempt to build static engine:

          sql/libsql.a(sql_builtin.cc.o):(.data.rel+0x18): undefined reference to `builtin_maria_rocksdb_plugin'
          collect2: error: ld returned 1 exit status

          Workaround: say nothing about PLUGIN_ROCKSDB to cmake and it will build dynamic.
          serg Sergei Golubchik made changes -
          Description -DPLUGIN_ROCKSDB=YES lead to an error in attempt to build static engine:

          sql/libsql.a(sql_builtin.cc.o):(.data.rel+0x18): undefined reference to `builtin_maria_rocksdb_plugin'
          collect2: error: ld returned 1 exit status

          Workaround: say nothing about PLUGIN_ROCKSDB to cmake and it will build dynamic.
          {{-DPLUGIN_ROCKSDB=YES}} lead to an error in attempt to build static engine:
          {noformat}
          sql/libsql.a(sql_builtin.cc.o):(.data.rel+0x18): undefined reference to `builtin_maria_rocksdb_plugin'
          collect2: error: ld returned 1 exit status
          {noformat}
          Workaround: say nothing about PLUGIN_ROCKSDB to cmake and it will build dynamic.
          serg Sergei Golubchik made changes -
          Assignee Sergei Petrunia [ psergey ]
          serg Sergei Golubchik made changes -
          Component/s Compiling [ 11001 ]

          Even if we fix the CMake issue, there will be a problem that MyRocks' MTR commands assume that the plugin is built dynamically (they specify --plugin-load, do INSTALL SONAME, etc).

          I think the fix is to disallow building of a static plugin, unless there is a real demand for it.

          psergei Sergei Petrunia added a comment - Even if we fix the CMake issue, there will be a problem that MyRocks' MTR commands assume that the plugin is built dynamically (they specify --plugin-load , do INSTALL SONAME , etc). I think the fix is to disallow building of a static plugin, unless there is a real demand for it.
          psergei Sergei Petrunia made changes -
          Fix Version/s 10.4 [ 22408 ]
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.3 [ 22126 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.3 [ 22126 ]
          Fix Version/s 10.4 [ 22408 ]
          psergei Sergei Petrunia made changes -
          Fix Version/s 10.2.16 [ 23110 ]
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.3 [ 22126 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 87305 ] MariaDB v4 [ 154376 ]

          People

            psergei Sergei Petrunia
            sanja Oleksandr Byelkin
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.