arm架构编译MySQL5.5报错
当前arm、aarch64环境,系统anolis8,理论适用于其它ARM系统,报错内容如下
1 2 3 4 5 6 7 8 9 10 11 |
mysql-5.5.62/sql-common/client_plugin.c: In function 'mysql_client_plugin_init': mysql-5.5.62/sql-common/client_plugin.c:252:40: error: incompatible type for argument 5 of 'add_plugin' add_plugin(&mysql, *builtin, 0, 0, 0); ^ mysql-5.5.62/sql-common/client_plugin.c:121:30: note: expected 'va_list' {aka '__va_list'} but argument is of type 'int' int argc, va_list args) ~~~~~~~~^~~~ mysql-5.5.62/sql-common/client_plugin.c: In function 'mysql_client_register_plugin': mysql-5.5.62/sql-common/client_plugin.c:310:45: error: incompatible type for argument 5 of 'add_plugin' plugin= add_plugin(mysql, plugin, 0, 0, 0); ^ |
问题原因 这个错误是由于在ARM架构上,va_list类型和int类型不兼容造成的。在这些函数调用中, … 阅读全文