ponie can't execute itself in ``... sometimes.

[email protected] (Michael G Schwern) Sat, 23 Jul 2005 23:46:19 -0700
Newsgroups perl.ponie.dev
Message-ID <[email protected]>
--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

MakeMaker's find_perl() function fails to find ponie.  The reason is its
attempt to run ponie fails.  The run is simply:

	my $check = `$path_to_ponie -le "require 5.0; print qq{VER_OK}"`

when called inside find_perl nothing is returned.  But this appears to happen
intermitantly.  To reproduce, download a copy of the ExtUtils-MakeMaker
distribution.  Run "ponie Makefile.PL verbose verbose".  You'll see among
the output:

Checking /path/to/your/bin/ponie
Executing /path/to/your/bin/ponie
Result: ''

$? >> 8 at that point is 66 (?!).

This appears to only happen in the MakeMaker distribution.  Makefile.PLs for
other distributions work fine.

ponie -V attached.


-- 
Michael G Schwern     [email protected]     http://www.pobox.com/~schwern
Don't try the paranormal until you know what's normal.
	-- "Lords and Ladies" by Terry Prachett

--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=ponieV

Summary of my perl5 (revision 5 version 9 subversion 2) configuration:
  Platform:
    osname=darwin, osvers=7.9.0, archname=darwin-thread-2level
    uname='darwin windhund.schwern.org 7.9.0 darwin kernel version 7.9.0: wed mar 30 20:11:17 pst 2005; root:xnuxnu-517.12.7.obj~1release_ppc power macintosh powerpc '
    config_args='-Dprefix=/usr/local/perl/bleadperl -Dccflags=-I/sw/include -Dldflags=-L/sw/lib [email protected] -Uinstallusrbinperl -Dusedevel -Dnoextensions=ByteLoader -d -E -Dusedevel -Dusethreads -Uuseithreads -Uuse5005threads -Doptimize='-g' -Dprefix=/usr/local/perl/ponie -Dversiononly=n -Dlink=c++'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useithreads=undef usemultiplicity=undef
    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/src/ponie-4/parrot/include -I/usr/local/src/ponie-4/src/pmc -I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include',
    optimize='-g',
    cppflags=' -I/usr/local/src/ponie-4/parrot/include -I/usr/local/src/ponie-4/src/pmc -no-cpp-precomp -I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 1671)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    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/src/ponie-4/parrot/blib/lib -L/usr/local/src/ponie-4/src/pmc -L/sw/lib -L/usr/local/lib'
    libpth=/usr/local/src/ponie-4/parrot/blib/lib /usr/local/src/ponie-4/src/pmc /usr/local/lib /usr/lib
    libs=-lparrot -lponie -lgmp  -ldbm -ldl -lm -lc
    perllibs=-lparrot -lponie -lgmp  -ldl -lm -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -L/usr/local/src/ponie-4/parrot/blib/lib -L/usr/local/src/ponie-4/src/pmc -L/sw/lib -bundle -undefined dynamic_lookup -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: DEBUGGING USE_LARGE_FILES
  Built under darwin
  Compiled at Jul 23 2005 06:20:18
  %ENV:
    PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
  @INC:
    /sw/lib/perl5
    /sw/lib/perl5/darwin
    /usr/local/perl/ponie/lib/5.9.2/darwin-thread-2level
    /usr/local/perl/ponie/lib/5.9.2
    /usr/local/perl/ponie/lib/site_perl/5.9.2/darwin-thread-2level
    /usr/local/perl/ponie/lib/site_perl/5.9.2
    /usr/local/perl/ponie/lib/site_perl
    .

--mP3DRpeJDSE+ciuQ--