Created attachment 491100 [details, diff] cmake patch which checks for -lkrb5 dev-db/mariadb needs -lkrb5 when compiling the gssapi plugin against heimdal kerberos. The attached patch works for me but may not really be the best approach to solving this issue. In the build log for the failure: ... -- Found GSSAPI: -Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/lib64 -L/usr/lib64 -lgssapi -- Looking for krb5_free_unparsed_name -- Looking for krb5_free_unparsed_name - not found ... CMakeFiles/auth_gssapi.dir/gssapi_server.cc.o: In function `plugin_init()': gssapi_server.cc:(.text+0x212): undefined reference to `krb5_init_context' gssapi_server.cc:(.text+0x24b): undefined reference to `krb5_free_keyblock' gssapi_server.cc:(.text+0x25a): undefined reference to `krb5_xfree' gssapi_server.cc:(.text+0x26e): undefined reference to `krb5_free_principal' gssapi_server.cc:(.text+0x27d): undefined reference to `krb5_free_context' gssapi_server.cc:(.text+0x2c9): undefined reference to `krb5_sname_to_principal' gssapi_server.cc:(.text+0x2e1): undefined reference to `krb5_unparse_name' gssapi_server.cc:(.text+0x367): undefined reference to `krb5_kt_read_service_key' collect2: error: ld returned 1 exit status make[2]: *** [plugin/auth_gssapi/CMakeFiles/auth_gssapi.dir/build.make:148: plugin/auth_gssapi/auth_gssapi.so] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-db/mariadb-10.1.26/work/mysql-abi_x86_64.amd64' make[1]: *** [CMakeFiles/Makefile2:2494: plugin/auth_gssapi/CMakeFiles/auth_gssapi.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... ... In the build.log with the patch applied: ... -- Found GSSAPI: -Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/lib64 -L/usr/lib64 -lgssapi -- Found KRB5: -Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/lib64 -L/usr/lib64 -lkrb5 -- Looking for krb5_free_unparsed_name -- Looking for krb5_free_unparsed_name - found ... build succeeds.
I think I need to apply https://gitweb.gentoo.org/proj/mysql-extras.git/tree/20025_all_mariadb-10.2.6-gssapi-detect.patch to 10.1 versions as well. This works very well with 10.2.
Should be fixed in git. Please test with new patch.
That update fixes it for me. Thank you:) # pwd; git log -n 1 -- . /usr/portage/dev-db/mariadb commit f566a37488f2f509d3ac89d098a76076270a6480 Author: Brian Evans <grknight@gentoo.org> Date: Wed Aug 30 08:25:13 2017 -0400 dev-db/mariadb: Fix GSSAPI detection in 10.1.26 wrt bug 629366 Package-Manager: Portage-2.3.8, Repoman-2.3.3