AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  sudo-1.8.20p2 install error

    Posted Wed June 20, 2018 03:52 PM

    Originally posted by: sailaway


    I upgraded my sudo-1.8.15-1 to sudo-1.8.20p2-4 but getting error in the installation. 

     

    root@serverl:/tmp>rpm -Uvh  sudo-1.8.20p2-4.aix6.1.ppc.rpm 
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:sudo-1.8.20p2-4                  ################################# [ 50%]
    Cleaning up / removing...
       2:sudo-1.8.15-1                    warning: directory /var: remove failed: The requested resource is busy.
    warning: directory /opt: remove failed: The requested resource is busy.
    ################################# [100%]

     

    I thought my current sudo session is locking up some sudo files installed in /var and /opt, so I log off all sudo session and login as root directly to re-run the sudo upgrade, same error.

     

    Then when I try to start a new sudo session I get the following error:

    $ sudo su - 
    sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
    sudo: unable to load /opt/freeware/libexec/sudo/sudoers.so:     0509-130 Symbol resolution failed for /opt/freeware/lib/liblber.a(liblber-2.4.so.2) because:
            0509-136   Symbol _GLOBAL__AIXI_shr_o (number 2) is not exported from
                       dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
            0509-136   Symbol _GLOBAL__AIXD_shr_o (number 3) is not exported from
                       dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
            0509-022 Cannot load module /opt/freeware/libexec/sudo/sudoers.so.
            0509-026 System error: Cannot run a file that does not have a valid format.
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.
    sudo: fatal error, unable to load plugins

     

     

    I checked that all library files above exists except for the /etc/sudo.conf which I never use before. 

    root@server:/tmp>ls -l /opt/freeware/libexec/sudo/sudoers.so
    -rw-r--r--    1 root     system      1958669 Nov 15 2017  /opt/freeware/libexec/sudo/sudoers.so
    root@server:/tmp>ls -l /opt/freeware/lib/liblber.a
    lrwxrwxrwx    1 root     system           13 Jun 20 12:22 /opt/freeware/lib/liblber.a -> liblber-2.4.a
    root@server:/tmp>ls -l /opt/freeware/lib/liblber-2.4.a 
    -rwxr-xr-x    1 root     system       205746 Nov 07 2017  /opt/freeware/lib/liblber-2.4.a
    root@server:/tmp>ls -l /etc/sudo.conf
    ls: 0653-341 The file /etc/sudo.conf does not exist.
     

     

     

    Appreciate if someone can help.

     

     

     

     



  • 2.  Re: sudo-1.8.20p2 install error

    Posted Thu June 21, 2018 01:55 AM

    Originally posted by: AyappanP


    There seems to be a dependency problem with the recently published openldap rpm. It has a dependency on gcc 6.3.0 which is not set in the rpm. 

    Update gcc to 6.3.0 version from AIX Toolbox that will fix this issue. 

     

     



  • 3.  Re: sudo-1.8.20p2 install error

    Posted Thu June 21, 2018 08:51 AM

    Originally posted by: sailaway


    When I try to install the gcc 6.3.0 I failed the dependency check as follow:

     

    root@server:/tmp>rpm -Uvh --test gcc-6.3.0-1.aix7.1.ppc.rpm
    error: Failed dependencies:
            libgcc = 6.3.0-1 is needed by gcc-6.3.0-1.ppc
            gcc-cpp = 6.3.0-1 is needed by gcc-6.3.0-1.ppc
            AIX-rpm < 7.2.0.0 is needed by gcc-6.3.0-1.ppc

    Can you please let me know where to download the AIX-rpm ? Is it on the AIX install DVD image ?



  • 4.  Re: sudo-1.8.20p2 install error

    Posted Thu June 21, 2018 09:50 AM

    Originally posted by: AyappanP


    You need only libgcc rpm in this case. Ignore gcc rpm. 

    Get the rpm version specific to your AIX version. Which version of AIX you are using ?



  • 5.  Re: sudo-1.8.20p2 install error

    Posted Thu June 21, 2018 09:52 AM

    Originally posted by: sailaway


    I'm using AIX 7.2 TL2 SP2.



  • 6.  Re: sudo-1.8.20p2 install error

    Posted Thu June 21, 2018 09:57 AM

    Originally posted by: sailaway


    I just checked I already have AIX-rpm installed, and the version is > 7.2.0.0

     

    root@server:/tmp>rpm -qa|grep rpm
    AIX-rpm-7.2.2.15-4.ppc

    root@server:/tmp>lslpp -L|grep rpm
      rpm.rte                   4.13.0.2    C     F    RPM Package Manager
      AIX-rpm                 7.2.2.15-4    C     R    Virtual Package for libraries
                                                       (/bin/rpm)
                                                       (bash) version 4.3 (/bin/rpm)
                                                       shell scripts (/bin/rpm)
                                                       (/bin/rpm)
                                                       interaction(empty). (/bin/rpm)
                                                       messages. (/bin/rpm)
                                                       functions (/bin/rpm)
                                                       library (/bin/rpm)
                                                       (/bin/rpm)
                                                       (/bin/rpm)
                                                       more, but better. (/bin/rpm)
                                                       interface library (/bin/rpm)
                                                       support library (/bin/rpm)
                                                       implementation (/bin/rpm)
                                                       (/bin/rpm)
                                                       (/bin/rpm)
                                                       (/bin/rpm)
                                                       for OpenLDAP (/bin/rpm)
                                                       (/bin/rpm)
                                                       terminal. (/bin/rpm)
                                                       terminal. (/bin/rpm)
                                                       (/bin/rpm)
                                                       language(empty). (/bin/rpm)
                                                       (/bin/rpm)
                                                       (/bin/rpm)
                                                       enhancements. (/bin/rpm)
                                                       (/bin/rpm)

    Do I need a AIX-rpm version < 7.2.0.0 ?

     

     

    root@server:/tmp>rpm -Uvh --test libgcc-6.3.0-1.aix7.1.ppc.rpm
    error: Failed dependencies:
            AIX-rpm < 7.2.0.0 is needed by libgcc-6.3.0-1.ppc

     



  • 7.  Re: sudo-1.8.20p2 install error

    Posted Thu June 21, 2018 10:08 AM

    Originally posted by: AyappanP


    You need a libgcc built in AIX 7.2. Get it from here --> ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/gcc/libgcc-6.3.0-1.aix7.2.ppc.rpm



  • 8.  Re: sudo-1.8.20p2 install error

    Posted Thu June 21, 2018 10:43 AM

    Originally posted by: sailaway


    thanks a lot., the sudo works fine now.

    Can I safely ignore the warning message from the installation about /var and /opt being busy?

     

    root@server:/tmp>rpm -Uvh  libgcc-6.3.0-1.aix7.2.ppc.rpm      
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libgcc-6.3.0-1                   ################################# [ 50%]
    Cleaning up / removing...
       2:libgcc-4.8.3-1                   ################################# [100%]
    root@server:/tmp>rpm -Uvh  sudo-1.8.21p2-1.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:sudo-1.8.21p2-1                  ################################# [ 50%]
    Cleaning up / removing...
       2:sudo-1.8.15-1                    warning: directory /var: remove failed: The requested resource is busy.
    warning: directory /opt: remove failed: The requested resource is busy.
    ################################# [100%]

     



  • 9.  Re: sudo-1.8.20p2 install error

    Posted Thu June 21, 2018 10:50 AM

    Originally posted by: AyappanP


    Yes, can be ignored