Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-475

undefined reference to mariadb_rpl_init_ex when linking with libmariadb.so

Details

    Description

      When building a program that uses mariadb-connector-c function mariadb_rpl_init() I'm getting a link error: "undefined reference to mariadb_rpl_init_ex ".
      In the source, mariadb_rpl_init is defined as mariadb_rpl_init_ex.
      Looking inside libmariadb.so: 000000000003ebef t mariadb_rpl_init_ex
      which shows the symbol is internal.
      Same error occurs whether I build mariadb-connector-c from source or download the pre-built one form the distribution site.
      As a workaround, I've modified the CMakeLists.txt and added mariadb_rpl_init_ex to the list of symbols. Then rebuilt mariadb-connector-c.
      Unless I'm missing some option when building, it sounds like mariadb_rpl_init_ex should be externalized in the libmariadb.so?

      Attachments

        Activity

          Lurie Andrei Lurie created issue -

          Same here on Win32, "unresolved external symbol mariadb_rpl_init_ex" in libmariadb.dll.

          Almost looks intentional so that we can't play with the mariadb_rpl API

          rustyx Ruslan Altynbaev added a comment - Same here on Win32, " unresolved external symbol mariadb_rpl_init_ex " in libmariadb.dll . Almost looks intentional so that we can't play with the mariadb_rpl API
          georg Georg Richter made changes -
          Field Original Value New Value
          Affects Version/s 3.1.12 [ 25200 ]
          georg Georg Richter made changes -
          Fix Version/s 3.1.13 [ 25621 ]
          georg Georg Richter added a comment -

          Fixed in rev. c23ecca2a80cf09f4f3872eda3692ffa0c6f74b3

          georg Georg Richter added a comment - Fixed in rev. c23ecca2a80cf09f4f3872eda3692ffa0c6f74b3
          georg Georg Richter made changes -
          issue.field.resolutiondate 2021-03-15 06:20:57.0 2021-03-15 06:20:57.686
          georg Georg Richter made changes -
          Component/s Replication/Binlog API [ 16821 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          ralf.gebhardt Ralf Gebhardt made changes -
          Fix Version/s 3.2.0 [ 25122 ]
          julien.fritsch Julien Fritsch made changes -
          Workflow MariaDB connectors [ 109907 ] MariaDB v4 [ 161207 ]

          People

            georg Georg Richter
            Lurie Andrei Lurie
            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.