Bug #82202 | Cannot link to libmysqlclient.so due to undef my_malloc, my_free and others | ||
---|---|---|---|
Submitted: | 12 Jul 2016 16:16 | Modified: | 31 Jan 2018 8:03 |
Reporter: | Georgi Sotirov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S3 (Non-critical) |
Version: | 5.3.10 | OS: | Linux (Slackware 14.2) |
Assigned to: | Bogdan Degtyariov | CPU Architecture: | Any |
[12 Jul 2016 16:16]
Georgi Sotirov
[14 Jul 2016 12:09]
Bogdan Degtyariov
Hi Georgi, Due to the changes in the dynamic version of libmysqlclient 5.7 the Connector/ODBC 5.3.6 cannot be linked against libmysqlclient.so. This is the expected effect of limiting the symbols exported by libmysqlclient.so strictly to MySQL C API functions. At this moment the only way of linking for MySQL Connector/ODBC driver is the static linking. Unfortunately, I do not have any information when this is going to change. Sorry for the inconvenience.
[14 Jul 2016 15:54]
Georgi Sotirov
Thanks for clarifying it, but in that case why option MYSQLCLIENT_STATIC_LINKING is OFF by default in 5.3.6? I had to force static linking with -DMYSQLCLIENT_STATIC_LINKING=ON in order to build the package.
[5 Aug 2017 0:15]
Anatoli ·
Same here with MySQL Server 5.7.19 and MySQL Connector ODBC 5.3.9. Thanks Georgi for the static linking option.
[29 Aug 2017 10:18]
Michal Schorm
Hello, I'd use some clarification. I'm affected by this issue as well. In Fedora and Red Hat OS family, we strictly use dynamic linking, which makes your ODBC connector unusable, for more than year. -- You closed this bug as "Not A Bug", with explanation, that the state is expected. However, after a year there is still no update in documentation, which still encourage developers to build dynmically. In ODBC connector 5.3.6 release notes you state this bug as solved: https://dev.mysql.com/doc/relnotes/connector-odbc/en/news-5-3-6.html "Attempt to build Connector/ODBC from source on a Linux platform against the client library and header files shipped with MySQL server 5.7.6 or newer failed. It was due to the changes made to the client library and the header files, to which Connector/ODBC has now been adapted. (Bug #20685833)" However the fix from bug https://bugs.mysql.com/bug.php?id=76261 did not solve the issue. -- I see this issue as not resolved yet and the bugs should be re-opened and investigated again in my opinion. OR the documentation hsould be updated in order to reflect that the dynamic linking ability has been dropped, is not possible to use it now, and there is no plan to fix it. -- Any update about the situation?
[31 Jan 2018 8:03]
Terje Røsten
MySQL Connector/ODBC 5.3.10 supports dynamically linking of MySQL client library: https://dev.mysql.com/doc/relnotes/connector-odbc/en/news-5-3-10.html Rebuild of Fedora mysql-connector-odbc with -DMYSQLCLIENT_STATIC_LINKING=OFF confirms this: $ rpm --requires -qp mysql-connector-odbc-5.3.10-1.fc28.x86_64.rpm|grep libmysqlclient libmysqlclient.so.20()(64bit) libmysqlclient.so.20(libmysqlclient_20.0)(64bit)