# CentOS 6.3 & Percona 5.5.27

**URL:** <https://forums.percona.com/t/centos-6-3-percona-5-5-27/1881>\
**Category:** Other MySQL® Questions\
**Created:** [August 30, 2012, 12:57pm UTC](https://forums.percona.com/t/centos-6-3-percona-5-5-27/1881 "2012-08-30T12:57:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayll](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jayll](https://forums.percona.com/u/jayll)\
**Post date:** [August 30, 2012, 12:57pm UTC](https://forums.percona.com/t/centos-6-3-percona-5-5-27/1881/1 "2012-08-30T12:57:37Z")

</div>

I apologize if this topic has been brought up but I could not find anything under search.

I’m trying to compile Percona from source on my CentOS 6.3 32-bit VM. I run make and it goes up to 85% and stops with this error:

/root/Percona-Server-5.5.27-rel28.0/sql/mysqld.cc: In function âvoid handle\_connections\_sockets()â:  
/root/Percona-Server-5.5.27-rel28.0/sql/mysqld.cc:5429: error: invalid conversion from âsize\_socket_â to âsocklen\_t_â  
/root/Percona-Server-5.5.27-rel28.0/sql/mysqld.cc:5429: error: initializing argument 3 of âint accept(int, sockaddr\*, socklen\_t\*)â  
/root/Percona-Server-5.5.27-rel28.0/sql/mysqld.cc:5496: error: invalid conversion from âint_â to âsocklen\_t_â  
/root/Percona-Server-5.5.27-rel28.0/sql/mysqld.cc:5496: error: initializing argument 3 of âint getsockname(int, sockaddr\*, socklen\_t\*)â  
make[2]: \*\*\* [sql/CMakeFiles/sql.dir/mysqld.cc.o] Error 1  
make[1]: \*\*\* [sql/CMakeFiles/sql.dir/all] Error 2  
make: \*\*\* [all] Error 2

Anyone have a clue what could be wrong?

---

<div class="post-metadata">

**Author:** ![jaime](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jaime](https://forums.percona.com/u/jaime)\
**Post date:** [September 2, 2012, 7:08am UTC](https://forums.percona.com/t/centos-6-3-percona-5-5-27/1881/2 "2012-09-02T07:08:35Z")

</div>

Hi. I just tested this on Centos 6.3 32bit minimal and it compiled just fine. Prior to compiling Percona Server 5.5.27, I installed the following dependencies:  
yum install gcc gcc-c++ rpm-build cmake gperf ncurses-devel perl readline-dev time zlib-devel libaio-devel bison make

I tried compiling from source and it compiled just fine:  
tar xzvf Percona-Server-5.5.27-rel28.0.tar.gz  
cd Percona-Server-5.5.27-rel28.0  
cmake .  
make

I tried compiling from rpmbuild and it compiled just fine too:  
rpm -Uvh Percona-Server-55-5.5.27-rel28.0.291.rhel6.src.rpm  
cd rpmbuild/SPECS  
rpmbuild -bb percona-server.spec

Did you add additional parameters? Please let me know. Thanks!

---

<div class="post-metadata">

**Author:** ![jayll](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jayll](https://forums.percona.com/u/jayll)\
**Post date:** [September 3, 2012, 11:48am UTC](https://forums.percona.com/t/centos-6-3-percona-5-5-27/1881/3 "2012-09-03T11:48:51Z")

</div>

I appreciate the response. I was using the standard Centos build. Using the minimal it compiled completely but with a lot of “warning: dereferencing type-punned pointer will break strict-aliasing rules” warnings. Compiling on a Debian system, these warnings don’t show up.

Using your steps I was able to get the MySQL server up and running but the warnings during compiling makes me a bit uneasy. Did you see any of those warnings?

Thanks so much for your help.
