[MDEV-28061] Undefined symbol "__rdseed64_step" while building 10.6 on macOS Created: 2022-03-14  Updated: 2022-04-17

Status: Open
Project: MariaDB Server
Component/s: Compiling, SSL
Affects Version/s: 10.6.8
Fix Version/s: 10.6

Type: Bug Priority: Major
Reporter: Valerii Kravchuk Assignee: Dmitry Shulga
Resolution: Unresolved Votes: 0
Labels: None
Environment:

macOS 10.13.6 (High Sierra) with Xcode 9.4.1



 Description   

I get the following linking error while trying to build current MariaDB Server 10.6 from GitHub on macOS High Sierra:

Yuliyas-MacBook-Air:buildtmp Valerii$ cmake .. -DCMAKE_INSTALL_PREFIX=/Users/Valerii/dbs/maria10.6 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_DTRACE=1
...
Yuliyas-MacBook-Air:buildtmp Valerii$ time make
...
[ 15%] Linking CXX static library libmysys_ssl.a
[ 15%] Built target mysys_ssl
[ 15%] Building C object unittest/mysys/CMakeFiles/aes-t.dir/aes-t.c.o
[ 15%] Linking CXX executable aes-t
Undefined symbols for architecture x86_64:
  "__rdseed64_step", referenced from:
      _IntelRDseed64 in libwolfcrypt.a(random.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [unittest/mysys/aes-t] Error 1
make[1]: *** [unittest/mysys/CMakeFiles/aes-t.dir/all] Error 2
make: *** [all] Error 2
 
real	2m13.229s
user	1m41.005s
sys	0m21.225s


Generated at Thu Feb 08 09:57:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.