bloomberg / bloomberg/comdb2

Unable to install Comdb2 on Ubuntu 22.04 x64 - ‘AES_cbc_encrypt’ is deprecated:

Open
#3,406 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.5k
Forks
243
Avg merge
2d 2h
Merged PRs (30d)
37

Description

**Describe the bug**
After running `mkdir build && cd build && cmake .. && make && sudo make install` I encountered a crash at around 13%.

```
/root/comdb2/berkdb/crypto/aes_method.c: In function ‘__aes_decrypt’:
/root/comdb2/berkdb/crypto/aes_method.c:105:9: error: ‘AES_cbc_encrypt’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
105 | AES_cbc_encrypt(cipher, cipher, cipher_len, &aes->decrypt_key, iv, AES_DECRYPT);
| ^~~~~~~~~~~~~~~
In file included from /root/comdb2/berkdb/dbinc/crypto.h:56,
from /root/comdb2/berkdb/crypto/aes_method.c:24:
/usr/include/openssl/aes.h:66:6: note: declared here
```

**To Reproduce**
Steps to reproduce the behavior:
1. Start an Ubuntu 22.04 x64 container on Digital Ocean
2. Update and upgrade the server
3. Clone the comdb2 repo
4. Install comdb2 dependencies
5. run mkdir build && cd build && cmake .. && make && sudo make install
6. Watch for error around 13% completed

**Expected behavior**
I expected no errors

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- Ubuntu 22.04 x64
- SSH session

**Additional context**
I did not have this issue on Ubuntu 20.x,
My concern is the error message, `AES_cbc_encrypt’ is deprecated. `

Contributor guide

Open the contributing guide

Research direction

Start with berkdb/crypto/aes_method.c, especially __aes_decrypt and the AES_cbc_encrypt call shown in the build error. Reproduce the failure with the documented CMake and make commands on Ubuntu 22.04, then verify that the project builds and installs without the deprecated-declaration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake, linux, ubuntu
Domain
build-system, cryptography
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.