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
undefined symbol: crypto_generichash_blake2b_salt_personal #281
Comments
Would you mind trying to execute the
command on that system, to try and see which version of the sodium library is getting dynamically linked to pynacl bindings? In as much as I know, recent versions of pynacl should statically link the vendored version of libsodium at build time, unless you specifically set the environment variable |
This is what I'm getting: ldd /usr/lib64/python3.5/site-packages/nacl/_sodium.cpython-35m-x86_64-linux-gnu.so
Looks like it's binding to the system /usr/lib64/libsodium.so? And I'm using the latest 1.1.1 version without any environment variables. Could this be related to #179? |
Yes, for some reason, the module is linked to the system's libsodium. Did you save the output from pip install, or can you repeat the installation with
If you're in a hurry, you could just uninstall the system's libsodium-devel package to force building with the bundled version. |
This is the output I get from the log: https://pastebin.com/dMugw5Nw |
Could you try to swap the library path order by manually doing a
Inside the build directory, if it hasn't been already removed? |
I didn't find a way to keep pip build files after finishing installing, so I went away and renamed the system libsodium.so before installing PyNaCl and it finally worked. |
OK, thank you for you patience; if you don't mind, I'll contact you in some days to try and test if a patch I've in mind would solve this problem. |
@Josephvb10 I'd be grateful if you could try and rebuild the changed "release" available at https://github.com/lmctv/pynacl/archive/v1.2.a0.reorder.zip You could just download the zip or tar.gz compressed file from https://github.com/lmctv/pynacl/releases/tag/v1.2.a0.reorder , extract its contents and then do a
from within the extracted directory. Thank you very much. |
@yurivict would you mind verifying if https://github.com/lmctv/pynacl/archive/v1.2.a0.reorder.zip solves issue #179 on freebsd? |
@lmctv Yes, it solves the issue on freebsd. |
Yup, can confirm this fixes the issue. |
Thank you very much for your help. |
@yurivict @Josephvb10 would you mind trying to do a simple
to check the just released 1.1.2 solves the problems you were experiencing (after making sure the system libsodium.so is still present) and if so close your respective bugs? |
@yurivict since I know next to nothing about freebsd build system, I'd be grateful if you could try and see if the expected artifacts have been left inside the P.S. from the path I'm seeing, it seems you are not building a "traditional" package, but you are dealing with a ports Makefile instead. |
@Josephvb10 could you please retry the pip install on the affected system, and close this issue if all is well? |
After installing PyNaCl with pip3.5 on Centos 6 and trying to import nacl.secret from a Python script, I get the following error:
The text was updated successfully, but these errors were encountered: