[MDEV-30831] Cannot compile AWS KMS Plugin for 10.6 Created: 2023-03-10 Updated: 2023-10-20 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Plugin - AWS key management |
| Affects Version/s: | 10.6.13 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Rich | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 3 |
| Labels: | None | ||
| Environment: |
Ubuntu 22.04 LTS |
||
| Description |
|
Trying to compile just the AWS KMS plugin (aws_key_management) on Ubuntu 22.04 w/ all dependencies installed. I have followed all instructions: I have all dependencies ready in the environment using "apt build-dep mariadb-server-10.6" and have git-cloned the 10.6 branch of MariaDB server to a folder called "server" in the homedir. The cmake step "cmake -DPLUGIN_AWS_KEY_MANAGEMENT=DYNAMIC -DAWS_SDK_EXTERNAL_PROJECT=1 -DNOT_FOR_DISTRIBUTION=1 ../server/" succeeds without errors, but the "make aws_key_management" fails with:
We have tried changing to try a few other different versions of the AWS SDK by altering the GIT_TAG in "server/extra/aws_sdk/CMakelists.txt" in case the chosen "1.8.29" is bugged but we cannot find one that works - they either fail at the same step or at another. Any other ideas? |
| Comments |
| Comment by bulepage [ 2023-05-01 ] | |||||||||||||||||
|
On 20.04 I successful compiled, but I didn't succeed on 22.04 | |||||||||||||||||
| Comment by Kevin M [ 2023-07-05 ] | |||||||||||||||||
|
I have the same issue and attempted with gcc 9 / 10 / and 22.04 default 11 | |||||||||||||||||
| Comment by Daniel Black [ 2023-07-06 ] | |||||||||||||||||
|
I tried, could work it out either. Suggestion: Rewrite it in rust as external. current implementation as you see is very light on what it does https://github.com/MariaDB/server/blob/11.2/plugin/aws_key_management/aws_key_management_plugin.cc
I tried (gcc-13.1.1, culr-8.0.1:
curl errors - replace CURLOPT_PUT -> CURLOPT_UPLOAD. Later version look like they should autodetect hwoever don't include curl. Once corrected link error appear. | |||||||||||||||||
| Comment by Vladislav Vaintroub [ 2023-10-20 ] | |||||||||||||||||
|
Yes, the external project uses a very old GIT TAG, 4 years old. Since we stopped compiling it in CI, I'd say no wonder it does not build |