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 setup errors

  • 1.  DNF setup errors

    Posted Sat October 05, 2024 12:04 PM

    Hi All,

    I upgraded from 7.2 to 7.3, I wasnt sure how good the DNF was working before the migration but having issues now. Any help suggestions would be greatly appreciated.

    Thanks in advance

    Myserver1[/opt/freeware/bin]# ./dnf repolist
    Traceback (most recent call last):
      File "/opt/freeware/bin/./dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError: Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module /opt/freeware/lib/pthread/libgcc_s.a(shr.o) could not be loaded.
            The module has an invalid magic number.

     oslevel -s
    7300-00-01-2148

    rpm -qa

    apr-1.6.3-1.ppc
    apr-util-ldap-1.6.1-1.ppc
    bzip2-1.0.6-1.ppc
    expat-2.2.5-1.ppc
    file-libs-5.16-1.ppc
    gcc-4.8.5-1.ppc
    gettext-0.19.7-1.ppc
    httpd_64-2.4.29-1.ppc
    libiconv-1.15-1.ppc
    lpar2rrd-agent-4.81-0.ppc
    openldap-2.4.44-0.1.ppc
    pcre-8.41-1.ppc
    readline-6.2-5.ppc
    rsync-3.0.6-1.ppc
    tcl-8.4.7-3.ppc
    unzip-6.0-2.ppc
    zlib-1.2.11-1.ppc
    prngd-0.9.29-1.ppc
    libpng-1.6.9-1.ppc
    fontconfig-2.10.2-1.ppc
    glib2-2.30.3-2.ppc
    libjpeg-9a-1.ppc
    xz-libs-5.0.5-1.ppc
    libXrender-0.9.8-1.ppc
    libthai-0.1.18-1.ppc
    pixman-0.28.2-1.ppc
    libxml2-2.9.1-1.ppc
    libxcb-1.7-1.ppc
    libdbi-0.8.4-1.ppc
    dejavu-sans-mono-fonts-2.34-1.noarch
    pango-1.24.5-1.ppc
    gdbm-1.11-1.ppc
    perl-5.8.8-2.ppc
    perl-URI-1.58-1.noarch
    perl-XML-Simple-2.18-1.noarch
    perl-XML-SAX-0.99-1.noarch
    perl-XML-NamespaceSupport-1.11-1.noarch
    rrdtool-perl-1.4.8-2.ppc
    python-2.7.10-1.ppc
    sudo-1.9.5-3.ppc
    apr-util-1.6.1-1.ppc
    bash-4.2-3.ppc
    db4-4.8.30-1.ppc
    expect-5.42.1-3.ppc
    gcc-cpp-4.8.5-1.ppc
    gmp-6.1.1-1.ppc
    info-5.2-1.ppc
    libgcc-4.8.5-1.ppc
    libmpc-1.0.3-1.ppc
    libstdc++-4.8.5-1.ppc
    mpfr-3.1.2-3.ppc
    openssl-1.0.2n-1.ppc
    tk-8.4.7-3.ppc
    zip-3.0-2.ppc
    freetype2-2.5.2-1.ppc
    libffi-3.0.13-1.ppc
    atk-1.32.0-1.ppc
    jbigkit-libs-2.0-2.ppc
    libtiff-4.0.3-1.ppc
    libdatrie-0.2.4-1.ppc
    jasper-1.900.1-2.ppc
    libart_lgpl-2.3.21-1.ppc
    librsvg2-2.34.2-1.ppc
    lzo-2.06-1.ppc
    dejavu-lgc-sans-mono-fonts-2.34-1.noarch
    libcroco-0.6.5-1.ppc
    cairo-1.12.14-1.ppc
    gtk2-2.20.1-2.ppc
    perl-TimeDate-1.20-1.noarch
    perl-XML-Parser-2.41-1.ppc
    perl-XML-LibXML-2.0012-1.ppc
    perl-XML-SAX-Base-1.08-1.noarch
    rrdtool-1.4.8-2.ppc
    python3.9-3.9.16-0.ppc
    python3-3.9.16-0.ppc
    libzstd-1.4.4-64_2.ppc
    libmodulemd-1.5.2-64_2.ppc
    libsolv-0.7.9-64_4.ppc
    libsmartcols-2.34-64_1.ppc
    zchunk-libs-1.1.4-64_3.ppc
    librepo-1.11.0-64_2.ppc
    python3.9-gpg-1.13.1-64_3.ppc
    rpm-python3.9-4.15.1-64_4.ppc
    dnf-data-4.2.17-64_6.noarch
    rpm-python3-4.15.1-64_4.ppc
    libdnf-0.39.1-64_5.ppc
    python3.9-libdnf-0.39.1-64_5.ppc
    python3.9-hawkey-0.39.1-64_5.ppc
    python3.9-librepo-1.11.0-64_2.ppc
    p11-kit-0.23.22-0.ppc
    p11-kit-tools-0.23.22-0.ppc
    libcomps-0.1.15-64_1.ppc
    python3.9-libcomps-0.1.15-64_1.ppc
    python3.9-dnf-4.2.17-64_6.noarch
    python3-dnf-4.2.17-64_6.noarch
    dnf-4.2.17-64_6.noarch
    dnf-automatic-4.2.17-64_6.noarch
    yum-4.2.17-64_6.noarch
    python3-libcomps-0.1.15-64_1.ppc
    ca-certificates-2023.2.60-0.ppc
    python3-librepo-1.11.0-64_2.ppc
    python3-hawkey-0.39.1-64_5.ppc
    python3-libdnf-0.39.1-64_5.ppc
    python3-gpg-1.13.1-64_3.ppc
    AIX-rpm-7.3.2.1-23.ppc

    dump -Hv -X32_64  /opt/freeware/lib/pthread/libgcc_s.a

    /opt/freeware/lib/pthread/libgcc_s.a[shr.o]:
     
                            ***Loader Section***
                          Loader Header Information
    VERSION#         #SYMtableENT     #RELOCent        LENidSTR
    0x00000001       0x00000091       0x000001af       0x000000bf
     
    #IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
    0x00000003       0x000021ec       0x00000697       0x000022ab
     
     
                            ***Import File Strings***
    INDEX  PATH                          BASE                MEMBER
    0      /usr/lib/threads:/opt/freeware/src/packages/BUILD/gcc-build-4.8.5/./gcc/pthread:/opt/freeware/src/packages/BUILD/gcc-build-4.8.5/./gcc:/usr/lib:/lib
    1                                    libc.a              shr.o
    2                                    libpthreads.a       shr_xpg5.o
    dump -Hv -X32_64  /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so
                            ***Loader Section***
                          Loader Header Information
    VERSION#         #SYMtableENT     #RELOCent        LENidSTR
    0x00000001       0x00000a0d       0x00003811       0x00000255
     
    #IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
    0x0000000d       0x00047280       0x00050ba0       0x000474d5
     
     
                            ***Import File Strings***
    INDEX  PATH                          BASE                MEMBER
    0      /opt/freeware/lib64:/usr/opt/rpm/lib64:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8/pthread/ppc64:/opt/freeware/lib/pthread/ppc64:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8:/opt/freeware/lib:/usr/lib:/lib                               
    1                                    libgcc_s.a          shr.o
    2                                    libc.a              shr_64.o
    3                                    libpthread.a        shr_xpg5_64.o
    4                                    libpython3.9.a      libpython3.9.so
    5                                    libstdc++.a         libstdc++.so.6
    6                                    libzstd.a           libzstd.so.1.4.4
    7                                    libdnf.a            libdnf.so.2
    8                                    librepo.a           librepo.so.0
    9                                    libsolv.a           libsolv.so.1
    10                                   libsolvext.a        libsolvext.so.1
    11                                   libmodulemd.a       libmodulemd.so.1
    12                                   libsmartcols.a      libsmartcols.so.2.34.0



    ------------------------------
    Arun Nampally
    ------------------------------


  • 2.  RE: DNF setup errors

    Posted Mon October 07, 2024 01:14 AM

    Hi Arun,

    It appears that your LIBPATH has somehow been set incorrectly.

    For example,
    export LIBPATH="/opt/freeware/lib64"
    # dnf exec(): 0509-036 Cannot load program /opt/freeware/libexec/python3.9_32 because of the following errors: 0509-150 Dependent module /opt/freeware/lib64/libpython3.9.a(libpython3.9.so) could not be loaded. 0509-103 The module has an invalid magic number.

    I have reproduced your error.

    If you unset your LIBPATH or set it "/opt/freeware/lib", dnf should work.

    Can you try and let me know.




    ------------------------------
    Aditya Kamath
    ------------------------------



  • 3.  RE: DNF setup errors

    Posted Mon October 07, 2024 09:39 AM

    thanks Aditya for the reply

    srv1[/]# echo $LIBPATH
    /opt/freeware/lib

    srv1[/opt/freeware/bin]# ./dnf repolist
    Traceback (most recent call last):
      File "/opt/freeware/bin/./dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError: Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module /opt/freeware/lib/libgcc_s.a(shr.o) could not be loaded.
            The module has an invalid magic number.



    ------------------------------
    arun kumar nampally
    ------------------------------



  • 4.  RE: DNF setup errors

    Posted Mon October 07, 2024 09:45 AM

    Can you "unset LIBPATH" and then try? If it still does not work let me know.



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 5.  RE: DNF setup errors

    Posted Mon October 07, 2024 09:56 AM

    I did unset and the results are still same.



    ------------------------------
    arun kumar nampally
    ------------------------------



  • 6.  RE: DNF setup errors

    Posted Mon October 07, 2024 10:28 AM

    In that case, can you provide the output of 

    ls -l /opt/freeware/lib/libgcc_s.a

    ls -l /opt/freeware/lib/libstdc++.a

    rpm -ql libdnf | egrep "libgcc_s.a|libstdc"

    Did you see any error during the installation of rpm packages as part of setting up the DNF ?



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 7.  RE: DNF setup errors

    Posted Mon October 07, 2024 10:41 AM

    srv1[/]# ls -l /opt/freeware/lib/libgcc_s.a
    lrwxrwxrwx    1 root     system           43 Feb 23 2024  /opt/freeware/lib/libgcc_s.a -> gcc/powerpc-ibm-aix7.1.0.0/4.8.5/libgcc_s.a


    srv1[/]# ls -l /opt/freeware/lib/libstdc++.a
    lrwxrwxrwx    1 root     system           44 Feb 23 2024  /opt/freeware/lib/libstdc++.a -> gcc/powerpc-ibm-aix7.1.0.0/4.8.5/libstdc++.a


    srv1[/]# rpm -ql libdnf | egrep "libgcc_s.a|libstdc"
    /opt/freeware/libdnfdeps/libgcc_s.a
    /opt/freeware/libdnfdeps/libstdc++.a



    ------------------------------
    arun kumar nampally
    ------------------------------



  • 8.  RE: DNF setup errors

    Posted Mon October 07, 2024 10:54 AM

    I didnt notice any errors during DNF installations.



    ------------------------------
    arun kumar nampally
    ------------------------------



  • 9.  RE: DNF setup errors

    Posted Mon October 07, 2024 02:04 PM

    You still have 72 libstdc++-4.8.5-1.ppc

    How did you migrate (update)  dnf?

    Did you run ./dnf_aixtoolbox.sh -y or   ./dnf_aixtoolbox.sh -d after the migration?

    BTW: I see you have a non-IBM AIX provided openssl-1.0.2n-1.ppc.

    This is known to cause conflicts with AIX Toolbox packages

    We have made notes about this on the What's New, and Getting Started. Additionally this is raised frequently in this forum.

    • Get Started with the AIX Toolbox for Open Source Software
      • https://www.ibm.com/support/pages/node/6585774

    Non-AIX Toolbox packages that deliver files available in AIX file sets or AIX Toolbox packages might result in unexpected behavior. It is recommended to remove those non-AIX Toolbox packages.

    23-Nov-2023  

    NOTE: You should remove any non-AIX openssl packages that deliver related libraries to /opt/freeware/lib. These files will conflict with rpm. These files have caused issues for some packages for some time, but will certainly cause rpm failures due to missing libcrypto.so.3



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



  • 10.  RE: DNF setup errors

    Posted Mon October 07, 2024 02:32 PM

    You still have 72 libstdc++-4.8.5-1.ppc
            honestly donot know if level belongs to 7.2. how to upgrade to 7.3 compatible version?
    How did you migrate (update)  dnf?
    Did you run ./dnf_aixtoolbox.sh -y or   ./dnf_aixtoolbox.sh -d after the migration?
             There was DNF installed before AIX migration but not sure if it was working. I used ./dnf_aixtoolbox.sh -y
    I see you have a non-IBM AIX provided openssl-1.0.2n-1.ppc.
             srv1[/]# rpm -qa|grep -i ssl
             openssl-1.0.2n-1.ppc
        
              srv1[/]# openssl version
              OpenSSL 3.0.10 1 Aug 2023 (Library: OpenSSL 3.0.10 1 Aug 2023)
              well, we had lot of vulnerabilities and this was one of the ways to remediate. I shall check and update.



    ------------------------------
    arun kumar nampally
    ------------------------------



  • 11.  RE: DNF setup errors

    Posted Tue October 08, 2024 03:50 AM

    Hi Arun,

    First thing is I will suggest you to remove openssl rpm. [rpm -e openssl-1.0.2n-1.ppc]

    Once you have done that, your soft links should point like this.
    /opt/freeware/lib/libgcc_s.a -> /opt/freeware/libdnfdeps/libgcc_s.a
    /opt/freeware/lib/libstdc++.a  -> /opt/freeware/libdnfdeps/libstdc++.a

    For example : run
    ln -sf /opt/freeware/libdnfdeps/libgcc_s.a /opt/freeware/lib/libgcc_s.a
    ln -sf /opt/freeware/libdnfdeps/libstdc++.a /opt/freeware/lib/libstdc++.a 

    These are pointing to an old version of GCC, which is the root cause of your issue.

    After this run "dnf update"

    Your dnf will be up and running in 7.3



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 12.  RE: DNF setup errors

    Posted Tue October 08, 2024 11:51 AM
    Hi Aditya,
    I still see the same after removing openssl.
    rpm -qa | grep -i openssl
     
    ls -lrt /opt/freeware/lib/libgcc_s.a
    lrwxrwxrwx    1 root     system           35 Oct  8 11:44 /opt/freeware/lib/libgcc_s.a -> /opt/freeware/libdnfdeps/libgcc_s.a
    ls -lrt /opt/freeware/lib/libstdc++.a
    lrwxrwxrwx    1 root     system           36 Oct  8 11:44 /opt/freeware/lib/libstdc++.a -> /opt/freeware/libdnfdeps/libstdc++.a
     
    root@server1[/opt/freeware/bin]# ./dnf update
    Traceback (most recent call last):
      File "/opt/freeware/bin/./dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError: Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module /opt/freeware/lib/pthread/libgcc_s.a(shr.o) could not be loaded.
            The module has an invalid magic number.


    ------------------------------
    pavan madugula
    ------------------------------



  • 13.  RE: DNF setup errors

    Posted Wed October 09, 2024 02:04 AM

    Hi Pavan, 

    One interesting thing is your shared object is still using  /opt/freeware/lib/pthread/libgcc_s.a(shr.o) instead of /opt/freeware/lib/libgcc_s.a

    Can you show me the dump -Hov -X64 /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so output?



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 14.  RE: DNF setup errors

    Posted Wed October 09, 2024 06:06 AM

    Hi Aditya,

    dump -Hov -X64 /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so
     
    /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so:
     
                            ***Object Module Header***
    # Sections      Symbol Ptr      # Symbols       Opt Hdr Len     Flags
            12      0x009614fc         121955               120     0x3002
    Flags=( EXEC DYNLOAD SHROBJ DEP_SYSTEM )
    Timestamp = "Jul  7 08:18:30 2023"
    Magic = 0x1f7  (64-bit XCOFF)
     
                            ***Optional Header***
    Tsize       Dsize       Bsize       Tstart      Dstart
    0x003ba528  0x000262a0  0x000022b4  0x10000480  0x200009a8
     
    SNloader    SNentry     SNtext      SNtoc       SNdata
    0x0004      0x0000      0x0001      0x0002      0x0002
     
    TXTalign    DATAalign   TOC         vstamp      entry
    0x0007      0x0004      0x20023e00  0x0001      0xffffffffffffffff
     
    maxSTACK    maxDATA     SNbss       magic       modtype
    0x00000000  0x00000000  0x0003      0x010b        RE
     
                            ***Loader Section***
                          Loader Header Information
    VERSION#         #SYMtableENT     #RELOCent        LENidSTR
    0x00000001       0x00000a0d       0x00003811       0x00000255
     
    #IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
    0x0000000d       0x00047280       0x00050ba0       0x000474d5
     
     
                            ***Import File Strings***
    INDEX  PATH                          BASE                MEMBER
    0      /opt/freeware/lib64:/usr/opt/rpm/lib64:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8/pthread/ppc64:/opt/freeware/lib/pthread/ppc64:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8:/opt/freeware/lib:/usr/lib:/lib                         
    1                                    libgcc_s.a          shr.o
    2                                    libc.a              shr_64.o
    3                                    libpthread.a        shr_xpg5_64.o
    4                                    libpython3.9.a      libpython3.9.so
    5                                    libstdc++.a         libstdc++.so.6
    6                                    libzstd.a           libzstd.so.1.4.4
    7                                    libdnf.a            libdnf.so.2
    8                                    librepo.a           librepo.so.0
    9                                    libsolv.a           libsolv.so.1
    10                                   libsolvext.a        libsolvext.so.1
    11                                   libmodulemd.a       libmodulemd.so.1
    12                                   libsmartcols.a      libsmartcols.so.2.34.0



    ------------------------------
    pavan madugula
    ------------------------------



  • 15.  RE: DNF setup errors

    Posted Wed October 09, 2024 06:14 AM

    Hi Pavan,

    Can you try export LIBPATH="/opt/freeware/lib" and then do "dnf update" and check . We should make sure we pick 
    /opt/freeware/lib/libgcc_s.a. 



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 16.  RE: DNF setup errors

    Posted Wed October 09, 2024 08:52 AM

    Hi Aditya,

    # export LIBPATH="/opt/freeware/lib"
    # cd /opt/freeware/bin
    # ./dnf update
    Traceback (most recent call last):
      File "/opt/freeware/bin/./dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError: Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module libsmartcols.a(libsmartcols.so.2.34.0) could not be loaded.
    Could not load module libsmartcols.a(libsmartcols.so.2.34.0).
    System error: No such file or directory
     
    # ls -lrt /opt/freeware/lib/libgcc_s.a
    lrwxrwxrwx    1 root     system           35 Oct  8 11:44 /opt/freeware/lib/libgcc_s.a -> /opt/freeware/libdnfdeps/libgcc_s.a
     
     
    /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so:
     
                            ***Object Module Header***
    # Sections      Symbol Ptr      # Symbols       Opt Hdr Len     Flags
            12      0x009614fc         121955               120     0x3002
    Flags=( EXEC DYNLOAD SHROBJ DEP_SYSTEM )
    Timestamp = "Jul  7 08:18:30 2023"
    Magic = 0x1f7  (64-bit XCOFF)
     
                            ***Optional Header***
    Tsize       Dsize       Bsize       Tstart      Dstart
    0x003ba528  0x000262a0  0x000022b4  0x10000480  0x200009a8
     
    SNloader    SNentry     SNtext      SNtoc       SNdata
    0x0004      0x0000      0x0001      0x0002      0x0002
     
    TXTalign    DATAalign   TOC         vstamp      entry
    0x0007      0x0004      0x20023e00  0x0001      0xffffffffffffffff
     
    maxSTACK    maxDATA     SNbss       magic       modtype
    0x00000000  0x00000000  0x0003      0x010b        RE
     
                            ***Loader Section***
                          Loader Header Information
    VERSION#         #SYMtableENT     #RELOCent        LENidSTR
    0x00000001       0x00000a0d       0x00003811       0x00000255
     
    #IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
    0x0000000d       0x00047280       0x00050ba0       0x000474d5
     
     
                            ***Import File Strings***
    INDEX  PATH                          BASE                MEMBER
    0      /opt/freeware/lib64:/usr/opt/rpm/lib64:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8/pthread/ppc64:/opt/freeware/lib/pthread/ppc64:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8:/opt/freeware/lib:/usr/lib:/lib                     
    1                                    libgcc_s.a          shr.o
    2                                    libc.a              shr_64.o
    3                                    libpthread.a        shr_xpg5_64.o
    4                                    libpython3.9.a      libpython3.9.so
    5                                    libstdc++.a         libstdc++.so.6
    6                                    libzstd.a           libzstd.so.1.4.4
    7                                    libdnf.a            libdnf.so.2
    8                                    librepo.a           librepo.so.0
    9                                    libsolv.a           libsolv.so.1
    10                                   libsolvext.a        libsolvext.so.1
    11                                   libmodulemd.a       libmodulemd.so.1
    12                                   libsmartcols.a      libsmartcols.so.2.34.0


    ------------------------------
    pavan madugula
    ------------------------------



  • 17.  RE: DNF setup errors

    Posted Wed October 09, 2024 08:59 AM

    Okay, so that error is gone. 

    > Dependent module libsmartcols.a(libsmartcols.so.2.34.0) could not be loaded.
    So now I think libsmartcols.a is in /opt/freeware/lib64.

    Can you export LIBPATH=/opt/freeware/lib:/opt/freeware/lib64 and then try?



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 18.  RE: DNF setup errors

    Posted Wed October 09, 2024 10:33 AM

    srv1[/opt/freeware/bin]# echo $LIBPATH
    /opt/freeware/lib:/opt/freeware/lib64

    srv1[/opt/freeware/bin]# ./dnf repolist
    Traceback (most recent call last):
      File "/opt/freeware/bin/./dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError: Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module libsmartcols.a(libsmartcols.so.2.34.0) could not be loaded.
    Could not load module libsmartcols.a(libsmartcols.so.2.34.0).
    System error: No such file or directory



    ------------------------------
    arun kumar nampally
    ------------------------------



  • 19.  RE: DNF setup errors

    Posted Wed October 09, 2024 12:47 PM

    Hi Arun,

    Does your system have that archive? Can you run find from root? Like,

    # find . -name libsmartcols.a
    ./opt/freeware/lib/libsmartcols.a

    If it does, can you tell me the output of ar -tuv from where it exists?
    ar -tuv ./opt/freeware/lib/libsmartcols.a



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 20.  RE: DNF setup errors

    Posted Thu October 10, 2024 06:00 PM

    srv1[/]# find . -name libsmartcols.a
    ./opt/freeware/lib/libsmartcols.a

    srv1[/]# ar -tuv ./opt/freeware/lib/libsmartcols.a
    rwxr-xr-x   203/1     660775 Mar 30 05:11 2021 libsmartcols.so.2.34.0



    ------------------------------
    arun kumar nampally
    ------------------------------



  • 21.  RE: DNF setup errors

    Posted Fri October 11, 2024 04:31 AM

    Hi Arun,

    Now that is surprising that it could not figure out this library. Something is off in the LPAR. Having said that, I was experimenting around in my LPAR.

    cp /opt/freeware/lib/libsmartcols.a /opt/freeware/lib64/libsmartcols.a
    mv /opt/freeware/lib/libsmartcols.a_orig /opt/freeware/lib/libsmartcols.a

    I moved my libsmartcols.a and then did 
    ldd /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so | grep libsmartcols
    Cannot find libsmartcols.a(libsmartcols.so.1) 
    Cannot find libsmartcols.a(libsmartcols.so.1) 

    You see, it could not find libsmartcols.a. Possibly this is what is happening in your LPAR. It is expecting this library to be in a different directory.

    Can you do one thing. copy libsmartcols.a to /opt/freeware/lib64 and then do a 

    ldd /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so | grep libsmartcols

    It should not give you a message saying it could not find. You can try figuring out where this library must be placed. My suspicion is /opt/freeware/lib64

    If it succeeds, then you can export LIBPATH="/opt/freeware/lib" and do a dnf update to try. Otherwise, let us know. 



    ------------------------------
    Aditya Kamath
    ------------------------------