Both xtrabackup 2.1 and 2.2 built with bundled zlib which makes them incompatible with MySQL versions built with different zlib.
build.sh in 2.1: configure_cmd="cmake . \ -DENABLED_LOCAL_INFILE=ON \ -DWITH_INNOBASE_STORAGE_ENGINE=ON \ -DWITH_PARTITION_STORAGE_ENGINE=ON \ -DWITH_ZLIB=bundled \ -DWITH_EXTRA_CHARSETS=all \ -DENABLE_DTRACE=OFF $extra_config_55plus"
xtrabackup_release.cmake in 2.2: SET(WITH_ZLIB bundled)
it is possible to over ride setting for 2.2 and is not possible for 2.1
Both xtrabackup 2.1 and 2.2 built with bundled zlib which makes them incompatible with MySQL versions built with different zlib.
build.sh in 2.1: cmd="cmake . \ LOCAL_INFILE= ON \ INNOBASE_ STORAGE_ ENGINE= ON \ PARTITION_ STORAGE_ ENGINE= ON \ ZLIB=bundled \ EXTRA_CHARSETS= all \ DTRACE= OFF $extra_ config_ 55plus"
configure_
-DENABLED_
-DWITH_
-DWITH_
-DWITH_
-DWITH_
-DENABLE_
xtrabackup_ release. cmake in 2.2:
SET(WITH_ZLIB bundled)
it is possible to over ride setting for 2.2 and is not possible for 2.1