secp256k1 now no longer works with latest openssl3.x series
The openssl programmers, in their infinite wisdom, made openssl 3.x deprecate a bunch of APIs and they also changed their APIs around. If you have openssl3.x installed, the cmake
build system finds it ok, but then secp256k1
fails some tests, such that ninja check-secp256k1
will fail.
We may need to backport some of ABC's changes related to this (if any).
Note: backporting core is not advised since their version of this library differs significantly from ours (in particular: their schnorr sig implementation).
For now, a workround is to make sure you also have openssl1.1 installed and to specify -DOPENSSL_ROOT_DIR=/path/to/openssl1.1
in your cmake -GNinja ..
line.