[MDEV-88] use of anonymous unions and structs in GIS code breaks compilation with Sun Studio (native Solaris compiler) Created: 2012-01-17  Updated: 2016-02-15  Resolved: 2016-02-15

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 5.5
Fix Version/s: 5.5.49

Type: Bug Priority: Minor
Reporter: Vladislav Vaintroub Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-4976 errors in gcalc_slicescan.h / Solaris Closed
relates to MDEV-8448 cannot build on solaris 10 Sparc Closed
relates to MDEV-8941 Compile on Solaris (SPARC) fails with... Closed
relates to MDEV-9381 [PATCH] solaris10 build fixes Closed

 Description   

Use Solaris 11 (download in case you do not have one, and install into your prefered virtualization environment). Use latest Sun Studio.

Try to compile 5.5 with it

export CC=cc
export CXX=CC
cmake .
make

get error messages similar to

"/home/wlad/bzr/5.5-threadpool/sql/gcalc_slicescan.h", line 191: Error: A declaration does not specify a tag or an identifier.
"/home/wlad/bzr/5.5-threadpool/sql/gcalc_slicescan.h", line 202: Error: A declaration does not specify a tag or an identifier.
"/home/wlad/bzr/5.5-threadpool/sql/gcalc_slicescan.h", line 208: Error: A declaration does not specify a tag or an identifier.
"/home/wlad/bzr/5.5-threadpool/sql/gcalc_slicescan.h", line 209: Warning: Types cannot be declared in anonymous union.
"/home/wlad/bzr/5.5-threadpool/sql/gcalc_slicescan.h", line 212: Error: left is not defined.
"/home/wlad/bzr/5.5-threadpool/sql/gcalc_slicescan.h", line 214: Error: top_node is not defined.
"/home/wlad/bzr/5.5-threadpool/sql/gcalc_slicescan.h", line 381: Error: shape is not a member of Gcalc_heap::Info.
"/home/wlad/bzr/5.5-threadpool/sql/item.h", line 3683: Warning: arg hides Item_insert_value::arg.
6 Error(s) and 2 Warning(s) detected.


Generated at Thu Feb 08 06:26:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.