Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-88

use of anonymous unions and structs in GIS code breaks compilation with Sun Studio (native Solaris compiler)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                wlad Vladislav Vaintroub
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: