[MDEV-23564] CMAKE failing due to deprecated Apple GSS method Created: 2020-08-24 Updated: 2021-01-19 Resolved: 2020-10-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | libmariadb |
| Affects Version/s: | 10.1, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.35, 10.3.26, 10.4.16, 10.5.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Rodrigo Souza | Assignee: | Dmitry Shulga |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Mac OS X is Catalina 10.15.6 and XCode Tools 11.6. |
||
| Description |
|
I followed the steps outlined here:
|
| Comments |
| Comment by Daniel Black [ 2020-08-25 ] | |||
|
Hi, It seems that this and some other failures, hopefully some of which have been fixed since There's desperate lack of OSX skill and machines to correct this so I'm wondering given you attempt at building from scratch if you are willing to code a fix for this? The libmariadb is a submodule from https://github.com/mariadb-corporation/mariadb-connector-c which is where the fix needs to be coded. This is compilable separately if willing. I suspect my freebsd/os fix isn't sufficient for OSX? Otherwise to bypass this error recommend removing the following lines from libmariadb/CMakeLists.txt Welcome to MariaDB development, if you need a hand, visit our zulip channel - https://mariadb.zulipchat.com. If you have any improvement suggestions to https://mariadb.org/get-involved/getting-started-for-developers/get-code-build-test/ please let me know. | |||
| Comment by Rodrigo Souza [ 2020-08-25 ] | |||
|
Hi Daniel, Thanks for following up on this, I haven't looked into it deeply yet, but I can own the bug and take a try to come up with a patch for it. I'm still not familiar with the code base, but will get up to speed, another workaround suggested by Sergei was to use cmake -DMYSQL_MAINTAINER_MODE=OFF which seemed have worked on my machine. Yes, please go ahead and assign this bug for me and I'll take a look into it and discuss the options through the ZulipChat or PR. Thanks a lot! Rodrigo Souza | |||
| Comment by Sergei Golubchik [ 2020-08-25 ] | |||
|
In this particular case, gss plugin should automatically use -Wno-error=deprecated-declarations on OSX | |||
| Comment by Daniel Black [ 2020-08-26 ] | |||
|
rodfsouza Thanks for taking the first steps with today. Uncited eol of 10.13 ends support on November 30, 2020 (assumed based on eol intervals). Quotes like this, https://www.howtogeek.com/350901/which-releases-of-macos-are-supported-with-security-updates/ " say Apple Has No Official Written Policy". Happy to take more official guidance So we might target a wholesale replacement at the scheduled date. | |||
| Comment by Sergei Golubchik [ 2020-08-27 ] | |||
|
A complete rewrite of the gss plugin is not part of this MDEV For now let's do like we do with SSL — ignore the "deprecated, rewrite your complete codebase to use non-portable Mac OS X specific libraries" warning. For example, something like this
I suspect it needs to be done both in the server (plugin/auth_gssapi) and in C/C |