-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USE_SODIUM in internal.c is never set #16
Comments
Turns out the linker error actually is unrelated to |
I can confirm. Compilation fails due to unknown symbol noise_aesgcm_new_ref when trying to build in libsodium and no openssl configuration. |
Same error for me. Anyone has an idea how to solve it? |
If anyone is still interested, it seems like adding: To the build process solves this problem, also a good idea to add a |
It seems that in internal.c are #ifdefs that should be rewritten. Please inspect following patch:
|
I just wanted to let you know that PR #49 should fix this problem. Imho the behavior regarding the defines makes sense, since it seems to be possible that libsodium gets used, but was compiled without AES GCM support. As long as build flags of libsodium aren't accessible and interpreted it makes sense to have a fallback to the reference implementation. |
The USE_SODIUM flag in internal.c is not set by the configure scripts when configuring with libsodium. This leads to undefined references to
noise_aesgcm_new_ref
on older systems (like travis-Ci ubuntu 14.04). On newer systems the symbol is still undefined, but this is somehow ignored by the linker:The text was updated successfully, but these errors were encountered: