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.  DNF install rpm error Cannot load program visudo

    Posted Wed February 14, 2024 11:38 AM

    Hi,

    When I install an rpm by hand (rpm -ivh..) I have no problem, but when I install it via DNF I have the sudo errors below

    [ERROR] generated sudoers file has error, please check smartco_sudocfg
    exec(): 0509-036 Cannot load program visudo because of the following errors:
            0509-130 Symbol resolution failed for /opt/freeware/libexec/sudo/libsudo_util.a(libsudo_util.so.0) because:
            0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 130) is not exported from
                       dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
            0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 131) is not exported from
                       dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.

    The rpm must create a file in /etc/sudoers.d and therefore calls visudo

    Do you know this problem?

    THANKS



    ------------------------------
    Nicolas Aubert
    ------------------------------

    #AIXOpenSource


  • 2.  RE: DNF install rpm error Cannot load program visudo

    Posted Thu February 15, 2024 01:31 AM

    dnf internally sets the LIBPATH to "/usr/opt/rpm/lib". Is it possible for you to repackage the rpm after exporting LIBPATH=/opt/freeware/lib:/usr/lib in the post-install script in the SPEC file ?



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



  • 3.  RE: DNF install rpm error Cannot load program visudo

    Posted Thu February 15, 2024 08:29 AM

    I will ask the creator of the RPM if it is possible to do this action.

    THANKS



    ------------------------------
    Nicolas Aubert
    ------------------------------