Details
-
Bug
-
Status: Closed (View Workflow)
-
Trivial
-
Resolution: Fixed
-
3.1.12
-
None
-
Linux (Centos 7)
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?