Open Source Development

 View Only

 LIBPATH issues after any AIX packages installation

  • AIX Open Source
Priya Soni's profile image
Priya Soni posted 01/08/25 08:36 AM

Hi Team,

Whenever we install or upgrade Python , DNF etc. in AIX, most of the times sourcing LIBPATH became an issue. Like we have to change LIBPATH sourcing  pattern or unset LIBPATH then only curl, rsync , gpg etc commands start working.

Can you please suggest on how to fix these issues. What could be the cause here. I know making changes in LIBPATH sourcing helps here but every time doing that is not feasible because we have to make changes in application as well. So if there is any way to get this fixed would be really helpful. 

For example please find below. I installed GPGme using DNF from root. Now this works from root, but when I sudo to other user account it is failing. Then when I did unset LIBPATH, it started working.

root@server:/home/root/.gnupg # su - userid

userid@server:/home/userid # gpg --help

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 _GLOBAL__AIXI_libsqlite3_so (number 429) is not exported from

                   dependent module /usr/lib/libsqlite3.a[libsqlite3.so.0].

        0509-136   Symbol _GLOBAL__AIXD_libsqlite3_so (number 430) is not exported from

                   dependent module /usr/lib/libsqlite3.a[libsqlite3.so.0].

        0509-192 Examine .loader section symbols with the

                 'dump -Tv' command.

userid@server:/home/userid # unset LIBPATH

userid@server:/home/userid # gpg --help

gpg (GnuPG) 2.4.3

libgcrypt 1.10.3

Copyright (C) 2023 g10 Code GmbH

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

Home: /home/userid/.gnupg

Supported algorithms:

Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA

Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,

        CAMELLIA128, CAMELLIA192, CAMELLIA256

Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224

Compression: Uncompressed, ZIP, ZLIB, BZIP2

Syntax: gpg [options] [files]

Sign, check, encrypt or decrypt

Default operation depends on the input data

Options:

 -s, --sign                         make a signature

     --clear-sign                   make a clear text signature

 -b, --detach-sign                  make a detached signature


#AIXOpenSource
Ayappan P's profile image
Ayappan P

First of all, setting system-wide LIBPATH is wrong. What is the need to export it in the first place ? If there is any  inhouse or third party application that needs a system-wide LIBPATH setting for it to run, then that application is built in a wrong way. 


#AIXOpenSource