diff --git a/mysql-test/suite/funcs_1/r/is_collation_character_set_applicability.result b/mysql-test/suite/funcs_1/r/is_coll_charset_applic.result
similarity index 100%
rename from mysql-test/suite/funcs_1/r/is_collation_character_set_applicability.result
rename to mysql-test/suite/funcs_1/r/is_coll_charset_applic.result
diff --git a/mysql-test/suite/funcs_1/t/is_collation_character_set_applicability.test b/mysql-test/suite/funcs_1/t/is_coll_charset_applic.test
similarity index 100%
rename from mysql-test/suite/funcs_1/t/is_collation_character_set_applicability.test
rename to mysql-test/suite/funcs_1/t/is_coll_charset_applic.test
diff --git a/sql/Makefile.am b/sql/Makefile.am
index dcba2407837a91b3d3d0d9bfead834c1192205b4..95cfa649012f7713622e38d52b5d82aa9cbd5788 100644
--- a/sql/Makefile.am
+++ b/sql/Makefile.am
@@ -29,7 +29,7 @@ libexec_PROGRAMS =	mysqld
 EXTRA_PROGRAMS =	gen_lex_hash
 bin_PROGRAMS =		mysql_tzinfo_to_sql
 DTRACEFILES =           filesort.o \
-			ha_ndbcluster.o \
+			libndb_la-ha_ndbcluster.o \
                         handler.o \
                         mysqld.o \
                         net_serv.o \
@@ -207,6 +207,8 @@ install-exec-hook:
 	test ! -f mysqld.sym.gz         || $(INSTALL_DATA)    mysqld.sym.gz         $(DESTDIR)$(pkglibdir)
 
 if HAVE_DTRACE_DASH_G
+libndb_la_LIBADD = probes_all.o
+libndb_la_DEPENDENCIES = probes_all.o dtrace_files dtrace_providers
 mysqld_LDADD += probes_all.o
 mysqld_DEPENDENCIES += probes_all.o dtrace_files dtrace_providers
 CLEANFILES += dtrace_files dtrace_providers probes_all.o
diff --git a/sql/filesort.cc b/sql/filesort.cc
index e95d1741b0600e8b9aa5942bc1aefedb429bae1b..d23715a01499e096f2fd413d1480101bc49960c7 100644
--- a/sql/filesort.cc
+++ b/sql/filesort.cc
@@ -122,7 +122,7 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length,
   TABLE_LIST *tab= table->pos_in_table_list;
   Item_subselect *subselect= tab ? tab->containing_subselect() : 0;
 
-  MYSQL_FILESORT_START(table->s->db.str, table->s->tablename.str);
+  MYSQL_FILESORT_START(table->s->db.str, table->s->table_name.str);
 
   /*
    Release InnoDB's adaptive hash index latch (if holding) before
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index ee73a463991fa0fe31d1360c10252476e50a81c4..95cea22ecd94790c4fe1e2f57d6b754edd10cf9e 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -2901,7 +2901,7 @@ sp_instr_stmt::exec_core(THD *thd, uint *nextp)
                          thd->thread_id,
                          (char *) (thd->db ? thd->db : ""),
                          thd->security_ctx->priv_user,
-                         thd->security_ctx->host_or_ip,
+                         (char *)thd->security_ctx->host_or_ip,
                          3);
   int res= mysql_execute_command(thd);
   MYSQL_QUERY_EXEC_DONE(res);
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 9400665cbdc6b7e12d42ed0492f758afd3ac1197..a0fcb2020a4a219a0dc7c01cd279951e47e34b19 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -1231,7 +1231,7 @@ bool mysql_multi_update(THD *thd,
     result->send_error(ER_UNKNOWN_ERROR, ER(ER_UNKNOWN_ERROR));
     result->abort();
   }
-  MYSQL_MULTI_UPDATE_DONE(res, result->found(), result->updated());
+  MYSQL_MULTI_UPDATE_DONE(res, result->num_found(), result->num_updated());
   delete result;
   thd->abort_on_warning= 0;
   DBUG_RETURN(FALSE);
diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc
index 69cb2599740019df9d61e6754f85eb2749d2dd59..4b81edc1111a629fc462c8ccdf904c923187c159 100644
--- a/storage/federated/ha_federated.cc
+++ b/storage/federated/ha_federated.cc
@@ -2334,7 +2334,7 @@ int ha_federated::index_read(uchar *buf, const uchar *key,
   rc= index_read_idx_with_result_set(buf, active_index, key,
                                      key_len, find_flag,
                                      &stored_result);
-  MYSQL_INDEX_READ_ROW_DONE(retval);
+  MYSQL_INDEX_READ_ROW_DONE(rc);
   DBUG_RETURN(rc);
 }