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

GSSAPI plugin fails to build : error: invalid conversion from ‘int’ to ‘krb5_enctype {aka ENCTYPE}’

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1.11
    • 10.1.12
    • Compiling, Plugins
    • None
    • Gentoo Linux; GCC 5.3.0; heimdal-1.5.3

    Description

      [ 74%] Building CXX object plugin/auth_gssapi/CMakeFiles/auth_gssapi.dir/gssapi_server.cc.o  [58/1847]
      cd /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql-abi_x86_64.amd64/plugin/auth_gssapi && /usr/bin/x86_64-pc-linux-gnu-g++  -DHAVE_CONFIG_H -DMYSQL_DYNAMIC_PLUGIN -DPLUGIN_GSSAPI -Dauth_gssapi_EXPORTS -I/var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql-abi_x86_64.amd64/include -I/var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/include -I/var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/sql   -O2 -pipe -g -felide-constructors -fno-strict-aliasing  -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -fno-exceptions -fno-rtti -DNDEBUG -DDBUG_OFF -fPIC   -o CMakeFiles/auth_gssapi.dir/gssapi_server.cc.o -c /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc
       
      /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc: In function ‘char* get_default_principal_name()’:
      /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc:61:68: error: invalid conversion from ‘int’ to ‘krb5_enctype {aka ENCTYPE}’ [-fpermissive]
         if (krb5_kt_read_service_key(context, NULL, principal, 0, 0, &key))
                                                                          ^
      In file included from /usr/include/krb5.h:887:0,
                       from /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc:33:
      /usr/include/krb5-protos.h:2844:1: note:   initializing argument 5 of ‘krb5_error_code krb5_kt_read_service_key(krb5_context, krb5_pointer, krb5_princ
      ipal, krb5_kvno, krb5_enctype, krb5_keyblock**)’
       krb5_kt_read_service_key (
       ^
      /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc:73:5: warning: ‘void krb5_free_unparsed_name(krb5_context, char*)’ is deprecated [-Wdeprecated-declarations]
           krb5_free_unparsed_name(context, unparsed_name);
           ^
      In file included from /usr/include/krb5.h:887:0,
                       from /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc:33:
      /usr/include/krb5-protos.h:1962:1: note: declared here
       krb5_free_unparsed_name (
       ^
      /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc:73:5: warning: ‘void krb5_free_unparsed_name(krb5_context, char
      *)’ is deprecated [-Wdeprecated-declarations]
           krb5_free_unparsed_name(context, unparsed_name);
           ^
      In file included from /usr/include/krb5.h:887:0,
                       from /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc:33:
      /usr/include/krb5-protos.h:1962:1: note: declared here
       krb5_free_unparsed_name (
       ^
      /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc:73:51: warning: ‘void krb5_free_unparsed_name(krb5_context, cha
      r*)’ is deprecated [-Wdeprecated-declarations]
           krb5_free_unparsed_name(context, unparsed_name);
                                                         ^
      In file included from /usr/include/krb5.h:887:0,
                       from /var/tmp/portage/dev-db/mariadb-10.1.11/work/mysql/plugin/auth_gssapi/gssapi_server.cc:33:
      /usr/include/krb5-protos.h:1962:1: note: declared here
       krb5_free_unparsed_name (
       ^

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            grknight Brian Evans
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.