Skip to content

Commit

Permalink
Fix: unknown type name ‘my_bool’; did you mean ‘_Bool’?
Browse files Browse the repository at this point in the history
See: brianmario/mysql2#980

Error messages:

Fetching mysql2 0.3.21
Installing mysql2 0.3.21 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

...

compiling client.c
client.c: In function ‘nogvl_read_query_result’:
client.c:439:3: error: unknown type name ‘my_bool’; did you mean ‘_Bool’?
  439 |   my_bool res = mysql_read_query_result(client);
      |   ^~~~~~~
      |   _Bool
client.c: In function ‘rb_query’:
  • Loading branch information
khiav223577 committed Aug 19, 2023
1 parent 3243807 commit 82f9d57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gemfiles/4.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source 'https://rubygems.org'
gem 'activerecord', '~> 4.2.0'

group :test do
gem 'mysql2', '0.3.21' if %w[mysql makara_mysql].include?(ENV['DB'])
gem 'mysql2', '0.4.10' if %w[mysql makara_mysql].include?(ENV['DB'])
gem 'pg', '~> 0.18' if %w[pg makara_pg].include?(ENV['DB'])
gem 'makara', '~> 0.4.1' if %w[makara_mysql makara_pg].include?(ENV['DB'])
gem 'simplecov', '< 0.18'
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source 'https://rubygems.org'
gem 'activerecord', '~> 5.0.0'

group :test do
gem 'mysql2', '0.3.21' if %w[mysql makara_mysql].include?(ENV['DB'])
gem 'mysql2', '0.4.10' if %w[mysql makara_mysql].include?(ENV['DB'])
gem 'pg', '~> 0.18' if %w[pg makara_pg].include?(ENV['DB'])
gem 'makara', '~> 0.4.1' if %w[makara_mysql makara_pg].include?(ENV['DB'])
gem 'simplecov', '< 0.18'
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/5.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source 'https://rubygems.org'
gem 'activerecord', '~> 5.1.0'

group :test do
gem 'mysql2', '0.3.21' if %w[mysql makara_mysql].include?(ENV['DB'])
gem 'mysql2', '0.4.10' if %w[mysql makara_mysql].include?(ENV['DB'])
gem 'pg', '~> 0.18' if %w[pg makara_pg].include?(ENV['DB'])
gem 'makara', '~> 0.4.1' if %w[makara_mysql makara_pg].include?(ENV['DB'])
gem 'simplecov', '< 0.18'
Expand Down

0 comments on commit 82f9d57

Please sign in to comment.