Bug #80748 mysql5.6 does not build on solaris12
Submitted: 15 Mar 2016 12:51 Modified: 18 Mar 2016 16:05
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.6.31 OS:Any
Assigned to: CPU Architecture:Any

[15 Mar 2016 12:51] Tor Didriksen
Description:
For Sun Studio we must build with -std=c++03
We must also remove this hack
#define __attribute__(x)
Since Sun Studio depends on seeing __attribute__ ((__weakref__))
in order to generate correct code.

How to repeat:
Try building with stlport or stdcxx4, no longer works.

Suggested fix:
Introduce MY_ATTRIBUTE:
sed -i -e 's/__attribute__/MY_ATTRIBUTE/g' `cat <all srouce files>`
[18 Mar 2016 16:05] Paul DuBois
Posted by developer:
 
Noted in 5.8.0 changelog.

MySQL did not compile under Solaris 12 using Sun Studio. To correct
this, instances of __attribute__ were changed to MY_ATTRIBUTE.
[28 Mar 2016 13:23] Paul DuBois
Posted by developer:
 
Noted in 5.6.31, 5.7.13 changelogs.