Skip to content
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

SODIUM_INSTALL=bundled still links with preinstalled libsodium.so #179

Closed
yurivict opened this issue Mar 3, 2016 · 3 comments
Closed

SODIUM_INSTALL=bundled still links with preinstalled libsodium.so #179

yurivict opened this issue Mar 3, 2016 · 3 comments

Comments

@yurivict
Copy link

yurivict commented Mar 3, 2016

Observing this on FreeBSD.

@yurivict
Copy link
Author

Fixed in 1.1.2.

@gohonsen
Copy link

gohonsen commented Jul 13, 2017

@reaperhulk It seems not effect for centos 6.5 to me;
the system libsodium version was 0.4.5, the ImportError is " /usr/lib64/python2.6/site-packages/PyNaCl-1.2.0.dev1-py2.6-linux-x86_64.egg/nacl/_sodium.so: undefined symbol: crypto_generichash_blake2b_salt_personal ", the ldd info like this:

ldd /usr/lib64/python2.6/site-packages/PyNaCl-1.2.0.dev1-py2.6-linux-x86_64.egg/nacl/_sodium.so
linux-vdso.so.1 => (0x00007ffc33f98000)
libsodium.so.4 => /usr/lib64/libsodium.so.4 (0x00007fdfa7c79000)
libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007fdfa78d3000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fdfa76b5000)
libc.so.6 => /lib64/libc.so.6 (0x00007fdfa7321000)
libm.so.6 => /lib64/libm.so.6 (0x00007fdfa709d000)
librt.so.1 => /lib64/librt.so.1 (0x00007fdfa6e94000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fdfa6c90000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fdfa6a8d000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdfa80e7000)

then I installed libsodium-1.0.12 by manually, it was installed at /usr/local/lib, the system libsodium.so was at /usr/lib64, after rebuild install pynacl, the ImportError still exist, and the ldd info does't change. At last, I link the /usr/lib64/libsodium.so to new version, the issue was solved. I do the operations as follows:

mv /usr/lib64/libsodium.so /usr/lib64/libsodium.so_bak
mv /usr/lib64/libsodium.so.4 /usr/lib64/libsodium.so.4_bak
ln -s /usr/local/lib/libsodium.so.18.2.0 /usr/lib64/libsodium.so.18.2.0
ln -s /usr/local/lib/libsodium.so.18.2.0 /usr/lib64/libsodium.so

@reaperhulk
Copy link
Member

If you upgrade your pip to the latest version you'll get a wheel that bundles a precompiled version and will bypass the issue as well.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants