0

i'm working on aix6 and trying to ping a windows server via ansible installed on this aix server. But with my python CLI I have an issue with cryptography... : python

Python 2.7.16 (default, Mar 12 2019, 21:23:24)
[GCC 6.3.0] on aix6
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> from requests_credssp import HttpCredSSPAuth
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/freeware/lib/python2.7/site-packages/requests_credssp/__init__.py", line 6, in <module>
    from requests_credssp.credssp import HttpCredSSPAuth
  File "/opt/freeware/lib/python2.7/site-packages/requests_credssp/credssp.py", line 14, in <module>
    from OpenSSL import SSL
  File "/opt/freeware/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/opt/freeware/lib/python2.7/site-packages/OpenSSL/crypto.py", line 15, in <module>
    from OpenSSL._util import (
  File "/opt/freeware/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  **File "/opt/freeware/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 15, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: rtld: 0712-001 Symbol strncpy was referenced
      from module /opt/freeware/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so(), but a runtime definition
            of the symbol was not found.**

If someone has any idea about my issue I will be very thankful !!

Sammy J
  • 1,048
  • 10
  • 28
JCH4
  • 1
  • 1
    Function `strncpy` should have been statically resolved from `/usr/lib/libc.a(strncpy.o)` when this `_openssl.so` was linked. Now you should find out where did it come from (this command might help: `rpm -qf /opt/freeware/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so`), and how could you get a correctly linked version of it. – Lorinczy Zsigmond Jan 07 '20 at 18:47
  • Hello thank you for helping me. I've launched your command and another one. Here is the output: yum whatprovides /opt/freeware/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so python-cryptography-1.8.1-1.noarch : A small but fast and easy to use stand-alone template engine written in pure : python. Repo : AIX_Toolbox_noarch Matched from: Filename : /opt/freeware/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so – JCH4 Jan 16 '20 at 15:48
  • Well, this _noarch_ package does contain this shared object, but that doesn't imports `strncpy` (check with this command: `dump -Tv /opt/freeware/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so | grep str`) – Lorinczy Zsigmond Jan 17 '20 at 06:37

0 Answers0