Okay, so no rpm is owning this file. You can remove this file and then try gnupg 2.2.35.
Original Message:
Sent: Tue May 23, 2023 07:21 AM
From: Steve Munday
Subject: gpg -- Symbol resolution failed for gpg_64 -- Workaround
Ayappan,
Here you go:
# rpm -qf /opt/freeware/lib64/libgpg-error.afile /opt/freeware/lib64/libgpg-error.a is not owned by any package#
Thanks, Steve
------------------------------
Steve Munday
AIX, IBM i, HMC, PowerVM
Original Message:
Sent: Tue May 23, 2023 07:11 AM
From: Ayappan P
Subject: gpg -- Symbol resolution failed for gpg_64 -- Workaround
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
Original Message:
Sent: Tue May 23, 2023 07:03 AM
From: Steve Munday
Subject: gpg -- Symbol resolution failed for gpg_64 -- Workaround
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
Original Message:
Sent: Tue May 23, 2023 06:01 AM
From: Ayappan P
Subject: gpg -- Symbol resolution failed for gpg_64 -- Workaround
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
Original Message:
Sent: Tue May 23, 2023 05:41 AM
From: Steve Munday
Subject: gpg -- Symbol resolution failed for gpg_64 -- Workaround
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.
# gpgexec(): 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-1Last 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 MTransaction Summary=============================================================================================================================================================================================Downgrade 1 PackageTotal size: 7.9 MIs this ok [y/N]: yDownloading Packages:[SKIPPED] gnupg2-2.2.23-1.aix6.1.ppc.rpm: Already downloadedRunning transaction checkTransaction check succeeded.Running transaction testTransaction 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/2Downgraded: gnupg2-2.2.23-1.ppcComplete!# dnf list gnupg2Last metadata expiration check: 5:53:18 ago on Mon May 22 06:22:01 EDT 2023.Installed Packagesgnupg2.ppc 2.2.23-1 @AIX_ToolboxAvailable Packagesgnupg2.ppc 2.2.35-1 AIX_Toolbox
Once completed gpg started working again.
# gpggpg: 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 gnupg2Last 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
------------------------------