Date: | Thu, 03 Oct 2002 23:57:29 -0700 |
From: | Brian Dessent <brian [...] dessent.net> |
To: | matt [...] sergeant.org, bug-time-piece [...] rt.cpan.org |
Subject: | Time-Piece-1.07 and cygwin |
Hi, I hope this reaches the proper people.
I was trying to install Time::Piece from CPAN under cygwin compiled
perl, but it fails a couple of the tests. I understand the the
strptime() function may be flaky with cygwin, so I suspect something
along those lines may be the reason here. Specifically, the "%A" format
specifier seems broken:
$ perl -MTime::Piece -e 'Time::Piece->strptime("Fri Oct 4 02:40:16
2002", "%A %b %d %H:%M:%S %Y")'
Error parsing time at
/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/Time/Piece.pm line 404.
...whereas changing "%A" to "%a" works ok. Anyway, any of this is is
helpful, here's the output of make test:
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/01base............ok
t/02core............FAILED tests 38, 44, 46
Failed 3/83 tests, 96.39% okay
t/03compare.........ok
t/04mjd.............ok
Failed Test Status Wstat Total Fail Failed List of Failed
--------------------------------------------------------------------------------
t/02core.t 83 3 3.61% 38, 44, 46
Failed 1/4 test scripts, 75.00% okay. 3/104 subtests failed, 97.12%
okay.
make: *** [test_dynamic] Error 255
Here's perl -V:
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=cygwin, osvers=1.3.2(0.3932), archname=cygwin-multi
uname='cygwin_nt-4.0 loreley 1.3.2(0.3932) 2001-05-20 23:28 i686
unknown '
config_args='-de -Dusemultiplicity'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include',
optimize='-O2',
cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include'
ccversion='', gccversion='2.95.3-5 (cygwin special)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='ld2', ldflags =' -s -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib
libs=-lgdbm -lcrypt
perllibs=-lcrypt
libc=/usr/lib/libc.a, so=dll, useshrplib=true,
libperl=libperl5_6_1.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Built under cygwin
Compiled at Aug 22 2001 01:05:05
@INC:
/usr/lib/perl5/5.6.1/cygwin-multi
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/cygwin-multi
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl
.