if gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/Percona-Server-5.1.52-rel12.3-153-Linux-x86_64\"" -DMYSQL_DATADIR="\"/usr/local/Percona-Server-5.1.52-rel12.3-153-Linux-x86_64/data\"" -DSHAREDIR="\"/usr/local/Percona-Server-5.1.52-rel12.3-153-Linux-x86_64/share/mysql\"" -DPLUGINDIR="\"/usr/local/Percona-Server-5.1.52-rel12.3-153-Linux-x86_64/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I. -I../include -I../zlib -I../include -I../include -I../regex -I. -DPERCONA_INNODB_VERSION=12.3 -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -static-libgcc -fno-implicit-templates -fno-exceptions -fno-rtti -MT query_response_time.o -MD -MP -MF ".deps/query_response_time.Tpo" -c -o query_response_time.o query_response_time.cc; \
then mv -f ".deps/query_response_time.Tpo" ".deps/query_response_time.Po"; else rm -f ".deps/query_response_time.Tpo"; exit 1; fi
query_response_time.cc: In function `void query_response_time::add_time_atomic(query_response_time::TimeCounter*, uint64)':
query_response_time.cc:159: error: `__sync_fetch_and_add' was not declared in this scope
query_response_time.cc: In member function `void query_response_time::time_collector::collect(uint64)':
query_response_time.cc:255: error: `__sync_fetch_and_add' was not declared in this scope
make[4]: *** [query_response_time.o] Error 1
GCC on CentOS 4 is too old, it may not have atomics_buildin or have it differently