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

CONNECT storage engine does not compile on OSX 10.8

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.4
    • Fix Version/s: 10.0.5
    • Component/s: None
    • Labels:
      None

      Description

      Reported by a user (he has problems creating a JIRA account currently, so he wrote to me directly).

      Problem: MariaDB 10.0.4 does not compile on Mac OS X 10.8

      Error message:

      In file included from /Users/ck/Software/mariadb-10.0.4/sql/item.h:3668:
      /Users/ck/Software/mariadb-10.0.4/sql/item_xmlfunc.h:25:9: warning:
      unknown pragma
      ignored [-Wunknown-pragmas]
      #pragma interface /* gcc class implementation */
      ^
      In file included from
      /Users/ck/Software/mariadb-10.0.4/storage/connect/ha_connect.cc:129:
      In file included from
      /Users/ck/Software/mariadb-10.0.4/storage/connect/tabxcl.h:4:
      /Users/ck/Software/mariadb-10.0.4/storage/connect/tabutil.h:73:41:
      error: cannot
      initialize return object of type 'PSZ' (aka 'char *') with an
      rvalue of type
      'const char *'
      virtual PSZ GetServer(void)

      {return (Tdbp) ? Tdbp->GetServer() : "?";}

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 warning and 1 error generated.
      make[2]: *** [storage/connect/CMakeFiles/connect.dir/ha_connect.cc.o]
      Error 1
      make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            bertrandop Olivier Bertrand added a comment -

            I did see it (as a warning) when compiling on ubuntu and fixed it
            yesterday in revno 3798.
            (however, I cannot connect to the JIRA site. I'll try again to morrow)

            Show
            bertrandop Olivier Bertrand added a comment - I did see it (as a warning) when compiling on ubuntu and fixed it yesterday in revno 3798. (however, I cannot connect to the JIRA site. I'll try again to morrow)
            Hide
            bertrandop Olivier Bertrand added a comment -

            I just changed:
            PSZ GetServer(void)

            {return (Tdbp) ? Tdbp->GetServer() : "?";}

            to:
            PSZ GetServer(void)

            {return (Tdbp) ? Tdbp->GetServer() : (PSZ)"?";}

            This eliminates the gcc warning but I could not test if it solves the error on MAC.

            Show
            bertrandop Olivier Bertrand added a comment - I just changed: PSZ GetServer(void) {return (Tdbp) ? Tdbp->GetServer() : "?";} to: PSZ GetServer(void) {return (Tdbp) ? Tdbp->GetServer() : (PSZ)"?";} This eliminates the gcc warning but I could not test if it solves the error on MAC.
            Hide
            ck Christian Kirsch added a comment -

            Thanks. I'm the original bug reporter (but at that time I couldn't create an account here because of a botched captcha). The compile time error on Mac OS X 10.8 is gone now.

            Christian

            Show
            ck Christian Kirsch added a comment - Thanks. I'm the original bug reporter (but at that time I couldn't create an account here because of a botched captcha). The compile time error on Mac OS X 10.8 is gone now. Christian

              People

              • Assignee:
                bertrandop Olivier Bertrand
                Reporter:
                wlad Vladislav Vaintroub
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h