Recently upgraded from 7.2 TL3 to 7.2 TL4 and issues with perl upgrading from 5.20.1 to 5.281 causing perl scripts for DB2 to fail.
Used CPAN to update modules for DBI and DBI::DBD to be used.
Receiving the following errors when running the perl script:
Can't load '/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/DBI/DBI.so' for module DBI: rtld: 0712-001 Symbol __builtin_expect was referenced
from module /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/DBI/DBI.so(), but a runtime definition
of the symbol was not found. at /usr/opt/perl5/lib/5.28.1/aix-thread-multi/DynaLoader.pm line 193.
at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/DBI.pm line 284.
BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/DBI.pm line 284.
Compilation failed in require at /dbascripts/scripts/dbaRoutines.pm line 48.
BEGIN failed--compilation aborted at /dbascripts/scripts/dbaRoutines.pm line 48.
Compilation failed in require at /dbascripts/scripts/menuDprop.pl line 27.
BEGIN failed--compilation aborted at /dbascripts/scripts/menuDprop.pl line 27.
Also noticed that DBD::DB2 was now missing so tried to install that using CPAN but also getting issues tied to that:
The content of '/root/.cpan/build/DBD-DB2-1.85-4/META.yml' is not a HASH reference. Cannot use it.
The content of '/root/.cpan/build/DBD-DB2-1.85-4/META.yml' is not a HASH reference. Cannot use it.
Configuring I/IB/IBMTORDB2/DBD-DB2-1.85.tar.gz with Makefile.PL
Can't load '/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/DBI/DBI.so' for module DBI: rtld: 0712-001 Symbol __builtin_expect was referenced
from module /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/DBI/DBI.so(), but a runtime definition
of the symbol was not found. at /usr/opt/perl5/lib/5.28.1/aix-thread-multi/DynaLoader.pm line 193.
at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/DBI.pm line 284.
BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/DBI.pm line 284.
Compilation failed in require at Makefile.PL line 13.
BEGIN failed--compilation aborted at Makefile.PL line 13.
Warning: No success on command[/usr/opt/perl5/bin/perl Makefile.PL]
IBMTORDB2/DBD-DB2-1.85.tar.gz
/usr/opt/perl5/bin/perl Makefile.PL -- NOT OK
Failed during this command:
IBMTORDB2/DBD-DB2-1.85.tar.gz : writemakefile NO '/usr/opt/perl5/bin/perl Makefile.PL' returned status 2048
Any advice or suggestions on what to try next to resolve?? These perl scripts were written back in 2006 and were working on other versions of perl.
Thanks,
Rob
------------------------------
Robert Franklin
------------------------------
#AIXOpenSource