Skip Menu |

This queue is for tickets about the Time-y2038 CPAN distribution.

Report information
The Basics
Id: 40725
Status: resolved
Priority: 0/
Queue: Time-y2038

People
Owner: Nobody in particular
Requestors: andrew.benham [...] thus.net
m.verkerk [...] gmail.com
rich.mcdonough [...] worldgaming.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Time::y2038 fails pre-install tests
Date: Thu, 6 Nov 2008 10:00:09 -0500
To: bug-Time-y2038 [...] rt.cpan.org
From: Rich McDonough <rich.mcdonough [...] worldgaming.com>
I'm trying to install the Time::y2038 module through CPAN and am running into what I believe is a bug. Here is the complete output from the attempted install: *** cpan[6]> install Time::y2038 Running install for module 'Time::y2038' Running Build for M/MS/MSCHWERN/Time-y2038-20081020.tar.gz Has already been unwrapped into directory /root/.cpan/build/Time- y2038-20081020-VuvPwU CPAN.pm: Going to build M/MS/MSCHWERN/Time-y2038-20081020.tar.gz Checking whether your kit is complete... Looks good Checking prerequisites... Looks good Deleting Build Removed previous script 'Build' Creating new 'Build' script for 'Time-y2038' version '20081020' /usr/bin/perl munge_config y2038/time64_config.h gcc -Iy2038 -Iy2038 -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/ CORE -fPIC -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe - Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,- D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer- size=4 -m64 -mtune=generic -o y2038/time64.o y2038/time64.c Copying lib/Time/y2038.pm -> blib/lib/Time/y2038.pm Copying lib/Time/y2038/Everywhere.pm -> blib/lib/Time/y2038/ Everywhere.pm lib/Time/y2038.xs -> lib/Time/y2038.c /usr/bin/perl -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi -I/ usr/lib/perl5/5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap lib/Time/y2038.xs gcc -Iy2038 -Iy2038 -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/ CORE -DXS_VERSION="20081020" -DVERSION="20081020" -fPIC -c - D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration- after-statement -I/usr/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,- D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer- size=4 -m64 -mtune=generic -o lib/Time/y2038.o lib/Time/y2038.c ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Time/y2038/y2038.bs') gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o blib/ arch/auto/Time/y2038/y2038.so lib/Time/y2038.o y2038/time64.o Manifying blib/lib/Time/y2038.pm -> blib/libdoc/Time::y2038.3pm Manifying blib/lib/Time/y2038/Everywhere.pm -> blib/libdoc/ Time::y2038::Everywhere.3pm MSCHWERN/Time-y2038-20081020.tar.gz ./Build -- OK Running Build test t/everywhere....ok t/time..........ok t/timegm........1/? # Failed test 'timegm(-4503599627370496)' # at t/timegm.t line 14. # got: '-4.5035996273705e+15' # expected: '-4503599627370496' t/timegm........3/? # Failed test 'timelocal(-4503599627370496)' # at t/timegm.t line 15. # got: '-4.5035996273705e+15' # expected: '-4503599627370496' # Failed test 'timegm(4503599627370496)' # at t/timegm.t line 14. # got: '4.5035996273705e+15' # expected: '4503599627370496' # Failed test 'timelocal(4503599627370496)' # at t/timegm.t line 15. # got: '4.5035996273705e+15' # expected: '4503599627370496' # Looks like you failed 4 tests of 13. t/timegm........ Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/13 subtests Test Summary Report ------------------- t/timegm (Wstat: 1024 Tests: 13 Failed: 4) Failed tests: 2-3, 10-11 Non-zero exit status: 4 Files=3, Tests=48, 2 wallclock secs ( 0.05 usr 0.00 sys + 2.39 cusr 0.03 csys = 2.47 CPU) Result: FAIL Failed 1/3 test programs. 4/48 subtests failed. MSCHWERN/Time-y2038-20081020.tar.gz ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports MSCHWERN/Time-y2038-20081020.tar.gz Running Build install make test had returned bad status, won't install without force Failed during this command: MSCHWERN/Time-y2038-20081020.tar.gz : make_test NO *** This is being attempted on a CentOS 5.2 Xen guest, x64. Any assistance would be greatly appreciated! Rich McDonough System Adminstrator Worldgaming rich.mcdonough@worldgaming.com
Subject: Time-y2038 v20081020 test failures
Date: Thu, 06 Nov 2008 16:47:47 +0000
To: bug-Time-y2038 [...] rt.cpan.org
From: Andrew Benham <andrew.benham [...] thus.net>
Module: Time-y2038 Version: 20081020 In t/timegm.t, 2 ** 52 is a little to big for some OS/Perl combinations. I've changed this (2 places) to 2 ** 49 and the tests pass on the 15 OS/Perl combinations I've tried it on. -- Andrew Benham Demon@Thus@Cable&Wireless andrew.benham@thus.net Finchley, London N3 2QQ, U.K. Tel: 020 8495 6343 Fax: 020 8495 6037
Subject: Re: [rt.cpan.org #40716] Time::y2038 fails pre-install tests
Date: Thu, 06 Nov 2008 18:53:20 -0800
To: bug-Time-y2038 [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
Rich McDonough via RT wrote: Show quoted text
> t/timegm........1/? > # Failed test 'timegm(-4503599627370496)' > # at t/timegm.t line 14. > # got: '-4.5035996273705e+15' > # expected: '-4503599627370496'
This is a test bug due to the test comparing the times as strings instead of numbers and the stringification getting mangled. You can ignore it. Force the install with "force install Time::y2038". The problem has already been fixed in the repo. Please give it a shot and let me know if your problem is solved. http://code.google.com/p/y2038/source/browse/trunk/perl/Time-y2038/ Sorry for the inconvenience. -- 29. The Irish MPs are not after "Me frosted lucky charms". -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army http://skippyslist.com/list/
Subject: Re: [rt.cpan.org #40725] Time-y2038 v20081020 test failures
Date: Thu, 06 Nov 2008 18:55:42 -0800
To: bug-Time-y2038 [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
andrew.benham@thus.net via RT wrote: Show quoted text
> Module: Time-y2038 > Version: 20081020 > > In t/timegm.t, 2 ** 52 is a little to big for some OS/Perl combinations.
What brought you to this conclusion? Is it because the tests failed something like... http://www.nntp.perl.org/group/perl.cpan.testers/2008/11/msg2553121.html If so, that's just Perl's stringification messing up. I've changed the test to do a numeric equality. Show quoted text
> I've changed this (2 places) to 2 ** 49 and the tests pass on the > 15 OS/Perl combinations I've tried it on.
Could you try it with this? http://code.google.com/p/y2038/source/browse/trunk/perl/Time-y2038/ Or wait until the next release, I'm about to cut one. -- Robrt: People can't win Schwern: No, but they can riot after the game.
I just cut a new release which should fix this. Please try http://schwern.org/src/Time-y2038-20081106.tar.gz
I just cut a new release which should fix this. Please try http://schwern.org/src/Time-y2038-20081106.tar.gz
Subject: Failed test t/timegm
Installing Time::y2038 I got the following tests failed: # Failed test 'timelocal(-4503599627370496)' # at t/timegm.t line 15. # got: '-4.5035996273705e+15' # expected: '-4503599627370496' # Failed test 'timegm(4503599627370496)' # at t/timegm.t line 14. # got: '4.5035996273705e+15' # expected: '4503599627370496' # Failed test 'timelocal(4503599627370496)' # at t/timegm.t line 15. # got: '4.5035996273705e+15' # expected: '4503599627370496' I guess this ain't a big problem, but CPAN build halts on this. Kind regards, Marijn Verkerk
Subject: Re: [rt.cpan.org #40725] Time-y2038 v20081020 test failures
Date: Fri, 07 Nov 2008 17:06:42 +0000
To: bug-Time-y2038 [...] rt.cpan.org
From: Andrew Benham <andrew.benham [...] thus.net>
Michael G Schwern via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=40725 > > > I just cut a new release which should fix this. Please try > http://schwern.org/src/Time-y2038-20081106.tar.gz
This fixes the problem. Thanks. -- Andrew Benham Demon@Thus@Cable&Wireless andrew.benham@thus.net Finchley, London N3 2QQ, U.K. Tel: 020 8495 6343 Fax: 020 8495 6037
Subject: Re: [rt.cpan.org #40716] Time::y2038 fails pre-install tests
Date: Fri, 7 Nov 2008 13:31:05 -0500
To: bug-Time-y2038 [...] rt.cpan.org
From: Rich McDonough <rich.mcdonough [...] worldgaming.com>
That worked like a charm! Thank you very much! On 6-Nov-08, at 10:07 PM, Michael G Schwern via RT wrote: Show quoted text
Rich McDonough System Adminstrator Worldgaming rich.mcdonough@worldgaming.com
Please try the latest version here: http://schwern.org/src/Time-y2038-20081106.tar.gz
Fixed by 20081106