develooper Front page | perl.perl5.porters | Postings from October 2018

Re: [perl #133558] perl 5.26: use lib pragma issue in IBM AIX

Thread Previous | Thread Next
From:
Gururaj Kallur
Date:
October 9, 2018 05:35
Subject:
Re: [perl #133558] perl 5.26: use lib pragma issue in IBM AIX
Message ID:
CAEbNYu5it_Eg9BRvt9ooBvA+EQ+ePFDqcaXyBnb7jqmjFvsvXw@mail.gmail.com
For AIX and HPUX we need to set below variables for any version of perl.

export PERL5HOME=/scratch/gkallur/perl
export PERL_HOME=/scratch/gkallur/perl
export PERL5LIB=/scratch/gkallur/perl/lib
export PATH=/scratch/gkallur/perl/bin:$PATH

Only PATH setting will not work on AIX and HPUX.

Here is the output perl -V

-bash-4.2$ perl -V
Summary of my perl5 (revision 5 version 26 subversion 1) configuration:

  Platform:
    osname=aix
    osvers=6.1.0.0
    archname=aix-thread-multi-64all
    uname='aix localhost 1 6 00f6e5954c00 '
    config_args='-Dprefix=/scratch/gkallur/perl
-Dcc=/usr/local/packages/vac_remote/13-dec2014/opt/IBM/xlC/13.1.0/bin/xlc_r
-Doptimize=-O -Dusethreads -Duseithreads -Duserelocatableinc -Uusemymalloc
-des -Acppflags=-D_ALL_SOURCE -D_THREAD_SAFE -DAIXRIOS -D_ANSI_C_SOURCE
-DPERL_USE_SAFE_PUTENV -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/usr/local/include -q64
-DUSE_64_BIT_ALL -qlanglvl=extended -Accflags=-D_ALL_SOURCE -D_THREAD_SAFE
-DAIXRIOS -D_ANSI_C_SOURCE -DPERL_USE_SAFE_PUTENV -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-I/usr/local/include -q64 -DUSE_64_BIT_ALL -qlanglvl=extended
-Aldflags=-bexpall -b64 -brtl -Alddlflags=-b64 -bhalt:4 -bexpall -G
-bnoentry -lpthreads -lc'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:

cc='/usr/local/packages/vac_remote/13-dec2014/opt/IBM/xlC/13.1.0/bin/xlc_r
-q64'
    ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1
-qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -D_ALL_SOURCE
-D_THREAD_SAFE -DAIXRIOS -D_ANSI_C_SOURCE -DPERL_USE_SAFE_PUTENV
-D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -I/usr/local/include -q64 -DUSE_64_BIT_ALL
-qlanglvl=extended -DNEED_PTHREAD_INIT -I/usr/local/include -q64 -q64'
    optimize='-O'
    cppflags='-D_ALL_SOURCE -D_THREAD_SAFE -DAIXRIOS -D_ANSI_C_SOURCE
-DPERL_USE_SAFE_PUTENV -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/usr/local/include -q64
-DUSE_64_BIT_ALL -qlanglvl=extended'
    ccversion=''
    gccversion=''
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=87654321
    doublekind=4
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=8
    longdblkind=0
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='ld'
    ldflags ='-brtl -bdynamic -bexpall -b64 -brtl -L/usr/local/lib -b64'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lpthread -lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc
    perllibs=-lpthread -lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc
    libc=/lib/libc.a
    so=a
    useshrplib=false
    libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='  -bE:.../../lib/5.26.1/aix-thread-multi-64all/CORE/perl.exp'
    cccdlflags=' '
    lddlflags='-b64 -bhalt:4 -G -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp
-bnoentry -lpthreads -lc -lm -b64 -bhalt:4 -bexpall -G -bnoentry -lpthreads
-lc -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_USE_SAFE_PUTENV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Built under aix
  Compiled at Oct  3 2018 11:50:11
  %ENV:
    PERL5HOME="/scratch/gkallur/perl"
    PERL5LIB="/scratch/gkallur/perl/lib"
    PERL_HOME="/scratch/gkallur/perl"
  @INC:
    /scratch/gkallur/perl/lib/5.26.1/aix-thread-multi-64all
    /scratch/gkallur/perl/lib/5.26.1
    /scratch/gkallur/perl/lib
    ../lib/site_perl/5.26.1/aix-thread-multi-64all
    ../lib/site_perl/5.26.1
    ../lib/5.26.1/aix-thread-multi-64all
    ../lib/5.26.1


On Tue, Oct 9, 2018 at 3:14 AM Dave Mitchell via RT <
perlbug-followup@perl.org> wrote:

> On Mon, Oct 08, 2018 at 11:37:50PM +0200, Tomasz Konojacki wrote:
> > Well, the lines were duplicated because @INC was also passed as a part
> > of the LIST argument to unshift.
>
> D'oh!
>
> --
> Fire extinguisher (n) a device for holding open fire doors.
>
>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About