-
Notifications
You must be signed in to change notification settings - Fork 550
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
Compilation failures against MariaDB Connector/C 3.0.2 #878
Comments
I'm also seeing this with MariaDB 10.2.8 installed via homebrew on OS X 10.11.6 |
My attempt at a patch is at pull request #880 |
Same for me with OS X 10.12.6, though it sounds like a breaking change in MariaDB 10.2 rather than an OS thing. Is there a workaround? I'm guessing |
|
If you are unable to downgrade mariadb, and you can't wait for #880 to get merged, here's a # Using a fork of mysql2 because there is no released version that will compile
# against mariadb 10.2.8. There was a breaking change in mariadb 10.2.8 where
# they moved some C header files (https://jira.mariadb.org/browse/MDEV-13370).
# There is a PR to fix this in the mysql2 gem, but it has not been merged yet.
# (https://github.com/brianmario/mysql2/pull/880)
gem "mysql2",
git: "https://github.com/actsasflinn/mysql2.git",
ref: "76ee6acb09077503a579f4ba5aae9b4137144957" |
I worked for me, thanks @jaredbeck! I've been looking all over the place. Cheers. |
The real fix is to not include mysql_com.h (renamed to mariadb_com.h) nor mysql_version.h (renamed to mariadb_version.h) when they don't exist as the |
ping |
homebrew has released mariadb 10.2.9, which includes compatibility patch https://jira.mariadb.org/browse/MDEV-13773. The only "bad" version is 10.2.8. Now that I have upgraded to 10.2.9, I am no longer able to reproduce this issue. It is no longer necessary to use actsasflinn's fork in my Gemfile. However, I believe this issue still needs to be addressed because MDEV-13773 is not intended to be permanent. |
I'm still blowing up on mysql_com.h
|
Thanks for testing it! I’ll continue sorting this out and get a release up.
|
I'm getting the following error when compiling the gem against the MariaDB C Connector 3.0.2:
At a glance, looks like the connector project renamed a bunch of files from
mysql_*.h
tomariadb_*.h
. Somysql_com.h
is nowmariadb_com.h
, not sure why they made that change. MariaDB Connector 2.3.0 has the old stylemysql_*
filenames and works fine with mysql2.The text was updated successfully, but these errors were encountered: