Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with ssl features on mac m1 #491

Closed
aiyajsupra opened this issue Aug 18, 2022 · 2 comments
Closed

Build failed with ssl features on mac m1 #491

aiyajsupra opened this issue Aug 18, 2022 · 2 comments

Comments

@aiyajsupra
Copy link

aiyajsupra commented Aug 18, 2022

Build is failing with following message when we run rdkafka with ssl feature enabled on mac m1.

          Undefined symbols for architecture arm64:
            "_SSL_get1_peer_certificate", referenced from:
                _rd_kafka_transport_ssl_handshake in librdkafka_sys-66bfa0eb454c4b25.rlib(rdkafka_ssl.c.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
openssl version: OpenSSL 1.1.1q  5 Jul 2022
uname -m: arm64
@drake-cloudwalk
Copy link

Exporting the OPENSSL_ROOT_DIR makes the build works for me.

Example:
export OPENSSL_ROOT_DIR="/opt/homebrew/opt/openssl@3"

@benesch
Copy link
Collaborator

benesch commented Oct 29, 2022

This is expected behavior. If you enable the ssl feature, rdkafka-sys will link against your system's OpenSSL. On an M1 Mac, there is no system OpenSSL unless you install OpenSSL with Homebrew and set OPENSSL_ROOT_DIR, as demonstrated above. You can instead use the ssl-vendored feature if you'd prefer to have Cargo download and build a bundled copy of OpenSSL.

@benesch benesch closed this as completed Oct 29, 2022
grooviegermanikus added a commit to grooviegermanikus/yellowstone-grpc that referenced this issue Nov 15, 2023
ssl -> ssl-vendored

building the rdkafka crate failes on mac per default configuration

see fede1024/rust-rdkafka#491
fanatid pushed a commit to rpcpool/yellowstone-grpc that referenced this issue Nov 15, 2023
building the rdkafka crate fails on mac per default configuration
see fede1024/rust-rdkafka#491
mergify bot pushed a commit to rpcpool/yellowstone-grpc that referenced this issue Nov 15, 2023
building the rdkafka crate fails on mac per default configuration
see fede1024/rust-rdkafka#491

(cherry picked from commit 9ecf8d2)
fanatid pushed a commit to rpcpool/yellowstone-grpc that referenced this issue Nov 15, 2023
building the rdkafka crate fails on mac per default configuration
see fede1024/rust-rdkafka#491

(cherry picked from commit 9ecf8d2)
fanatid pushed a commit to rpcpool/yellowstone-grpc that referenced this issue Nov 15, 2023
building the rdkafka crate fails on mac per default configuration
see fede1024/rust-rdkafka#491

(cherry picked from commit 9ecf8d2)

Co-authored-by: Groovie | Mango <95291500+grooviegermanikus@users.noreply.github.com>
Br2Sin added a commit to Br2Sin/redstone that referenced this issue Aug 23, 2024
building the rdkafka crate fails on mac per default configuration
see fede1024/rust-rdkafka#491
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

No branches or pull requests

3 participants