+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/rubygem-mysql2.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Km4cOA + umask 022 + cd /builddir/build/BUILD + gem unpack /builddir/build/SOURCES/mysql2-0.4.8.gem Unpacked gem: '/builddir/build/BUILD/mysql2-0.4.8' + cd /builddir/build/BUILD + cd mysql2-0.4.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/mysql2-0.4.8.gem -l --ruby + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pSz7Ai + umask 022 + cd /builddir/build/BUILD + cd mysql2-0.4.8 + gem build mysql2.gemspec Successfully built RubyGem Name: mysql2 Version: 0.4.8 File: mysql2-0.4.8.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc mysql2-0.4.8.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/mysql2-0.4.8 Bin dir: /builddir/build/BUILD/mysql2-0.4.8/usr/bin Gem home: /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/CHANGELOG.md /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/LICENSE /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/README.md /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/examples/eventmachine.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/examples/threaded.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/client.c /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/client.h /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/extconf.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/infile.c /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/infile.h /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/mysql2_ext.c /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/mysql2_ext.h /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/mysql_enc_name_to_ruby.h /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/mysql_enc_to_ruby.h /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/result.c /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/result.h /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/statement.c /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/statement.h /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2/wait_for_single_fd.h /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/lib/mysql2.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/lib/mysql2/client.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/lib/mysql2/console.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/lib/mysql2/em.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/lib/mysql2/error.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/lib/mysql2/field.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/lib/mysql2/result.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/lib/mysql2/statement.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/lib/mysql2/version.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/configuration.yml.example /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/em/em_spec.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/my.cnf.example /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/mysql2/client_spec.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/mysql2/error_spec.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/mysql2/result_spec.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/mysql2/statement_spec.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/rcov.opts /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/spec_helper.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/ca-cert.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/ca-key.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/ca.cnf /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/cert.cnf /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/client-cert.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/client-key.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/client-req.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/gen_certs.sh /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/pkcs8-client-key.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/pkcs8-server-key.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/server-cert.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/server-key.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/ssl/server-req.pem /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/spec/test_data /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/support/libmysql.def /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/support/mysql_enc_to_ruby.rb /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/support/ruby_enc_to_mysql.rb Building native extensions. This could take a while... current directory: /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2 /usr/bin/ruby -r ./siteconf20180325-330-idnz7r.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 errmsg.h... yes checking for mysqld_error.h... yes checking for SSL_MODE_DISABLED in mysql.h... no checking for MYSQL_OPT_SSL_ENFORCE in mysql.h... yes checking for MYSQL.net.vio in mysql.h... no checking for MYSQL.net.pvio in mysql.h... yes ----- Setting rpath to /usr/lib64/ ----- creating Makefile current directory: /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2 make "DESTDIR=" clean rm -f rm -f mysql2.so *.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8/ext/mysql2 make "DESTDIR=" gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include/mysql -I/usr/include/mysql -DHAVE_RB_ABSINT_SIZE -DHAVE_RB_ABSINT_SINGLEBIT_P -DHAVE_RUBY_THREAD_H -DHAVE_RB_THREAD_CALL_WITHOUT_GVL -DHAVE_RB_WAIT_FOR_SINGLE_FD -DHAVE_RB_HASH_DUP -DHAVE_RB_INTERN3 -DHAVE_RB_BIG_CMP -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -DHAVE_CONST_MYSQL_OPT_SSL_ENFORCE -DHAVE_MYSQL_NET_PVIO -DHAVE_ST_NET_PVIO -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wno-bad-function-cast -Wno-conditional-uninitialized -Wno-covered-switch-default -Wno-declaration-after-statement -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-missing-field-initializers -Wno-missing-variable-declarations -Wno-padded -Wno-reserved-id-macro -Wno-sign-conversion -Wno-static-in-inline -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-used-but-marked-unused -o client.o -c client.c In file included from ./mysql2_ext.h:14:0, from client.c:1: /usr/include/mysql/mysql_com.h:3:2: warning: #warning This file should not be included by clients, include only [-Wcpp] #warning This file should not be included by clients, include only ^~~~~~~ In file included from /usr/include/ruby/ruby.h:29:0, from /usr/include/ruby.h:33, from ./mysql2_ext.h:10, from client.c:1: client.c: In function 'rb_mysql_client_info': client.c:59:30: error: 'MYSQL_SERVER_VERSION' undeclared (first use in this function); did you mean 'MYSQL_LINK_VERSION'? #define MYSQL_LINK_VERSION MYSQL_SERVER_VERSION ^ client.c:947:32: note: in expansion of macro 'MYSQL_LINK_VERSION' header_version = rb_str_new2(MYSQL_LINK_VERSION); ^~~~~~~~~~~~~~~~~~ client.c:59:30: note: each undeclared identifier is reported only once for each function it appears in #define MYSQL_LINK_VERSION MYSQL_SERVER_VERSION ^ client.c:947:32: note: in expansion of macro 'MYSQL_LINK_VERSION' header_version = rb_str_new2(MYSQL_LINK_VERSION); ^~~~~~~~~~~~~~~~~~ client.c: In function 'rb_set_ssl_mode_option': client.c:143:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 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' make: *** [Makefile:243: client.o] Error 1 ERROR: Error installing mysql2-0.4.8.gem: ERROR: Failed to build gem native extension. Building has failed. See above output for more information on the failure. make failed, exit code 2 Gem files will remain installed in /builddir/build/BUILD/mysql2-0.4.8/usr/share/gems/gems/mysql2-0.4.8 for inspection. Results logged to /builddir/build/BUILD/mysql2-0.4.8/usr/lib64/gems/ruby/mysql2-0.4.8/gem_make.out error: Bad exit status from /var/tmp/rpm-tmp.pSz7Ai (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.pSz7Ai (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff