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.  sudo_64 / version 1.8.31p1

    Posted Thu June 25, 2020 11:07 AM

    Hello Team,

    Just after a nice meeting with Sanket, I updated our local repository to check what's new in the Toolbox and found a problem with the new sudo_ids package.
    I tried to use the 64bit version and got following error:

    :/#sudo_64 -V
    
    Could not load program sudo:
            Dependent module /usr/lib/libibmldap.a could not be loaded.
    Could not load module /usr/lib/libibmldap.a.
    System error: Exec format error

    It seems sudo_64 uses the wrong 'libibmldap.a'. I would expect the correct lib to be '/usr/lib/lib64/libibmldap.a'.
    This is a link to '/opt/IBM/ldap/V6.4/lib64/libidsldap.a' set via the 'idslink -i -g -l 64 -f ' command.

    best regards,
    Joerg



    ------------------------------
    Joerg Kauke
    ------------------------------

    #AIXOpenSource


  • 2.  RE: sudo_64 / version 1.8.31p1

    Posted Thu June 25, 2020 11:14 AM
    What is the sudo version you have ? 
    If it is new (1.8.31p1-1), then i think you have LIBPATH exported to /usr/lib which leads to this issue.

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



  • 3.  RE: sudo_64 / version 1.8.31p1

    Posted Thu June 25, 2020 11:22 AM
    dump -X64 -Hov /opt/freeware/bin/sudo_64

    ***Import File Strings***
    INDEX PATH BASE MEMBER
    0 /opt/freeware/libexec64/sudo:/opt/IBM/ldap/V6.3/lib64:/opt/freeware/lib64:/opt/freeware/lib:/opt/freeware/libexec64/sudo:/opt/freeware/libexec/sudo:/usr/lib64:/usr/lib::/lib
    1 libsudo_util.so
    2 libibmldap.a
    3 libintl.a libintl.so.8
    4 libpthread.a shr_xpg5_64.o
    5 libc.a shr_64.o

    The library search path is correct in the sudo build.

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



  • 4.  RE: sudo_64 / version 1.8.31p1

    Posted Thu June 25, 2020 11:28 AM
    Hi Joerg,
    Is LIBPATH set in your environment ? If so that can cause this issue. 
    Could you please check and let us know. 


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



  • 5.  RE: sudo_64 / version 1.8.31p1

    Posted Fri June 26, 2020 03:42 AM
    Hello Sanket, hello Ayappan,

    there is no LIBPATH set in our environment.
    :/root#echo $LIBPATH
    

    there is no output...

    @Ayappan P : The dump output shows the correct path for Ldap Version 6.3 (/opt/IBM/ldap/V6.3/lib64), but we are using Ldap Version 6.4.
    Therefore after the installation of IBM LDAP "isdlink" creates sym. links for the 32bit lib in "/usr/lib/" and for the lib 64bit in "/usr/lib/lib64/", but your dump output shows "/usr/lib64"  

    :/root#ls -la /usr/lib/libibmldap.a
    lrwxrwxrwx-  1 root  system   35 Jun 9 09:58 /usr/lib/libibmldap.a -> /opt/IBM/ldap/V6.4/lib/libidsldap.a
    
    :/root#ls -la /usr/lib/lib64/libibmldap.a
    lrwxrwxrwx-  1 root  system    37 Jun 9 09:58 /usr/lib/lib64/libibmldap.a -> /opt/IBM/ldap/V6.4/lib64/libidsldap.a
    

    Of course I could manually set a link for the 64bit libibmldap.a to /usr/lib64, but I think it should work out of the box. Maybe there was a change in setting the links to the libs wirth idslink in LDAP Version 6.4... maybe you could check this (/opt/IBM/ldap/V6.4/bin/idslink -i -g -l 64 -f) in your system with Version 6.3. Maybe that's the problem...

    Please, what is your suggestion?

    Best regards,

    Joerg



    ------------------------------
    Joerg Kauke
    ------------------------------



  • 6.  RE: sudo_64 / version 1.8.31p1

    Posted Fri June 26, 2020 04:03 AM
    Yes, you are right. The symbolic links are created inside "/usr/lib/lib64" (weird path). We overlooked this path.
    We will fix this.

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



  • 7.  RE: sudo_64 / version 1.8.31p1

    Posted Fri June 26, 2020 04:19 AM
    Thanks a lot...

    ------------------------------
    Joerg Kauke
    ------------------------------



  • 8.  RE: sudo_64 / version 1.8.31p1

    Posted Fri June 26, 2020 11:30 AM
    Updated a fixed release in Toolbox.
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/sudo/sudo_ids-1.8.31p1-2.aix6.1.ppc.rpm

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