Skip to content

Instantly share code, notes, and snippets.

@cahlan
Created January 27, 2014 21:26
Show Gist options
  • Save cahlan/8657640 to your computer and use it in GitHub Desktop.
Save cahlan/8657640 to your computer and use it in GitHub Desktop.
================================================================================
Error executing action `install` on resource 'gem_package[mysql]'
================================================================================
Gem::Installer::ExtensionBuildError
-----------------------------------
ERROR: Failed to build gem native extension.
/usr/bin/ruby 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
make
compiling mysql.c
In file included from /usr/include/mysql/mysql.h:72,
from mysql.c:20:
/usr/include/mysql/mysql_com.h:1:1: warning: null character(s) ignored
In file included from /usr/include/mysql/mysql.h:73,
from mysql.c:20:
/usr/include/mysql/mysql_time.h:1:1: warning: null character(s) ignored
In file included from mysql.c:20:
/usr/include/mysql/mysql.h:114: error: field ‘type’ has incomplete type
In file included from mysql.c:20:
/usr/include/mysql/mysql.h:244: error: expected specifier-qualifier-list before ‘NET’
/usr/include/mysql/mysql.h:426: warning: ‘enum mysql_enum_shutdown_level’ declared inside parameter list
/usr/include/mysql/mysql.h:426: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/include/mysql/mysql.h:433: warning: ‘enum enum_mysql_set_option’ declared inside parameter list
/usr/include/mysql/mysql.h:557: error: expected ‘)’ before ‘*’ token
/usr/include/mysql/mysql.h:558: error: expected ‘;’ before ‘void’
/usr/include/mysql/mysql.h:611: error: ‘MYSQL_ERRMSG_SIZE’ undeclared here (not in a function)
/usr/include/mysql/mysql.h:612: error: ‘SQLSTATE_LENGTH’ undeclared here (not in a function)
mysql.c:74: error: expected specifier-qualifier-list before ‘MYSQL_TIME’
mysql.c: In function ‘free_mysqlstmt_memory’:
mysql.c:114: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:115: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:116: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c: In function ‘real_connect’:
mysql.c:276: error: ‘MYSQL’ has no member named ‘reconnect’
mysql.c: In function ‘real_connect2’:
mysql.c:350: error: ‘MYSQL’ has no member named ‘reconnect’
mysql.c: In function ‘reload’:
mysql.c:663: error: ‘REFRESH_GRANT’ undeclared (first use in this function)
mysql.c:663: error: (Each undeclared identifier is reported only once
mysql.c:663: error: for each function it appears in.)
mysql.c: In function ‘my_shutdown’:
mysql.c:685: error: ‘SHUTDOWN_DEFAULT’ undeclared (first use in this function)
mysql.c:685: error: type of formal parameter 2 is incomplete
mysql.c: In function ‘set_server_option’:
mysql.c:858: error: type of formal parameter 2 is incomplete
mysql.c: In function ‘reconnect’:
mysql.c:920: error: ‘MYSQL’ has no member named ‘reconnect’
mysql.c: In function ‘reconnect_set’:
mysql.c:926: error: ‘MYSQL’ has no member named ‘reconnect’
mysql.c: In function ‘field_is_num’:
mysql.c:1223: error: ‘MYSQL_TYPE_INT24’ undeclared (first use in this function)
mysql.c:1223: error: ‘MYSQL_TYPE_TIMESTAMP’ undeclared (first use in this function)
mysql.c:1223: error: ‘MYSQL_TYPE_YEAR’ undeclared (first use in this function)
mysql.c:1223: error: ‘MYSQL_TYPE_NEWDECIMAL’ undeclared (first use in this function)
mysql.c: In function ‘field_is_not_null’:
mysql.c:1231: error: ‘NOT_NULL_FLAG’ undeclared (first use in this function)
mysql.c: In function ‘field_is_pri_key’:
mysql.c:1239: error: ‘PRI_KEY_FLAG’ undeclared (first use in this function)
mysql.c: In function ‘stmt_bind_result’:
mysql.c:1316: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1319: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1319: error: ‘MYSQL_TYPE_STRING’ undeclared (first use in this function)
mysql.c:1321: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1321: error: ‘MYSQL_TYPE_LONGLONG’ undeclared (first use in this function)
mysql.c:1323: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1323: error: ‘MYSQL_TYPE_DOUBLE’ undeclared (first use in this function)
mysql.c:1325: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1325: error: ‘MYSQL_TYPE_DATETIME’ undeclared (first use in this function)
mysql.c: In function ‘stmt_execute’:
mysql.c:1369: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1369: error: ‘MYSQL_TYPE_NULL’ undeclared (first use in this function)
mysql.c:1373: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1373: error: ‘MYSQL_TYPE_LONGLONG’ undeclared (first use in this function)
mysql.c:1374: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1383: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1384: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1388: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1388: error: ‘MYSQL_TYPE_DOUBLE’ undeclared (first use in this function)
mysql.c:1389: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1393: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1393: error: ‘MYSQL_TYPE_STRING’ undeclared (first use in this function)
mysql.c:1395: error: ‘MYSQL_BIND’ has no member named ‘buffer_length’
mysql.c:1401: error: ‘MYSQL_TIME’ undeclared (first use in this function)
mysql.c:1401: error: expected ‘;’ before ‘t’
mysql.c:1403: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1403: error: ‘MYSQL_TYPE_DATETIME’ undeclared (first use in this function)
mysql.c:1404: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1405: error: ‘t’ undeclared (first use in this function)
mysql.c:1414: error: expected expression before ‘)’ token
mysql.c:1416: error: expected ‘;’ before ‘t’
mysql.c:1417: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1418: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1428: error: expected expression before ‘)’ token
mysql.c:1445: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1448: error: ‘MYSQL_TYPE_TINY’ undeclared (first use in this function)
mysql.c:1449: error: ‘MYSQL_TYPE_SHORT’ undeclared (first use in this function)
mysql.c:1450: error: ‘MYSQL_TYPE_YEAR’ undeclared (first use in this function)
mysql.c:1451: error: ‘MYSQL_TYPE_INT24’ undeclared (first use in this function)
mysql.c:1452: error: ‘MYSQL_TYPE_LONG’ undeclared (first use in this function)
mysql.c:1454: error: ‘MYSQL_TYPE_FLOAT’ undeclared (first use in this function)
mysql.c:1457: error: ‘MYSQL_BIND’ has no member named ‘buffer_length’
mysql.c:1460: error: ‘MYSQL_TYPE_DECIMAL’ undeclared (first use in this function)
mysql.c:1462: error: ‘MYSQL_TYPE_VAR_STRING’ undeclared (first use in this function)
mysql.c:1463: error: ‘MYSQL_TYPE_TINY_BLOB’ undeclared (first use in this function)
mysql.c:1464: error: ‘MYSQL_TYPE_BLOB’ undeclared (first use in this function)
mysql.c:1465: error: ‘MYSQL_TYPE_MEDIUM_BLOB’ undeclared (first use in this function)
mysql.c:1466: error: ‘MYSQL_TYPE_LONG_BLOB’ undeclared (first use in this function)
mysql.c:1468: error: ‘MYSQL_TYPE_NEWDECIMAL’ undeclared (first use in this function)
mysql.c:1469: error: ‘MYSQL_TYPE_BIT’ undeclared (first use in this function)
mysql.c:1473: error: ‘MYSQL_BIND’ has no member named ‘buffer_length’
mysql.c:1475: error: ‘MYSQL_TYPE_TIME’ undeclared (first use in this function)
mysql.c:1476: error: ‘MYSQL_TYPE_DATE’ undeclared (first use in this function)
mysql.c:1478: error: ‘MYSQL_TYPE_TIMESTAMP’ undeclared (first use in this function)
mysql.c:1480: error: ‘MYSQL_BIND’ has no member named ‘buffer_length’
mysql.c:1484: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c: In function ‘stmt_fetch’:
mysql.c:1518: error: ‘MYSQL_TIME’ undeclared (first use in this function)
mysql.c:1518: error: ‘t’ undeclared (first use in this function)
mysql.c:1519: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1520: error: ‘MYSQL_TYPE_TINY’ undeclared (first use in this function)
mysql.c:1521: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1526: error: ‘MYSQL_TYPE_SHORT’ undeclared (first use in this function)
mysql.c:1527: error: ‘MYSQL_TYPE_YEAR’ undeclared (first use in this function)
mysql.c:1528: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1533: error: ‘MYSQL_TYPE_INT24’ undeclared (first use in this function)
mysql.c:1534: error: ‘MYSQL_TYPE_LONG’ undeclared (first use in this function)
mysql.c:1535: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1540: error: ‘MYSQL_TYPE_LONGLONG’ undeclared (first use in this function)
mysql.c:1541: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1546: error: ‘MYSQL_TYPE_FLOAT’ undeclared (first use in this function)
mysql.c:1549: error: ‘MYSQL_TYPE_DOUBLE’ undeclared (first use in this function)
mysql.c:1552: error: ‘MYSQL_TYPE_TIME’ undeclared (first use in this function)
mysql.c:1553: error: ‘MYSQL_TYPE_DATE’ undeclared (first use in this function)
mysql.c:1554: error: ‘MYSQL_TYPE_DATETIME’ undeclared (first use in this function)
mysql.c:1555: error: ‘MYSQL_TYPE_TIMESTAMP’ undeclared (first use in this function)
mysql.c:1556: error: expected expression before ‘)’ token
mysql.c:1565: error: ‘MYSQL_TYPE_DECIMAL’ undeclared (first use in this function)
mysql.c:1566: error: ‘MYSQL_TYPE_STRING’ undeclared (first use in this function)
mysql.c:1567: error: ‘MYSQL_TYPE_VAR_STRING’ undeclared (first use in this function)
mysql.c:1568: error: ‘MYSQL_TYPE_TINY_BLOB’ undeclared (first use in this function)
mysql.c:1569: error: ‘MYSQL_TYPE_BLOB’ undeclared (first use in this function)
mysql.c:1570: error: ‘MYSQL_TYPE_MEDIUM_BLOB’ undeclared (first use in this function)
mysql.c:1571: error: ‘MYSQL_TYPE_LONG_BLOB’ undeclared (first use in this function)
mysql.c:1573: error: ‘MYSQL_TYPE_NEWDECIMAL’ undeclared (first use in this function)
mysql.c:1574: error: ‘MYSQL_TYPE_BIT’ undeclared (first use in this function)
mysql.c:1579: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c: In function ‘stmt_prepare’:
mysql.c:1665: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1665: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1676: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1683: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1683: error: ‘UNSIGNED_FLAG’ undeclared (first use in this function)
mysql.c: In function ‘Init_mysql_api’:
mysql.c:2055: error: ‘REFRESH_GRANT’ undeclared (first use in this function)
mysql.c:2056: error: ‘REFRESH_LOG’ undeclared (first use in this function)
mysql.c:2057: error: ‘REFRESH_TABLES’ undeclared (first use in this function)
mysql.c:2119: error: ‘MYSQL_OPTION_MULTI_STATEMENTS_ON’ undeclared (first use in this function)
mysql.c:2120: error: ‘MYSQL_OPTION_MULTI_STATEMENTS_OFF’ undeclared (first use in this function)
mysql.c:2163: error: ‘FIELD_TYPE_TINY’ undeclared (first use in this function)
mysql.c:2165: error: ‘FIELD_TYPE_ENUM’ undeclared (first use in this function)
mysql.c:2167: error: ‘FIELD_TYPE_DECIMAL’ undeclared (first use in this function)
mysql.c:2168: error: ‘FIELD_TYPE_SHORT’ undeclared (first use in this function)
mysql.c:2169: error: ‘FIELD_TYPE_LONG’ undeclared (first use in this function)
mysql.c:2170: error: ‘FIELD_TYPE_FLOAT’ undeclared (first use in this function)
mysql.c:2171: error: ‘FIELD_TYPE_DOUBLE’ undeclared (first use in this function)
mysql.c:2172: error: ‘FIELD_TYPE_NULL’ undeclared (first use in this function)
mysql.c:2173: error: ‘FIELD_TYPE_TIMESTAMP’ undeclared (first use in this function)
mysql.c:2174: error: ‘FIELD_TYPE_LONGLONG’ undeclared (first use in this function)
mysql.c:2175: error: ‘FIELD_TYPE_INT24’ undeclared (first use in this function)
mysql.c:2176: error: ‘FIELD_TYPE_DATE’ undeclared (first use in this function)
mysql.c:2177: error: ‘FIELD_TYPE_TIME’ undeclared (first use in this function)
mysql.c:2178: error: ‘FIELD_TYPE_DATETIME’ undeclared (first use in this function)
mysql.c:2180: error: ‘FIELD_TYPE_YEAR’ undeclared (first use in this function)
mysql.c:2183: error: ‘FIELD_TYPE_BIT’ undeclared (first use in this function)
mysql.c:2184: error: ‘FIELD_TYPE_NEWDECIMAL’ undeclared (first use in this function)
mysql.c:2186: error: ‘FIELD_TYPE_SET’ undeclared (first use in this function)
mysql.c:2187: error: ‘FIELD_TYPE_BLOB’ undeclared (first use in this function)
mysql.c:2188: error: ‘FIELD_TYPE_STRING’ undeclared (first use in this function)
mysql.c:2190: error: ‘FIELD_TYPE_VAR_STRING’ undeclared (first use in this function)
mysql.c:2192: error: ‘FIELD_TYPE_CHAR’ undeclared (first use in this function)
mysql.c:2195: error: ‘NOT_NULL_FLAG’ undeclared (first use in this function)
mysql.c:2196: error: ‘PRI_KEY_FLAG’ undeclared (first use in this function)
mysql.c:2197: error: ‘UNIQUE_KEY_FLAG’ undeclared (first use in this function)
mysql.c:2198: error: ‘MULTIPLE_KEY_FLAG’ undeclared (first use in this function)
mysql.c:2199: error: ‘BLOB_FLAG’ undeclared (first use in this function)
mysql.c:2200: error: ‘UNSIGNED_FLAG’ undeclared (first use in this function)
mysql.c:2201: error: ‘ZEROFILL_FLAG’ undeclared (first use in this function)
mysql.c:2202: error: ‘BINARY_FLAG’ undeclared (first use in this function)
make: *** [mysql.o] Error 1
Gem files will remain installed in /usr/lib64/ruby/gems/1.9.1/gems/mysql-2.9.1 for inspection.
Results logged to /usr/lib64/ruby/gems/1.9.1/gems/mysql-2.9.1/ext/mysql_api/gem_make.out
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/scan-mysql-server/recipes/default.rb
10: gem_package 'mysql' do
11: action :install
12: end
13:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/scan-mysql-server/recipes/default.rb:10:in `from_file'
gem_package("mysql") do
provider Chef::Provider::Package::Rubygems
action [:install]
retries 0
retry_delay 2
package_name "mysql"
version "2.9.1"
cookbook_name "scan-mysql-server"
recipe_name "default"
end
[2014-01-27T14:21:44-07:00] ERROR: Running exception handlers
[2014-01-27T14:21:44-07:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2014-01-27T14:21:44-07:00] ERROR: Exception handlers complete
[2014-01-27T14:21:44-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-01-27T14:21:44-07:00] FATAL: Gem::Installer::ExtensionBuildError: gem_package[mysql] (scan-mysql-server::default line 10) had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby 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
make
compiling mysql.c
In file included from /usr/include/mysql/mysql.h:72,
from mysql.c:20:
/usr/include/mysql/mysql_com.h:1:1: warning: null character(s) ignored
In file included from /usr/include/mysql/mysql.h:73,
from mysql.c:20:
/usr/include/mysql/mysql_time.h:1:1: warning: null character(s) ignored
In file included from mysql.c:20:
/usr/include/mysql/mysql.h:114: error: field ‘type’ has incomplete type
In file included from mysql.c:20:
/usr/include/mysql/mysql.h:244: error: expected specifier-qualifier-list before ‘NET’
/usr/include/mysql/mysql.h:426: warning: ‘enum mysql_enum_shutdown_level’ declared inside parameter list
/usr/include/mysql/mysql.h:426: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/include/mysql/mysql.h:433: warning: ‘enum enum_mysql_set_option’ declared inside parameter list
/usr/include/mysql/mysql.h:557: error: expected ‘)’ before ‘*’ token
/usr/include/mysql/mysql.h:558: error: expected ‘;’ before ‘void’
/usr/include/mysql/mysql.h:611: error: ‘MYSQL_ERRMSG_SIZE’ undeclared here (not in a function)
/usr/include/mysql/mysql.h:612: error: ‘SQLSTATE_LENGTH’ undeclared here (not in a function)
mysql.c:74: error: expected specifier-qualifier-list before ‘MYSQL_TIME’
mysql.c: In function ‘free_mysqlstmt_memory’:
mysql.c:114: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:115: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:116: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c: In function ‘real_connect’:
mysql.c:276: error: ‘MYSQL’ has no member named ‘reconnect’
mysql.c: In function ‘real_connect2’:
mysql.c:350: error: ‘MYSQL’ has no member named ‘reconnect’
mysql.c: In function ‘reload’:
mysql.c:663: error: ‘REFRESH_GRANT’ undeclared (first use in this function)
mysql.c:663: error: (Each undeclared identifier is reported only once
mysql.c:663: error: for each function it appears in.)
mysql.c: In function ‘my_shutdown’:
mysql.c:685: error: ‘SHUTDOWN_DEFAULT’ undeclared (first use in this function)
mysql.c:685: error: type of formal parameter 2 is incomplete
mysql.c: In function ‘set_server_option’:
mysql.c:858: error: type of formal parameter 2 is incomplete
mysql.c: In function ‘reconnect’:
mysql.c:920: error: ‘MYSQL’ has no member named ‘reconnect’
mysql.c: In function ‘reconnect_set’:
mysql.c:926: error: ‘MYSQL’ has no member named ‘reconnect’
mysql.c: In function ‘field_is_num’:
mysql.c:1223: error: ‘MYSQL_TYPE_INT24’ undeclared (first use in this function)
mysql.c:1223: error: ‘MYSQL_TYPE_TIMESTAMP’ undeclared (first use in this function)
mysql.c:1223: error: ‘MYSQL_TYPE_YEAR’ undeclared (first use in this function)
mysql.c:1223: error: ‘MYSQL_TYPE_NEWDECIMAL’ undeclared (first use in this function)
mysql.c: In function ‘field_is_not_null’:
mysql.c:1231: error: ‘NOT_NULL_FLAG’ undeclared (first use in this function)
mysql.c: In function ‘field_is_pri_key’:
mysql.c:1239: error: ‘PRI_KEY_FLAG’ undeclared (first use in this function)
mysql.c: In function ‘stmt_bind_result’:
mysql.c:1316: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1319: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1319: error: ‘MYSQL_TYPE_STRING’ undeclared (first use in this function)
mysql.c:1321: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1321: error: ‘MYSQL_TYPE_LONGLONG’ undeclared (first use in this function)
mysql.c:1323: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1323: error: ‘MYSQL_TYPE_DOUBLE’ undeclared (first use in this function)
mysql.c:1325: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1325: error: ‘MYSQL_TYPE_DATETIME’ undeclared (first use in this function)
mysql.c: In function ‘stmt_execute’:
mysql.c:1369: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1369: error: ‘MYSQL_TYPE_NULL’ undeclared (first use in this function)
mysql.c:1373: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1373: error: ‘MYSQL_TYPE_LONGLONG’ undeclared (first use in this function)
mysql.c:1374: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1383: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1384: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1388: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1388: error: ‘MYSQL_TYPE_DOUBLE’ undeclared (first use in this function)
mysql.c:1389: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1393: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1393: error: ‘MYSQL_TYPE_STRING’ undeclared (first use in this function)
mysql.c:1395: error: ‘MYSQL_BIND’ has no member named ‘buffer_length’
mysql.c:1401: error: ‘MYSQL_TIME’ undeclared (first use in this function)
mysql.c:1401: error: expected ‘;’ before ‘t’
mysql.c:1403: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1403: error: ‘MYSQL_TYPE_DATETIME’ undeclared (first use in this function)
mysql.c:1404: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1405: error: ‘t’ undeclared (first use in this function)
mysql.c:1414: error: expected expression before ‘)’ token
mysql.c:1416: error: expected ‘;’ before ‘t’
mysql.c:1417: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1418: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1428: error: expected expression before ‘)’ token
mysql.c:1445: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1448: error: ‘MYSQL_TYPE_TINY’ undeclared (first use in this function)
mysql.c:1449: error: ‘MYSQL_TYPE_SHORT’ undeclared (first use in this function)
mysql.c:1450: error: ‘MYSQL_TYPE_YEAR’ undeclared (first use in this function)
mysql.c:1451: error: ‘MYSQL_TYPE_INT24’ undeclared (first use in this function)
mysql.c:1452: error: ‘MYSQL_TYPE_LONG’ undeclared (first use in this function)
mysql.c:1454: error: ‘MYSQL_TYPE_FLOAT’ undeclared (first use in this function)
mysql.c:1457: error: ‘MYSQL_BIND’ has no member named ‘buffer_length’
mysql.c:1460: error: ‘MYSQL_TYPE_DECIMAL’ undeclared (first use in this function)
mysql.c:1462: error: ‘MYSQL_TYPE_VAR_STRING’ undeclared (first use in this function)
mysql.c:1463: error: ‘MYSQL_TYPE_TINY_BLOB’ undeclared (first use in this function)
mysql.c:1464: error: ‘MYSQL_TYPE_BLOB’ undeclared (first use in this function)
mysql.c:1465: error: ‘MYSQL_TYPE_MEDIUM_BLOB’ undeclared (first use in this function)
mysql.c:1466: error: ‘MYSQL_TYPE_LONG_BLOB’ undeclared (first use in this function)
mysql.c:1468: error: ‘MYSQL_TYPE_NEWDECIMAL’ undeclared (first use in this function)
mysql.c:1469: error: ‘MYSQL_TYPE_BIT’ undeclared (first use in this function)
mysql.c:1473: error: ‘MYSQL_BIND’ has no member named ‘buffer_length’
mysql.c:1475: error: ‘MYSQL_TYPE_TIME’ undeclared (first use in this function)
mysql.c:1476: error: ‘MYSQL_TYPE_DATE’ undeclared (first use in this function)
mysql.c:1478: error: ‘MYSQL_TYPE_TIMESTAMP’ undeclared (first use in this function)
mysql.c:1480: error: ‘MYSQL_BIND’ has no member named ‘buffer_length’
mysql.c:1484: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c: In function ‘stmt_fetch’:
mysql.c:1518: error: ‘MYSQL_TIME’ undeclared (first use in this function)
mysql.c:1518: error: ‘t’ undeclared (first use in this function)
mysql.c:1519: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1520: error: ‘MYSQL_TYPE_TINY’ undeclared (first use in this function)
mysql.c:1521: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1526: error: ‘MYSQL_TYPE_SHORT’ undeclared (first use in this function)
mysql.c:1527: error: ‘MYSQL_TYPE_YEAR’ undeclared (first use in this function)
mysql.c:1528: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1533: error: ‘MYSQL_TYPE_INT24’ undeclared (first use in this function)
mysql.c:1534: error: ‘MYSQL_TYPE_LONG’ undeclared (first use in this function)
mysql.c:1535: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1540: error: ‘MYSQL_TYPE_LONGLONG’ undeclared (first use in this function)
mysql.c:1541: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1546: error: ‘MYSQL_TYPE_FLOAT’ undeclared (first use in this function)
mysql.c:1549: error: ‘MYSQL_TYPE_DOUBLE’ undeclared (first use in this function)
mysql.c:1552: error: ‘MYSQL_TYPE_TIME’ undeclared (first use in this function)
mysql.c:1553: error: ‘MYSQL_TYPE_DATE’ undeclared (first use in this function)
mysql.c:1554: error: ‘MYSQL_TYPE_DATETIME’ undeclared (first use in this function)
mysql.c:1555: error: ‘MYSQL_TYPE_TIMESTAMP’ undeclared (first use in this function)
mysql.c:1556: error: expected expression before ‘)’ token
mysql.c:1565: error: ‘MYSQL_TYPE_DECIMAL’ undeclared (first use in this function)
mysql.c:1566: error: ‘MYSQL_TYPE_STRING’ undeclared (first use in this function)
mysql.c:1567: error: ‘MYSQL_TYPE_VAR_STRING’ undeclared (first use in this function)
mysql.c:1568: error: ‘MYSQL_TYPE_TINY_BLOB’ undeclared (first use in this function)
mysql.c:1569: error: ‘MYSQL_TYPE_BLOB’ undeclared (first use in this function)
mysql.c:1570: error: ‘MYSQL_TYPE_MEDIUM_BLOB’ undeclared (first use in this function)
mysql.c:1571: error: ‘MYSQL_TYPE_LONG_BLOB’ undeclared (first use in this function)
mysql.c:1573: error: ‘MYSQL_TYPE_NEWDECIMAL’ undeclared (first use in this function)
mysql.c:1574: error: ‘MYSQL_TYPE_BIT’ undeclared (first use in this function)
mysql.c:1579: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c: In function ‘stmt_prepare’:
mysql.c:1665: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1665: error: ‘struct <anonymous>’ has no member named ‘buffer’
mysql.c:1676: error: ‘MYSQL_BIND’ has no member named ‘buffer_type’
mysql.c:1683: error: ‘MYSQL_BIND’ has no member named ‘is_unsigned’
mysql.c:1683: error: ‘UNSIGNED_FLAG’ undeclared (first use in this function)
mysql.c: In function ‘Init_mysql_api’:
mysql.c:2055: error: ‘REFRESH_GRANT’ undeclared (first use in this function)
mysql.c:2056: error: ‘REFRESH_LOG’ undeclared (first use in this function)
mysql.c:2057: error: ‘REFRESH_TABLES’ undeclared (first use in this function)
mysql.c:2119: error: ‘MYSQL_OPTION_MULTI_STATEMENTS_ON’ undeclared (first use in this function)
mysql.c:2120: error: ‘MYSQL_OPTION_MULTI_STATEMENTS_OFF’ undeclared (first use in this function)
mysql.c:2163: error: ‘FIELD_TYPE_TINY’ undeclared (first use in this function)
mysql.c:2165: error: ‘FIELD_TYPE_ENUM’ undeclared (first use in this function)
mysql.c:2167: error: ‘FIELD_TYPE_DECIMAL’ undeclared (first use in this function)
mysql.c:2168: error: ‘FIELD_TYPE_SHORT’ undeclared (first use in this function)
mysql.c:2169: error: ‘FIELD_TYPE_LONG’ undeclared (first use in this function)
mysql.c:2170: error: ‘FIELD_TYPE_FLOAT’ undeclared (first use in this function)
mysql.c:2171: error: ‘FIELD_TYPE_DOUBLE’ undeclared (first use in this function)
mysql.c:2172: error: ‘FIELD_TYPE_NULL’ undeclared (first use in this function)
mysql.c:2173: error: ‘FIELD_TYPE_TIMESTAMP’ undeclared (first use in this function)
mysql.c:2174: error: ‘FIELD_TYPE_LONGLONG’ undeclared (first use in this function)
mysql.c:2175: error: ‘FIELD_TYPE_INT24’ undeclared (first use in this function)
mysql.c:2176: error: ‘FIELD_TYPE_DATE’ undeclared (first use in this function)
mysql.c:2177: error: ‘FIELD_TYPE_TIME’ undeclared (first use in this function)
mysql.c:2178: error: ‘FIELD_TYPE_DATETIME’ undeclared (first use in this function)
mysql.c:2180: error: ‘FIELD_TYPE_YEAR’ undeclared (first use in this function)
mysql.c:2183: error: ‘FIELD_TYPE_BIT’ undeclared (first use in this function)
mysql.c:2184: error: ‘FIELD_TYPE_NEWDECIMAL’ undeclared (first use in this function)
mysql.c:2186: error: ‘FIELD_TYPE_SET’ undeclared (first use in this function)
mysql.c:2187: error: ‘FIELD_TYPE_BLOB’ undeclared (first use in this function)
mysql.c:2188: error: ‘FIELD_TYPE_STRING’ undeclared (first use in this function)
mysql.c:2190: error: ‘FIELD_TYPE_VAR_STRING’ undeclared (first use in this function)
mysql.c:2192: error: ‘FIELD_TYPE_CHAR’ undeclared (first use in this function)
mysql.c:2195: error: ‘NOT_NULL_FLAG’ undeclared (first use in this function)
mysql.c:2196: error: ‘PRI_KEY_FLAG’ undeclared (first use in this function)
mysql.c:2197: error: ‘UNIQUE_KEY_FLAG’ undeclared (first use in this function)
mysql.c:2198: error: ‘MULTIPLE_KEY_FLAG’ undeclared (first use in this function)
mysql.c:2199: error: ‘BLOB_FLAG’ undeclared (first use in this function)
mysql.c:2200: error: ‘UNSIGNED_FLAG’ undeclared (first use in this function)
mysql.c:2201: error: ‘ZEROFILL_FLAG’ undeclared (first use in this function)
mysql.c:2202: error: ‘BINARY_FLAG’ undeclared (first use in this function)
make: *** [mysql.o] Error 1
Gem files will remain installed in /usr/lib64/ruby/gems/1.9.1/gems/mysql-2.9.1 for inspection.
Results logged to /usr/lib64/ruby/gems/1.9.1/gems/mysql-2.9.1/ext/mysql_api/gem_make.out
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment