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

    XMLWordPrintable

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

          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.