Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  python3: runtime linking errors after aix update

    Posted Mon January 09, 2023 04:16 AM
    Hi,

    during update to aix 7300-00-02-2220 openssl was  upgraded to v3  without asking, which is odd  enough for itself.  beside this, this stupid behaviour
    breaks rpm packages which are linked to the "older" openssl version, python3 crypto bindings (again) in my case.

    ImportError: rtld: 0712-001 Symbol SSL_CTX_set_psk_client_callback was referenced
          from module /opt/freeware/lib64/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so(), but a runtime definition
          of the symbol was not found.
    rtld: 0712-001 Symbol SSL_CTX_set_psk_server_callback was referenced
          from module /opt/freeware/lib64/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so(), but a runtime definition
          of the symbol was not found.
    rtld: 0712-001 Symbol SSL_CTX_use_psk_identity_hint was referenced
          from module /opt/freeware/lib64/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so(), but a runtime definition
          of the symbol was not found.
    [2023-01-06 11:32:24 CET] [53870916] [INFO] Worker exiting (pid: 53870916)
    ​


    are you guys not holding meetings with aix development  or testing BEFORE rolling out such error prone stuff?

    chris



    ------------------------------
    I regret starting this entire conversation
    ------------------------------

    #AIXOpenSource


  • 2.  RE: python3: runtime linking errors after aix update

    Posted Mon January 09, 2023 04:29 AM

    The openssl installed doesn't have "libssl.so.1.1" inside the /usr/lib/libssl.a archive file ?

    ar -X64 -tv /usr/lib/libssl.a



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: python3: runtime linking errors after aix update

    Posted Mon January 09, 2023 04:46 AM
    the object is there...but  as shown above, it misses various symbols. guess the python package (or the cryptography part) needs to be rebuilt againts the new openssl.

    root@aixstp12e3db: /root # lslpp -l | grep openssl
      openssl.base             3.0.5.101  COMMITTED  Open Secure Socket Layer
      openssl.license          3.0.5.101  COMMITTED  Open Secure Socket License
      openssl.man.en_US        3.0.5.101  COMMITTED  Open Secure Socket Layer
      openssl.base             3.0.5.101  COMMITTED  Open Secure Socket Layer
    root@aixstp12e3db: /root # ar -X64 -tv /usr/lib/libssl.a
    rwxr-xr-x     0/0     825310 Sep 12 07:55 2022 libssl.so
    rwxr-xr-x     0/0     825310 Sep 12 07:55 2022 libssl.so.1.0.0
    rwxr-xr-x     0/0     825310 Sep 12 07:55 2022 libssl.so.1.0.2
    rwxr-xr-x     0/0     1138684 Sep 12 07:55 2022 libssl.so.1.1
    rwxr-xr-x     0/0     1337146 Sep 11 15:26 2022 libssl.so.3
    rwxr-xr-x     0/0     825310 Sep 12 07:55 2022 libssl64.so
    rwxr-xr-x     0/0     825310 Sep 12 07:55 2022 libssl64.so.1.0.0
    ​


    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 4.  RE: python3: runtime linking errors after aix update

    Posted Mon January 09, 2023 04:56 AM
    Looks like cryptography is built with the wrong openssl 1.1.1 fileset. We will check and update it as soon as possible.

    ------------------------------
    Ayappan P
    ------------------------------



  • 5.  RE: python3: runtime linking errors after aix update

    Posted Mon January 09, 2023 10:35 AM

    We have uploaded the fixed version of python3-cryptography 3.4.7-2. Can you try it and let me know if it works ?
    python3-cryptography-3.4.7-2.aix7.1.ppc.rpm



    ------------------------------
    Ayappan P
    ------------------------------



  • 6.  RE: python3: runtime linking errors after aix update

    Posted Mon January 09, 2023 10:59 AM
    it works! thank you.
    one thing, can your confirm that this packgage still works with the older openssl (pre v3) versions?

    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 7.  RE: python3: runtime linking errors after aix update

    Posted Tue January 10, 2023 12:20 AM
    This package works with openssl 1.1.1 and above versions.

    ------------------------------
    Ayappan P
    ------------------------------



  • 8.  RE: python3: runtime linking errors after aix update

    Posted Mon January 09, 2023 04:43 AM
    It should not happen. The new version of openssl should be shipping the openssl 1.1.1 shared objects also. As Ayappan asked can you check if 1.1.1 shared object is not part of libssl.a archive ?

    ------------------------------
    SANKET RATHI
    ------------------------------