The results are: libfederated_a-ha_federated.o: In function `ha_federated::records_in_range(unsigned int, st_key_range*, st_key_range*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/../../sql/handler.h:1296: multiple definition of `ha_federated::records_in_range(unsigned int, st_key_range*, st_key_range*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:1575: first defined here libfederated_a-ha_federated.o: In function `ha_federated::bas_ext() const': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:1594: multiple definition of `ha_federated::bas_ext() const' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/../sql/handler.h:1731: first defined here libfederated_a-ha_federated.o: In function `ha_federated::estimate_rows_upper_bound()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2451: multiple definition of `ha_federated::estimate_rows_upper_bound()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2451: first defined here libfederated_a-ha_federated.o: In function `ha_federated::index_init(unsigned int, bool)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2459: multiple definition of `ha_federated::index_init(unsigned int, bool)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2459: first defined here libfederated_a-ha_federated.o: In function `ha_federated::read_range_next()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2518: multiple definition of `ha_federated::read_range_next()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2518: first defined here libfederated_a-ha_federated.o: In function `ha_federated::rnd_end()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2609: multiple definition of `ha_federated::rnd_end()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2609: first defined here libfederated_a-ha_federated.o: In function `ha_federated::extra(ha_extra_function)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2900: multiple definition of `ha_federated::extra(ha_extra_function)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2900: first defined here libfederated_a-ha_federated.o: In function `ha_federated::reset()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2942: multiple definition of `ha_federated::reset()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2942: first defined here libfederated_a-ha_federated.o: In function `ha_federated::store_lock(THD*, st_thr_lock_data**, thr_lock_type)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3021: multiple definition of `ha_federated::store_lock(THD*, st_thr_lock_data**, thr_lock_type)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:3021: first defined here libfederated_a-ha_federated.o: In function `ha_federated::external_lock(THD*, int)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3210: multiple definition of `ha_federated::external_lock(THD*, int)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:3210: first defined here libfederated_a-ha_federated.o: In function `ha_federated::get_error_message(int, String*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3192: multiple definition of `ha_federated::get_error_message(int, String*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/../sql/handler.h:1839: first defined here libfederated_a-ha_federated.o: In function `ha_federated::stash_remote_error()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3178: multiple definition of `ha_federated::stash_remote_error()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:3178: first defined here libfederated_a-ha_federated.o: In function `ha_federated::execute_simple_query(char const*, int)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3353: multiple definition of `ha_federated::execute_simple_query(char const*, int)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:3353: first defined here libfederated_a-ha_federated.o: In function `ha_federated::connection_autocommit(bool)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3344: multiple definition of `ha_federated::connection_autocommit(bool)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:3344: first defined here libfederated_a-ha_federated.o: In function `ha_federated::connection_rollback()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3337: multiple definition of `ha_federated::connection_rollback()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/../sql/handler.h:1841: first defined here libfederated_a-ha_federated.o: In function `ha_federated::connection_commit()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3330: multiple definition of `ha_federated::connection_commit()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:3330: first defined here libfederated_a-ha_federated.o: In function `ha_federated::index_end()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2616: multiple definition of `ha_federated::index_end()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2616: first defined here libfederated_a-ha_federated.o: In function `ha_federated::position(unsigned char const*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2705: multiple definition of `ha_federated::position(unsigned char const*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2705: first defined here libfederated_a-ha_federated.o: In function `ha_federated::close()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:1647: multiple definition of `ha_federated::close()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:1647: first defined here libfederated_a-ha_federated.o: In function `federated_get_key': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/../../sql/handler.h:1272: multiple definition of `federated_mutex' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/../sql/handler.h:1693: first defined here libfederated_a-ha_federated.o: In function `ha_federated::convert_row_to_internal_format(unsigned char*, char**, st_mysql_res*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:905: multiple definition of `ha_federated::convert_row_to_internal_format(unsigned char*, char**, st_mysql_res*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:905: first defined here libfederated_a-ha_federated.o: In function `ha_federated::read_next(unsigned char*, st_mysql_res*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2676: multiple definition of `ha_federated::read_next(unsigned char*, st_mysql_res*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2676: first defined here libfederated_a-ha_federated.o: In function `ha_federated::rnd_next(unsigned char*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2639: multiple definition of `ha_federated::rnd_next(unsigned char*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2639: first defined here libfederated_a-ha_federated.o: In function `ha_federated::index_next(unsigned char*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2528: multiple definition of `ha_federated::index_next(unsigned char*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2528: first defined here libfederated_a-ha_federated.o: In function `ha_federated': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:872: multiple definition of `ha_federated::ha_federated(handlerton*, st_table_share*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:872: first defined here libfederated_a-ha_federated.o: In function `get_connection(st_mem_root*, st_federated_share*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:562: multiple definition of `get_connection(st_mem_root*, st_federated_share*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:562: first defined here libfederated_a-ha_federated.o: In function `ha_federated::create(char const*, st_table*, st_ha_create_information*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3062: multiple definition of `ha_federated::create(char const*, st_table*, st_ha_create_information*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:3062: first defined here libfederated_a-ha_federated.o: In function `federated_done(void*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:484: multiple definition of `federated_done(void*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:484: first defined here libfederated_a-ha_federated.o: In function `federated_db_init(void*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:442: multiple definition of `federated_db_init(void*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:442: first defined here libfederated_a-ha_federated.o: In function `ha_federated': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:872: multiple definition of `ha_federated::ha_federated(handlerton*, st_table_share*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:872: first defined here libfederated_a-ha_federated.o: In function `ha_federated::real_connect()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3076: multiple definition of `ha_federated::real_connect()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:3076: first defined here libfederated_a-ha_federated.o: In function `ha_federated::real_query(char const*, unsigned int)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:3160: multiple definition of `ha_federated::real_query(char const*, unsigned int)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:3160: first defined here libfederated_a-ha_federated.o: In function `ha_federated::rnd_init(bool)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2549: multiple definition of `ha_federated::rnd_init(bool)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2549: first defined here libfederated_a-ha_federated.o: In function `ha_federated::start_bulk_insert(unsigned long long)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:1948: multiple definition of `ha_federated::start_bulk_insert(unsigned long long)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:1948: first defined here libfederated_a-ha_federated.o: In function `ha_federated::delete_all_rows()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2963: multiple definition of `ha_federated::delete_all_rows()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2963: first defined here libfederated_a-ha_federated.o: In function `ha_federated::repair(THD*, st_ha_check_opt*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2055: multiple definition of `ha_federated::repair(THD*, st_ha_check_opt*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2055: first defined here libfederated_a-ha_federated.o: In function `ha_federated::optimize(THD*, st_ha_check_opt*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2033: multiple definition of `ha_federated::optimize(THD*, st_ha_check_opt*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2033: first defined here libfederated_a-ha_federated.o: In function `ha_federated::info(unsigned int)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2792: multiple definition of `ha_federated::info(unsigned int)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2792: first defined here libfederated_a-ha_federated.o: In function `ha_federated::update_auto_increment()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2020: multiple definition of `ha_federated::update_auto_increment()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2020: first defined here libfederated_a-ha_federated.o: In function `ha_federated::end_bulk_insert()': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:1992: multiple definition of `ha_federated::end_bulk_insert()' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:1992: first defined here libfederated_a-ha_federated.o: In function `ha_federated::append_stmt_insert(String*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:1715: multiple definition of `ha_federated::append_stmt_insert(String*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:1715: first defined here libfederated_a-ha_federated.o: In function `ha_federated::open(char const*, int, unsigned int)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:1615: multiple definition of `ha_federated::open(char const*, int, unsigned int)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:1615: first defined here libfederated_a-ha_federated.o: In function `ha_federated::delete_row(unsigned char const*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2253: multiple definition of `ha_federated::delete_row(unsigned char const*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2253: first defined here libfederated_a-ha_federated.o: In function `ha_federated::update_row(unsigned char const*, unsigned char*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2100: multiple definition of `ha_federated::update_row(unsigned char const*, unsigned char*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2100: first defined here libfederated_a-ha_federated.o: In function `ha_federated::write_row(unsigned char*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:1794: multiple definition of `ha_federated::write_row(unsigned char*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:1794: first defined here libfederated_a-ha_federated.o: In function `ha_federated::create_where_from_key(String*, st_key*, st_key_range const*, st_key_range const*, bool, bool)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:1257: multiple definition of `ha_federated::create_where_from_key(String*, st_key*, st_key_range const*, st_key_range const*, bool, bool)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/../sql/handler.h:1896: first defined here libfederated_a-ha_federated.o: In function `ha_federated::read_range_first(st_key_range const*, st_key_range const*, bool, bool)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2474: multiple definition of `ha_federated::read_range_first(st_key_range const*, st_key_range const*, bool, bool)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2474: first defined here libfederated_a-ha_federated.o: In function `ha_federated::index_read_idx_with_result_set(unsigned char*, unsigned int, unsigned char const*, unsigned int, ha_rkey_function, st_mysql_res**)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2381: multiple definition of `ha_federated::index_read_idx_with_result_set(unsigned char*, unsigned int, unsigned char const*, unsigned int, ha_rkey_function, st_mysql_res**)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2381: first defined here libfederated_a-ha_federated.o: In function `ha_federated::index_read_idx(unsigned char*, unsigned int, unsigned char const*, unsigned int, ha_rkey_function)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2352: multiple definition of `ha_federated::index_read_idx(unsigned char*, unsigned int, unsigned char const*, unsigned int, ha_rkey_function)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2352: first defined here libfederated_a-ha_federated.o: In function `ha_federated::rnd_pos(unsigned char*, unsigned char*)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2726: multiple definition of `ha_federated::rnd_pos(unsigned char*, unsigned char*)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2726: first defined here libfederated_a-ha_federated.o: In function `ha_federated::index_read(unsigned char*, unsigned char const*, unsigned int, ha_rkey_function)': /root/rpmbuild/BUILD/mysql-5.1.39/storage/federated/ha_federated.cc:2326: multiple definition of `ha_federated::index_read(unsigned char*, unsigned char const*, unsigned int, ha_rkey_function)' ha_federated.o:/root/rpmbuild/BUILD/mysql-5.1.39/libmysqld/ha_federated.cc:2326: first defined here libfederated_a-ha_federated.o:(.data+0x0): multiple definition of `federated_storage_engine' ha_federated.o:(.data+0x0): first defined here libfederated_a-ha_federated.o:(.data+0x4): multiple definition of `builtin_federated_plugin_interface_version' ha_federated.o:(.data+0x4): first defined here libfederated_a-ha_federated.o:(.data+0x8): multiple definition of `builtin_federated_sizeof_struct_st_plugin' ha_federated.o:(.data+0x8): first defined here libfederated_a-ha_federated.o:(.data.rel+0x0): multiple definition of `builtin_federated_plugin' ha_federated.o:(.data.rel+0x0): first defined here collect2: ld returned 1 exit status error: Bad exit status from /var/tmp/rpm-tmp.MB4b4t (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.MB4b4t (%build)