[MDEV-4554] MariaDB 5.5.30 no longer works with MyDumper Created: 2013-05-21 Updated: 2013-05-24 Due: 2013-06-21 Resolved: 2013-05-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.30 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | George L | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 6.4 64bit, Nginx 1.4.1, PHP 5.3.25 PHP-FPM, MariaDB 5.5.30 via official YUM repository |
||
| Attachments: |
|
| Description |
|
Problem: Mydumper 0.5.2 no longer works and can not be compiled with MariaDB 5.5.30 while it worked fine with MariaDB 5.5.24. So something changed since MariaDB 5.5.24 ? Detail of problem at https://bugs.launchpad.net/mandriva/+bug/803982, Mydumper folks won't fix it at their end so it's left up to MariaDB folks to tackle it I hope as Mydumper is very useful for much faster multi-threaded backups !. error = 'undefined reference to `my_net_read''
|
| Comments |
| Comment by Vladislav Vaintroub [ 2013-05-21 ] | ||||||||||||||||||||||||
|
Why don't you link with static library that has all symbols? Or, remove binlog.c from compilation, as Domas suggested in the comments to the link you pasted | ||||||||||||||||||||||||
| Comment by George L [ 2013-05-21 ] | ||||||||||||||||||||||||
|
Unfortunately, don't have the skills or knowledge in this area to do that | ||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2013-05-21 ] | ||||||||||||||||||||||||
|
ok, in this case I think I could help. Can you attach CMakeCache.txt that you got in your build directory for mydumper? | ||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2013-05-21 ] | ||||||||||||||||||||||||
|
To answer "So something changed since MariaDB 5.5.24 ?", yes, something changed. We use the same versioning and restrict exports just like distros do, to be able to be the drop.in replacement we claim to be. | ||||||||||||||||||||||||
| Comment by George L [ 2013-05-22 ] | ||||||||||||||||||||||||
|
Hi Vladislav thank you very much for your help it's much appreciated. Would be great to continue being able to use mydumper with MariaDB 5.5.x as it's several times faster than mysqldump http://vbtechsupport.com/1716/ and as fast as Percona Xtrabackup with parallel threads especially on DB sizes >40GB. Here's the attached CMakeCache.txt | ||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2013-05-23 ] | ||||||||||||||||||||||||
|
I'm using current version of mydumper, and they no more link with shared library (but still have bugs nonetheless) so the whole procedure to build mydumper (on CentOS 6.3) looks like that, to me 3. now, I need to patch CMakeLists.txt like in the attachment, to prevent unresolved symbols (from libdl, libm and so on) | ||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2013-05-23 ] | ||||||||||||||||||||||||
|
patch to CMakeLists.txt attached | ||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2013-05-23 ] | ||||||||||||||||||||||||
|
I'm closing it as not-a-bug, since it seems to be already fixed in mydumper. Please reopen if you still have problems (i.e instructions in previous comment do not work) | ||||||||||||||||||||||||
| Comment by George L [ 2013-05-24 ] | ||||||||||||||||||||||||
|
Cheers. thanks for the help, I am already using 0.5.2 mydumper and tried launchpad download as well, seems I am not getting the latest ?
the current CMakeCache.txt file http://pastebin.com/raw.php?i=K082fREt | ||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2013-05-24 ] | ||||||||||||||||||||||||
|
Strange. Perhaps the difference is that I used later cmake on my box. Anyway. try following The above forces using static library for linking . I hope that this static library is there on your machine (if I install MariaDB-devel, it is there) | ||||||||||||||||||||||||
| Comment by George L [ 2013-05-24 ] | ||||||||||||||||||||||||
|
Sweet success ! That was the fix needed Vladislav you're a life saver - thanks for all the help !!! Scanning dependencies of target mydumper | ||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2013-05-24 ] | ||||||||||||||||||||||||
|
Attached a full patch for mydumper that would prefer linking libmysqlclient_r statically. If you apply it , you should be able to build mydumper using just cmake . && make | ||||||||||||||||||||||||
| Comment by George L [ 2013-05-24 ] | ||||||||||||||||||||||||
|
Tested new patch and confirm all works with just cmake . && make thanks Vladislav |