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)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 5.5(EOL)
    • 5.5.49
    • Compiling
    • 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.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              wlad Vladislav Vaintroub
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.