Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created January 27, 2022 14:24
Show Gist options
  • Save dlangille/3a22bc234bd90d637a752dbd4030d97e to your computer and use it in GitHub Desktop.
Save dlangille/3a22bc234bd90d637a752dbd4030d97e to your computer and use it in GitHub Desktop.
===> Generating temporary packing list
(cd /wrkdirs/usr/ports/databases/rubygem-mysql/work/mysql-2.9.1; /usr/bin/env RB_USER_INSTALL=yes LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 /usr/local/bin/gem27 install -l --no-update-sources --install-dir /wrkdirs/usr/ports/databases/rubygem-mysql/work/stage/usr/local/lib/ruby/gems/2.7 --ignore-dependencies --bindir=/wrkdirs/usr/ports/databases/rubygem-mysql/work/stage/usr/local/bin --no-document mysql-2.9.1.gem -- )
Building native extensions. This could take a while...
ERROR: Error installing mysql-2.9.1.gem:
ERROR: Failed to build gem native extension.
current directory: /wrkdirs/usr/ports/databases/rubygem-mysql/work/stage/usr/local/lib/ruby/gems/2.7/gems/mysql-2.9.1/ext/mysql_api
/usr/local/bin/ruby27 -I /usr/local/lib/ruby/site_ruby/2.7 -r ./siteconf20220126-30073-1frxqsf.rb extconf.rb
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... no
checking for mysql.h... yes
creating Makefile
current directory: /wrkdirs/usr/ports/databases/rubygem-mysql/work/stage/usr/local/lib/ruby/gems/2.7/gems/mysql-2.9.1/ext/mysql_api
make DESTDIR\= clean
current directory: /wrkdirs/usr/ports/databases/rubygem-mysql/work/stage/usr/local/lib/ruby/gems/2.7/gems/mysql-2.9.1/ext/mysql_api
make DESTDIR\=
compiling mysql.c
mysql.c:79:2: error: unknown type name 'my_bool'
my_bool *is_null;
^
mysql.c:367:5: error: use of undeclared identifier 'my_bool'
my_bool b;
^
mysql.c:397:10: error: use of undeclared identifier 'MYSQL_SET_CLIENT_IP'; did you mean 'MYSQL_SET_CHARSET_DIR'?
case MYSQL_SET_CLIENT_IP:
^~~~~~~~~~~~~~~~~~~
MYSQL_SET_CHARSET_DIR
/usr/local/include/mysql/mysql.h:176:3: note: 'MYSQL_SET_CHARSET_DIR' declared here
MYSQL_SET_CHARSET_DIR,
^
mysql.c:404:10: error: use of undeclared identifier 'MYSQL_SECURE_AUTH'; did you mean 'MYSQL_DEFAULT_AUTH'?
case MYSQL_SECURE_AUTH:
^~~~~~~~~~~~~~~~~
MYSQL_DEFAULT_AUTH
/usr/local/include/mysql/mysql.h:187:3: note: 'MYSQL_DEFAULT_AUTH' declared here
MYSQL_DEFAULT_AUTH,
^
mysql.c:406:6: error: use of undeclared identifier 'b'
b = 1;
^
mysql.c:408:6: error: use of undeclared identifier 'b'
b = 0;
^
mysql.c:409:14: error: use of undeclared identifier 'b'
v = (char*)&b;
^
mysql.c:397:10: error: duplicate case value 'MYSQL_SET_CHARSET_DIR'
case MYSQL_SET_CLIENT_IP:
^
mysql.c:390:10: note: previous case defined here
case MYSQL_SET_CHARSET_DIR:
^
mysql.c:884:5: error: use of undeclared identifier 'my_bool'
my_bool true = 1;
^
mysql.c:889:61: error: cannot take the address of an rvalue of type 'int'
if (mysql_stmt_attr_set(s, STMT_ATTR_UPDATE_MAX_LENGTH, &true))
^~~~~
mysql.c:2063:52: error: use of undeclared identifier 'MYSQL_SECURE_AUTH'; did you mean 'MYSQL_DEFAULT_AUTH'?
rb_define_const(cMysql, "SECURE_AUTH", INT2NUM(MYSQL_SECURE_AUTH));
^~~~~~~~~~~~~~~~~
MYSQL_DEFAULT_AUTH
/usr/local/include/ruby-2.7/ruby/ruby.h:1609:31: note: expanded from macro 'INT2NUM'
#define INT2NUM(x) RB_INT2NUM(x)
^
/usr/local/include/ruby-2.7/ruby/ruby.h:1586:41: note: expanded from macro 'RB_INT2NUM'
# define RB_INT2NUM(v) RB_INT2FIX((int)(v))
^
/usr/local/include/ruby-2.7/ruby/ruby.h:262:33: note: expanded from macro 'RB_INT2FIX'
#define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG)
^
/usr/local/include/mysql/mysql.h:187:3: note: 'MYSQL_DEFAULT_AUTH' declared here
MYSQL_DEFAULT_AUTH,
^
mysql.c:2064:61: error: use of undeclared identifier 'MYSQL_OPT_GUESS_CONNECTION'; did you mean 'MYSQL_OPT_RECONNECT'?
rb_define_const(cMysql, "OPT_GUESS_CONNECTION", INT2NUM(MYSQL_OPT_GUESS_CONNECTION));
^~~~~~~~~~~~~~~~~~~~~~~~~~
MYSQL_OPT_RECONNECT
/usr/local/include/ruby-2.7/ruby/ruby.h:1609:31: note: expanded from macro 'INT2NUM'
#define INT2NUM(x) RB_INT2NUM(x)
^
/usr/local/include/ruby-2.7/ruby/ruby.h:1586:41: note: expanded from macro 'RB_INT2NUM'
# define RB_INT2NUM(v) RB_INT2FIX((int)(v))
^
/usr/local/include/ruby-2.7/ruby/ruby.h:262:33: note: expanded from macro 'RB_INT2FIX'
#define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG)
^
/usr/local/include/mysql/mysql.h:185:3: note: 'MYSQL_OPT_RECONNECT' declared here
MYSQL_OPT_RECONNECT,
^
mysql.c:2065:68: error: use of undeclared identifier 'MYSQL_OPT_USE_EMBEDDED_CONNECTION'
rb_define_const(cMysql, "OPT_USE_EMBEDDED_CONNECTION", INT2NUM(MYSQL_OPT_USE_EMBEDDED_CONNECTION));
^
mysql.c:2066:66: error: use of undeclared identifier 'MYSQL_OPT_USE_REMOTE_CONNECTION'
rb_define_const(cMysql, "OPT_USE_REMOTE_CONNECTION", INT2NUM(MYSQL_OPT_USE_REMOTE_CONNECTION));
^
mysql.c:2067:54: error: use of undeclared identifier 'MYSQL_SET_CLIENT_IP'; did you mean 'MYSQL_SET_CHARSET_DIR'?
rb_define_const(cMysql, "SET_CLIENT_IP", INT2NUM(MYSQL_SET_CLIENT_IP));
^~~~~~~~~~~~~~~~~~~
MYSQL_SET_CHARSET_DIR
/usr/local/include/ruby-2.7/ruby/ruby.h:1609:31: note: expanded from macro 'INT2NUM'
#define INT2NUM(x) RB_INT2NUM(x)
^
/usr/local/include/ruby-2.7/ruby/ruby.h:1586:41: note: expanded from macro 'RB_INT2NUM'
# define RB_INT2NUM(v) RB_INT2FIX((int)(v))
^
/usr/local/include/ruby-2.7/ruby/ruby.h:262:33: note: expanded from macro 'RB_INT2FIX'
#define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG)
^
/usr/local/include/mysql/mysql.h:176:3: note: 'MYSQL_SET_CHARSET_DIR' declared here
MYSQL_SET_CHARSET_DIR,
^
In file included from mysql.c:2301:
./error_const.h:2723:27: error: use of undeclared identifier 'ER_XPLUGIN_IP'
rb_define_mysql_const(ER_XPLUGIN_IP);
^
16 errors generated.
*** Error code 1
Stop.
make[1]: stopped in /wrkdirs/usr/ports/databases/rubygem-mysql/work/stage/usr/local/lib/ruby/gems/2.7/gems/mysql-2.9.1/ext/mysql_api
make failed, exit code 1
Gem files will remain installed in /wrkdirs/usr/ports/databases/rubygem-mysql/work/stage/usr/local/lib/ruby/gems/2.7/gems/mysql-2.9.1 for inspection.
Results logged to /wrkdirs/usr/ports/databases/rubygem-mysql/work/stage/usr/local/lib/ruby/gems/2.7/extensions/amd64-freebsd-13/2.7/mysql-2.9.1/gem_make.out
*** Error code 1
Stop.
make: stopped in /usr/ports/databases/rubygem-mysql
=>> Cleaning up wrkdir
===> Cleaning for rubygem-mysql-2.9.1
build of databases/rubygem-mysql | rubygem-mysql-2.9.1 ended at Wed Jan 26 16:20:31 UTC 2022
build time: 00:03:20
!!! build failure encountered !!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment