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.  gpg -- Symbol resolution failed for gpg_64 -- Workaround

    Posted Tue May 23, 2023 05:41 AM

    I recently did some more work with Git/Github as we continue to roll out it's use to manage our core scripts.  The NIM (7.3.0.2) where we hold our Open Source packages has been kept up-to-date over time and so I was surprised when gpg (2.2.35-1) failed with the following:

    NOTE: We use gpg to sign our GitHub changes.

    # gpg
    exec(): 0509-036 Cannot load program gpg_64 because of the following errors:
            0509-130 Symbol resolution failed for gpg_64 because:
            0509-136   Symbol gpgrt_access (number 194) is not exported from
                       dependent module /opt/freeware/lib64/libgpg-error.a[libgpg-error.so.0].
            0509-136   Symbol gpgrt_argparser (number 196) is not exported from
                       dependent module /opt/freeware/lib64/libgpg-error.a[libgpg-error.so.0].
            0509-136   Symbol gpgrt_set_confdir (number 201) is not exported from
                       dependent module /opt/freeware/lib64/libgpg-error.a[libgpg-error.so.0].
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.


    Having tried re-installing "all things" gpg without success I decided to downgrade "just" gpg to the previous level.

    # dnf downgrade gnupg2-2.2.23-1
    Last metadata expiration check: 5:52:56 ago on Mon May 22 06:22:01 EDT 2023.
    Dependencies resolved.
    =============================================================================================================================================================================================
     Package                                     Architecture                             Version                                         Repository                                        Size
    =============================================================================================================================================================================================
    Downgrading:
     gnupg2                                      ppc                                      2.2.23-1                                        AIX_Toolbox                                      7.9 M
    
    Transaction Summary
    =============================================================================================================================================================================================
    Downgrade  1 Package
    
    Total size: 7.9 M
    Is this ok [y/N]: y
    Downloading Packages:
    [SKIPPED] gnupg2-2.2.23-1.aix6.1.ppc.rpm: Already downloaded
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                                                     1/1
      Downgrading      : gnupg2-2.2.23-1.ppc                                                                                                                                                 1/2
      Running scriptlet: gnupg2-2.2.23-1.ppc                                                                                                                                                 1/2
      Running scriptlet: gnupg2-2.2.35-1.ppc                                                                                                                                                 2/2
      Cleanup          : gnupg2-2.2.35-1.ppc                                                                                                                                                 2/2
      Verifying        : gnupg2-2.2.23-1.ppc                                                                                                                                                 1/2
      Verifying        : gnupg2-2.2.35-1.ppc                                                                                                                                                 2/2
    
    Downgraded:
      gnupg2-2.2.23-1.ppc
    
    Complete!
    # dnf list gnupg2
    Last metadata expiration check: 5:53:18 ago on Mon May 22 06:22:01 EDT 2023.
    Installed Packages
    gnupg2.ppc                                                                               2.2.23-1                                                                                @AIX_Toolbox
    Available Packages
    gnupg2.ppc                                                                               2.2.35-1                                                                                AIX_Toolbox


    Once completed gpg started working again.

    # gpg
    gpg: WARNING: no command supplied.  Trying to guess what you mean ...
    gpg: Go ahead and type your message ...
    
    gpg: signal 2 caught ... exiting


    To cap things off and avoid issues into the future (or until gpg 2.2.35-1 works) I Version Locked 2.2.23-1.

    # dnf versionlock gnupg2
    Last metadata expiration check: 5:53:52 ago on Mon May 22 06:22:01 EDT 2023.
    Adding versionlock on: gnupg2-0:2.2.23-1.*
    #


    Hope the above might be of some assistance to anyone with the same issue.

    Thanks, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------


  • 2.  RE: gpg -- Symbol resolution failed for gpg_64 -- Workaround

    Posted Tue May 23, 2023 06:02 AM

    Looks like gnupg2 version 2.2.35 in Toolbox requires atleast libgpg-error 1.42 version from Toolbox. 
    The libgpg-error dependency in the gnupg2 SPEC file is not properly updated. We will fix this. 
    Can you update libgpg-error and then try version 2.2.35 ? 



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



  • 3.  RE: gpg -- Symbol resolution failed for gpg_64 -- Workaround

    Posted Tue May 23, 2023 07:04 AM

    Ayappan,

    Here's the version of libpgp-error that we have installed.

    libgpg-error-1.45-1.ppc


    The only downgrade I did was for gnupg2, all other pgp rpms remained "as is".

    Many thanks, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 4.  RE: gpg -- Symbol resolution failed for gpg_64 -- Workaround

    Posted Tue May 23, 2023 07:12 AM

    Okay. 
    libgpg-error 1.45 provides the library only in "/opt/freeware/lib" path. In the error output, it shows "/opt/freeware/lib64/libgpg-error.a". 
    Can you check which rpm is providing this file ? ( rpm -qf /opt/freeware/lib64/libgpg-error.a ). 
    If no rpm is providing this file, then this may be a leftover from improper cleanup. You can remove it and try again. 



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



  • 5.  RE: gpg -- Symbol resolution failed for gpg_64 -- Workaround

    Posted Tue May 23, 2023 07:21 AM

    Ayappan,

    Here you go:

    # rpm -qf /opt/freeware/lib64/libgpg-error.a
    file /opt/freeware/lib64/libgpg-error.a is not owned by any package
    #
    



    Thanks, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 6.  RE: gpg -- Symbol resolution failed for gpg_64 -- Workaround

    Posted Tue May 23, 2023 07:23 AM

    Okay,  so no rpm is owning this file. You can remove this file and then try gnupg 2.2.35. 



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



  • 7.  RE: gpg -- Symbol resolution failed for gpg_64 -- Workaround

    Posted Tue May 23, 2023 07:41 AM

    Ayappan,

    Hi, ok so I've removed the following file.

    /opt/freeware/lib64/libgpg-error.a


    I then updated gnupg2 before running gpg which worked just fine.

    # dnf list gnupg2
    Last metadata expiration check: 1 day, 1:16:14 ago on Mon May 22 06:22:01 EDT 2023.
    Installed Packages
    gnupg2.ppc                                                                               2.2.35-1                                                                                @AIX_Toolbox
    # gpg
    gpg: WARNING: no command supplied.  Trying to guess what you mean ...
    gpg: Go ahead and type your message ...
    
    gpg: signal 2 caught ... exiting
    #


    Thanks for your help resolving this.

    Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------