Skip to content

Build nuraft against shared OpenSSL on Ubuntu 26.04 - #458

Merged
bneradt merged 1 commit into
apache:mainfrom
bneradt:nuraft-shared-openssl-2604
Aug 27, 2026
Merged

Build nuraft against shared OpenSSL on Ubuntu 26.04#458
bneradt merged 1 commit into
apache:mainfrom
bneradt:nuraft-shared-openssl-2604

Conversation

@bneradt

@bneradt bneradt commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

OpenSSL 3.5 lists "-lz" in the static half of its pkg-config file, so
CMake's FindOpenSSL resolves zlib while it is restricted to static
libraries and puts the non-PIC libz.a into libnuraft.so. amd64 rejects
that relocation, so the ubuntu2604 image fails to build there while
arm64 tolerates the same archive.

This patch names the shared OpenSSL libraries, which keeps FindOpenSSL
out of its static path and drops the zlib, jitterentropy, and zstd
dependencies from the nuraft link entirely.

OpenSSL 3.5 lists "-lz" in the static half of its pkg-config file, so
CMake's FindOpenSSL resolves zlib while it is restricted to static
libraries and puts the non-PIC libz.a into libnuraft.so. amd64 rejects
that relocation, so the ubuntu2604 image fails to build there while
arm64 tolerates the same archive.

This patch names the shared OpenSSL libraries, which keeps FindOpenSSL
out of its static path and drops the zlib, jitterentropy, and zstd
dependencies from the nuraft link entirely.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 27, 2026 19:54
@bneradt bneradt self-assigned this Aug 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bneradt
bneradt merged commit 3842a49 into apache:main Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants