<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Arm on EvBackup</title>
    <link>https://forzw.com/tags/arm/</link>
    <description>Recent content in Arm on EvBackup</description>
    <image>
      <title>EvBackup</title>
      <url>https://forzw.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://forzw.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 23 Oct 2013 13:28:29 +0000</lastBuildDate>
    <atom:link href="https://forzw.com/tags/arm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>MySQL在ARM平台上的编译错误一例</title>
      <link>https://forzw.com/archives/706/</link>
      <pubDate>Wed, 23 Oct 2013 13:28:29 +0000</pubDate>
      <guid>https://forzw.com/archives/706/</guid>
      <description>&lt;p&gt;由于ARM平台开发板CPU本身处理能力有限，这样在MySQL编译的时候过程非常漫长，更可恶的还出现了错误，如下：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[ 68%] Building C object libmysql/CMakeFiles/clientlib.dir/__/sql-common/client_plugin.c.o
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c: In function ‘mysql_client_plugin_init’:
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:252:5: error: incompatible type for argument 5 of ‘add_plugin’
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:120:1: note: expected ‘va_list’ but argument is of type ‘int’
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c: In function ‘mysql_client_register_plugin’:
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:310:5: error: incompatible type for argument 5 of ‘add_plugin’
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:120:1: note: expected ‘va_list’ but argument is of type ‘int’
make[2]: *** [libmysql/CMakeFiles/clientlib.dir/__/sql-common/client_plugin.c.o] Error 1
make[1]: *** [libmysql/CMakeFiles/clientlib.dir/all] Error 2
make: *** [all] Error 2
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;处理方法如下应用下面Patch，文件名arm_fix_client_plugin.patch，内容：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;--- mysql-5.5.28.orig/sql-common/client_plugin.c
+++ mysql-5.5.28/sql-common/client_plugin.c
@@ -233,6 +233,7 @@ int mysql_client_plugin_init()
 {
   MYSQL mysql;
   struct st_mysql_client_plugin **builtin;
+  va_list dummy;
 
   if (initialized)
     return 0;
@@ -249,7 +250,7 @@ int mysql_client_plugin_init()
   pthread_mutex_lock(&amp;amp;LOCK_load_client_plugin);
 
   for (builtin= mysql_client_builtins; *builtin; builtin++)
- add_plugin(&amp;amp;mysql, *builtin, 0, 0, 0);
+    add_plugin(&amp;amp;mysql, *builtin, 0, 0, dummy);
 
   pthread_mutex_unlock(&amp;amp;LOCK_load_client_plugin);
 
@@ -293,6 +294,7 @@ struct st_mysql_client_plugin *
 mysql_client_register_plugin(MYSQL *mysql,
                              struct st_mysql_client_plugin *plugin)
 {
+  va_list dummy;
   if (is_not_initialized(mysql, plugin-&amp;gt;name))
     return NULL;
 
@@ -307,7 +309,7 @@ mysql_client_register_plugin(MYSQL *mysq
     plugin= NULL;
   }
   else
- plugin= add_plugin(mysql, plugin, 0, 0, 0);
+    plugin= add_plugin(mysql, plugin, 0, 0, dummy);
 
   pthread_mutex_unlock(&amp;amp;LOCK_load_client_plugin);
   return plugin;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;应用补丁方法：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
