Hi Sangamesh,
I decided to compile perl 5.30 and install gcc8 from the tbx but cpan gets this gcc compile error.
It seems to be an option to allow C stype comments is defined by default… Is this something you have
seen before ?
Brgds,
Scott
DB2.xs:427:13: warning: implicit declaration of function 'dbd_st_cancel'; did you mean 'dbd_st_fetch'? [-Wimplicit-function-declaration]
gcc: error: unrecognized command line option '-qcpluscmt'
root@nxboxapp3:/root/.cpan/build/DBD-DB2-1.89-0/Constants # grep cpluscmt *
Makefile:# DEFINE => q[ -qcpluscmt]
Makefile:DEFINE = -qcpluscmt
Makefile: PASTHRU_DEFINE=' -qcpluscmt $(PASTHRU_DEFINE)'\
Makefile.PL: $opts{DEFINE} .= ' -qcpluscmt';
root@nxboxapp3:/home/srichs/cargolink # ./c.mkperlmods.perl530.sh DBD::DB2 | tee DBD::DB2.out2
----------------------
COMPLILE DBD::DB2
----------------------
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 28 Oct 2021 22:29:03 GMT
Running install for module 'DBD::DB2'
Checksum for /root/.cpan/sources/authors/id/R/RO/ROCKETDB/DBD-DB2-1.89.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring R/RO/ROCKETDB/DBD-DB2-1.89.tar.gz with Makefile.PL
Configuring DBD::DB2...
Remember to actually read the README and CAVEATS files!
Using DB2 in "/home/db2inst1/sqllib"
Using DBI 1.643 (for perl 5.030003 on ppc-aix-thread-multi-64all) installed in /opt/freeware/lib64/perl5/5.30/site_perl//auto/DBI/
System: perl5.030003 DBI1.643 aix pokndd10 1 6 00f905e64c00 powerpc aix ppc-aix-thread-multi-64all dl_aix.xs
Compiler: gcc -maix64 -O -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
Includes: -I"/home/db2inst1/sqllib/include" -I"/opt/freeware/lib64/perl5/5.30/site_perl/auto/DBI"
Libraries: -L/home/db2inst1/sqllib/lib64 -ldb2
Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good
Writing MYMETA.yml and MYMETA.json
Generating a Unix-style Makefile
Writing Makefile for DBD::DB2
Writing MYMETA.yml and MYMETA.json
ROCKETDB/DBD-DB2-1.89.tar.gz
/opt/freeware/bin/perl Makefile.PL -- OK
Running make for R/RO/ROCKETDB/DBD-DB2-1.89.tar.gz
cp lib/Bundle/DBD/DB2.pm blib/lib/Bundle/DBD/DB2.pm
cp DB2.pm blib/lib/DBD/DB2.pm
cp DB2.pod blib/lib/DBD/DB2.pod
Running Mkbootstrap for DB2 ()
chmod 644 "DB2.bs"
"/opt/freeware/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- DB2.bs blib/arch/auto/DBD/DB2/DB2.bs 644
"/opt/freeware/bin/perl" "/opt/freeware/share/perl5/5.30/ExtUtils/xsubpp" -typemap '/opt/freeware/share/perl5/5.30/ExtUtils/typemap' DB2.xs > DB2.xsc
mv DB2.xsc DB2.c
gcc -maix64 -c -I"/home/db2inst1/sqllib/include" -I"/opt/freeware/lib64/perl5/5.30/site_perl/auto/DBI" -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=\"1.89\" -DXS_VERSION=\"1.89\" "-I/opt/freeware/lib64/perl5/5.30/CORE" -DDB2_CACHE_FIX DB2.c
DB2.xs: In function 'XS_DBD__DB2__st_cancel':
DB2.xs:427:13: warning: implicit declaration of function 'dbd_st_cancel'; did you mean 'dbd_st_fetch'? [-Wimplicit-function-declaration]
ST(0) = dbd_st_cancel(sth,imp_sth) ? &PL_sv_yes : &PL_sv_no;
^~~~~~~~~~~~~
dbd_st_fetch
gcc -maix64 -c -I"/home/db2inst1/sqllib/include" -I"/opt/freeware/lib64/perl5/5.30/site_perl/auto/DBI" -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=\"1.89\" -DXS_VERSION=\"1.89\" "-I/opt/freeware/lib64/perl5/5.30/CORE" -DDB2_CACHE_FIX dbdimp.c
"/opt/freeware/bin/perl" -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"DBD::DB2\", 'DLBASE' => 'DB2', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
rm -f blib/arch/auto/DBD/DB2/DB2.so
gcc -maix64 -Wl,-b64 -Wl,-bhalt:4 -Wl,-G -Wl,-bI:/opt/freeware/lib64/perl5/5.30/CORE/perl.exp -Wl,-bnoentry -lpthreads -lc -lm -L/opt/freeware/lib64 -L/usr/lib64 -L/opt/freeware/lib -L/usr/lib -L/usr/local/lib -Wl,-bE:DB2.exp DB2.o dbdimp.o -o blib/arch/auto/DBD/DB2/DB2.so -L/home/db2inst1/sqllib/lib64 -ldb2
chmod 755 blib/arch/auto/DBD/DB2/DB2.so
cp Constants.pm ../blib/lib/DBD/DB2/Constants.pm
AutoSplitting ../blib/lib/DBD/DB2/Constants.pm (../blib/lib/auto/DBD/DB2/Constants)
Running Mkbootstrap for Constants ()
chmod 644 "Constants.bs"
"/opt/freeware/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Constants.bs ../blib/arch/auto/DBD/DB2/Constants/Constants.bs 644
"/opt/freeware/bin/perl" "/opt/freeware/share/perl5/5.30/ExtUtils/xsubpp" -typemap '/opt/freeware/share/perl5/5.30/ExtUtils/typemap' Constants.xs > Constants.xsc
mv Constants.xsc Constants.c
gcc -maix64 -c -I"/home/db2inst1/sqllib/include" -I"/opt/freeware/lib64/perl5/5.30/site_perl/auto/DBI" -I"/home/db2inst1/sqllib/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=\"1.89\" -DXS_VERSION=\"1.89\" "-I/opt/freeware/lib64/perl5/5.30/CORE" -DDB2_CACHE_FIX -qcpluscmt Constants.c
gcc: error: unrecognized command line option '-qcpluscmt'
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
ROCKETDB/DBD-DB2-1.89.tar.gz
/usr/bin/make -- NOT OK
https://www.ibm.com/docs/en/xl-c-aix/13.1.2?topic=descriptions-qcpluscmt------------------------------
Scott Richards
------------------------------
Original Message:
Sent: Thu October 28, 2021 01:24 PM
From: SANGAMESH MALLAYYA
Subject: Has anyone installed Perl from the AIX Toolbox on AIX 72-05-03 ?
Hi Scott,
I don't know if simple FTP script would be able to recreate the issue.
The file being uploaded/download is of a large size ?
Please let me know the script If you already have which i can try.
Toolbox perl have a dependency on db, gdbm and libgcc.
It would be easy to install if you already have setup the YUM/DNF.
Building perl modules using Toolbox perl uses the gcc.
I tried this sample script and it seems both toolbox perl and AIX perl seems consume same resource.
Even Linux system also seems to consume some resource.
use Net::FTP;
$ftp = Net::FTP->new("public.dhe.ibm.com", Debug => 0)
or die "Cannot connect to public.dhe.ibm.com: $@";
$ftp->login("anonymous",'-anonymous@')
or die "Cannot login ", $ftp->message;
$ftp->cwd("aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/gcc8/")
or die "Cannot change working directory ", $ftp->message;
$ftp->get("gcc8-go-8.3.0-6.aix7.2.ppc.rpm")
or die "get failed ", $ftp->message;
$ftp->quit;
------------------------------
SANGAMESH
Original Message:
Sent: Wed October 27, 2021 06:19 PM
From: Scott Richards
Subject: Has anyone installed Perl from the AIX Toolbox on AIX 72-05-03 ?
Dear All,
We moved from AIX 72-02-02 to 72-05-03 and had to rebuild our custom perl mods in our site libs
but now user reports high cpu and memory running a perl script envoking FTP. We have upgraded Net::FTP
and wonder if there are any known reports of increased resources.
This led us to try to build the perl from the IBM Toolkit for Linux.
Is there any list of prereq rpm packages to download with perl 5.30 on TBX or documentation for the TBX Perl Build '?
or which compiler should we download when we install and compile custom perl mods with cpan ?
Is using gcc an option for those that don't want to install/pay for licenses for the IBM xLC.
* this post may be duplicated. Its the first time posting and i cant seem to find or see my original post earlier submitted.
------------------------------
Brgds,
Scott Richards
------------------------------