Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

Perl module install question

  • 1.  Perl module install question

    Posted Wed February 13, 2019 05:49 PM

    Originally posted by: c01362


    Hello everyone.

     

    I'm having some problems with a perl module on an AIX 7.1 server.

     

    Please see the attachment for details.

     

    Thank you.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: Perl module install question

    Posted Thu February 14, 2019 01:26 PM

    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

     

     

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: Perl module install question

    Posted Thu February 14, 2019 11:46 PM

    Originally posted by: sanket


     

    Alternatively you can install perl rpm for AIX toolbox repository and it will get installed in /opt/freeware/bin on your older AIX releases.

    The perl provided from AIX toolbox is latest v5.28.1

     


    #AIX-Open-Source-Software
    #AIXOpenSource