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
Expand all | Collapse all

dnf broken, not working

  • 1.  dnf broken, not working

    Posted Wed December 07, 2022 02:33 PM
    Hi, 
    Our dnf was working earlier, but now it looks like broken


     # echo $LIBPATH
    /opt/freeware/64/lib/
     #
     #
     # echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/usr/dt/bin:/sbin:/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/local/bin:/usr/local/sbin:/usr/local/sysadmin/bin:/usr/local/sysadmin/perftools/nmon
     #
     #
     # dnf repolist
    Could not load program /opt/freeware/bin/python3_32:
    Could not load module /opt/freeware/lib/libpython3.7m.so.
    Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
    Member libintl.so.8 is not found in archive
    Could not load module python3_32.
    Dependent module /opt/freeware/lib/libpython3.7m.so could not be loaded.
    / #
     # rpm -qa |sort
    AIX-rpm-7.2.5.103-23.ppc
    atk-1.12.3-2.ppc
    atk-devel-1.12.3-2.ppc
    bash-5.1.16-1.ppc
    bzip2-1.0.8-2.ppc
    ca-certificates-2021.2.52-3.ppc
    cairo-1.8.8-1.ppc
    cairo-devel-1.8.8-1.ppc
    check-0.13.0-1.ppc
    curl-7.83.1-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    db-5.3.28-1.ppc
    dnf-4.2.17-32_50.ppc
    dnf-automatic-4.2.17-32_50.ppc
    dnf-data-4.2.17-32_50.ppc
    expat-2.4.9-1.ppc
    expat-devel-2.4.9-1.ppc
    fontconfig-2.4.2-1.ppc
    fontconfig-devel-2.4.2-1.ppc
    freetype2-2.3.9-1.ppc
    freetype2-devel-2.3.9-1.ppc
    gdbm-1.23-1.ppc
    gettext-0.10.40-6.ppc
    glib2-2.56.1-3.ppc
    glib2-devel-2.56.1-3.ppc
    gmp-6.2.1-1.ppc
    gnupg2-2.2.35-1.ppc
    gnutls-3.7.2-1.ppc
    gpgme-1.13.1-100.ppc
    gtk2-2.10.6-4.ppc
    gtk2-devel-2.10.6-5.ppc
    harfbuzz-1.2.7-2.ppc
    info-6.7-1.ppc
    jbigkit-libs-2.1-1.ppc
    json-c-0.15-2.ppc
    krb5-libs-1.18.5-2.ppc
    libXrender-0.9.8-3waixX11.ppc
    libXrender-devel-0.9.8-3waixX11.ppc
    libassuan-2.5.5-1.ppc
    libcomps-0.1.11-100.ppc
    libdnf-0.39.1-32_50.ppc
    libffi-3.4.2-1.ppc
    libgcc-8-1.ppc
    libgcc8-8.3.0-6.ppc
    libgcrypt-1.9.4-1.ppc
    libgomp-8-1.ppc
    libgomp8-8.3.0-6.ppc
    libgpg-error-1.45-1.ppc
    libiconv-1.17-1.ppc
    libjpeg-9d-1.ppc
    libksba-1.6.0-1.ppc
    libmodulemd-1.5.2-100.ppc
    libmpc-1.2.1-1.ppc
    libnghttp2-1.46.0-1.ppc
    libpng-1.6.27-2.ppc
    libpng-devel-1.6.27-2.ppc
    librepo-1.11.0-100.ppc
    libsmartcols-2.34-100.ppc
    libsolv-0.7.9-32_51.ppc
    libssh2-1.10.0-1.ppc
    libstdc++-8-1.ppc
    libstdc++-devel-8-1.ppc
    libstdc++8-8.3.0-6.ppc
    libstdc++8-devel-8.3.0-6.ppc
    libtasn1-4.16.0-1.ppc
    libtextstyle-0.21-2.ppc
    libtiff-3.8.2-1.ppc
    libunistring-0.9.10-1.ppc
    libwebp-1.0.2-1.ppc
    libxml2-2.9.14-1.ppc
    libyaml-0.2.5-1.ppc
    libzstd-1.5.2-1.ppc
    lz4-1.9.3-1.ppc
    lzo-2.10-2.ppc
    mpfr-4.1.0-1.ppc
    ncurses-6.3-1.ppc
    nettle-3.7.3-1.ppc
    npth-1.5-1.ppc
    openldap-2.4.58-4.ppc
    p11-kit-0.23.22-1.ppc
    p11-kit-tools-0.23.22-1.ppc
    pango-1.14.5-4.ppc
    pango-devel-1.14.5-4.ppc
    pinentry-1.0.0-1.ppc
    pixman-0.12.0-3.ppc
    pkg-config-0.29.2-2.ppc
    python-2.7.18-3.ppc
    python3-3.7.12-1.ppc
    python3-dnf-4.2.17-32_50.ppc
    python3-gpg-1.13.1-100.ppc
    python3-hawkey-0.39.1-32_50.ppc
    python3-libcomps-0.1.11-100.ppc
    python3-libdnf-0.39.1-32_50.ppc
    python3-librepo-1.11.0-100.ppc
    readline-8.1-1.ppc
    renderproto-0.11.1-1.ppc
    rpm-python3-4.15.1-32_1.ppc
    rsync-3.2.3-1.ppc
    shared-mime-info-1.6-2.ppc
    sqlite-3.37.2-1.ppc
    swiagent-2020.2.6.20131-b5170e0.ppc
    unzip-6.0-3.ppc
    xcursor-1.1.7-3.ppc
    xz-libs-5.2.5-1.ppc
    zchunk-libs-1.1.4-101.ppc
    zlib-1.2.12-1.ppc
    zlib-devel-1.2.12-1.ppc
    / #


    For an application compatibility, we need to either install or downgrade some rpm among above to like like below..

    # rpm -qa |sort
    AIX-rpm-7.2.5.103-15.ppc
    atk-1.12.3-2.ppc
    bash-4.3-8.ppc
    bash-doc-3.0-1.ppc
    cairo-1.8.8-1.ppc
    coreutils-5.2.1-1.ppc
    expat-2.0.1-1.ppc
    fontconfig-2.4.2-1.ppc
    freetype2-2.3.9-1.ppc
    gettext-0.10.40-6.ppc
    glib-1.2.10-2.ppc
    glib2-2.12.4-2.ppc
    gtk+-1.2.10-4.ppc
    gtk2-2.10.6-4.ppc
    libjpeg-6b-6.ppc
    libpng-1.2.32-2.ppc
    libtiff-3.8.2-1.ppc
    lpar2rrd-agent-5.05-2.ppc
    openssl-0.9.7d-2.ppc
    openssl-devel-0.9.7d-2.ppc
    openssl-doc-0.9.7d-2.ppc
    pango-1.14.5-4.ppc
    pixman-0.12.0-3.ppc
    swiagent-2020.2.6.20131-b5170e0.ppc
    unzip-5.51-1.ppc
    xcursor-1.1.7-3.ppc
    xft-2.1.6-5.ppc
    xrender-0.9.1-3.ppc
    zlib-1.2.3-3.ppc

    So, now we need to, fix the dnf first, then need to either downgrade/installed  the above rpms.
    Let me know how to proceed.

    Thanks,


    ------------------------------
    Harley AIX
    ------------------------------


  • 2.  RE: dnf broken, not working

    Posted Wed December 07, 2022 03:32 PM
    Hi, I am no expert but have been installing DNF on all of our systems. Had the same issue.. worked ok, then something installed got updated and broke.  The issue is you can not have Perzl openssl installed. 
    Make sure nothing is using it and remove it.  
    rpm -e openssl-devel-0.9.7d-2.ppc
    rpm -e openssl-doc-0.9.7d-2.ppc
    rpm -e openssl-0.9.7d-2.ppc
    This is the first step in my process to install DNF on AIX since we have a lot or perzl rpms installed.. Perzl and IBM toolbox do not play well
    Good luck


    ------------------------------
    Douglas Probst
    ------------------------------



  • 3.  RE: dnf broken, not working

    Posted Wed December 07, 2022 05:23 PM
    Hi, 
    Below are our installed rpm in the system now..

    rpm -qa |sort
    AIX-rpm-7.2.5.103-23.ppc
    atk-1.12.3-2.ppc
    atk-devel-1.12.3-2.ppc
    bash-5.1.16-1.ppc
    bzip2-1.0.8-2.ppc
    ca-certificates-2021.2.52-3.ppc
    cairo-1.8.8-1.ppc
    cairo-devel-1.8.8-1.ppc
    check-0.13.0-1.ppc
    curl-7.83.1-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    db-5.3.28-1.ppc
    dnf-4.2.17-32_50.ppc
    dnf-automatic-4.2.17-32_50.ppc
    dnf-data-4.2.17-32_50.ppc
    expat-2.0.1-1.ppc
    expat-devel-2.4.9-1.ppc
    fontconfig-2.4.2-1.ppc
    fontconfig-devel-2.4.2-1.ppc
    freetype2-2.3.9-1.ppc
    freetype2-devel-2.3.9-1.ppc
    gdbm-1.23-1.ppc
    gettext-0.10.40-6.ppc
    glib2-2.56.1-3.ppc
    glib2-devel-2.56.1-3.ppc
    gmp-6.2.1-1.ppc
    gnupg2-2.2.35-1.ppc
    gnutls-3.7.2-1.ppc
    gpgme-1.13.1-100.ppc
    gtk2-2.10.6-4.ppc
    gtk2-devel-2.10.6-5.ppc
    harfbuzz-1.2.7-2.ppc
    info-6.7-1.ppc
    jbigkit-libs-2.1-1.ppc
    json-c-0.15-2.ppc
    krb5-libs-1.18.5-2.ppc
    libXrender-0.9.8-3waixX11.ppc
    libXrender-devel-0.9.8-3waixX11.ppc
    libassuan-2.5.5-1.ppc
    libcomps-0.1.11-100.ppc
    libdnf-0.39.1-32_50.ppc
    libffi-3.4.2-1.ppc
    libgcc-8-1.ppc
    libgcc8-8.3.0-6.ppc
    libgcrypt-1.9.4-1.ppc
    libgomp-8-1.ppc
    libgomp8-8.3.0-6.ppc
    libgpg-error-1.45-1.ppc
    libiconv-1.17-1.ppc
    libjpeg-9d-1.ppc
    libksba-1.6.0-1.ppc
    libmodulemd-1.5.2-100.ppc
    libmpc-1.2.1-1.ppc
    libnghttp2-1.46.0-1.ppc
    libpng-1.6.27-2.ppc
    libpng-devel-1.6.27-2.ppc
    librepo-1.11.0-100.ppc
    libsmartcols-2.34-100.ppc
    libsolv-0.7.9-32_51.ppc
    libssh2-1.10.0-1.ppc
    libstdc++-8-1.ppc
    libstdc++-devel-8-1.ppc
    libstdc++8-8.3.0-6.ppc
    libstdc++8-devel-8.3.0-6.ppc
    libtasn1-4.16.0-1.ppc
    libtextstyle-0.21-2.ppc
    libtiff-3.8.2-1.ppc
    libunistring-0.9.10-1.ppc
    libwebp-1.0.2-1.ppc
    libxml2-2.9.14-1.ppc
    libyaml-0.2.5-1.ppc
    libzstd-1.5.2-1.ppc
    lz4-1.9.3-1.ppc
    lzo-2.10-2.ppc
    mpfr-4.1.0-1.ppc
    ncurses-6.3-1.ppc
    nettle-3.7.3-1.ppc
    npth-1.5-1.ppc
    openldap-2.4.58-4.ppc
    p11-kit-0.23.22-1.ppc
    p11-kit-tools-0.23.22-1.ppc
    pango-1.14.5-4.ppc
    pango-devel-1.14.5-4.ppc
    pinentry-1.0.0-1.ppc
    pixman-0.12.0-3.ppc
    pkg-config-0.29.2-2.ppc
    python-2.7.18-3.ppc
    python3-3.7.12-1.ppc
    python3-dnf-4.2.17-32_50.ppc
    python3-gpg-1.13.1-100.ppc
    python3-hawkey-0.39.1-32_50.ppc
    python3-libcomps-0.1.11-100.ppc
    python3-libdnf-0.39.1-32_50.ppc
    python3-librepo-1.11.0-100.ppc
    readline-8.1-1.ppc
    renderproto-0.11.1-1.ppc
    rpm-python3-4.15.1-32_1.ppc
    rsync-3.2.3-1.ppc
    shared-mime-info-1.6-2.ppc
    sqlite-3.37.2-1.ppc
    swiagent-2020.2.6.20131-b5170e0.ppc
    unzip-6.0-3.ppc
    xcursor-1.1.7-3.ppc
    xft-2.1.6-5.ppc
    xz-libs-5.2.5-1.ppc
    zchunk-libs-1.1.4-101.ppc
    zlib-1.2.12-1.ppc
    zlib-devel-1.2.12-1.ppc


    # dnf repolist
    Could not load program /opt/freeware/bin/python3_32:
    Could not load module /opt/freeware/lib/libpython3.7m.so.
    Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
    Member libintl.so.8 is not found in archive
    Could not load module python3_32.
    Dependent module /opt/freeware/lib/libpython3.7m.so could not be loaded.

    Getting  below error when trying to install ibmditk application..

    #
    hdmcjunappq9:/opt/IBM/TDI/V7.2_32 # more ce/eclipsece/configuration/1670451186772.log
    !SESSION 2022-12-07 16:13:06.219 -----------------------------------------------
    eclipse.buildId=unknown
    java.fullversion=8.0.5.30 - pap3280sr5fp30-20190207_01(SR5 FP30)
    JRE 1.8.0 AIX ppc-32-Bit 20190124_408237 (JIT enabled, AOT enabled)
    OpenJ9 - 9c77d86
    OMR - dad8ba7
    IBM - e2996d1
    BootLoader constants: OS=aix, ARCH=ppc, WS=gtk, NL=en_US
    Command-line arguments: -os aix -ws gtk -arch ppc

    !ENTRY org.eclipse.osgi 4 0 2022-12-07 16:13:08.878
    !MESSAGE Application error
    !STACK 1
    java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
    /opt/IBM/TDI/V7.2_32/ce/eclipsece/configuration/org.eclipse.osgi/bundles/460/1/.cp/libswt-pi-gtk-4236.a (Could not load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0
    ).
    Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
    Member libintl.so.8 is not found in archive
    Could not load module /opt/IBM/TDI/V7.2_32/ce/eclipsece/configuration/org.eclipse.osgi/bundles/460/1/.cp/libswt-pi-gtk-4236.a.
    Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
    swt-pi-gtk (Not found in java.library.path)
    /.swt/lib/aix/ppc/libswt-pi-gtk-4236.a (Could not load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
    Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
    Member libintl.so.8 is not found in archive
    Could not load module /.swt/lib/aix/ppc/libswt-pi-gtk-4236.a.
    Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
    /.swt/lib/aix/ppc/libswt-pi-gtk.a (Could not load module /.swt/lib/aix/ppc/liblibswt-pi-gtk.a.so.
    System error: No such file or directory)

    Let me know how to fix.

    Thanks,




    ------------------------------
    Harley AIX
    ------------------------------



  • 4.  RE: dnf broken, not working

    Posted Wed December 07, 2022 05:48 PM
    I don't know what method you used to install DNF, but it does not seem that you used the recommended installation, since the python3 version you have requires a newer gettext.

    Yours:
    gettext-0.10.40-6.ppc

    # dnf repoquery --requires python3-3.7.12-1.ppc | grep -i gettext
    Last metadata expiration check: 0:19:25 ago on Sat Nov 26 23:35:57 CST 2022.
    gettext >= 0.19.8.1

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 5.  RE: dnf broken, not working

    Posted Thu December 08, 2022 11:42 AM
    Hi,
    Now I am getting below error when trying to run gtk-demo..

    :/usr/IBM/InstallationManager/eclipse # gtk-demo

    ** (gtk-demo:7340540): WARNING **: 10:25:12.454: Cannot find demo data file "appwindow.c"

    :/usr/IBM/InstallationManager/eclipse # export LIBPATH=/opt/freeware/lib:/opt/freeware/lib64:$LIBPATH

    # rpm -qa |grep gtk*
    gtk+-1.2.10-4.ppc
    gtk2-2.24.30-2waixX11.ppc

    # rpm -qa |grep get*
    gettext-0.19.8.1-3.ppc

    when I tried to install IBM installation manager, got below error..

    :/usr/IBM/InstallationManager/eclipse # ./IBMIM

    .... ...... .......
    .... ...... .......

    !STACK 1
    org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
    at org.eclipse.swt.SWT.error(SWT.java:4559)
    at org.eclipse.swt.widgets.Display.createDisplay(Display.java:958)
     

    How to resolve this.
    Do we need to downgrade gtk2 or gettext  rpm level?

    Thanks, for your help.



    ------------------------------
    Harley AIX
    ------------------------------



  • 6.  RE: dnf broken, not working

    Posted Thu December 08, 2022 03:17 PM
    IBMIM is not an AIX Open Source project, so you should consult with whichever application you are trying to install with IBMIM.

    I do know this error is usually due to invalid $DISPLAY setting. Make sure you can run "xclock" without any errors.

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 7.  RE: dnf broken, not working

    Posted Thu December 08, 2022 04:15 PM
    I think they just need to use NIM and from IBM linux toolbox install the DNF.

    Starting Installation Manager

    this is not for AIX.

    ------------------------------
    minesh patel
    ------------------------------



  • 8.  RE: dnf broken, not working

    Posted Thu December 08, 2022 06:07 PM
    I don't think they are using IBMIM to install DNF.
    IBMIM is a common tool for installing some IBM software, like WAS.

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 9.  RE: dnf broken, not working

    Posted Thu December 08, 2022 07:09 PM
    I see you already had a thread open for this same issue!
     --> https://community.ibm.com/community/user/power/discussion/after-updgrade-gtk2-rpm-some-application-not-working

    There, you said the gtk-demo was working.


    # gtk-demo

    ** (gtk-demo:7340540): WARNING **: 10:25:12.454: Cannot find demo data file "appwindow.c"

    This is a normal message. I get this when I run gtk-demo, but the demo comes up.


    So I do not see  the errors you are reporting are related to IBMIM, or its underlying eclipse/java.
    !STACK 1
    org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
    at org.eclipse.swt.SWT.error(SWT.java:4559)
    at org.eclipse.swt.widgets.Display.createDisplay(Display.java:958)

    Google searches show this error across platforms, it can be related to xauth errors, or Xserver memory limitations, .ini file permissions, or other issues.
    We cannot debug this application here.

    Like I said, you need to engage the IBMIM support, through the product that has advised you to use it. Many products have a "command line" option to complete their installations. The errors indicate an issue with the display.

    NOTE: I see you have an old gtk+ package, this does not look like a package from the AIX Toolbox.

    We have recommended that you clean up non-Toolbox packages and fix DNF. If you are not able to do that, then you will just need to compare your rpm versions to the working LPAR, and match the packages manually.

    Here is a blog that explains how you can clean out all your packages and start with a fresh DNF setup.
    https://community.ibm.com/community/user/power/blogs/jan-harris1/2022/05/25/destroyrpms?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9





    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 10.  RE: dnf broken, not working

    Posted Thu December 08, 2022 06:04 PM
    Hi Jane,
    xclock is working fine. 
    But only that IBM Installation Manager splash screen is not working. It is started the installation splash screen with yellow color, and it dies afterwards.
    Looks like there is some library or rpm missing or need to be downgrade. Similar application is working in other server with downgrade gtk2 rpm. 
    What to do, if I need to downgrade gtk2 rpm from gtk2-2.24.30-2waixX11.ppc to gtk2-2.10.6-4.ppc level? Let me know what other dependency rpm needs to be downgrade with it, if possible, otherwise I will face lot of dependency missing issue.


    @Minesh Patel,
    I checked and dnf is there.
    ​ # ls -lrt /opt/freeware/bin/dnf
    lrwxrwxrwx 1 root system 5 Oct 12 12:23 /opt/freeware/bin/dnf -> dnf-3


    ------------------------------
    Harley AIX
    ------------------------------



  • 11.  RE: dnf broken, not working

    Posted Thu December 08, 2022 10:11 AM
    did you install openssh and openssl from IBM website. if your are not using Openssl and openssh from IBM site then please try to download this and install on the server first.

    1) Download the latest available "OpenSSL or OpenSSH n.n.n" for your AIX version from the following download links:  

    OpenSSH: https://www.ibm.com/resources/mrs/assets?source=aixbp&S_PKG=openssh
    OpenSSL: https://login.ibm.com/oidc/sps/auth?client_id=OTVhNzdjNzgtZDczNi00&Target=https%3A%2F%2Flogin.ibm.com%2Foidc%2Fendpoint%2Fdefault%2Fauthorize%3FqsId%3D580a6a4f-35f2-4291-8056-1adfb708b081%26client_id%3DOTVhNzdjNzgtZDczNi00

    ------------------------------
    minesh patel
    ------------------------------



  • 12.  RE: dnf broken, not working

    Posted Thu December 08, 2022 11:41 AM
    can you do find / -name dnf

    where is dnf located and path 

    /opt/freeware/bin:/opt/freeware/lib may be need to be added to path.

    /opt/freeware/bin/dnf

    ------------------------------
    minesh patel
    ------------------------------



  • 13.  RE: dnf broken, not working

    Posted Fri December 09, 2022 02:28 PM
    Hi, 
    dnf script ran successfully, and dnf repolist showed below output, 

    # dnf repolist
    repo id repo name
    AIX_Toolbox AIX generic repository
    AIX_Toolbox_72 AIX 7.2 specific repository
    AIX_Toolbox_noarch AIX noarch repository

    but when I ran gtk-demo, it showed error

    :/ # gtk-demo
    Could not load program gtk-demo:
    Symbol resolution failed for /opt/freeware/lib/libgdk_pixbuf-2.0.a(libgdk_pixbuf-2.0.so.0) because:
    Symbol __dbargs (number 124) is not exported from dependent
    module /usr/lib/libgio-2.0.a(libgio-2.0.so.0).
    Symbol __dbsubc (number 125) is not exported from dependent
    module /usr/lib/libgio-2.0.a(libgio-2.0.so.0).
    Symbol __dbsubg (number 126) is not exported from dependent
    module /usr/lib/libgio-2.0.a(libgio-2.0.so.0).
    Symbol __dbsubn (number 127) is not exported from dependent
    module /usr/lib/libgio-2.0.a(libgio-2.0.so.0).
    Examine .loader section symbols with the 'dump -Tv' command.
    :/ #

    # echo $LIBPATH
    /opt/freeware/lib:/opt/freeware/lib64:

    # echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/usr/dt/bin:/sbin:/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/local/bin:/usr/local/sbin:/usr/local/sysadmin/bin:/usr/local/sysadmin/perftools/nmon

    Let me know how to proceed.

    Thanks,

    ------------------------------
    Harley AIX
    ------------------------------



  • 14.  RE: dnf broken, not working

    Posted Fri December 09, 2022 06:47 PM
    Hi, 
    I reinstall dnf with script and then run dnf update.
    All went fine.
    Now when I ran gtk-demo, it is still showing below error.

    :/usr/IBM/InstallationManager/eclipse # gtk-demo
    Could not load program gtk-demo:
    Symbol resolution failed for /opt/freeware/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0) because:
    Symbol strcmp (number 533) is not exported from dependent
    module /opt/freeware/lib/libgmodule-2.0.a(libgmodule-2.0.so.0).
    Examine .loader section symbols with the 'dump -Tv' command.


    :/usr/IBM/InstallationManager/eclipse # unset LIBPATH
    :/usr/IBM/InstallationManager/eclipse # echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/usr/dt/bin:/sbin:/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/local/bin:/usr/local/sbin:/usr/local/sysadmin/bin:/usr/local/sysadmin/perftools/nmon

    After dnf upgrade my rpm looks like below:

    # rpm -qa |sort
    AIX-rpm-7.2.5.103-15.ppc
    atk-2.20.0-3.ppc
    atk-devel-2.20.0-3.ppc
    bash-5.1.16-1.ppc
    bash-doc-5.1.16-1.ppc
    bzip2-1.0.8-2.ppc
    ca-certificates-2021.2.52-3.ppc
    cairo-1.14.6-2waixX11.ppc
    cairo-devel-1.14.6-2waixX11.ppc
    check-0.13.0-1.ppc
    coreutils-9.0-1.ppc
    curl-7.85.0-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    db-5.3.28-1.ppc
    dnf-4.2.17-32_50.ppc
    dnf-automatic-4.2.17-32_50.ppc
    dnf-data-4.2.17-32_50.ppc
    expat-2.4.9-1.ppc
    expat-devel-2.4.9-1.ppc
    fontconfig-2.11.95-4.ppc
    fontconfig-devel-2.11.95-4.ppc
    freetype2-2.12.1-1.ppc
    freetype2-devel-2.12.1-1.ppc
    gdbm-1.23-1.ppc
    gdk-pixbuf-2.35.1-3waixX11.ppc
    gettext-0.21-2.ppc
    glib-1.2.10-2.ppc
    glib2-2.56.1-3.ppc
    glib2-devel-2.56.1-3.ppc
    gmp-6.2.1-1.ppc
    gnupg2-2.2.35-1.ppc
    gnutls-3.7.2-1.ppc
    gpgme-1.13.1-100.ppc
    gtk+-1.2.10-4.ppc
    gtk2-2.24.30-3waixX11.ppc
    gtk2-devel-2.24.30-3waixX11.ppc
    harfbuzz-5.2.0-1.ppc
    info-6.7-1.ppc
    jbigkit-libs-2.1-1.ppc
    json-c-0.15-2.ppc
    krb5-libs-1.18.5-2.ppc
    libXcursor-1.1.14-1.ppc
    libXcursor-devel-1.1.14-1.ppc
    libXft-2.3.2-4waixX11.ppc
    libXrender-0.9.8-3waixX11.ppc
    libXrender-devel-0.9.8-3waixX11.ppc
    libassuan-2.5.5-1.ppc
    libcomps-0.1.11-101.ppc
    libdnf-0.39.1-32_50.ppc
    libffi-3.4.2-1.ppc
    libgcc-8-1.ppc
    libgcc8-8.3.0-6.ppc
    libgcrypt-1.9.4-1.ppc
    libgomp-8-1.ppc
    libgomp8-8.3.0-6.ppc
    libgpg-error-1.45-1.ppc
    libiconv-1.17-1.ppc
    libjpeg-9e-1.ppc
    libksba-1.6.0-1.ppc
    libmodulemd-1.5.2-100.ppc
    libmpc-1.2.1-1.ppc
    libnghttp2-1.46.0-1.ppc
    libpng-1.6.37-1.ppc
    libpng-devel-1.6.37-1.ppc
    librepo-1.11.0-100.ppc
    libsmartcols-2.34-100.ppc
    libsolv-0.7.9-32_51.ppc
    libssh2-1.10.0-1.ppc
    libstdc++-8-1.ppc
    libstdc++8-8.3.0-6.ppc
    libtasn1-4.16.0-1.ppc
    libtextstyle-0.21-2.ppc
    libtiff-4.4.0-1.ppc
    libunistring-0.9.10-1.ppc
    libwebp-1.0.2-1.ppc
    libxml2-2.10.2-1.ppc
    libyaml-0.2.5-1.ppc
    libzstd-1.5.2-1.ppc
    lzo-2.10-2.ppc
    mpfr-4.1.0-1.ppc
    ncurses-6.3-1.ppc
    nettle-3.7.3-1.ppc
    npth-1.5-1.ppc
    openldap-2.4.58-4.ppc
    p11-kit-0.23.22-1.ppc
    p11-kit-tools-0.23.22-1.ppc
    pango-1.40.1-2waixX11.ppc
    pango-devel-1.40.1-2waixX11.ppc
    pinentry-1.0.0-1.ppc
    pixman-0.34.0-1.ppc
    pkg-config-0.29.2-2.ppc
    pysqlite-2.8.3-2.ppc
    python-2.7.18-3.ppc
    python-devel-2.7.18-3.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.43.0-1.ppc
    python-tools-2.7.18-3.ppc
    python-urlgrabber-3.10.1-1.noarch
    python3-3.7.15-1.ppc
    python3-dateutil-2.8.0-1.noarch
    python3-dnf-4.2.17-32_50.ppc
    python3-dnf-plugin-migrate-4.0.16-32_50.ppc
    python3-dnf-plugins-core-4.0.16-32_50.ppc
    python3-gpg-1.13.1-100.ppc
    python3-hawkey-0.39.1-32_50.ppc
    python3-libcomps-0.1.11-101.ppc
    python3-libdnf-0.39.1-32_50.ppc
    python3-librepo-1.11.0-100.ppc
    python3-six-1.13.0-1.noarch
    readline-8.1-1.ppc
    renderproto-0.11.1-1.ppc
    rpm-python3-4.15.1-32_1.ppc
    shared-mime-info-1.6-2.ppc
    sqlite-3.39.3-1.ppc
    swiagent-2020.2.6.20131-b5170e0.ppc
    unzip-64bit-6.0-3.ppc
    xft-2.1.6-5.ppc
    xz-libs-5.2.5-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    zchunk-libs-1.1.4-101.ppc
    zlib-1.2.12-1.ppc
    zlib-devel-1.2.12-1.ppc

    Please let me know what to do next to fix the issue with gtk-demo.

    Thanks,









    ------------------------------
    Harley AIX
    ------------------------------



  • 15.  RE: dnf broken, not working

    Posted Fri December 09, 2022 08:14 PM
    I already recommended that you clean up the old packages then start new.
    It seems you did not remove the old stuff, since I see packages like
    glib-1.2.10-2.ppc
    gtk+-1.2.10-4.ppc
    Those packages are NOT from AIX, and provided,  older glib libraries.  I suspect something conflicted with glib2 and gtk2.

    I have installed  gtk2 multiple times and have NO errors with these versions.

    glib2-2.56.1-3.ppc
    gtk2-2.24.30-3waixX11.ppc

    dump -X64 -Tv /opt/freeware/lib/libgdk-x11-2.0.a | grep -w strcmp
    --> Nothing is returned.

    Check this command on your system. If something is returned, then you need to reinstall.
    As I already explained, you have a non-toolbox packages, I would recommend cleaning those out first!





    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 16.  RE: dnf broken, not working

    Posted Mon December 12, 2022 12:52 AM
    Hi Jan. H,
    I removed those two glib packages with dnf. 
    # rpm -qa |grep glib*
    glib-1.2.10-2.ppc
    glib2-2.56.1-3.ppc
    glib2-devel-2.56.1-3.ppc

    After remove..

    / # rpm -qa |grep glib*
    glib2-2.56.1-3.ppc
    glib2-devel-2.56.1-3.ppc


    / # dump -X64 -Tv /opt/freeware/lib/libgdk-x11-2.0.a | grep -w strcmp
    [533] 0x00000000 undef IMP DS EXTref libgmodule-2.0.a(libgmodule-2.0.so.0) strcmp

    # dnf install gtk2
    AIX generic repository 11 kB/s | 2.7 kB 00:00
    AIX noarch repository 21 kB/s | 2.6 kB 00:00
    AIX 7.2 specific repository 20 kB/s | 2.7 kB 00:00
    Package gtk2-2.24.30-3waixX11.ppc is already installed.
    Dependencies resolved.
    Nothing to do.
    Complete!


    # gtk-demo
    Could not load program gtk-demo:
    Symbol resolution failed for /opt/freeware/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0) because:
    Symbol strcmp (number 533) is not exported from dependent
    module /opt/freeware/lib/libgmodule-2.0.a(libgmodule-2.0.so.0).
    Examine .loader section symbols with the 'dump -Tv' command.

    Our rpm list looks like below now..

    # rpm -qa |sort
    AIX-rpm-7.2.5.103-15.ppc
    atk-2.20.0-3.ppc
    atk-devel-2.20.0-3.ppc
    bash-5.1.16-1.ppc
    bash-doc-5.1.16-1.ppc
    bzip2-1.0.8-2.ppc
    ca-certificates-2021.2.52-3.ppc
    cairo-1.14.6-2waixX11.ppc
    cairo-devel-1.14.6-2waixX11.ppc
    check-0.13.0-1.ppc
    coreutils-9.0-1.ppc
    curl-7.85.0-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    db-5.3.28-1.ppc
    dnf-4.2.17-32_50.ppc
    dnf-automatic-4.2.17-32_50.ppc
    dnf-data-4.2.17-32_50.ppc
    expat-2.4.9-1.ppc
    expat-devel-2.4.9-1.ppc
    fontconfig-2.11.95-4.ppc
    fontconfig-devel-2.11.95-4.ppc
    freetype2-2.12.1-1.ppc
    freetype2-devel-2.12.1-1.ppc
    gdbm-1.23-1.ppc
    gdk-pixbuf-2.35.1-3waixX11.ppc
    gettext-0.21-2.ppc
    glib2-2.56.1-3.ppc
    glib2-devel-2.56.1-3.ppc
    gmp-6.2.1-1.ppc
    gnupg2-2.2.35-1.ppc
    gnutls-3.7.2-1.ppc
    gpgme-1.13.1-100.ppc
    gtk2-2.24.30-3waixX11.ppc
    harfbuzz-5.2.0-1.ppc
    info-6.7-1.ppc
    jbigkit-libs-2.1-1.ppc
    json-c-0.15-2.ppc
    krb5-libs-1.18.5-2.ppc
    libXcursor-1.1.14-1.ppc
    libXcursor-devel-1.1.14-1.ppc
    libXft-2.3.2-4waixX11.ppc
    libXrender-0.9.8-3waixX11.ppc
    libXrender-devel-0.9.8-3waixX11.ppc
    libassuan-2.5.5-1.ppc
    libcomps-0.1.11-101.ppc
    libdnf-0.39.1-32_50.ppc
    libffi-3.4.2-1.ppc
    libgcc-8-1.ppc
    libgcc8-8.3.0-6.ppc
    libgcrypt-1.9.4-1.ppc
    libgomp-8-1.ppc
    libgomp8-8.3.0-6.ppc
    libgpg-error-1.45-1.ppc
    libiconv-1.17-1.ppc
    libjpeg-9e-1.ppc
    libksba-1.6.0-1.ppc
    libmodulemd-1.5.2-100.ppc
    libmpc-1.2.1-1.ppc
    libnghttp2-1.46.0-1.ppc
    libpng-1.6.37-1.ppc
    libpng-devel-1.6.37-1.ppc
    librepo-1.11.0-100.ppc
    libsmartcols-2.34-100.ppc
    libsolv-0.7.9-32_51.ppc
    libssh2-1.10.0-1.ppc
    libstdc++-8-1.ppc
    libstdc++8-8.3.0-6.ppc
    libtasn1-4.16.0-1.ppc
    libtextstyle-0.21-2.ppc
    libtiff-4.4.0-1.ppc
    libunistring-0.9.10-1.ppc
    libwebp-1.0.2-1.ppc
    libxml2-2.10.2-1.ppc
    libyaml-0.2.5-1.ppc
    libzstd-1.5.2-1.ppc
    lzo-2.10-2.ppc
    mpfr-4.1.0-1.ppc
    ncurses-6.3-1.ppc
    nettle-3.7.3-1.ppc
    npth-1.5-1.ppc
    openldap-2.4.58-4.ppc
    p11-kit-0.23.22-1.ppc
    p11-kit-tools-0.23.22-1.ppc
    pango-1.40.1-2waixX11.ppc
    pango-devel-1.40.1-2waixX11.ppc
    pinentry-1.0.0-1.ppc
    pixman-0.34.0-1.ppc
    pkg-config-0.29.2-2.ppc
    pysqlite-2.8.3-2.ppc
    python-2.7.18-3.ppc
    python-devel-2.7.18-3.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.43.0-1.ppc
    python-tools-2.7.18-3.ppc
    python-urlgrabber-3.10.1-1.noarch
    python3-3.7.15-1.ppc
    python3-dateutil-2.8.0-1.noarch
    python3-dnf-4.2.17-32_50.ppc
    python3-dnf-plugin-migrate-4.0.16-32_50.ppc
    python3-dnf-plugins-core-4.0.16-32_50.ppc
    python3-gpg-1.13.1-100.ppc
    python3-hawkey-0.39.1-32_50.ppc
    python3-libcomps-0.1.11-101.ppc
    python3-libdnf-0.39.1-32_50.ppc
    python3-librepo-1.11.0-100.ppc
    python3-six-1.13.0-1.noarch
    readline-8.1-1.ppc
    renderproto-0.11.1-1.ppc
    rpm-python3-4.15.1-32_1.ppc
    shared-mime-info-1.6-2.ppc
    sqlite-3.39.3-1.ppc
    swiagent-2020.2.6.20131-b5170e0.ppc
    unzip-64bit-6.0-3.ppc
    xft-2.1.6-5.ppc
    xz-libs-5.2.5-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    zchunk-libs-1.1.4-101.ppc
    zlib-1.2.12-1.ppc
    zlib-devel-1.2.12-1.ppc


    Let me know what other needs to remove or re-install.

    Thanks,







    ------------------------------
    Harley AIX
    ------------------------------



  • 17.  RE: dnf broken, not working

    Posted Fri December 09, 2022 10:09 PM

    Google search 
    Ibm AIX gtk-demo

    you will find all the right links with stap by stap include for GUI also.

    https://www.ibm.com/support/pages/required-gtk-libraries-ibm-installation-manager-aix

    IB Developer

    Ibm remove preview
    IBM Developer
    View this on Ibm >




    IBM Developer
    Ibm remove preview
    IBM Developer
    View this on Ibm >



    ------------------------------
    minesh patel
    ------------------------------



  • 18.  RE: dnf broken, not working

    Posted Mon December 12, 2022 07:01 AM

    Try:
    unset LIBPATH

    and run dnf again



    ------------------------------
    Leonardo Larsen Rocha
    ------------------------------



  • 19.  RE: dnf broken, not working

    Posted Tue December 13, 2022 12:26 AM
    Hi, 
    dnf is working fine.

    # dnf repolist
    repo id repo name
    AIX_Toolbox AIX generic repository
    AIX_Toolbox_72 AIX 7.2 specific repository
    AIX_Toolbox_noarch AIX noarch repository


    Trying to run gtk-demo and IBM installation manager in eclipse environment.
    gtk-demo showing below errors.

    # gtk-demo
    Could not load program gtk-demo:
    Symbol resolution failed for /opt/freeware/lib/libfreetype.a(libfreetype.so.6) because:
    Symbol _GLOBAL__AIXI_libpng16_so (number 11) is not exported from dependent
    module /opt/freeware/lib/libpng16.a(libpng16.so.16).
    Symbol _GLOBAL__AIXD_libpng16_so (number 12) is not exported from dependent
    module /opt/freeware/lib/libpng16.a(libpng16.so.16).
    Examine .loader section symbols with the 'dump -Tv' command.


    # echo $LIBPATH

    # echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/usr/dt/bin:/sbin:/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/local/bin:/usr/local/sbin:/usr/local/sysadmin/bin:/usr/local/sysadmin/perftools/nmon

    Let me know how to fix this.

    Thanks,


    ------------------------------
    Harley AIX
    ------------------------------



  • 20.  RE: dnf broken, not working

    Posted Tue December 13, 2022 01:54 AM
    Hi, 
    I followed below link and install all gtk2 related rpm with ./install.sh script.

    https://developer.ibm.com/tutorials/installing-and-configuring-gtk-on-aix/

    Now gtk-demo working fine, but looks like dnf again broken.

    # dnf repolist
    Could not load program /opt/freeware/bin/python3_32:
    Dependent module /opt/freeware/lib/libffi.a(libffi.so.8) could not be loaded.
    Member libffi.so.8 is not found in archive

    How to get it working again?

    Thanks,

    ------------------------------
    Harley AIX
    ------------------------------



  • 21.  RE: dnf broken, not working

    Posted Tue December 13, 2022 10:30 AM
    Hi,
    Can anyone give me any direction here, how to fix the dnf error I am getting.

    # dnf repolist
    Could not load program /opt/freeware/bin/python3_32:
    Dependent module /opt/freeware/lib/libffi.a(libffi.so.8) could not be loaded.
    Member libffi.so.8 is not found in archive
    # echo $LIBPATH

    / #

    Thanks,


    ------------------------------
    Harley AIX
    ------------------------------



  • 22.  RE: dnf broken, not working

    Posted Wed December 14, 2022 10:02 AM
    Hi,
    Any update on how to fix above dnf broken issue?
    Thanks,


    ------------------------------
    Harley AIX
    ------------------------------



  • 23.  RE: dnf broken, not working

    Posted Wed December 14, 2022 07:16 PM
    Hello
    I have already explained, in multiple cases and updates, that when you have mixed packages, and try to fix them one-by-one, you are going to have ongoing issues.

    The only recommendation I have is for you to scrub your packages and start over again. Otherwise this cycle will continue.

    https://community.ibm.com/community/user/power/blogs/jan-harris1/2022/05/25/destroyrpms?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------