bug-gnupod
[Top][All Lists]
Advanced

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

[Bug-gnupod] problems with sign overflow for addtime?


From: Scott Presnell
Subject: [Bug-gnupod] problems with sign overflow for addtime?
Date: Sun, 09 Jan 2005 14:31:18 -0800
User-agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.7.3) Gecko/20041218

Hi GNUPOD folks,
        If I add songs via gnupod I see negative 'addtime's
An example:

<file addtime="-1106727235" album="Pure 80's" artist="Squeeze" bitrate="128" cdnum="0" cds="0" comment="Created by Grip" composer="" fdesc="MPEG 1 layer 3 file" filesize="3813749" genre="Rock" id="20" path=":iPod_Control:Music:F48:1_Tempted.mp3" playcount="0" songnum="20" songs="0" soundcheck="" srate="44100" time="238359" title="Tempted" year="1999" />

A short test script shows the following results:

#! /usr/pkg/bin/perl

#mactime: 2082931200
#time(): 1105309591
#sum: -1106726505
#sum fixed: 3188240791

use constant MACTIME => 2082931200; #Mac EPOCH offset

print "mactime: ", MACTIME, "\n";
print "time(): ", time(), "\n";

$val = time() + MACTIME;
$nval = 0.0 + time() + MACTIME;

print "sum: ", $val, "\n";
print "sum fixed: ", $nval, "\n";

exit(0);

===

Is my installation screwed up or is this a problem with this version of perl, 
or...

        Thanks for any help

        - Scott

My System:
NetBSD low.tworoads.net 2.0 NetBSD 2.0 (YUKON) #9: Thu Dec 16 12:12:01 PST 2004 address@hidden:/usr/src/sys/arch/i386/compile/YUKON i386

My Perl:

  Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=netbsd, osvers=1.5.1_beta, archname=i386-netbsd
uname='netbsd yui.fh-regensburg.de 1.5.1_beta netbsd 1.5.1_beta (yui) #16: thu apr 26 18:20:45 mest 2001 address@hidden:disk1cvssrc-1.5sysarchi386compileyui i386 ' config_args='-sde -Dprefix=/usr/pkg -Doptimize=-O2 -Darchname=i386-netbsd -Dcc=gcc -Dusemymalloc=false'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-O2', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 
release)
    cppflags='-fno-strict-aliasing -I/usr/pkg/include'
    ccflags ='-fno-strict-aliasing -I/usr/pkg/include'
    stdchar='char', d_stdstdio=undef, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/pkg/lib'
    libpth=/usr/pkg/lib /usr/lib
    libs=-lm -lcrypt
    libc=/usr/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-whole-archive -lgcc -Wl,-no-whole-archive -Wl,-E -Wl,-R/usr/pkg/lib '
    cccdlflags='-DPIC -fPIC ', lddlflags='--whole-archive -shared  
-L/usr/pkg/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under netbsd
  Compiled at May  7 2001 03:37:58
  @INC:
    /usr/pkg/lib/perl5/5.6.0/i386-netbsd
    /usr/pkg/lib/perl5/5.6.0
    /usr/pkg/lib/perl5/site_perl/5.6.0/i386-netbsd
    /usr/pkg/lib/perl5/site_perl/5.6.0
    /usr/pkg/lib/perl5/site_perl
    .




reply via email to

[Prev in Thread] Current Thread [Next in Thread]