error is same for mydumper 0.5.2 and 0.6.0 with MariaDB 5.5.34 on CentOS 6.5 64bit OS
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/ccache
-- Check for working C compiler: /usr/bin/ccache -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/ccache
-- Check for working CXX compiler: /usr/bin/ccache -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL: /usr/include/mysql, /usr/lib64/libmysqlclient_r.a;/usr/lib64/libpthread.a;/usr/lib64/libz.so;/usr/lib64/libm.a;/usr/lib64/librt.a;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libdl.a
-- Found ZLIB: /usr/lib64/libz.so
-- checking for one of the modules 'glib-2.0'
-- found glib-2.0, version 2.26.1
-- checking for one of the modules 'gthread-2.0'
-- found gthread-2.0, version 2.26.1
-- checking for module 'libpcre'
-- found libpcre, version 7.8
-- Found PCRE: /usr/include
WARNINGUnable to find Sphinx documentation generator
-- ------------------------------------------------
-- MYSQL_CONFIG = /usr/bin/mysql_config
-- CMAKE_INSTALL_PREFIX = /usr/local
-- BUILD_DOCS = ON
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D<Variable>=<Value>
-- ------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/mydumper-0.6.0
Scanning dependencies of target mydumper
[ 20%] Building C object CMakeFiles/mydumper.dir/mydumper.c.o
[ 40%] Building C object CMakeFiles/mydumper.dir/binlog.c.o
[ 60%] Building C object CMakeFiles/mydumper.dir/server_detect.c.o
[ 80%] Building C object CMakeFiles/mydumper.dir/g_unix_signal.c.o
Linking C executable mydumper
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libmysqlclient_r.a(client_plugin.c.o): In function `mysql_load_plugin_v':
(.text+0x3fe): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x774d): warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__pthread_initialize_minimal_internal':
(.text+0x39): undefined reference to `__libc_setup_tls'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__pthread_initialize_minimal_internal':
(.text+0x7e): undefined reference to `_dl_cpuclock_offset'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__pthread_initialize_minimal_internal':
(.text+0x275): undefined reference to `__libc_init_secure'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__pthread_initialize_minimal_internal':
(.text+0x2b3): undefined reference to `_dl_pagesize'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__pthread_initialize_minimal_internal':
(.text+0x2c4): undefined reference to `_dl_init_static_tls'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__pthread_initialize_minimal_internal':
(.text+0x2cf): undefined reference to `_dl_wait_lookup_done'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__pthread_create_2_1':
(.text+0x1151): undefined reference to `_dl_stack_flags'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__pthread_create_2_1':
(.text+0x1979): undefined reference to `_dl_stack_flags'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `vfork':
(.text+0x8a41): undefined reference to `__syscall_error'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__write_nocancel':
(.text+0x8a68): undefined reference to `__syscall_error'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__write_nocancel':
(.text+0x8a9c): undefined reference to `__syscall_error'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__read_nocancel':
(.text+0x8ac8): undefined reference to `__syscall_error'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `__read_nocancel':
(.text+0x8afc): undefined reference to `__syscall_error'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o):(.text+0x8b28): more undefined references to `__syscall_error' follow
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libdl.a(dlopen.o): In function `dlopen':
(.text+0x5): undefined reference to `__dlopen'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libdl.a(dlclose.o): In function `dlclose':
(.text+0x1): undefined reference to `__dlclose'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libdl.a(dlsym.o): In function `dlsym':
(.text+0x5): undefined reference to `__dlsym'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libdl.a(dlerror.o): In function `dlerror':
(.text+0x1): undefined reference to `__dlerror'
collect2: ld returned 1 exit status
make[2]: *** [mydumper] Error 1
make[1]: *** [CMakeFiles/mydumper.dir/all] Error 2
make: *** [all] Error 2
same problem with MariaDB 5.5.34 and can no longer compile with mydumper 0.6.0 either - regardless of the patch used at https:/ /mariadb. atlassian. net/browse/ MDEV-4554
error is same for mydumper 0.5.2 and 0.6.0 with MariaDB 5.5.34 on CentOS 6.5 64bit OS
-- The C compiler identification is GNU mysql_config libmysqlclient_ r.a;/usr/ lib64/libpthrea d.a;/usr/ lib64/libz. so;/usr/ lib64/libm. a;/usr/ lib64/librt. a;/usr/ lib64/libssl. so;/usr/ lib64/libcrypto .so;/usr/ lib64/libdl. a
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/ccache
-- Check for working C compiler: /usr/bin/ccache -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/ccache
-- Check for working CXX compiler: /usr/bin/ccache -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using mysql-config: /usr/bin/
-- Found MySQL: /usr/include/mysql, /usr/lib64/
-- Found ZLIB: /usr/lib64/libz.so
-- checking for one of the modules 'glib-2.0'
-- found glib-2.0, version 2.26.1
-- checking for one of the modules 'gthread-2.0'
-- found gthread-2.0, version 2.26.1
-- checking for module 'libpcre'
-- found libpcre, version 7.8
-- Found PCRE: /usr/include
WARNINGUnable to find Sphinx documentation generator ------- ------- ------- ------- ------- ------ mysql_config PREFIX = /usr/local =<Value> ------- ------- ------- ------- ------- ------ src/mydumper- 0.6.0 mydumper. dir/mydumper. c.o mydumper. dir/binlog. c.o mydumper. dir/server_ detect. c.o mydumper. dir/g_unix_ signal. c.o gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libmysqlclient_ r.a(client_ plugin. c.o): In function `mysql_ load_plugin_ v': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `sem_open': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__pthread_ initialize_ minimal_ internal' : gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__pthread_ initialize_ minimal_ internal' : offset' gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__pthread_ initialize_ minimal_ internal' : init_secure' gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__pthread_ initialize_ minimal_ internal' : gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__pthread_ initialize_ minimal_ internal' : static_ tls' gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__pthread_ initialize_ minimal_ internal' : lookup_ done' gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__pthread_ create_ 2_1': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__pthread_ create_ 2_1': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `vfork': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__write_nocancel': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__write_nocancel': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__read_nocancel': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o): In function `__read_nocancel': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libpthread. a(libpthread. o):(.text+ 0x8b28) : more undefined references to `__syscall_error' follow gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libdl.a( dlopen. o): In function `dlopen': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libdl.a( dlclose. o): In function `dlclose': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libdl.a( dlsym.o) : In function `dlsym': gcc/x86_ 64-redhat- linux/4. 4.7/../ ../../. ./lib64/ libdl.a( dlerror. o): In function `dlerror': mydumper. dir/all] Error 2
-- -------
-- MYSQL_CONFIG = /usr/bin/
-- CMAKE_INSTALL_
-- BUILD_DOCS = ON
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D<Variable>
-- -------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/
Scanning dependencies of target mydumper
[ 20%] Building C object CMakeFiles/
[ 40%] Building C object CMakeFiles/
[ 60%] Building C object CMakeFiles/
[ 80%] Building C object CMakeFiles/
Linking C executable mydumper
/usr/lib/
(.text+0x3fe): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/
(.text+0x774d): warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/lib/
(.text+0x39): undefined reference to `__libc_setup_tls'
/usr/lib/
(.text+0x7e): undefined reference to `_dl_cpuclock_
/usr/lib/
(.text+0x275): undefined reference to `__libc_
/usr/lib/
(.text+0x2b3): undefined reference to `_dl_pagesize'
/usr/lib/
(.text+0x2c4): undefined reference to `_dl_init_
/usr/lib/
(.text+0x2cf): undefined reference to `_dl_wait_
/usr/lib/
(.text+0x1151): undefined reference to `_dl_stack_flags'
/usr/lib/
(.text+0x1979): undefined reference to `_dl_stack_flags'
/usr/lib/
(.text+0x8a41): undefined reference to `__syscall_error'
/usr/lib/
(.text+0x8a68): undefined reference to `__syscall_error'
/usr/lib/
(.text+0x8a9c): undefined reference to `__syscall_error'
/usr/lib/
(.text+0x8ac8): undefined reference to `__syscall_error'
/usr/lib/
(.text+0x8afc): undefined reference to `__syscall_error'
/usr/lib/
/usr/lib/
(.text+0x5): undefined reference to `__dlopen'
/usr/lib/
(.text+0x1): undefined reference to `__dlclose'
/usr/lib/
(.text+0x5): undefined reference to `__dlsym'
/usr/lib/
(.text+0x1): undefined reference to `__dlerror'
collect2: ld returned 1 exit status
make[2]: *** [mydumper] Error 1
make[1]: *** [CMakeFiles/
make: *** [all] Error 2