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.  dnf search fail with libiconv.a

    Posted Thu October 19, 2023 10:35 AM

    Just recently migrated to AIX 7.3 and did a fresh install of dnf and update with no apparent errors.  However, when attempting to run dnf search I get the following:
     # dnf search zip
    Traceback (most recent call last):
      File "/usr/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: Symbol resolution failed for /opt/freeware/lib/libglib-2.0.a[libglib-2.0.so.0] because:
            Symbol _GLOBAL__AIXI_libintl_so (number 197) is not exported from dependent
              module /usr/opt/rpm/lib/libintl.a[libintl.so.8].
            Symbol _GLOBAL__AIXD_libintl_so (number 198) is not exported from dependent
              module /usr/opt/rpm/lib/libintl.a[libintl.so.8].
    Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
    System error: Exec format error
    Examine .loader section symbols with the 'dump -Tv' command.

    Verified libintl.so.8 is in place:
    #> ar -tv /usr/opt/rpm/lib/libintl.a
    rwxr-xr-x     0/0      93072 May 28 04:38 2022 libintl.so.8
    rw-r-----     0/0     114582 May 28 04:52 2022 libintl.so.1

    # ls -l /usr/lib/libintl.a
    lrwxrwxrwx    1 root     system           26 Oct 18 13:10 /usr/lib/libintl.a -> /usr/opt/rpm/lib/libintl.a

    Suggestions?



    ------------------------------
    John Bogoslofski
    ------------------------------


  • 2.  RE: dnf search fail with libiconv.a

    Posted Fri October 20, 2023 08:46 AM

    Hi, John

    Check your LIBPATH, you should not have this set to /usr/lib, but it seems that's where the DNF libraries are searching.

    /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so should be loading /opt/freeware/lib/libintl.a(libintl.so.8)

    I can reproduce this error:

     export LIBPATH=/usr/lib; dnf --help
    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:    0509-022 Cannot load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
            0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
            0509-152   Member libiconv.so.2 is not found in archive

    Then:

     unset LIBPATH; dnf --help

    usage: dnf [options] COMMAND

    List of Main Commands:
    <...>



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