David Steuber on Thu, 2 Oct 2003 04:18:28 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Perl 5.8.1 'make test' failure on OS X 10.2


Hi Folks,

I just finished running 'make test' for Perl 5.8.1.  I had three
failures.  I'm not worried about two of them as they relate to DB.
Apple supplies a rather old version and I haven't looked into replacing
it yet.

The one that does worry me is this one:

lib/Net/t/hostname...................Use of uninitialized value in
string eq at ../lib/Net/t/hostname.t line 39.
Use of uninitialized value in string eq at ../lib/Net/t/hostname.t line
39.
FAILED at test 1

Here is the code of ../lib/Net/t/hostname.t in the locus of the failure:

# This check thats hostanme does not overwrite $_
my @domain = qw(foo.example.com bar.example.jp);
my @copy = @domain;

my @dummy = grep { hostname eq $_ } @domain;

($domain[0] && $domain[0] eq $copy[0])
  ? print "ok 2\n"
  : print "not ok 2\n";

line 39 is the 'my @dummy' line.

The symbol 'hostname' is imported from Net::Domain.  A cursory glance
doesn't tell me where $_ was initialized.  This file is invoked from a
test harness.

So, should I worry, or should I just go ahead with 'sudo make install'?

If it matters, I am running OS X 10.2.6 with Fink installed in /sw.  I
am also running perl 5.8.0.  I won't trouble you with the output of
'perl -V' other than to say that the Configure options line was

-de -Dprefix=/sw/local

And I am building with those options for 5.8.1.

-- 
David Steuber           |  telco:610.436.1677
302 E Marshall St       |  http://www.david-steuber.com/
Apt 612                 |  (do ((a 1 b) (b 1 (+ a b)))
West Chester, PA 19380  |      (nil a) (print a))
-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**