vendredi 12 août 2011

patch sources mysql 5.5.15 pour AIX

Dans la série je compile pour AIX, essayons la dernière version de mysql 5.11.15


alors il faut :
- compiler cmake, bon ça ça va
-lire http://forge.mysql.com/wiki/Autotools_to_CMake_Transition_Guide

après le configure (cmake) et avant la compil (make) il faut deux patches :




#pb link with bzero, almost like http://bugs.mysql.com/bug.php?id=55721
#error message = In file included from strings/bchange.c:27:
in include/m_string.h change


#if !defined(bzero) && !defined(HAVE_BZERO)
to
/* #if !defined(bzero) && !defined(HAVE_BZERO) */



#include/my_global.h: In function 'my_ulonglong2double':289: error: expected ')' before 'A'
in include/my_global.h , change line 289

inline double my_ulonglong2double(unsigned long long A) { return (double A); }
to
inline double my_ulonglong2double(unsigned long long A) { return ((double) A); }


(eh oracle tu peux te brosser pour que je t'envoies ça., mariadb oui)
**sigh**


1 commentaire:

Anonyme a dit…

J'ai tenté de compiler mysql 5.5.16 sur un aix 5.2. Ok pour les patchs proposés mais j'ai tout de même un problème :

ld: 0711-317 ERROR: Undefined symbol: vtable for handler
ld: 0711-317 ERROR: Undefined symbol: THR_THD
ld: 0711-317 ERROR: Undefined symbol: .handler::ha_statistic_increment(unsigned long system_status_var::*) const
ld: 0711-317 ERROR: Undefined symbol: .Field_timestamp::set_time()
ld: 0711-317 ERROR: Undefined symbol: .handler::update_auto_increment()
ld: 0711-317 ERROR: Undefined symbol: .get_new_handler(TABLE_SHARE*, st_mem_root*, handlerton*)
ld: 0711-317 ERROR: Undefined symbol: .handler::ha_open(TABLE*, char const*, int, int)
ld: 0711-317 ERROR: Undefined symbol: handler::print_error(int, int)
ld: 0711-317 ERROR: Undefined symbol: handler::get_error_message(int, String*)
ld: 0711-317 ERROR: Undefined symbol: handler::column_bitmaps_signal()
ld: 0711-317 ERROR: Undefined symbol: handler::index_next_same(unsigned char*, unsigned char const*, unsigned int)
ld: 0711-317 ERROR: Undefined symbol: handler::read_multi_range_first(st_key_multi_range**, st_key_multi_range*, unsigned int, bool, st_handler_buffer*)
ld: 0711-317 ERROR: Undefined symbol: handler::read_multi_range_next(st_key_multi_range**)
ld: 0711-317 ERROR: Undefined symbol: handler::read_range_first(st_key_range const*, st_key_range const*, bool, bool)
ld: 0711-317 ERROR: Undefined symbol: handler::read_range_next()
ld: 0711-317 ERROR: Undefined symbol: handler::read_first_row(unsigned char*, unsigned int)
ld: 0711-317 ERROR: Undefined symbol: handler::get_dynamic_partition_info(PARTITION_STATS*, unsigned int)
ld: 0711-317 ERROR: Undefined symbol: handler::use_hidden_primary_key()
ld: 0711-317 ERROR: Undefined symbol: typeinfo for handler
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make[2]: *** [storage/heap/hp_test1] Error 1
make[1]: *** [storage/heap/CMakeFiles/hp_test1.dir/all] Error 2
make: *** [all] Error 2

Vous avez peut-être une idée ?
Merci.