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

Build Failure on OSX

    XMLWordPrintable

Details

    Description

      clang --version
      Apple LLVM version 10.0.0 (clang-1000.10.44.4)
      Target: x86_64-apple-darwin18.5.0
      Thread model: posix
      InstalledDir: /Library/Developer/CommandLineTools/usr/bin
      

      There are lots of errors when i build on OSX 10.14.4

      /Users/varun/MariaDB/10.2/libmariadb/plugins/auth/gssapi_errmsg.c:55:20: error: 'gss_display_status' is deprecated: use GSS.framework
            [-Werror,-Wdeprecated-declarations]
            maj_status = gss_display_status(
                         ^
      /usr/include/gssapi/gssapi.h:560:19: note: 'gss_display_status' has been explicitly marked deprecated here
          gss_buffer_t) GSSKRB_APPLE_DEPRECATED("use GSS.framework");      /* status_string */
                        ^
      /usr/include/gssapi/gssapi.h:56:51: note: expanded from macro 'GSSKRB_APPLE_DEPRECATED'
      #define GSSKRB_APPLE_DEPRECATED(x) __attribute__((deprecated(x)))
                                                        ^
      /Users/varun/MariaDB/10.2/libmariadb/plugins/auth/gssapi_errmsg.c:74:7: error: 'gss_release_buffer' is deprecated: use GSS.framework
            [-Werror,-Wdeprecated-declarations]
      

      /Users/varun/MariaDB/10.2/mysys/stacktrace.c:160:21: error: 'sbrk' is deprecated [-Werror,-Wdeprecated-declarations]
        heap_end= (char*) sbrk(0);
                          ^
      /usr/include/unistd.h:585:1: note: 'sbrk' has been explicitly marked deprecated here
      __deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
      ^
      /usr/include/sys/cdefs.h:176:37: note: expanded from macro '__deprecated'
      #define __deprecated    __attribute__((deprecated))
      

      /Users/varun/MariaDB/10.2/mysys/my_sync.c:136:19: error: unused variable 'cur_dir_name' [-Werror,-Wunused-const-variable]
      static const char cur_dir_name[]= {FN_CURLIB, 0};
                        ^
      

      /Users/varun/MariaDB/10.2/mysys/my_lock.c:184:7: error: incompatible function pointer types assigning to 'sig_return' (aka 'void (*)(void)')
            from 'void (*)(int)' [-Werror,-Wincompatible-function-pointer-types]
            ALARM_INIT;
            ^~~~~~~~~~
      /Users/varun/MariaDB/10.2/include/my_alarm.h:36:16: note: expanded from macro 'ALARM_INIT'
                              alarm_signal=signal(SIGALRM,my_set_alarm_variable);
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/varun/MariaDB/10.2/mysys/my_lock.c:190:7: error: incompatible function pointer types passing 'sig_return' (aka 'void (*)(void)') to
            parameter of type 'void (*)(int)' [-Werror,-Wincompatible-function-pointer-types]
            ALARM_END;
            ^~~~~~~~~
      /Users/varun/MariaDB/10.2/include/my_alarm.h:37:41: note: expanded from macro 'ALARM_END'
      #define ALARM_END       (void) signal(SIGALRM,alarm_signal); \
                                                    ^~~~~~~~~~~~
      /usr/include/sys/signal.h:390:27: note: passing argument to parameter here
      void    (*signal(int, void (*)(int)))(int);
                                   ^
      

      Attachments

        Issue Links

          Activity

            People

              sergei.krivonos Sergei Krivonos (Inactive)
              varun Varun Gupta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 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.