Solaris: import pynacl.bindings fails with "referenced symbol not found"
envgap__pyca__pynacl-502
01 / FAILURE SIGNATURE
As reported upstream
ImportError: ld.so.1: python2.7: fatal: relocation error: file /root/python/lib64/python2.7/site-packages/nacl/_sodium.so: symbol sodium_unpad: referenced symbol not found
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
3479eaed36a32c6bd91331573a450a5bf099bdd5- Manifest
setup.py- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
pyca/pynacl #502 · read the original issue
I'm having trouble getting PyNaCl to work on Solaris. After installation, import fails to load the shared object `_sodium.so` with the message "symbol sodium_unpad: referenced symbol not found".
I am using the "embedded" libsodium, as I won't be able to install libsodium itself on my target machines.
I reproduces this issue on Solaris 10.11 and Solaris 11.2, on both SPARC and x64 architectures, with or without the "-m32" CFLAG (during installation), and on Python 2 and 3.
```
root@host-ci037 (SunOS 5.11) ➜ ~ pip install pynacl
Looking in indexes: https://pypi.org/simple/
Collecting pynacl
Downloading https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz (3.4MB)
100% |████████████████████████████████| 3.4MB 663kB/s
Installing build dependencies ... done
Requirement already satisfied: six in ./python/lib64/python2.7/site-packages/six-1.12.0-py2.7.egg (from pynacl) (1.12.0)
Requirement already satisfied: cffi>=1.4.1 in ./python/lib64/python2.7/site-packages/cffi-1.11.5-py2.7-solaris-2.11-i86pc.64bit.egg (from pynacl) (1.11.5)
Requirement already satisfied: pycparser in ./python/lib64/python2.7/site-packages/pycparser-2.19-py2.7.egg (from cffi>=1.4.1->pynacl) (2.19)
Installing collected packages: pynacl
Running setup.py install for pynacl ... done
Successfully installed pynacl-1.3.0
root@host-ci037 (SunOS 5.11) ➜ ~ python -c "import nacl.bindings"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/root/python/lib64/python2.7/site-packages/nacl/bindings/__init__.py", line 17, in <module>
from nacl.bindings.crypto_aead import (
File "/root/python/lib64/python2.7/site-packages/nacl/bindings/crypto_aead.py", line 18, in <module>
from nacl._sodium import ffi, lib
ImportError: ld.so.1: python2.7: fatal: relocation error: file /root/python/lib64/python2.7/site-packages/nacl/_sodium.so: symbol sodium_unpad: referenced symbol not found
```
Any ideas?
Thanks04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]