macOS compilation fails
I can not build v3.6.5 on macOS with nettle v3.4.1. Compilation fails with configure: error: Nettle lacks the required rsa_sec_decrypt function
.
config.log has the following lines for that section. Full log is can be found in config.log.gz.
configure:61617: checking for rsa_sec_decrypt
configure:61617: gcc -o conftest -g -O2 -I/usr/local/include -Wl,-no_weak_imports conftest.c -lidn2 -L/usr/local/lib -lhogweed >&5
Undefined symbols for architecture x86_64:
"_rsa_sec_decrypt", referenced from:
_main in conftest-97e833.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
nettle v3.4.1 is installed with ./configure; make; make install
command under /usr/local.
When I checked the rsa_sec_decrypt
function, I saw that it was defined inside libhogweed library with the nettle
prefix.
nm -a rsa-sec-decrypt.o
0000000000000000 T _nettle_rsa_sec_decrypt
It seems like there is a mismatch in function names. Do you have a fix for that?