Bug #63232 mysql build error on a Solaris 11

Submitted: 13 Nov 2011 16:27 Modified: 27 Dec 2011 4:13
Reporter: Eugene Zheganin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:5.5.17 OS:Solaris (Solaris 11 x86)
Assigned to: CPU Architecture:Any
Tags: build error solaris, regression

[13 Nov 2011 16:27] Eugene Zheganin
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.
[14 Nov 2011 18:51] Eugene Zheganin
gcc 4.5.2, if this would be of any help.
[15 Nov 2011 17:11] Eugene Zheganin
5.5.16 is able to pass this point.
[15 Nov 2011 17:17] Eugene Zheganin
5.5.16 is building/installing just fine.
[26 Dec 2011 19:46] Valeriy Kravchuk
Please, check if this is still the problem with 5.5.19.
[27 Dec 2011 4:13] Eugene Zheganin
5.5.19 builds just fine, thanks.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.