Skip Menu |

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

Report information
The Basics
Id: 32580
Status: open
Priority: 0/
Queue: Time-Piece-MySQL

People
Owner: Nobody in particular
Requestors: konradjg [...] gmail.com
Cc:
AdminCc:

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



Subject: Time-Piece-MySQL-0.05 OS X ( 10.5.1 )
Date: Wed, 23 Jan 2008 09:34:46 -0800
To: bug-Time-Piece-MySQL [...] rt.cpan.org
From: J.G.Konrad <konradjg [...] gmail.com>
There is an issue on OS X 10.5.1 . I did have this working on OS X 10.4.11 the required Time::Piece installs no problem, passes all tests. when I try and install Time::Piece::MySQL I get the following error while running the tests. Writing Makefile for Time::Piece::MySQL big-brother:Time-Piece-MySQL-0.05 jkonrad$ make cp lib/Time/Piece/MySQL.pm blib/lib/Time/Piece/MySQL.pm Manifying blib/man3/Time::Piece::MySQL.3pm big-brother:Time-Piece-MySQL-0.05 jkonrad$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/basic..........Error parsing time at /Library/Perl/5.8.8/darwin-thread-multi-2level/Time/Piece.pm line 470. BEGIN failed--compilation aborted at /Users/jkonrad/Downloads/Time- Piece-MySQL-0.05/blib/lib/Time/Piece/MySQL.pm line 19. Compilation failed in require at t/basic.t line 4. BEGIN failed--compilation aborted at t/basic.t line 4. # Looks like your test died before it could output anything. t/basic.......... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 12/12 subtests t/datetime.......Error parsing time at /Library/Perl/5.8.8/darwin-thread-multi-2level/Time/Piece.pm line 470. BEGIN failed--compilation aborted at /Users/jkonrad/Downloads/Time- Piece-MySQL-0.05/blib/lib/Time/Piece/MySQL.pm line 19. Compilation failed in require at t/datetime.t line 5. BEGIN failed--compilation aborted at t/datetime.t line 5. # Looks like your test died before it could output anything. t/datetime....... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 6/6 subtests t/timestamp......Error parsing time at /Library/Perl/5.8.8/darwin-thread-multi-2level/Time/Piece.pm line 470. BEGIN failed--compilation aborted at /Users/jkonrad/Downloads/Time- Piece-MySQL-0.05/blib/lib/Time/Piece/MySQL.pm line 19. Compilation failed in require at t/timestamp.t line 4. BEGIN failed--compilation aborted at t/timestamp.t line 4. # Looks like your test died before it could output anything. t/timestamp...... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run Test Summary Report ------------------- t/basic.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 12 tests but ran 0. t/datetime.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 6 tests but ran 0. t/timestamp.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=3, Tests=0, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.10 cusr 0.02csys = 0.14 CPU) Result: FAIL Failed 3/3 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 255 My perl details. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=darwin, osvers=9.0, archname=darwin-thread-multi-2level uname='darwin omen.apple.com 9.0 darwin kernel version 9.0.0b5: mon sep 10 17:17:11 pdt 2007; root:xnu-1166.6~1release_ppc power macintosh ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include', optimize='-O3', cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='4.0.1 (Apple Inc. build 5465)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 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, prototype=define Linker and Libraries: ld='cc -mmacosx-version-min=10.5', ldflags ='-arch i386 -arch ppc -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl= libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under darwin Compiled at Sep 23 2007 19:07:53 @INC: /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 . system details: Darwin big-brother.local 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 i386

Message body is not shown because it is too large.

This was caused by a strptime pattern that broke POSIX rules. Fixed in 0.06. -- Marty
This is still a problem on OSX 10.5. What do you want me to do in order to help you diagnose this problem? cpan[4]> install Time::Piece::MySQL Running install for module 'Time::Piece::MySQL' Running make for K/KA/KASEI/Time-Piece-MySQL-0.06.tar.gz Has already been unwrapped into directory /Users/rkinyon/.cpan/build/Time-Piece- MySQL-0.06-1lytSN Has already been made Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/basic........Error parsing time at /Library/Perl/5.8.8/darwin-thread-multi- 2level/Time/Piece.pm line 470. BEGIN failed--compilation aborted at /Users/rkinyon/.cpan/build/Time-Piece-MySQL- 0.06-1lytSN/blib/lib/Time/Piece/MySQL.pm line 20. Compilation failed in require at t/basic.t line 4. BEGIN failed--compilation aborted at t/basic.t line 4. # Looks like your test exited with 2 before it could output anything. t/basic........ Dubious, test returned 2 (wstat 512, 0x200) Failed 12/12 subtests t/datetime.....Error parsing time at /Library/Perl/5.8.8/darwin-thread-multi- 2level/Time/Piece.pm line 470. BEGIN failed--compilation aborted at /Users/rkinyon/.cpan/build/Time-Piece-MySQL- 0.06-1lytSN/blib/lib/Time/Piece/MySQL.pm line 20. Compilation failed in require at t/datetime.t line 5. BEGIN failed--compilation aborted at t/datetime.t line 5. # Looks like your test exited with 2 before it could output anything. t/datetime..... Dubious, test returned 2 (wstat 512, 0x200) Failed 6/6 subtests t/timestamp....Error parsing time at /Library/Perl/5.8.8/darwin-thread-multi- 2level/Time/Piece.pm line 470. BEGIN failed--compilation aborted at /Users/rkinyon/.cpan/build/Time-Piece-MySQL- 0.06-1lytSN/blib/lib/Time/Piece/MySQL.pm line 20. Compilation failed in require at t/timestamp.t line 4. BEGIN failed--compilation aborted at t/timestamp.t line 4. t/timestamp.... Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/basic (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 12 tests but ran 0. t/datetime (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 6 tests but ran 0. t/timestamp (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=3, Tests=0, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.08 cusr 0.02 csys = 0.13 CPU) Result: FAIL Failed 3/3 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 2 KASEI/Time-Piece-MySQL-0.06.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports KASEI/Time-Piece-MySQL-0.06.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: KASEI/Time-Piece-MySQL-0.06.tar.gz : make_test NO
This may actually be a problem with Time::Piece rather than Time::Piece::MySQL. On MacOS X 10.5.7, I altered Piece.xs in Time::Piece to use strptime_l instead of strptime (the strptime manpage mentions legacy handling of %Y) and compiled and installed - Time::Piece still passes its tests. Time::Piece::MySQL then compiled and passed its tests without modification. I guess a couple of #ifdefs for OS X version in Time::Piece Piece.xs would probably suffice - let me know if you want more details.