FYI. We also have plan for updating R-4.3.2 in AIX toolbox.
Original Message:
Sent: Thu December 14, 2023 06:41 AM
From: Andrey Klyachkin
Subject: IBM CPT Tool failed after update to latest AIX 7300-02-01-2346
Hi Vince,
it took more time as I thought. I took @Ayappan P R package from AIX toolbox and rebuilt it on AIX 7.3 TL2 SP1 with the new source code - 4.3.2. The most notable change I did - I was too lazy to implement vasprintf() and instead of it added -lmagic to LDFLAGS. libmagic.a is part of rpm.rte package and occasionally has vasprintf() implementation.
The rebuilt packages you can find at https://dl.power-devops.com/R-4.3.2-aix.tar.gz. They should be 100% compatible with the packages from AIX Toolbox.
------------------------------
Andrey Klyachkin
https://www.power-devops.com
Original Message:
Sent: Wed December 13, 2023 11:00 AM
From: Andrey Klyachkin
Subject: IBM CPT Tool failed after update to latest AIX 7300-02-01-2346
Hi Vince,
I think it is either some configuration in your environment or AIX 7.3 build problem. I did configure several times for now on my AIX 7.2 TL5 but didn't get any problems and I have the same zlib version as you.
I will install AIX 7.3 TL2 SP1 and will try to build it there, but sorry - it will be either tomorrow or late at night.
------------------------------
Andrey Klyachkin
https://www.power-devops.com
Original Message:
Sent: Wed December 13, 2023 10:40 AM
From: Vincencio Michaelis
Subject: IBM CPT Tool failed after update to latest AIX 7300-02-01-2346
Hi Andrey
my guess is the strange number from IBM for zlib with "-1" at the end confuses the configure test string if it is >= 1.2.5
checking for zlib.h... yes
checking if zlib version >= 1.2.5... no
checking whether zlib support suffices... configure: error: zlib library and headers are required
root@rb3zf01(Si):/cpt/R/R-4.3.2 $ rpm -qa|grep -i zlib
zlib-1.2.13-1.ppc
zlib-devel-1.2.13-1.ppc
------------------------------
Vincencio Michaelis
Original Message:
Sent: Wed December 13, 2023 09:48 AM
From: Andrey Klyachkin
Subject: IBM CPT Tool failed after update to latest AIX 7300-02-01-2346
Hi Vince,
this is interesting. It finds zlib.h, but can't compile with it. I downloaded R now and did get through this zlib without problems. (but got stuck on pcre2).
You can try to check in config.log if you see some errors there. It is a very big file, but somewhere not so far from the end it should contain the errors.
If you want you can try to test it manually. I extracted the test from configure and check it on my system:
#include <stdlib.h>#include <string.h>#include <zlib.h>int main(void) {#ifdef ZLIB_VERNUM if (ZLIB_VERNUM < 0x1250) { exit(1); } exit(0);#else exit(1);#endif}
gcc -o conftest -mno-fp-in-toc -g -O2 -I/usr/local/include -L/usr/local/lib conftest.c -lrt -ldl -lm -liconv./conftest ; echo $?
It should show 0. But in your case - 1 or maybe some other error.
------------------------------
Andrey Klyachkin
https://www.power-devops.com
Original Message:
Sent: Wed December 13, 2023 09:13 AM
From: Vincencio Michaelis
Subject: IBM CPT Tool failed after update to latest AIX 7300-02-01-2346
HI Andrey
i have tried the options but doesnt work
first option you gave result in
checking for zlib.h... yes
checking if zlib version >= 1.2.5... no
checking whether zlib support suffices... configure: error: zlib library and headers are required
Second option with zlib also doesnt work but zlibnx is installed
checking for zlib.h... yes
checking if zlib version >= 1.2.5... no
checking whether zlib support suffices... configure: error: zlib library and headers are required
/cpt/R/R-4.3.2 $ ls -la /usr/opt/zlibNX/include
total 232
drwxr-xr-x 2 root system 256 Dec 06 05:45 .
drwxr-xr-x 5 root system 256 Mar 30 2023 ..
-r--r--r-- 1 root system 17494 Nov 18 2020 zconf.h
-r--r--r-- 1 root system 97502 Apr 08 2022 zlib.h
------------------------------
Vincencio Michaelis
Original Message:
Sent: Wed December 13, 2023 03:13 AM
From: Andrey Klyachkin
Subject: IBM CPT Tool failed after update to latest AIX 7300-02-01-2346
Hi Vince,
try to add CFLAGS before calling configure:
CFLAGS=-I/opt/freeware/include ./configure
Or if you have zlibNX installed, you can try to compile it with it:
CFLAGS=-I/usr/opt/zlibNX/include LDFLAGS=-L/usr/opt/zlibNX/lib ./configure
If you execute ./configure --help it should also show you an option to specify the path to zlib includes.
------------------------------
Andrey Klyachkin
https://www.power-devops.com
Original Message:
Sent: Tue December 12, 2023 11:14 PM
From: Vincencio Michaelis
Subject: IBM CPT Tool failed after update to latest AIX 7300-02-01-2346
Hi
we updated our AIX to latest 7300-02-01-2346 level and we running the CPT Tool from IBM Lab Service which is managed by Michael Quaranta ( quaranta@us.ibm.com ). We detected that we got Abend in R Run within CPT and michael wrote:
Hi Vince – you may need to rebuild the R packages, do you still have the source tarballs?
So i have downloaded latest R Source code and tried to compile but failed. See error message with zlib header but dont know how to solve. Can you help me here please ?
thx a lot vince
Downloaded latest R Source Code 4.3.2
root@rb3zf01(Si):/cpt/R/R-4.3.2 $ rpm -qa|grep -i zlib
zlib-1.2.13-1.ppc
zlib-devel-1.2.13-1.ppc
checking whether compiling/linking Tcl/Tk code works... no
checking for BSD networking... yes
checking for rpc/types.h... yes
checking for rpc/xdr.h... yes
checking for XDR support... yes
checking for inflateInit2_ in -lz... yes
checking for zlib.h... yes
checking if zlib version >= 1.2.5... no
checking whether zlib support suffices... configure: error: zlib library and headers are required
root@rb3zf01(Si):/cpt/R/R-4.3.2 $
root@rb3zf01(Si):/cpt/R/R-4.3.2 $ rpm -qa
cairo-1.14.6-2waixX11.ppc
b315191014103506-001600231021-1.noarch
lzo-2.10-2.ppc
libXft-2.3.2-4waixX11.ppc
pcre-8.44-2.ppc
libXrender-0.9.8-3waixX11.ppc
cpio-2.13-1.ppc
libconfuse-3.2.2-2.ppc
libpng-1.6.37-1.ppc
mpfr-4.1.0-1.ppc
nspr-4.32-1.ppc
libwebp-1.0.2-1.ppc
jbigkit-libs-2.1-1.ppc
file-5.41-1.ppc
renderproto-0.11.1-1.ppc
R-devel-4.1.2-2.ppc
gcc10-gfortran-10.3.0-6.ppc
gzip-1.12-3.ppc
libstdc++-devel-10-2.ppc
rsync_64-3.1.1-1.ppc
bzip2-1.0.8-2.ppc
db-5.3.28-1.ppc
expect-5.45.4-2.ppc
iperf-2.0.5-1.ppc
libgpg-error-1.45-1.ppc
json-c-0.15-2.ppc
libmodulemd-1.5.2-100.ppc
pinentry-1.0.0-1.ppc
cyrus-sasl-2.1.28-1.ppc
libmpc-1.2.1-1.ppc
pkg-config-0.29.2-2.ppc
gettext-devel-0.21-2.ppc
libXrender-devel-0.9.8-3waixX11.ppc
fontconfig-devel-2.11.95-4.ppc
libgcc10-10.3.0-6.ppc
libstdc++10-10.3.0-6.ppc
libstdc++-10-2.ppc
libgfortran-10-2.ppc
gcc10-cpp-10.3.0-6.ppc
gcc-cpp-10-2.ppc
gcc-c++-10-2.ppc
python-2.7.18-4.ppc
libjpeg-9e-1.ppc
rpm-python3.9-4.15.1-64_4.ppc
glib2-2.76.3-1.ppc
gpgme-1.13.1-101.ppc
libstdc++8-8.3.0-7.ppc
xz-libs-5.4.3-1.ppc
bash-5.2.15-1.ppc
info-7.0.2-1.ppc
sqlite-3.41.2-1.ppc
python3-3.9.18-1.ppc
gcc8-8.3.0-7.ppc
libtasn1-4.19.0-1.ppc
python3.9-gpg-1.13.1-101.ppc
tcl-8.6.13-1.ppc
python3.9-tkinter-3.9.18-1.ppc
ca-certificates-2023.2.60-2.ppc
python3.9-libcomps-0.1.15-101.ppc
apr-util-1.6.3-1.ppc
libstdc++8-devel-8.3.0-7.ppc
krb5-libs-1.20.1-1.ppc
libnghttp2-1.55.1-1.ppc
zchunk-libs-1.1.4-103.ppc
libsolv-0.7.9-64_52.ppc
python3.9-libdnf-0.39.1-64_52.ppc
libgfortran8-8.3.0-7.ppc
python3.9-dnf-4.2.17-64_53.ppc
dnf-4.2.17-64_53.ppc
gcc8-gfortran-8.3.0-7.ppc
python3-libdnf-0.39.1-64_52.ppc
mod_ssl-2.4.58-1.ppc
python3.9-idle-3.9.18-1.ppc
gnutls-3.7.9-1.ppc
python3.9-test-3.9.18-1.ppc
grep-3.7-2.ppc
xz-5.4.3-1.ppc
glib2-devel-2.76.3-1.ppc
popt-1.19-1.ppc
vim-common-9.0.1649-1.ppc
librepo-1.11.0-103.ppc
python3-librepo-1.11.0-103.ppc
netcat-1.10-3.ppc
patch-2.7.6-1.ppc
fontconfig-2.11.95-4.ppc
lsof-4.89-1.ppc
b315191014103506-001600311014-1.noarch
gdbm-1.23-1.ppc
gmp-6.2.1-1.ppc
check-0.13.0-1.ppc
libyaml-0.2.5-1.ppc
nettle-3.7.3-1.ppc
file-libs-5.41-1.ppc
pcre2-10.40-1.ppc
less-598-1.ppc
gettext-0.21-2.ppc
freetype2-devel-2.12.1-1.ppc
cairo-devel-1.14.6-2waixX11.ppc
libgcc-10-2.ppc
libstdc++10-devel-10.3.0-6.ppc
libssh2-1.10.0-2.ppc
libgfortran10-10.3.0-6.ppc
gcc10-10.3.0-6.ppc
gcc-10-2.ppc
gcc-gfortran-10-2.ppc
deltarpm-3.6-1.ppc
unzip-64bit-6.0-5.ppc
libidn-1.33-1.ppc
libunistring-0.9.10-1.ppc
sed-4.8-1.ppc
tar-1.33-1.ppc
lynx-2.8.9-1ssl.ppc
libiconv-1.17-1.ppc
libassuan-2.5.5-1.ppc
freetype2-2.12.1-1.ppc
npth-1.5-1.ppc
gnupg2-2.2.35-1.ppc
nss-3.74-1.ppc
libyaml-devel-0.2.5-1.ppc
libtextstyle-0.21-2.ppc
libpng-devel-1.6.37-1.ppc
R-4.1.2-2.ppc
zlib-1.2.13-1.ppc
libgomp10-10.3.0-6.ppc
gcc10-c++-10.3.0-6.ppc
libgomp-10-2.ppc
zlib-devel-1.2.13-1.ppc
rpm-python3-4.15.1-64_4.ppc
libgcc8-8.3.0-7.ppc
expat-2.5.0-1.ppc
libzstd-1.5.2-2.ppc
openldap-2.5.16-1.ppc
libxml2-2.10.4-1.ppc
ncurses-6.4-1.ppc
readline-8.2-1.ppc
python3.9-3.9.18-1.ppc
gcc8-cpp-8.3.0-7.ppc
libsmartcols-2.34-101.ppc
p11-kit-0.24.1-1.ppc
apr-1.7.4-1.ppc
tk-8.6.13-1.ppc
p11-kit-tools-0.24.1-1.ppc
libcomps-0.1.15-101.ppc
postgresql15-libs-15.4-1.ppc
httpd-2.4.58-1.ppc
harfbuzz-7.1.0-1.ppc
libgcrypt-1.10.2-1.ppc
curl-8.4.0-1.ppc
libdnf-0.39.1-64_52.ppc
python3.9-hawkey-0.39.1-64_52.ppc
pixman-0.42.2-1.ppc
dnf-data-4.2.17-64_53.ppc
python3-dnf-4.2.17-64_53.ppc
dnf-automatic-4.2.17-64_53.ppc
pango-1.40.1-3waixX11.ppc
python3-hawkey-0.39.1-64_52.ppc
libksba-1.6.3-1.ppc
gcc8-c++-8.3.0-7.ppc
python3-libcomps-0.1.15-101.ppc
python3-gpg-1.13.1-101.ppc
python3.9-devel-3.9.18-1.ppc
readline-devel-8.2-1.ppc
wget-1.21.4-1.ppc
expat-devel-2.5.0-1.ppc
lua-5.4.4-1.ppc
libgomp8-8.3.0-7.ppc
python3.9-librepo-1.11.0-103.ppc
libtiff-4.6.0-1.ppc
AIX-rpm-7.3.2.1-40.ppc
libffi-3.4.4-1.ppc
ruby-3.1.4-1.ppc
ruby-devel-3.1.4-1.ppc
sudo-1.9.13p2-2.ppc
root@rb3zf01(Si):/cpt/R/R-4.3.2 $
------------------------------
Vincencio Michaelis
------------------------------