Description:
Cannot compile mysql-5.5.17 on a Solaris 11.
After successful cmakeing I got this on the build stage:
root@janus:/home/emz/src/mysql-5.5.17# make
[ 0%] Built target INFO_BIN
[ 0%] Built target INFO_SRC
[ 0%] Building C object cmd-line-utils/libedit/CMakeFiles/edit.dir/chared.c.o
In file included from /home/emz/src/mysql-5.5.17/cmd-line-utils/libedit/el.h:50:0,
from /home/emz/src/mysql-5.5.17/cmd-line-utils/libedit/chared.c:47:
/usr/include/sys/types.h:348:16: error: two or more data types in declaration specifiers
In file included from /usr/include/sys/types.h:618:0,
from /home/emz/src/mysql-5.5.17/cmd-line-utils/libedit/el.h:50,
from /home/emz/src/mysql-5.5.17/cmd-line-utils/libedit/chared.c:47:
/usr/include/sys/select.h:51:3: error: two or more data types in declaration specifiers
*** Error code 1
The following command caused the error:
cd /home/emz/src/mysql-5.5.17/cmd-line-utils/libedit && /usr/bin/gcc -DHAVE_RWLOCK_T -DDBUG_OFF -DHAVE_CONFIG_H -m64 -Wall -I/home/emz/src/mysql-5.5.17/cmd-line-utils/libedit -I/home/emz/src/mysql-5.5.17/include -I/usr/include/ncurses -m64 -o CMakeFiles/edit.dir/chared.c.o -c /home/emz/src/mysql-5.5.17/cmd-line-utils/libedit/chared.c
make: Fatal error: Command failed for target `cmd-line-utils/libedit/CMakeFiles/edit.dir/chared.c.o'
Current working directory /home/emz/src/mysql-5.5.17
*** Error code 1
The following command caused the error:
make -f cmd-line-utils/libedit/CMakeFiles/edit.dir/build.make cmd-line-utils/libedit/CMakeFiles/edit.dir/build
make: Fatal error: Command failed for target `cmd-line-utils/libedit/CMakeFiles/edit.dir/all'
Current working directory /home/emz/src/mysql-5.5.17
*** Error code 1
The following command caused the error:
make -f CMakeFiles/Makefile2 all
make: Fatal error: Command failed for target `all'
How to repeat:
get a Solaris 11, get a mysql-5.5.17 source, install system/header, ncurses, gcc and cmake packages from package manager, try bo build.