Hi everybody
I'm trying to compile DBI-1.643 on AIX 7.3 TL2 SP2 with the newest IBM openxlC Compiler Version 17.1.2. Perl is on the following version:
perl -v
This is perl 5, version 34, subversion 1 (v5.34.1) built for aix-thread-multi
perl Makefile.PL runs through without special errors but when I try to compile I'm getting the following error:
Running Mkbootstrap for DBI ()
chmod 644 "DBI.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- DBI.bs blib/arch/auto/DBI/DBI.bs 644
xlc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -O -DVERSION=\"1.643\" -DXS_VERSION=\"1.643\" "-I/usr/opt/perl5/lib/5.34.1/aix-thread-multi/CORE" Perl.c
/opt/IBM/xlc/16.1.0/bin/.orig/xlc_r: 1501-287 (S) This compiler does not support AIX 7.3. Please check with IBM (http://www-01.ibm.com/support/docview.wss?rs=43&uid=swg21326972) to see if there is a PTF for this compiler that supports this AIX level.
make: The error code from the last command is 41.
Stop.
I updated the Makefile and replaced the following entry:
CC = xlc_r -q32
with
CC = ibm_clang_r -q32
and get the following error while doing the make again:
Running Mkbootstrap for DBI ()
chmod 644 "DBI.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- DBI.bs blib/arch/auto/DBI/DBI.bs 644
ibm-clang_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -O -DVERSION=\"1.643\" -DXS_VERSION=\"1.643\" "-I/usr/opt/perl5/lib/5.34.1/aix-thread-multi/CORE" Perl.c
.ibm-clang: error: unknown argument: '-q32'
.ibm-clang: error: unknown argument: '-qmaxmem=-1'
.ibm-clang: error: unknown argument: '-qnoansialias'
.ibm-clang: error: unknown argument: '-qlanglvl=extc99'
.ibm-clang: error: unknown argument: '-q32'
make: The error code from the last command is 1.
So it seems I need to update the options to be clang compatible, but unfortunately I'm not really a programmer nor an expert with this kind of stuff.
Can somebody help me out or give me some clues on howto approach this ?
Thanks in advance and kind regards,
Stefano Calisto
------------------------------
Stefano Calisto
------------------------------
#AIXOpenSource