Now, you can verify if you have AIX 7.3 repository is enabled with "dnf repolist".
If it doesn't list then you need to manually edit the /opt/freeware/etc/dnf/dnf.conf as mentioned in the post and then try to update gcc packages.
Original Message:
Sent: Thu January 27, 2022 02:28 AM
From: Balthasar Nebel
Subject: Adding Perl 5.30.3 (/opt/freeware/bin/perl) modules on AIX 7.3
Hi Sangamesh, thank you for checking this!
My gcc rpms were these:
$ rpm -q -a|grep gcc
libgcc-8-1.ppc
gcc-cpp-8-1.ppc
gcc-8-1.ppc
libgcc8-8.3.0-6.ppc
gcc8-8.3.0-6.ppc
gcc8-cpp-8.3.0-6.ppc
FYI, AIX 7.3 got installed as update from 7.2. Whats best practice to upgrade the Open Source packages now, especially upgrade of gcc? I just tried this, but it wasnt successful yet:
# dnf remove gcc
# dnf install gcc
Last metadata expiration check: 0:05:47 ago on Thu Jan 27 03:10:36 GET 2022.
Error:
Problem: cannot install the best candidate for the job
- nothing provides AIX-rpm < 7.3.0.0 needed by gcc-1:8-1.ppc
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
# rpm -q -a|grep gcc
libgcc8-8.3.0-5.ppc
libgcc-8-1.ppc
------------------------------
Balthasar Nebel
------------------------------
Original Message:
Sent: Thu January 27, 2022 01:14 AM
From: SANGAMESH MALLAYYA
Subject: Adding Perl 5.30.3 (/opt/freeware/bin/perl) modules on AIX 7.3
Hi Balthasar,
What version of gcc rpm package you installed on AIX 7.3?
Please provide the output of "rpm -qa | grep gcc".
We provided gcc8 For AIX 7.3 as a beta for sometime only and now the latest default gcc version For AIX 7.3 is gcc10.
------------------------------
SANGAMESH
Original Message:
Sent: Wed January 26, 2022 06:33 AM
From: Balthasar Nebel
Subject: Adding Perl 5.30.3 (/opt/freeware/bin/perl) modules on AIX 7.3
By the way, I just tried the same on AIX 7.1 and AIX 7.2 which worked. But back to AIX 7.3:
I patched Makefile.PL to skip the CheckLib test in order to create a Makefile. While using this Makefile I see the following compile issue, which gets us closer to the root cause:
aixwm6tm13::root 314 => make
cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
cp Parser/Encodings/windows-1255.enc blib/lib/XML/Parser/Encodings/windows-1255.enc
cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
cp Parser/Encodings/iso-8859-15.enc blib/lib/XML/Parser/Encodings/iso-8859-15.enc
cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
cp m.pl blib/lib/XML/m.pl
cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
cp Parser/Encodings/koi8-r.enc blib/lib/XML/Parser/Encodings/koi8-r.enc
cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
cp Parser.pm blib/lib/XML/Parser.pm
cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
cp Parser/Encodings/windows-1251.enc blib/lib/XML/Parser/Encodings/windows-1251.enc
cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
cp Parser/Encodings/ibm866.enc blib/lib/XML/Parser/Encodings/ibm866.enc
cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
make[1]: Entering directory '/.cpan/build/XML-Parser-2.46-0/Expat'
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
Running Mkbootstrap for Expat ()
chmod 644 "Expat.bs"
"/opt/freeware/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Expat.bs ../blib/arch/auto/XML/Parser/Expat/Expat.bs 644
"/opt/freeware/bin/perl" "/opt/freeware/share/perl5/5.30/ExtUtils/xsubpp" -noprototypes -typemap '/opt/freeware/share/perl5/5.30/ExtUtils/typemap' -typemap '/.cpan/build/XML-Parser-2.46-0/Expat/typemap' Expat.xs > Expat.xsc
mv Expat.xsc Expat.c
gcc -maix64 -c -I/opt/freeware/include -D_THREAD_SAFE -O2 -maix64 -L/opt/freeware/lib64 -L/usr/lib64 -L/opt/freeware/lib -L/usr/lib -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/opt/freeware/include -DNEED_PTHREAD_INIT -fwrapv -maix64 -DUSE_64_BIT_ALL -D_FORTIFY_SOURCE=2 -O -DVERSION=\"2.46\" -DXS_VERSION=\"2.46\" "-I/opt/freeware/lib64/perl5/5.30/CORE" Expat.c
In file included from /opt/freeware/include/expat.h:36,
from Expat.xs:12:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/stdlib.h:341:25: error: unknown type name 'exit'
extern _NORETURN(void, exit)(int);
^~~~
/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/stdlib.h:353:25: error: unknown type name 'quick_exit'
extern _NORETURN(void, quick_exit)(int);
^~~~~~~~~~
In file included from /usr/include/sys/resource.h:57,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/sys/wait.h:56,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/stdlib.h:411,
from /opt/freeware/include/expat.h:36,
from Expat.xs:12:
/usr/include/sys/time.h:110:16: error: redefinition of 'struct sigset_t'
typedef struct sigset_t {
^~~~~~~~
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/sys/wait.h:45,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/stdlib.h:411,
from /opt/freeware/include/expat.h:36,
from Expat.xs:12:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/sys/types.h:345:16: note: originally defined here
typedef struct sigset_t {
^~~~~~~~
In file included from /usr/include/sys/resource.h:57,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/sys/wait.h:56,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/stdlib.h:411,
from /opt/freeware/include/expat.h:36,
from Expat.xs:12:
/usr/include/sys/time.h:126:3: error: conflicting types for 'sigset_t'
} sigset_t;
^~~~~~~~
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/sys/wait.h:45,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/stdlib.h:411,
from /opt/freeware/include/expat.h:36,
from Expat.xs:12:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/include-fixed/sys/types.h:361:3: note: previous declaration of 'sigset_t' was here
} sigset_t;
^~~~~~~~
make[1]: *** [Makefile:320: Expat.o] Error 1
make[1]: Leaving directory '/.cpan/build/XML-Parser-2.46-0/Expat'
------------------------------
Balthasar Nebel