IBM Power Connect, learn, share, and engage with IBMPower. Join / Log in
Hi Team, I need assistance getting dnf up & running. I have downloaded and installed the latest dnf_aixtoolbox.sh script and installed it successfully. Executing dnf results in the following:
AIXADVNYC10>root>/tmp/rpms>>dnf listexec(): 0509-036 Cannot load program /opt/freeware/bin/python3_32 because of the following errors:rtld: 0712-001 Symbol _GLOBAL__AIXI_libexpat_so was referenced from module python3_32(), but a runtime definition of the symbol was not found.rtld: 0712-001 Symbol _GLOBAL__AIXD_libexpat_so was referenced from module python3_32(), but a runtime definition of the symbol was not found.AIXADVNYC10>root>/tmp/rpms>>
My main goal is to be able to install and/or update libstdc and libgcc packages (for a customer) while avoiding dependency issues. I've spent several days reading articles regarding this issue and similar issues and have to admit that all my efforts to resolve this have failed thus far. I am not really clear if this is package issue, PATH issue or python issue. I will post some details below. I am suspecting that either the expat package needs to get updated or python may not be properly linked. I have tried with LIBPATH set and unset. I understand that my AIX machine may contain a mix of AIX Toolbox and non-toolbox packages. I have updated to the latest rpm-rte fileset (rpm.rte.18.104.22.1686). I did inherit this machine from another team. Any advice is greatly appreciated. I'm happy to provide any more details needed.
Oslevel = 7200-05-03-2135
AIXADVNYC10>root>/tmp/rpms>>ll /usr/bin/pythonlrwxrwxrwx 1 root system 29 Apr 11 2022 /usr/bin/python -> ../../opt/freeware/bin/pythonAIXADVNYC10>root>/tmp/rpms>>ll /opt/freeware/bin/pythonlrwxrwxrwx 1 root system 7 Apr 11 2022 /opt/freeware/bin/python -> python2AIXADVNYC10>root>/tmp/rpms>>
AIXADVNYC10>root>/tmp/rpms>>ll /opt/freeware/bin|grep -i python-rwxr-xr-x 1 root system 173308 May 31 2021 python2.7_64-rw-r--r-- 1 root system 1693 May 31 2021 python2.7_64-config-rwxr-xr-x 1 root system 170357 May 31 2021 python2.7-rwxr-xr-x 1 root system 1690 May 31 2021 python2.7-config-rwxr-xr-x 1 root system 493079 Dec 15 2021 python3.7m_64-rwxr-xr-x 1 root system 477917 Dec 15 2021 python3.7m_32lrwxrwxrwx 1 root system 7 Apr 11 2022 python -> python2lrwxrwxrwx 1 root system 14 Apr 11 2022 python-config -> python2-configlrwxrwxrwx 1 root system 9 Apr 11 2022 python2 -> python2.7lrwxrwxrwx 1 root system 16 Apr 11 2022 python2-config -> python2.7-configlrwxrwxrwx 1 root system 12 Apr 11 2022 python2_64 -> python2.7_64lrwxrwxrwx 1 root system 19 Apr 11 2022 python2_64-config -> python2.7_64-configlrwxrwxrwx 1 root system 10 Apr 11 2022 python_64 -> python2_64lrwxrwxrwx 1 root system 17 Apr 11 2022 python_64-config -> python2_64-configlrwxrwxrwx 1 root system 10 Apr 11 2022 python3 -> python3_64lrwxrwxrwx 1 root system 12 Apr 11 2022 python3.7 -> python3.7_64lrwxrwxrwx 1 root system 13 Apr 11 2022 python3.7_32 -> python3.7m_32lrwxrwxrwx 1 root system 13 Apr 11 2022 python3.7_64 -> python3.7m_64lrwxrwxrwx 1 root system 13 Apr 11 2022 python3.7m -> python3.7m_64lrwxrwxrwx 1 root system 12 Apr 11 2022 python3_32 -> python3.7_32lrwxrwxrwx 1 root system 12 Apr 11 2022 python3_64 -> python3.7_64AIXADVNYC10>root>/tmp/rpms>>
AIXADVNYC10>root>/tmp/rpms>>rpm -qa|grep -i expatexpat-2.2.4-1.ppcexpat-devel-2.4.4-1.ppcAIXADVNYC10>root>/tmp/rpms>>lltotal 302808-rw-r--r-- 1 root system 300311 Dec 29 13:02 expat-devel-2.4.9-1.aix7.1.ppc.rpm-rw-r--r-- 1 root system 1011738 Dec 29 13:03 expat-2.4.9-1.aix7.1.ppc.rpm-rw-r--r-- 1 root system 997108 Dec 29 13:05 libgcc8-8.3.0-6.aix7.2.ppc.rpm-rwxr--r-- 1 root system 7204 Dec 29 13:46 dnf_aixtoolbox.sh-rw-r--r-- 1 root system 22591248 Dec 29 14:01 python-2.7.18-4.aix6.1.ppc.rpm-rw-r--r-- 1 root system 28114944 Dec 29 14:03 python3-3.7.15-2.aix7.1.ppc.rpm-rw-r--r-- 1 root system 59867262 Dec 29 14:15 python3.9-3.9.6-1.aix7.1.ppc.rpm-rwxr--r-- 1 root system 29 Feb 17 11:38 installp_rpm_rte.sh-rw-r--r-- 1 root system 42088448 Feb 17 11:40 rpm.rte.22.214.171.1246-rw-r--r-- 1 root system 8327 Feb 17 11:40 .toc-rwxr--r-- 1 root system 8525 Feb 17 14:22 dnf_aixtoolbox2.shAIXADVNYC10>root>/tmp/rpms>>rpm -e expat-2.2.4-1.ppcerror: Failed dependencies: expat is needed by (installed) fontconfig-2.11.95-3.ppc libexpat.a(libexpat.so.1) is needed by (installed) expat-devel-2.4.4-1.ppc libexpat.a(libexpat.so.1) is needed by (installed) python-2.7.18-3.ppc libexpat.a(libexpat.so.1) is needed by (installed) python3-3.7.12-1.ppc libexpat.a(libexpat.so.1) is needed by (installed) fontconfig-2.11.95-3.ppcAIXADVNYC10>root>/tmp/rpms>>
-rw-r--r-- 1 root system 42088448 Feb 17 11:40 rpm.rte.126.96.36.1996
Not an expert here and never tried to do that, but issues that could be worth investigating...
The error seems to be from trying to execute python 3 32bit. "Cannot load program /opt/freeware/bin/python3_32"Firstly I'd really want to use python 64 bit which does appear to be installed.
But more significantly, it looks like /usr/bin/python is linked to python 2 lrwxrwxrwx 1 root system 7 Apr 11 2022 /opt/freeware/bin/python -> python2
You might try fixing that and pointing it at where ever python3.7m_32 is installed (or better python3.7m_64 if that will work)
Executing python -V should tell you when you have that sorted. Not saying that is going to resolve your problem but it's a good start. Make sure you record all your changes so you can back them out if needed.
Looks like the expat rpm installed in the machine may not be from Toolbox. Can you share the below outputs ?rpm -qi expat dump -Tov /opt/freeware/lib/libexpat.a | grep AIXAlso we have a separate forum to discuss Opensource issues in AIX --> https://community.ibm.com/community/user/power/communities/community-home?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9
Thanks for the reply. Here is the requested output. And let me know if I should repost this issue at the Opensource link you provided.
AIXADVNYC10>root>/tmp>>rpm -qi expatName : expatVersion : 2.2.4Release : 1Architecture: ppcInstall Date: Mon Apr 11 18:07:12 CDT 2022Group : System Environment/LibrariesSize : 1906871License : MITSignature : (none)Source RPM : expat-2.2.4-1.src.rpmBuild Date : Thu Apr 12 04:38:53 CDT 2018Build Host : pokndd10.pok.stglabs.ibm.comURL : http://www.libexpat.org/Summary : An XML parser libraryDescription :This is expat, the C library for parsing XML, written by James Clark. Expatis a stream oriented XML parser. This means that you register handlers withthe parser prior to starting the parse. These handlers are called when theparser discovers the associated structures in the document being parsed. Astart tag is an example of the kind of structures for which you mayregister handlers.
The library is available as 32-bit and 64-bit.AIXADVNYC10>root>/tmp>>dump -Tov /opt/freeware/lib/libexpat.a | grep AIXAIXADVNYC10>root>/tmp>>
expat 2.2.4 is pretty old and built using xlc, So it won't have those reported missing symbols. Please install the recent expat version 2.5.0 from Toolbox and try again.