Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707784 - >=dev-db/mysql-workbench-8.0.18 requires libmysqlclient_r.so to connect to any host
Summary: >=dev-db/mysql-workbench-8.0.18 requires libmysqlclient_r.so to connect to an...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
: 736262 (view as bug list)
Depends on: 831664
Blocks:
  Show dependency tree
 
Reported: 2020-02-01 16:52 UTC by Mikko Mensonen
Modified: 2022-01-21 07:02 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge.info (file_707784.txt,6.68 KB, text/plain)
2020-02-01 16:53 UTC, Mikko Mensonen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikko Mensonen 2020-02-01 16:52:12 UTC
After recently upgrading two systems with mysql-workbench 8.0.18 and 8.0.19 installed, the workbench fails to connect to any host, complaining about a missing libmysqlclient_r.so.

17:24:19 [ERR][SQL Editor Form]: SqlEditorForm: exception in do_connect method: Exception: Couldn't load library libmysqlclient_r.so: libmysqlclient_r.so: cannot open shared object file: No such file or directory
17:24:19 [ERR][  GRTDispatcher]: exception in grt execute_task, continuing: Exception: Couldn't load library libmysqlclient_r.so: libmysqlclient_r.so: cannot open shared object file: No such file or directory
17:24:19 [ERR][  GRTDispatcher]: worker: task 'execute sql queries' has failed with error:.Couldn't load library libmysqlclient_r.so: libmysqlclient_r.so: cannot open shared object file: No such file or directory
17:24:19 [ERR][    WQE backend]: Got an exception during connection: Couldn't load library libmysqlclient_r.so: libmysqlclient_r.so: cannot open shared object file: No such file or directory
17:24:19 [ERR][SQL Editor Form]: SQL editor could not be connected: Couldn't load library libmysqlclient_r.so: libmysqlclient_r.so: cannot open shared object file: No such file or directory
17:24:19 [ERR][SQL Editor Form]: Your connection attempt failed for user '**' to the MySQL server at dbc01.**.net:3306:
  Couldn't load library libmysqlclient_r.so: libmysqlclient_r.so: cannot open shared object file: No such file or directory


There was no libmysqlclient_r.so present on the system before the @world upgrade and as far as I can see, no package even provides that anymore. Linking /usr/lib64/libmysqlclient.so to libmysqlclient_r.so "fixes" the issue, but it shouldn't be required as workbench worked fine before.

Reproducible: Always
Comment 1 Mikko Mensonen 2020-02-01 16:53:12 UTC
Created attachment 610520 [details]
emerge.info
Comment 2 Hans de Graaff gentoo-dev Security 2020-02-02 08:00:53 UTC
I can't reproduce this issue.

Which versions of mysql-connector-c and mysql-connector-c++ do you have installed?
Comment 3 Mikko Mensonen 2020-02-02 08:31:00 UTC
mysql-connector-c++ is on both systems with this same problem at 8.0.19.

mysql-connector-c is on one system 8.0.19, on the other it's still 6.1.11-r (it hasn't been upgraded for a while because on that system it has a package conflict)
Comment 4 Mikko Mensonen 2020-02-02 11:10:01 UTC
Downgrading mysql-connector-c++ from 8.0.19 back to previous version 1.1.12-r1 resolves the issue.
Comment 5 Marcin Kowalski 2020-02-07 14:42:16 UTC
Confirming this, downgrade also helps here.

The app starts ok with either library but fails to connect to server with newer version of the library.
Comment 6 Paul Wolf-Gangy 2020-02-19 11:07:57 UTC
I experience the same issue, the application starts fine, but when connecting to any database it fails with this error: "Couldn't load library libmysqlclient_r.so: libmysqlclient_r.so: cannot open shared object file: No such file or directory"

Downgrading "dev-db/mysql-connector-c++" to "1.1.12-r1" and restarting the application resolved the issue.
Comment 7 Hans de Graaff gentoo-dev Security 2020-02-19 18:55:57 UTC
I can confirm these issues. I will lock mysql-workbench to the 1.x version for the current versions to avoid these runtime issues.
Comment 8 Larry the Git Cow gentoo-dev 2020-02-19 18:58:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb3e263468b726f88871ac5e008de020e345bdc7

commit eb3e263468b726f88871ac5e008de020e345bdc7
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2020-02-19 18:54:32 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2020-02-19 18:58:06 +0000

    dev-db/mysql-workbench: fix mysql-connector-c++ version
    
    mysql-connector-c++ is not compatible at runtime with mysql-workbench,
    so lock the dependency to the 1.x version which is compatible.
    
    Closes: https://bugs.gentoo.org/707784
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    RepoMan-Options: --force
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 .../mysql-workbench-8.0.16-r1.ebuild               | 109 +++++++++++++++++++++
 .../mysql-workbench-8.0.19-r1.ebuild               | 109 +++++++++++++++++++++
 2 files changed, 218 insertions(+)
Comment 9 Alex D-Bug 2020-07-19 15:48:18 UTC
There is a simple workaround for >=dev-db/mysql-connector-c++-8.x.x:
ln -sv /usr/lib64/libmysqlclient.so /usr/lib64/libmysqlclient_r.so
and mysql-workbench works again without any problems, but I don't have any ideas, how to deal this with packaging
Comment 10 Hans de Graaff gentoo-dev Security 2020-07-20 08:01:26 UTC
(In reply to Alex D-Bug from comment #9)
> There is a simple workaround for >=dev-db/mysql-connector-c++-8.x.x:
> ln -sv /usr/lib64/libmysqlclient.so /usr/lib64/libmysqlclient_r.so
> and mysql-workbench works again without any problems, but I don't have any
> ideas, how to deal this with packaging

Many people have reported issues connecting to servers with this workaround in place. This really needs to be fixed upstream.
Comment 11 Hans de Graaff gentoo-dev Security 2020-08-08 08:56:53 UTC
*** Bug 736262 has been marked as a duplicate of this bug. ***
Comment 12 Andreas Sturmlechner gentoo-dev 2021-11-07 08:23:18 UTC
Is this still needed for 8.0.27? It is preventing cleanup.
Comment 13 Hans de Graaff gentoo-dev Security 2022-01-21 06:35:21 UTC
(In reply to Andreas Sturmlechner from comment #12)
> Is this still needed for 8.0.27? It is preventing cleanup.

Yes. It looks like this is actually an issue in mysql-connector-c++ itself.