I am trying to install MySQL from source as part of a uni project - something I have never done before - and am getting the following error message when trying to make
:
[ 79%] Building CXX object sql/CMakeFiles/sql.dir/mysqld.cc.o
/home/me/mysql-5.5.17/sql/mysqld.cc: In function ‘void handle_connections_sockets()’:
/home/me/mysql-5.5.17/sql/mysqld.cc:5270:31: error: invalid conversion from ‘size_socket* {aka int*}’ to ‘socklen_t* {aka unsigned int*}’ [-fpermissive]
/usr/include/i386-linux-gnu/sys/socket.h:214:12: error: initializing argument 3 of ‘int accept(int, sockaddr*, socklen_t*)’ [-fpermissive]
/home/me/mysql-5.5.17/sql/mysqld.cc:5337:48: error: invalid conversion from ‘int*’ to ‘socklen_t* {aka unsigned int*}’ [-fpermissive]
/usr/include/i386-linux-gnu/sys/socket.h:119:12: error: initializing argument 3 of ‘int getsockname(int, sockaddr*, socklen_t*)’ [-fpermissive]
make[2]: *** [sql/CMakeFiles/sql.dir/mysqld.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
I have absolutely no idea how I can fix this as it seems to be a problem with the C++ code itself. Does anyone more knowledgeable have a solution?
EDIT: I am installing mySQL 5.5.17