Originally posted by: sangameshm
Looks like this isn't compatible with perl-5.10.1.
I could able to build this in AIX 7.2 with perl-5.20.1
# perl -v
This is perl 5, version 20, subversion 1 (v5.20.1) built for aix-thread-multi
.....
# make
cp lib/List/MoreUtils/XS.pm blib/lib/List/MoreUtils/XS.pm
/usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" => "List::MoreUtils::XS", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
Running Mkbootstrap for List::MoreUtils::XS ()
chmod 644 XS.bs
/usr/bin/perl /usr/opt/perl5/lib/5.20.1/ExtUtils/xsubpp -typemap /usr/opt/perl5/lib/5.20.1/ExtUtils/typemap XS.xs > XS.xsc && mv XS.xsc XS.c
xlc_r -q32 -c -I. -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=\"0.428\" -DXS_VERSION=\"0.428\" "-I/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE" XS.c
"/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE/perl.h", line 4198.15: 1506-963 (W) The attribute "deprecated" is not a valid variable attribute and is ignored.
"/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE/perl.h", line 4200.15: 1506-963 (W) The attribute "deprecated" is not a valid variable attribute and is ignored.
rm -f blib/arch/auto/List/MoreUtils/XS/XS.so
ld -bhalt:4 -G -bI:/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE/perl.exp -bE:XS.exp -bnoentry -lpthreads -lc -lm XS.o -o blib/arch/auto/List/MoreUtils/XS/XS.so
chmod 755 blib/arch/auto/List/MoreUtils/XS/XS.so
/usr/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- XS.bs blib/arch/auto/List/MoreUtils/XS/XS.bs 644
Manifying blib/man3/List::MoreUtils::XS.3
Other option to try if you don't have dependency on base perl is to use the perl rpm package from the AIX Toolbox.
/opt/freeware/bin/perl
# make
cp lib/List/MoreUtils/XS.pm blib/lib/List/MoreUtils/XS.pm
"/opt/freeware/bin/perl" -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" => "List::MoreUtils::XS", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
Running Mkbootstrap for List::MoreUtils::XS ()
chmod 644 "XS.bs"
"/opt/freeware/bin/perl" "/opt/freeware/lib/perl5/5.24.0/ExtUtils/xsubpp" -typemap "/opt/freeware/lib/perl5/5.24.0/ExtUtils/typemap" XS.xs > XS.xsc && mv XS.xsc XS.c
/opt/IBM/xlc/13.1.3/bin/xlc -q32 -q32 -c -I. -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 -O2 -DVERSION=\"0.428\" -DXS_VERSION=\"0.428\" "-I/opt/freeware/lib/perl5/5.24.0/ppc-aix-thread-multi/CORE" XS.c
"/opt/freeware/lib/perl5/5.24.0/ppc-aix-thread-multi/CORE/perl.h", line 4714.15: 1506-963 (W) The attribute "deprecated" is not a valid variable attribute and is ignored.
rm -f blib/arch/auto/List/MoreUtils/XS/XS.so
/opt/IBM/xlc/13.1.3/bin/xlc -q32 -bexpall -G -L/opt/freeware/lib -L/usr/lib XS.o -o blib/arch/auto/List/MoreUtils/XS/XS.so
chmod 755 blib/arch/auto/List/MoreUtils/XS/XS.so
"/opt/freeware/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- XS.bs blib/arch/auto/List/MoreUtils/XS/XS.bs 644
Manifying 1 pod document
Thanks,
Sangamesh