Hi all,

I'm trying to build and package PAR for use on Solaris 5.8. I've got PAR built, but it fails some of the tests.

The first failure I'm trying to solve is the first test in t/1-basic.t. All the other tests in that file pass, it's just the first one that fails.

Here's the test output. I've broken it out and will add a bit of commentary.

===> Testing for PAR
(cd /home/nc86235/gems-svn/src/contrib/p5-PAR/trunk/src; /usr/bin/env
  PERL5LIB=`/usr/5bin/echo /opt/GEMSpPARD/0.07/lib
  /opt/GEMSpArcZ/1.09/lib /opt/GEMSpCmpZ/1.33/lib
  /opt/GEMSpModS/0.46/lib /opt/GEMSpTSim/0.47/lib
  /opt/GEMSpTHar/2.26/lib | /usr/bin/sed -e 's/ /:/g'`
  /xenv/OS/sun4/5.8p4/sun4u/ccs/bin/make -f Makefile  test)

[ The checked out copy of the PAR 0.89 code is in the .../trunk/src/
  directory.  This bit of magic just makes sure that the PERL5LIB
  environment variable points to the installation locations for the
  modules that PAR depends on (Archive::Zip, Compress::Zlib,
  Module::ScanDeps, PAR::Dist (and Test::Simple/Test::Harness for
  running tests.) ]

PERL_DL_NONLAZY=1 /opt/GEMSperl5/5.6.1/bin/perl -Iinc -Iblib/arch
  -Iblib/lib -I/opt/GEMSperl5/5.6.1/lib/5.6.1/sun4-solaris
  -I/opt/GEMSperl5/5.6.1/lib/5.6.1 -e 'use Test::Harness qw(&runtests
  $verbose); $verbose=1; runtests @ARGV;' t/1-basic.t

[ Standard Perl for running the tests.  The only thing that's different
  is that I tweaked the Makefile to set TEST_VERBOSE=1 ]

t/1-basic....1..8
-f on unopened filehandle
_</opt/GEMSpCmpZ/1.33/lib/5.6.1/sun4-solaris/auto/Compress/Zlib/autosplit.ix at /home/nc86235/gems-svn/src/contrib/p5-PAR/trunk/src/blib/lib/PAR.pm line 360.

 [ This is the first error.  PAR.pm:360 corresponds to this code:

   ...
   if ($par =~ m!^\w+://!) {
   ...

   Just inserting some debugging print()s at that point (don't worry, I
   made certain that the line numbers in this report are from my
   unaltered copies of the libraries) show this:

     print "\$par: $par\n";

   prints

$par: *main::_</opt/GEMSpCmpZ/1.33/lib/5.6.1/sun4-solaris/auto/Compress/Zlib/aut
osplit.ix

     print "ref(\$par): ", ref(\$par), "\n";

   prints

     ref($par): GLOB

   And then it all goes south. ]

Use of uninitialized value in pattern match (m//) at
  /home/nc86235/gems-svn/src/contrib/p5-PAR/trunk/src/blib/lib/PAR.pm
  line 360.
Use of uninitialized value in -f at
  /home/nc86235/gems-svn/src/contrib/p5-PAR/trunk/src/blib/lib/PAR.pm
  line 360.
Bizarre copy of ARRAY in sassign at
  /home/nc86235/gems-svn/src/contrib/p5-PAR/trunk/src/blib/lib/PAR.pm
   line 303.
BEGIN failed--compilation aborted.
not ok 1
# Test 1 got: '' (t/1-basic.t at line 8)
#   Expected: 'Hello, world!
'
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
FAILED test 1
      Failed 1/8 tests, 87.50% okay
Failed 1/1 test scripts, 0.00% okay. 1/8 subtests failed, 87.50% okay.
Failed Test Stat Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------
t/1-basic.t                8    1  12.50%  1
*** Error code 11
make: Fatal error: Command failed for target `test_dynamic'

perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
uname='sunos gemsu1 5.8 generic_108528-23 sun4u sparc sunw,sun-fire-v240 ' config_args='-d -Dcc=_cc -Dprefix=/opt/GEMSperl5/5.6.1 -Dinstallprefix=/opt/GEMSperl5/5.6.1'
    hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='_cc', ccflags =' -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags=''
ccversion='Sun WorkShop 6 update 1 C 5.2 2000/09/11', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    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, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='_cc', ldflags =' -L/usr/local/lib -L/opt/local/lib '
    libpth=/usr/local/lib /opt/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib -L/opt/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Feb  4 2004 09:59:22
  @INC:
    /opt/GEMSperl5/5.6.1/lib/5.6.1/sun4-solaris
    /opt/GEMSperl5/5.6.1/lib/5.6.1
    /opt/GEMSperl5/5.6.1/lib/site_perl/5.6.1/sun4-solaris
    /opt/GEMSperl5/5.6.1/lib/site_perl/5.6.1
    /opt/GEMSperl5/5.6.1/lib/site_perl
    .


Any thoughts, or suggestions for things I could to help debug this?

N

Reply via email to