Error while compiling mydumper on Amazon Linux AMI

Asked by braveheart on 2014-07-15

Hello,

When trying to compile mydumper, I got the following error on an Amazon LInux AMI instance.
Do you have any recommendation how to fix this?

Thank you

/root/mydumper-0.6.1/mydumper.c:317: undefined reference to `mysql_free_result'
CMakeFiles/mydumper.dir/mydumper.c.o: In function `dump_database':
/root/mydumper-0.6.1/mydumper.c:1421: undefined reference to `mysql_free_result'
CMakeFiles/mydumper.dir/mydumper.c.o: In function `dump_schema_data':
/root/mydumper-0.6.1/mydumper.c:1488: undefined reference to `mysql_free_result'
CMakeFiles/mydumper.dir/mydumper.c.o: In function `main':
/root/mydumper-0.6.1/mydumper.c:752: undefined reference to `mysql_thread_end'
/root/mydumper-0.6.1/mydumper.c:753: undefined reference to `mysql_server_end'
CMakeFiles/mydumper.dir/binlog.c.o: In function `get_binlogs':
/root/mydumper-0.6.1/binlog.c:76: undefined reference to `mysql_query'
/root/mydumper-0.6.1/binlog.c:81: undefined reference to `mysql_store_result'
/root/mydumper-0.6.1/binlog.c:82: undefined reference to `mysql_fetch_row'
/root/mydumper-0.6.1/binlog.c:91: undefined reference to `mysql_free_result'
/root/mydumper-0.6.1/binlog.c:93: undefined reference to `mysql_query'
/root/mydumper-0.6.1/binlog.c:101: undefined reference to `mysql_store_result'
/root/mydumper-0.6.1/binlog.c:102: undefined reference to `mysql_fetch_row'
/root/mydumper-0.6.1/binlog.c:113: undefined reference to `mysql_free_result'
/root/mydumper-0.6.1/binlog.c:94: undefined reference to `mysql_error'
/root/mydumper-0.6.1/binlog.c:77: undefined reference to `mysql_error'
CMakeFiles/mydumper.dir/binlog.c.o: In function `get_binlog_file':
/root/mydumper-0.6.1/binlog.c:132: undefined reference to `mysql_thread_id'
/root/mydumper-0.6.1/binlog.c:160: undefined reference to `my_net_read'
/root/mydumper-0.6.1/binlog.c:163: undefined reference to `mysql_errno'
CMakeFiles/mydumper.dir/server_detect.c.o: In function `detect_server':
/root/mydumper-0.6.1/server_detect.c:29: undefined reference to `mysql_get_server_info'
collect2: error: ld returned 1 exit status
make[2]: *** [mydumper] Error 1
make[1]: *** [CMakeFiles/mydumper.dir/all] Error 2
make: *** [all] Error 2
[root@vdb1 mydumper-0.6.1]# exit

Question information

Language:
English Edit question
Status:
Answered
For:
MySQL Data Dumper Edit question
Assignee:
No assignee Edit question
Last query:
2014-07-15
Last reply:
2017-03-10
Max Bubenick (max-bubenick) said : #1

Compile from the trunk, should work fine, improvements were done for better compiling experience

bzr branch lp:mydumper

kalasha (kalasha1981) said : #2

what is mean by Compile from the trunk,

Can you help with this problem?

Provide an answer of your own, or ask braveheart for more information if necessary.

To post a message you must log in.