troubleshooting

How to fix the linker error 'Undefined symbols for architecture x86_64' in macOS when compiling RisingWave?

I encountered a linker error 'Undefined symbols for architecture x86_64' while trying to compile RisingWave on my macOS. The error specifically mentions '_SSL_get1_peer_certificate'. I have tried setting OPENSSL_ROOT_DIR and OPENSSL_INCLUDE_DIR, as well as running 'brew link --force openssl', but the issue persists. How can I resolve this error?

Ba

BanBuDu0

Asked on Apr 12, 2023

  • Try setting the OPENSSL_ROOT_DIR environment variable to the path where OpenSSL is installed using Homebrew:
export OPENSSL_ROOT_DIR="$(brew --prefix)/opt/openssl@3"
  • Check the OpenSSL version on your system using openssl version. It should be greater than 3.0.

  • If the above steps do not work, try running the following command to compile RisingWave with static linking:

RW_NODE=playground cargo run --bin risingwave --features static-link
Apr 13, 2023Edited by