develooper Front page | perl.perl5.porters | Postings from March 2011

[perl #85432] Darwin userelocatableinc; bad @INC unless using absolute path to interpreter

From:
Bryan, Andrew
Date:
March 4, 2011 21:14
Subject:
[perl #85432] Darwin userelocatableinc; bad @INC unless using absolute path to interpreter
Message ID:
rt-3.6.HEAD-28241-1299247071-1916.85432-75-0@perl.org
# New Ticket Created by  "Bryan, Andrew" 
# Please include the string:  [perl #85432]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=85432 >


This is a bug report for perl from anbryan@akamai.com,
generated with the help of perlbug 1.39 running under perl 5.12.3.


-----------------------------------------------------------------

When using userelocatableinc on darwin, it seems perl's @INC is invalid
unless perl is executed with its full path (I've not had this issue on linux
platforms)... for example:

$ ./configure.gnu -des -Dprefix=/Users/anbryan/opt/perl-5.12.3
-Duserelocatableinc -Dusethreads -Duselargefiles -Uuseshrplib

$ make && make install

$ unset PERL5LIB; export
PATH="/Users/anbryan/opt/perl-5.12.3/bin:/usr/local/bin:/bin:/sbin:/usr/bin:
/usr/sbin"

$ which perl
/Users/anbryan/opt/perl-5.12.3/bin/perl

$ perl -V
Can't locate Config.pm in @INC (@INC contains:
../lib/site_perl/5.12.3/darwin-thread-multi-2level ../lib/site_perl/5.12.3
../lib/5.12.3/darwin-thread-multi-2level ../lib/5.12.3 .).
BEGIN failed--compilation aborted.

$ `which perl` -V
Summary of my perl5 (revision 5 version 12 subversion 3) ...
   



[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl 5.12.3:

Configured by anbryan at Fri Mar  4 08:06:11 EST 2011.

Summary of my perl5 (revision 5 version 12 subversion 3) configuration:
   
  Platform:
    osname=darwin, osvers=10.5.0, archname=darwin-thread-multi-2level
    uname='darwin usma1mc-2s4atn 10.5.0 darwin kernel version 10.5.0: fri
nov 5 23:20:39 pdt 2010; root:xnu-1504.9.17~1release_i386 i386 '
    config_args='-ds -e -des -Dprefix=/Users/anbryan/opt/perl-5.12.3
-Duserelocatableinc -Dusethreads -Duselargefiles -Dman1ext=1 -Dman3ext=3perl
-Uuseshrplib'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-I/opt/local/include',
    optimize='-O3',
    cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-I/opt/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5664)',
gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector
-L/usr/local/lib -L/opt/local/lib'
    libpth=/usr/local/lib /opt/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib -L/opt/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.12.3:
    
/Users/anbryan/opt/perl-5.12.3/lib/site_perl/5.12.3/darwin-thread-multi-2lev
el
    /Users/anbryan/opt/perl-5.12.3/lib/site_perl/5.12.3
    /Users/anbryan/opt/perl-5.12.3/lib/5.12.3/darwin-thread-multi-2level
    /Users/anbryan/opt/perl-5.12.3/lib/5.12.3
    .

---
Environment for perl 5.12.3:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/anbryan
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    
PATH=/Users/anbryan/opt/perl-5.12.3/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/
usr/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/bash




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