pkgsrc-Bugs archive

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

pkg/40646: devel/diffutils is broken if sizeof(time_t) > sizeof(long)



>Number:         40646
>Category:       pkg
>Synopsis:       devel/diffutils is broken if sizeof(time_t) > sizeof(long)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 15 12:45:00 +0000 2009
>Originator:     YAMAMOTO Takashi <yamt%mwd.biglobe.ne.jp@localhost>
>Release:        NetBSD 5.99.7
>Organization:
        
>Environment:
Architecture: i386
Machine: i386
>Description:
        building devel/diffutils ends up in the following error.

context.c: In function 'print_context_label':
context.c:65: error: size of array 'a' is negative
*** [context.o] Error code 1
1 error

        "context.c:65" is the following "verify".

            long sec = inf->stat.st_mtime;
            verify (info_preserved, sizeof inf->stat.st_mtime <= sizeof sec);
            sprintf (buf, "%ld.%.9d", sec, nsec);

        it's a compile-time assertion which is false
        on systems where sizeof(time_t) > sizeof(long).

>How-To-Repeat:
        see above.
>Fix:
        

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index