Bug #77820 build error with solaris studio 12.4
Submitted: 23 Jul 2015 21:47 Modified: 21 Oct 2018 10:57
Reporter: heinz meier Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.x OS:Solaris (11.2)
Assigned to: CPU Architecture:Any
Tags: C++, solaris, solaris studio

[23 Jul 2015 21:47] heinz meier
Description:
there seems to be a problem when building with solaris studio 12.4. the following example is with percona 5.5.44 but i also tried maria down to 5.2 so it seems to be a general mysql thing.

[ 23%] Building CXX object mysys/CMakeFiles/mysys.dir/my_new.cc.o
cd /build/obj/mysys && /opt/solarisstudio12.4/bin/CC   -DHAVE_RWLOCK_T -DDBUG_OFF -DHAVE_CONFIG_H -DUSE_MYSYS_NEW -fast -xchip=core2 -m64 -features=extensions -features=no%extinl -noex -features=no%rtti -xinline=%auto -library=sunperf  -I/build/obj/include -I/build/percona-server-5.5.44-37.3/include -I/build/percona-server-5.5.44-37.3/mysys    -KPIC -o CMakeFiles/mysys.dir/my_new.cc.o -c /build/percona-server-5.5.44-37.3/mysys/my_new.cc
"/opt/solarisstudio12.4/lib/compilers/include/CC/new", line 49: Error: Operators new and delete cannot be declared static in global scope.
"/opt/solarisstudio12.4/lib/compilers/include/CC/new", line 51: Error: Operators new and delete cannot be declared static in global scope.
"/opt/solarisstudio12.4/lib/compilers/include/CC/new", line 53: Error: Operators new and delete cannot be declared static in global scope.
"/opt/solarisstudio12.4/lib/compilers/include/CC/new", line 55: Error: Operators new and delete cannot be declared static in global scope.
4 Error(s) detected.
gmake[2]: *** [mysys/CMakeFiles/mysys.dir/my_new.cc.o] Error 2

this only happens with 12.4, 12.3 was fine. os is solaris 11.2, x86.

How to repeat:
just build it with solaris studio 12.4

Suggested fix:
different declaration of the listed operators
[21 Sep 2018 10:57] MySQL Verification Team
Sorry for the delay. This issue still happens with current MySQL version or the bug could be closed?. Thanks.
[22 Oct 2018 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".