Problems compiling on Centos

Asked by Neil Armitage on 2011-06-16

I am trying to compile 0.5 on centos 5.6 and get the following error

[root@localhost mydumper-0.5.0]# make mydumper myloader
[ 25%] Building C object CMakeFiles/mydumper.dir/mydumper.c.o
cc1: warnings being treated as errors
/root/mysql/dumper/mydumper-0.5.0/mydumper.c: In function ‘main’:
/root/mysql/dumper/mydumper-0.5.0/mydumper.c:540: warning: implicit declaration of function ‘g_timeout_add_seconds’
/root/mysql/dumper/mydumper-0.5.0/mydumper.c:541: error: ‘SIGINT’ undeclared (first use in this function)
/root/mysql/dumper/mydumper-0.5.0/mydumper.c:541: error: (Each undeclared identifier is reported only once
/root/mysql/dumper/mydumper-0.5.0/mydumper.c:541: error: for each function it appears in.)
/root/mysql/dumper/mydumper-0.5.0/mydumper.c:542: error: ‘SIGTERM’ undeclared (first use in this function)
/root/mysql/dumper/mydumper-0.5.0/mydumper.c: In function ‘exec_thread’:
/root/mysql/dumper/mydumper-0.5.0/mydumper.c:627: warning: no return statement in function returning non-void
make[3]: *** [CMakeFiles/mydumper.dir/mydumper.c.o] Error 1
make[2]: *** [CMakeFiles/mydumper.dir/all] Error 2
make[1]: *** [CMakeFiles/mydumper.dir/rule] Error 2
make: *** [mydumper] Error 2

Am I short of some dependancy?

Thanks for you help

Question information

English Edit question
MySQL Data Dumper Edit question
Andrew Hutchings Edit question
Solved by:
Neil Armitage
Last query:
Last reply:
Andrew Hutchings (linuxjedi) said : #1

Hi Neil,

No, there are two separate problems here. The first appears to be a #include line from the mydumper source. The second is a problem I already know about and have a fix for.

I'll try and arrange a fix later today.

Andrew Hutchings (linuxjedi) said : #2

This is now fixed in trunk. I'll create a release of 0.5.1 including this fix soon.

Neil Armitage (neila) said : #3

Thanks - I have just downloaded the latest from trunk and it is compiling and working fine.