-
Notifications
You must be signed in to change notification settings - Fork 552
Closed
Milestone
Description
The MySQL 8.0.1 Milestone Release is available . I was trying to use it with mysql2 gem. It fails. It used to work witth MySQL 8.0.0 DMR in my environment.
Environment:
$ more /etc/redhat-release
Fedora release 25 (Twenty Five)
- Downloaded https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.1-0.1.dmr.fc25.x86_64.rpm-bundle.tar and install MySQL 8.0.1 DMR
$ rpm -qa |grep mysql-community
mysql-community-devel-8.0.1-0.1.dmr.fc25.x86_64
mysql-community-client-8.0.1-0.1.dmr.fc25.x86_64
mysql-community-server-8.0.1-0.1.dmr.fc25.x86_64
mysql-community-common-8.0.1-0.1.dmr.fc25.x86_64
mysql-community-test-8.0.1-0.1.dmr.fc25.x86_64
mysql-community-libs-8.0.1-0.1.dmr.fc25.x86_64
$
- Ruby and bundler version
$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
$ bundle -v
Bundler version 1.14.6
Steps to reproduce:
$ git clone https://github.com/rails/rails.git
$ cd rails/activerecord
$ bundle
Results:
$ bundle
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 12.0.0
Using concurrent-ruby 1.0.4
Using i18n 0.8.1
Using minitest 5.3.3
Using thread_safe 0.3.5
Using builder 3.2.3
Using erubi 1.6.0
Using mini_portile2 2.1.0
Using rack 2.0.1
Using nio4r 2.0.0
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 8.0.0 from https://github.com/rails/arel.git (at master@437aa3a)
Using public_suffix 2.0.5
Using amq-protocol 2.1.0
Using ast 2.3.0
Using beaneater 1.0.0
Using dante 0.2.0
Using bcrypt 3.1.11
Using benchmark-ips 2.7.2
Using blade-qunit_adapter 2.0.1
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using curses 1.0.2
Using eventmachine 1.2.1
Using cookiejar 0.3.3
Using http_parser.rb 0.6.0
Using multi_json 1.12.1
Using daemons 1.2.4
Using thor 0.19.4
Using useragent 0.16.8
Using ffi 1.9.17
Using multipart-post 2.0.0
Using rubyzip 1.2.0
Using websocket 1.2.3
Using byebug 9.0.6
Using method_source 0.8.2
Using connection_pool 2.2.1
Using dalli 2.7.6
Using hiredis 0.6.1
Using erubis 2.7.0
Using event_emitter 0.2.5
Using json 2.0.3
Using mustache 1.0.3
Using libxml-ruby 2.9.0
Using rb-fsevent 0.9.8
Using ruby_dep 1.5.0
Using metaclass 0.0.4
Using mono_logger 1.1.0
Installing mysql2 0.4.5 with native extensions
Using pg 0.19.0
Using powerpack 0.1.1
Using puma 3.7.0
Using redis 3.3.2
Using simple_uuid 0.4.0
Using que 0.12.0
Using racc 1.4.14
Using bundler 1.14.6
Using rainbow 2.2.1
Using rdoc 5.0.0
Using redcarpet 3.2.3
Using ruby-progressbar 1.8.1
Using unicode-display_width 1.1.3
Using sass 3.4.23
Using tilt 2.0.5
Using sequel 4.42.1
Using sigdump 0.2.4
Using thread 0.1.7
Using sprockets-export 0.9.1
Using sqlite3 1.3.13
Using stackprof 0.2.10
Using turbolinks-source 5.0.0
Using sucker_punch 2.0.2
Using tzinfo 1.2.2
Using nokogiri 1.7.0.1
Using rack-test 0.6.3
Using sprockets 3.7.1
Using rack-cache 1.6.1
Using rack-protection 1.5.3
Using sinatra 1.0
Using vegas 0.1.11
Using websocket-driver 0.6.4
Using mime-types 3.1
Using addressable 2.5.0
Using bunny 2.6.2
Using parser 2.4.0.0
Using backburner 1.3.1
Using coffee-script 2.4.1
Using uglifier 3.0.4
Using em-socksify 0.3.1
Using qu 0.2.0
Using thin 1.7.0
Using childprocess 0.5.9
Using rb-inotify 0.9.7 from https://github.com/matthewd/rb-inotify.git (at close-handling@9055351)
Using faraday 0.11.0
Using em-hiredis 0.3.1
Using websocket-client-simple 0.3.0 from https://github.com/matthewd/websocket-client-simple.git (at close-race@e161305)
Using mocha 0.14.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/yahonda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5/ext/mysql2
/home/yahonda/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170411-17346-uwyi9q.rb extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for rb_big_cmp()... yes
-----
Using mysql_config at /usr/bin/mysql_config
-----
checking for mysql.h... yes
checking for SSL_MODE_DISABLED in mysql.h... yes
checking for SSL_MODE_PREFERRED in mysql.h... yes
checking for SSL_MODE_REQUIRED in mysql.h... yes
checking for SSL_MODE_VERIFY_CA in mysql.h... yes
checking for SSL_MODE_VERIFY_IDENTITY in mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
-----
Setting libpath to /usr/lib64/mysql
-----
creating Makefile
current directory: /home/yahonda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5/ext/mysql2
make "DESTDIR=" clean
current directory: /home/yahonda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5/ext/mysql2
make "DESTDIR="
compiling client.c
In file included from ./mysql2_ext.h:41:0,
from client.c:1:
./result.h:24:3: error: unknown type name ‘my_bool’
my_bool *is_null;
^~~~~~~
./result.h:25:3: error: unknown type name ‘my_bool’
my_bool *error;
^~~~~~~
client.c: In function ‘nogvl_read_query_result’:
client.c:507:3: error: unknown type name ‘my_bool’
my_bool res = mysql_read_query_result(client);
^~~~~~~
client.c: In function ‘_mysql_client_options’:
client.c:828:3: error: unknown type name ‘my_bool’
my_bool boolval;
^~~~~~~
client.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-used-but-marked-unused’
cc1: warning: unrecognized command line option ‘-Wno-static-in-inline’
cc1: warning: unrecognized command line option ‘-Wno-reserved-id-macro’
cc1: warning: unrecognized command line option ‘-Wno-missing-variable-declarations’
cc1: warning: unrecognized command line option ‘-Wno-documentation-unknown-command’
cc1: warning: unrecognized command line option ‘-Wno-disabled-macro-expansion’
cc1: warning: unrecognized command line option ‘-Wno-covered-switch-default’
cc1: warning: unrecognized command line option ‘-Wno-conditional-uninitialized’
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
Makefile:241: recipe for target 'client.o' failed
make: *** [client.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/yahonda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5 for inspection.
Results logged to /home/yahonda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/mysql2-0.4.5/gem_make.out
An error occurred while installing mysql2 (0.4.5), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.4.5'` succeeds before bundling.
$
- gem_make.out
$ more /home/yahonda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/mysql2-0.4.5/gem_make.out
current directory: /home/yahonda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5/ext/mysql2
/home/yahonda/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170411-17346-uwyi9q.rb extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for rb_big_cmp()... yes
-----
Using mysql_config at /usr/bin/mysql_config
-----
checking for mysql.h... yes
checking for SSL_MODE_DISABLED in mysql.h... yes
checking for SSL_MODE_PREFERRED in mysql.h... yes
checking for SSL_MODE_REQUIRED in mysql.h... yes
checking for SSL_MODE_VERIFY_CA in mysql.h... yes
checking for SSL_MODE_VERIFY_IDENTITY in mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
-----
Setting libpath to /usr/lib64/mysql
-----
creating Makefile
current directory: /home/yahonda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5/ext/mysql2
make "DESTDIR=" clean
current directory: /home/yahonda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5/ext/mysql2
make "DESTDIR="
compiling client.c
In file included from ./mysql2_ext.h:41:0,
from client.c:1:
./result.h:24:3: error: unknown type name ‘my_bool’
my_bool *is_null;
^~~~~~~
./result.h:25:3: error: unknown type name ‘my_bool’
my_bool *error;
^~~~~~~
client.c: In function ‘nogvl_read_query_result’:
client.c:507:3: error: unknown type name ‘my_bool’
my_bool res = mysql_read_query_result(client);
^~~~~~~
client.c: In function ‘_mysql_client_options’:
client.c:828:3: error: unknown type name ‘my_bool’
my_bool boolval;
^~~~~~~
client.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-used-but-marked-unused’
cc1: warning: unrecognized command line option ‘-Wno-static-in-inline’
cc1: warning: unrecognized command line option ‘-Wno-reserved-id-macro’
cc1: warning: unrecognized command line option ‘-Wno-missing-variable-declarations’
cc1: warning: unrecognized command line option ‘-Wno-documentation-unknown-command’
cc1: warning: unrecognized command line option ‘-Wno-disabled-macro-expansion’
cc1: warning: unrecognized command line option ‘-Wno-covered-switch-default’
cc1: warning: unrecognized command line option ‘-Wno-conditional-uninitialized’
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
Makefile:241: recipe for target 'client.o' failed
make: *** [client.o] Error 1
make failed, exit code 2
$
Metadata
Metadata
Assignees
Labels
No labels