cloudflare / cloudflare/boringtun

libboringtun.so shared lib

Open
#355 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
7.2k
Forks
532
PR merge metrics
No merged PRs in 30d

Description

Hi All,

I am trying to build boringtun to use the FFI bindings with C++:

The Build was using cargo build --bin boringtun-cli --release, but when I try to import:

1: /lib64/libboringtun.so: undefined symbol: x25519_secret_key
2: /lib64/libboringtun.so: undefined symbol: x25519_public_key
3: /lib64/libboringtun.so: undefined symbol: x25519_key_to_base64
4: /lib64/libboringtun.so: undefined symbol: x25519_key_to_str_free

Contributor guide

Open the contributing guide

Research direction

Start with the reported `cargo build --bin boringtun-cli --release` command and the FFI binding entry points, then inspect how the shared library exposes the four reported x25519 symbols when loaded from C++. Done means a generated `libboringtun.so` resolves all four symbols without undefined-symbol errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.