Not the answer you need?
Register and ask your own question!

CentOS 6.3 & Percona 5.5.27

jaylljayll EntrantCurrent User Role Beginner
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?

Comments

  • jaimejaime Contributor Current User Role Beginner
    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!
  • jaylljayll Entrant Current User Role Beginner
    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.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.