Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./Configure -Duserelocatableinc re-reading config.sh corrupts installbin #11687

Open
p5pRT opened this issue Oct 6, 2011 · 4 comments
Open

Comments

@p5pRT
Copy link

p5pRT commented Oct 6, 2011

Migrated from rt.perl.org#100844 (status was 'open')

Searchable as RT100844$

@p5pRT
Copy link
Author

p5pRT commented Oct 6, 2011

From @nwc10

Created by @nwc10

If one runs ./Configure -Duserelocatableinc ... everything is fine.
[Tests pass, install works, installed perl works]

If one re-runs ./Configure -Duserelocatableinc with the old config.sh in
place, Configure gets confused by the values it reads in. Notably
initialinstalllocation and installbin are now "I want relocating" type
paths starting "...", not absolute paths.

@@ -105,7 +105,7 @@
cpp='cpp'
cpp_stuff='42'
cppccsymbols=''
-cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
+cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
cpplast='-'
cppminus='-'
cpprun='ccache gcc -E'
@@ -648,7 +648,7 @@
gzip='gzip'
h_fcntl='false'
h_sysfile='true'
-hint='previous'
+hint='recommended'
hostcat='cat /etc/hosts'
html1dir=' '
html1direxp=''
@@ -755,9 +755,9 @@
inc_version_list_init='0'
incpath=''
inews=''
-initialinstalllocation='.../'
+initialinstalllocation='/home/nicholas/Sandpit/snap5.9.x-v5.15.3-174-g57a0fb1/bin'
installarchlib='.../../lib/perl5/5.15.3/x86_64-linux-thread-multi'
-installbin='.../'
+installbin='/home/nicholas/Sandpit/snap5.9.x-v5.15.3-174-g57a0fb1/bin'
installhtml1dir=''
installhtml3dir=''
installman1dir='.../../man/man1'

(don't be confused - the above is not from the system I'm using to run
perlbug)

I'm not (yet) sure what the correct fix is.

Nicholas Clark

Perl Info

Flags:
    category=core
    severity=low

Site configuration information for perl 5.15.3:

Configured by nick at Wed Oct  5 20:41:31 BST 2011.

Summary of my perl5 (revision 5 version 15 subversion 3) configuration:
  Commit id: a175666958f7044955dba72ff4d922cc7d201485
  Platform:
    osname=darwin, osvers=10.8.0, archname=darwin-2level
    uname='darwin mouse-mill.local 10.8.0 darwin kernel version 10.8.0: tue jun 7 16:33:36 pdt 2011; root:xnu-1504.15.3~1release_i386 i386 '
    config_args='-Dusedevel=y -Dcc=ccache gcc -Dld=gcc -Ubincompat5005 -Uinstallusrbinperl -Dcf_email=nick@ccl4.org -Dperladmin=nick@ccl4.org -Dinc_version_list=  -Dinc_version_list_init=0 -Dstatic_ext=Fcntl -DDEBUGGING -Doptimize=-g -Uusethreads -Uuse64bitall -Uuselongdouble -Uusemymalloc -Duseperlio -Dprefix=~/Sandpit/snap5.9.x-v5.15.3-172-ga175666-i -Dinstallman1dir=none -Dinstallman3dir=none -Dusevendorprefix -Dvendorprefix=~/Sandpit/vendor -Duserelocatableinc -Ud_dosuid -Uuseshrplib -de -Accccflags=-fcatch-undefined-behavior -Accflags=-DNO_MATHOMS -Umad'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='ccache gcc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -DNO_MATHOMS -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include',
    optimize='-g',
    cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -DNO_MATHOMS -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5666) (dot 3)', 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=-lgdbm -ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, 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.15.3:
    lib
    /Volumes/Stuff/Perl/lib/perl5/site_perl/5.15.3/darwin-2level
    /Volumes/Stuff/Perl/lib/perl5/site_perl/5.15.3
    /Users/nick/Sandpit/vendor/lib/perl5/vendor_perl/5.15.3/darwin-2level
    /Users/nick/Sandpit/vendor/lib/perl5/vendor_perl/5.15.3
    /Volumes/Stuff/Perl/lib/perl5/5.15.3/darwin-2level
    /Volumes/Stuff/Perl/lib/perl5/5.15.3
    .


Environment for perl 5.15.3:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/nick
    LANG=en_GB.ISO8859-1
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/opt/local/bin:/opt/local/sbin:/Users/nick/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/sbin:/sbin:/usr/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented May 27, 2013

From @jkeenan

Is this fundamentally the same bug as subsequently reported by Andreas in #12055

@p5pRT
Copy link
Author

p5pRT commented May 27, 2013

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented May 27, 2013

From @Leont

On Mon, May 27, 2013 at 2​:23 AM, James E Keenan via RT
<perlbug-followup@​perl.org> wrote​:

Is this fundamentally the same bug as subsequently reported by Andreas
in https://rt-archive.perl.org/perl5/Ticket/Display.html?id=112448#txn-1106750 ?

No, it is not. That one is about runtime behavior, not configure-time behavior

Leon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants