Sagi Rosenthal
11/17/2025, 9:30 AMcd build && cmake .. -DFLB_TESTS_RUNTIME=On && make and getting lib_crypto issues:
Undefined symbols for architecture arm64:
"_EVP_MD_size", referenced from:
_flb_hmac_init in flb_hmac.c.o
_flb_hash_init in flb_hash.c.o
"_EVP_PKEY_size", referenced from:
_flb_crypto_init in flb_crypto.c.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libfluent-bit.dylib] Error 1
make[1]: *** [src/CMakeFiles/fluent-bit-shared.dir/all] Error 2
make: *** [all] Error 2Pat
11/17/2025, 9:36 AMPat
11/17/2025, 9:38 AMPat
11/17/2025, 9:38 AMPat
11/18/2025, 9:49 AMSagi Rosenthal
11/18/2025, 10:07 AMbrew --prefix openssl
/opt/homebrew/opt/openssl@3
Unfortunately that didn't help. probably have some other conflicting packages installed... just not sure which one or what, cursor and claude did not help 😞
guess I'll use other linux server...Pat
11/18/2025, 10:41 AMPat
11/18/2025, 10:41 AMPat
11/18/2025, 10:42 AMSagi Rosenthal
11/18/2025, 10:42 AMbrew install git cmake openssl bison libyaml
export OPENSSL_ROOT_DIR=`brew --prefix openssl`
export PATH=`brew --prefix bison`/bin:$PATH\n
cd build
cmake .. -DFLB_TESTS_RUNTIME=On
make -j10Pat
11/18/2025, 10:42 AMPat
11/18/2025, 10:44 AM-DOPENSSL_ROOT_DIR=$(brew --prefix openssl)Sagi Rosenthal
11/18/2025, 10:44 AMPat
11/18/2025, 10:49 AMSagi Rosenthal
11/18/2025, 12:17 PMclang++: error: linker command failed with exit code 1 (use -v to see invocation)
_nats.a ../../library/libflb-plugin-out_nrlogs.a ...(bunch of ../../library/*.a)... /opt/homebrew/opt/openssl@3/lib/libcrypto.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libz.tbd /opt/homebrew/lib/libzstd.dylib ...
also tried to check vs openssl@1.1 (default is 3)reda ghouzraf
11/18/2025, 2:48 PMreda ghouzraf
11/18/2025, 2:49 PMexport OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)
export LDFLAGS="-L$(brew --prefix openssl@3)/lib"
export CPPFLAGS="-I$(brew --prefix openssl@3)/include"
export PKG_CONFIG_PATH="$(brew --prefix openssl@3)/lib/pkgconfig"reda ghouzraf
11/18/2025, 2:49 PMcmake .. -DFLB_TESTS_RUNTIME=On -DOPENSSL_ROOT_DIR=$(brew --prefix openssl@3)Pat
11/18/2025, 2:57 PMSagi Rosenthal
11/19/2025, 10:30 AMEVP_PKEY_size -> EVP_PKEY_get_size
2. `./src/flb_hmac.c`: EVP_MD_size -> EVP_MD_get_size
and running cmake and make.
The question is why it fails to pre-process it on Mac? I have another linux-os arm64 machine (nvidia Jetson) which it worked out-of-the-boxPat
11/19/2025, 10:31 AMSagi Rosenthal
11/19/2025, 10:32 AMPat
11/19/2025, 10:33 AMSagi Rosenthal
11/19/2025, 10:59 AM-DOPENSSL_USE_STATIC_LIBS=OFF solved it without code changes. I believe also uninstalling 1.1 from the system completely will also help.
🙌Pat
11/19/2025, 11:53 AM