Bug 1472456 - missing libmysqlclient.so.18
missing libmysqlclient.so.18
Product: Fedora
Classification: Fedora
Component: mariadb (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Michal Schorm
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-07-18 15:25 EDT by David Hill
Modified: 2017-11-14 10:24 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-10-26 11:50:27 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Hill 2017-07-18 15:25:25 EDT
Description of problem:
After updating to the latest mariadb packages, it seems like some libraries are missing or the symlinks are not being created properly

[root@zappa itunes]# yum reinstall mariadb-libs
Failed to synchronize cache for repo 'updates-testing', disabling.
Failed to synchronize cache for repo 'fedora27', disabling.
Failed to synchronize cache for repo 'fedora28', disabling.
Last metadata expiration check: 0:00:40 ago on Tue 18 Jul 2017 03:20:40 PM EDT.
Dependencies resolved.
 Package                                                    Arch                                                 Version                                                         Repository                                             Size
 mariadb-libs                                               i686                                                 3:10.2.6-4.fc27                                                 rawhide                                               147 k
 mariadb-libs                                               x86_64                                               3:10.2.6-4.fc27                                                 rawhide                                               144 k

Transaction Summary

Total size: 292 k
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] mariadb-libs-10.2.6-4.fc27.x86_64.rpm: Already downloaded
[SKIPPED] mariadb-libs-10.2.6-4.fc27.i686.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                     1/1
  Reinstalling     : mariadb-libs-3:10.2.6-4.fc27.x86_64                                                                                                                                                                                 1/4
  Running scriptlet: mariadb-libs-3:10.2.6-4.fc27.x86_64                                                                                                                                                                                 1/4
  Reinstalling     : mariadb-libs-3:10.2.6-4.fc27.i686                                                                                                                                                                                   2/4
  Running scriptlet: mariadb-libs-3:10.2.6-4.fc27.i686                                                                                                                                                                                   2/4
  Erasing          : mariadb-libs-3:10.2.6-4.fc27.i686                                                                                                                                                                                   3/4
  Running scriptlet: mariadb-libs-3:10.2.6-4.fc27.i686                                                                                                                                                                                   3/4
  Erasing          : mariadb-libs-3:10.2.6-4.fc27.x86_64                                                                                                                                                                                 4/4
  Running scriptlet: mariadb-libs-3:10.2.6-4.fc27.x86_64                                                                                                                                                                                 4/4
  Verifying        : mariadb-libs-3:10.2.6-4.fc27.x86_64                                                                                                                                                                                 1/4
  Verifying        : mariadb-libs-3:10.2.6-4.fc27.i686                                                                                                                                                                                   2/4
  Verifying        : mariadb-libs-3:10.2.6-4.fc27.x86_64                                                                                                                                                                                 3/4
  Verifying        : mariadb-libs-3:10.2.6-4.fc27.i686                                                                                                                                                                                   4/4
ls -altr
  mariadb-libs.i686 3:10.2.6-4.fc27                                                                                    mariadb-libs.x86_64 3:10.2.6-4.fc27

[root@zappa itunes]# rpm -V mariadb-libs
missing     /usr/lib64/mysql/libmysqlclient.so.18
missing     /usr/lib/mysql/libmysqlclient.so.18

Version-Release number of selected component (if applicable):

How reproducible:
Don't know

Steps to Reproduce:
1. The packages were updated and python scripts fail to load libmysqlclient.so.18

Actual results:
Failure to connect to database

Expected results:
Succeeding in connecting to database.

Additional info:
Comment 1 Michal Schorm 2017-07-26 04:25:51 EDT
I was able to reproduce the issue partly with version you used (10.2.6-4).

However, it seems to be fixed in the latest version 10.2.7-5.

Can you please re-test, if you are still impacted after update to the latest version?
Comment 2 David Hill 2017-07-27 12:12:01 EDT
This is what I have :


I still have the problem.
Comment 3 Michal Schorm 2017-08-08 07:31:29 EDT
The package shows correct values:

$ rpm -qp --provides mariadb-libs-10.2.7-8.fc27.x86_64.rpm | grep mysql
mysql-libs = 3:10.2.7-8.fc27
mysql-libs(x86-64) = 3:10.2.7-8.fc27

$ rpmdev-extract mariadb-libs-10.2.7-8.fc27.x86_64.rpm | grep mysql


Note, that libmysqlclient.so.18 is symlink to libmariadb.so.3.
So I'd rather check the python script, because it actually uses different library.
The library *should* be 100% compatible - any issues should be reported to MariaDB upstream. However, MariaDB removed nearly all symbols, that are not in specification. (e.g. MySQL symbols that changes between versions, short-term features etc.)
Comment 4 Jan Kurik 2017-08-15 03:56:37 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.
Comment 5 Michal Schorm 2017-10-04 12:38:15 EDT
In rawhide the mariadb client library moved to the mariadb-connector-c package and it is no longer distributed with mariadb. However the package is required, so no functionality has been lost.

If you use rawhide fedora, please try to reproduce your issue with the latest set.
Comment 6 Michal Schorm 2017-10-26 11:50:27 EDT
Cannot reproduce.

If you encounter this issue ever again, feel free to re-open this bug and provide latest info.
Comment 7 David Hill 2017-11-13 16:48:15 EST
This appears to be fixed with the latest packages.  Thank you again.
Comment 8 Michal Schorm 2017-11-13 18:37:45 EST
Glad to hear it's fixed for you :)
Comment 9 Pavel Raiskup 2017-11-14 10:24:11 EST
libmysqlclient.so.18 is not provided by the package, only by "fake" provides.
But that doesn't resolve any linking issues.  I propose to fix the issues
once and forever:


... plus, when needed, drop the broken packages that depend on this soname.

Note You need to log in before you can comment on or make changes to this bug.