Skip to content

Adapts name of the mysql client library #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stefanproell
Copy link

Prior to MySQL 5.5 there used to be two versions of libmysqlclient. The version with the _r suffix was threadsafe, the one without was not. Since the release of MySQL 5.5, both versions are threadsafe and the _r version is only a symlink to libmysqlclient.so.

I quote the MySQL 5.5 Release Notes below:

The libmysqlclient client library is now built as a thread-safe library. The libmysqlclient_r client library is still present for compatibility, but is just a symbolic link to libmysqlclient.

In Ubuntu (and probably other Debian based systems), the libmysqlclient_r.so was removed and so was the symlink. Thus the compilation fails with the following error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MYSQL_LIB
    linked by target "mysql_client" in directory /home/sproell/git/query-playback/percona_playback/mysql_client
 
-- Configuring incomplete, errors occurred!
See also "/home/sproell/git/query-playback/build_dir/CMakeFiles/CMakeOutput.log".
See also "/home/sproell/git/query-playback/build_dir/CMakeFiles/CMakeError.log".

As a fix for this issue, I recommend replacing libmysqlclient_r with libmysqlclient to be compatible with more recent releases.

@wluo
Copy link

wluo commented Aug 12, 2019

Thanks @stefanproell! This fixed a seg fault for me -- I guess I manually supplied an incorrect libmysqlclient.

@krunde-nextpoint
Copy link

This fixed issues for me as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants