Front page | perl.perl5.porters |
Postings from August 2009
[perl #68198] Perl can't find its relocatable libraries when invoked non-absolute
Thread Next
From:
Michael G Schwern
Date:
August 5, 2009 02:25
Subject:
[perl #68198] Perl can't find its relocatable libraries when invoked non-absolute
Message ID:
rt-3.6.HEAD-5654-1249459723-1928.68198-75-0@perl.org
# New Ticket Created by Michael G Schwern
# Please include the string: [perl #68198]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=68198 >
This is a bug report for perl from schwern@pobox.com,
generated with the help of perlbug 1.39 running under perl 5.11.0.
-----------------------------------------------------------------
[Please describe your issue here]
After installing with -Duserelocatableinc Perl can only find its
libraries if run with a full path. For example,
/usr/local/perl/blead/bin/perl. When run via a symlink or PATH it
cannot find its libraries, presumably because $^X is not absolute.
This limits the utility of -Duserelocatableinc.
$ /usr/local/perl/blead/bin/perl -V | head
Summary of my perl5 (revision 5 version 11 subversion 0) configuration:
Commit id: d7eb1120ad049806b32041fcc301bf95f95423bc
$ ls -l `which bleadperl`
lrwxr-xr-x 1 root wheel 22 2008-12-14 18:33 /usr/local/bin/bleadperl ->
../perl/blead/bin/perl
$ bleadperl -V
Can't locate Config.pm in @INC (@INC contains:
/sw/lib/perl5/darwin-thread-multi-2level /sw/lib/perl5 /sw/lib/perl5/darwin
../lib/site_perl/5.11.0/darwin-thread-multi-2level ../lib/site_perl/5.11.0
../lib/5.11.0/darwin-thread-multi-2level ../lib/5.11.0 .).
BEGIN failed--compilation aborted.
$ PATH=/usr/local/perl/blead/bin perl -V
Can't locate Config.pm in @INC (@INC contains:
/sw/lib/perl5/darwin-thread-multi-2level /sw/lib/perl5 /sw/lib/perl5/darwin
../lib/site_perl/5.11.0/darwin-thread-multi-2level ../lib/site_perl/5.11.0
../lib/5.11.0/darwin-thread-multi-2level ../lib/5.11.0 .).
BEGIN failed--compilation aborted.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl 5.11.0:
Configured by schwern at Wed Aug 5 00:07:04 PDT 2009.
Summary of my perl5 (revision 5 version 11 subversion 0) configuration:
Commit id: d7eb1120ad049806b32041fcc301bf95f95423bc
Platform:
osname=darwin, osvers=9.7.0, archname=darwin-thread-multi-2level
uname='darwin windhund 9.7.0 darwin kernel version 9.7.0: tue mar 31
22:52:17 pdt 2009; root:xnu-1228.12.14~1release_i386 i386 i386 macbook1,1 darwin '
config_args='-Ode -DEBUGGING=both -Dprefix=/usr/local/perl/blead
-Dusedevel -Duseithreads -Dccflags=-I/usr/local/include -I/opt/local/include
-I/sw/include -Dldflags=-L/usr/local/lib -L/opt/local/lib -L/sw/lib
-Dperladmin=schwern@pobox.com -Dcf_email=schwern@pobox.com
-Dmyhostname=windhund -Dmydomain=.schwern.org -Dlibpth=/usr/local/lib
/opt/local/lib /sw/lib /usr/lib -Uversiononly -Uinstallusrbinperl
-Duserelocatableinc'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-I/usr/local/include -I/opt/local/include -I/sw/include
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-I/opt/local/include',
optimize='-O3 -g',
cppflags='-no-cpp-precomp -I/usr/local/include -I/opt/local/include
-I/sw/include -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -I/opt/local/include'
ccversion='', gccversion='4.0.1 (Apple Inc. build 5490)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, 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 ='-L/usr/local/lib
-L/opt/local/lib -L/sw/lib -fstack-protector'
libpth=/usr/local/lib /opt/local/lib /sw/lib /usr/lib
libs=-lgdbm -ldbm -ldb -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='-L/usr/local/lib -L/opt/local/lib -L/sw/lib
-bundle -undefined dynamic_lookup -fstack-protector'
Locally applied patches:
PERL_GIT_UNPUSHED_COMMITS /* do not remove this line */
PERL_GIT_UNCOMMITTED_CHANGES /* do not remove this line */
---
@INC for perl 5.11.0:
/sw/lib/perl5/darwin-thread-multi-2level
/sw/lib/perl5
/sw/lib/perl5/darwin
/usr/local/perl/blead/lib/site_perl/5.11.0/darwin-thread-multi-2level
/usr/local/perl/blead/lib/site_perl/5.11.0
/usr/local/perl/blead/lib/5.11.0/darwin-thread-multi-2level
/usr/local/perl/blead/lib/5.11.0
.
---
Environment for perl 5.11.0:
DYLD_LIBRARY_PATH (unset)
HOME=/Users/schwern
LANG=en_US.UTF-8
LANGUAGE (unset)
LC_CTYPE=en_US.UTF-8
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/Users/schwern/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/Users/schwern/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin
PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
PERL_AUTOINSTALL=--defaultdeps
PERL_BADLANG (unset)
SHELL=/opt/local/bin/bash
Thread Next
-
[perl #68198] Perl can't find its relocatable libraries when invoked non-absolute
by Michael G Schwern