Bug #91214 ADD SUPPORT FOR SOLARIS STUDIO 12.6 AKA 5.15
Submitted: 11 Jun 2018 14:27 Modified: 13 Jun 2018 18:31
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[11 Jun 2018 14:27] Tor Didriksen
Description:
This is a followup to
Bug#27055190 ADD SUPPORT FOR SOLARIS STUDIO 12.6 AKA 5.15

There are a few lines that fail to compile with:
Error: Use of overloaded binary operator '<<' is ambiguous.

There are a few files that fail to compile with:
Error: Use of overloaded binary operator '+=' is ambiguous.

X plugin tests fail with:
mysqltest: At line 13: Query 'INSTALL COMPONENT "file://component_mysqlx_global_reset"' failed.
ERROR 3529 (HY000): Cannot load component from specified URN: 'file://component_mysqlx_global_reset'.
This is because the function 'list_components' is hidden and not found by dlsym()
nm plugin/x/CMakeFiles/component_mysqlx_global_reset.dir/src/components/global_status_reset.cc.o 
[15]    |                 576|                  60|FUNC |LOCL |0    |2      |list_components

How to repeat:
Build with /opt/developerstudio12.6/bin/CC

Suggested fix:
Use <var>.load() when printing atomic variables.

Add operator+=() for the failed/missing overload.

Move definition of list_components out of the anonymous namespace.
[11 Jun 2018 14:39] Tor Didriksen
Posted by developer:
 
This test still fails
main.ctype_latin2_ch                     [ fail ]

lots of these:
 select hex(weight_string('abc' as char(5)));
 hex(weight_string('abc' as char(5)))
-0304050103090A01030F1101030F1100
+0304050103040A0103041101030F1100
[13 Jun 2018 18:31] Paul Dubois
Posted by developer:
 
Fixed in 8.0.13.

On Solaris, MySQL can now be built with Developer Studio 12.6.