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.  yum fails after idsldap filesets are updated

    Posted Fri August 07, 2020 02:13 AM
    A working YUM configuration is broken after IBM DS LDAP idsldap filesets are updated. Does anyone have a way to avoid this and similar issues where LPP delivered libs created issues for toolbox rpms? Thought toolbox RPMs would just use /opt/freeware/lib but evidently not. Not so sure if this is a yum or a python issue either.

    root@x:/root: yum repolist
    There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
      0509-022 Cannot load module /lib/libcurl.a(libcurl.so.4).
      0509-150 Dependent module /lib/libldap.a(libldap-2.4.so.2) could not be loaded.
      0509-153 File /lib/libldap.a is not an archive or the file could not be read properly.
      0509-026 System error: Cannot run a file that does not have a valid format.
      0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
      0509-150 Dependent module /lib/libcurl.a(libcurl.so.4) could not be loaded.
    Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is:2.7.17 (default, Feb 24 2020, 10:57:43) [GCC 8.3.0]

    The required archives are still available in /opt/freeware/lib and nothing has changed here since the IDSLDAP filesets were updated.
    root@x:/root: ls /opt/freeware/lib/|egrep 'curl|ldap'
    libcurl.a
    libldap-2.4.a
    libldap-2.4.so.2
    libldap.a
    libldap_r-2.4.a
    libldap_r-2.4.so.2
    libldap_r.a

    But new archive files have been installed in /usr/lib which didn't exist prior to the idsldap lpp update.
    root@x:/root: ls /usr/lib|grep ldap
    idsldap_plugin_ibm_gsskrb_64.a idsldap_plugin_ibm_gsskrb.a idsldap_plugin_sasl_digest-md5_64.a idsldap_plugin_sasl_digest-md5.a ldap_plugin_ibm_gsskrb_64.a ldap_plugin_ibm_gsskrb.a ldap_plugin_sasl_digest-md5_64.a ldap_plugin_sasl_digest-md5.a libgsk8ldap_64.so libgsk8ldap.so libibmldap64.a libibmldap.a libibmldapstatic64.a libibmldapstatic.a libidsldap64.a
    libidsldap.a
    libidsldapstatic64.a
    libidsldapstatic.a
    libldap64.a
    libldap.a
    libldapiconv64.a
    libldapiconv.a

    And now YUM (python) tries to use /lib/libldap.a instead of /opt/freeware/lib/libldap.a.  Right now I'm having to set LIBPATH=/opt/freeware/lib to get yum working, but other AIX toolbox RPMs like curl are also broken after the update of idsldap.

    ------------------------------
    Dennis Mathews
    ------------------------------

    #AIXOpenSource


  • 2.  RE: yum fails after idsldap filesets are updated

    Posted Fri August 07, 2020 02:27 AM
    Normally, AIX Toolbox packages can co-exist with lpp packages like (IBM LDAP, IBM NAS, AIX libiconv ). But exports like "LIBPATH=/usr/lib" will create conflicts because of the library names being the same. In your case , i think LIBPATH is exported to /usr/lib or lib which creates this problem. We are going to hardcode the library search path in the future to avoid these kind of conflicts.

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



  • 3.  RE: yum fails after idsldap filesets are updated

    Posted Fri August 07, 2020 02:49 AM
    Hello Ayappan, 

    Thanks, you were right!
    root had LIBPATH set in it's env for some reason. I wasn't expecting to see that!

    cheers,


    ------------------------------
    Dennis Mathews
    ------------------------------