pkgsrc-Bugs archive

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

pkg/41996: Can't bootstrap on NetBSD 5.99, 64-bit time_t problem in bmake



>Number:         41996
>Category:       pkg
>Synopsis:       Can't bootstrap on NetBSD 5.99, 64-bit time_t problem in bmake
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 05 16:45:00 +0000 2009
>Originator:     Aleksej Saushev
>Release:        NetBSD 5.99.16
>Organization:
>Environment:
System: NetBSD asau.local 5.99.16 NetBSD 5.99.16 (KERN) #0: Fri Sep 4 11:47:10 
MSD 2009 asau%asau.local@localhost:/tmp/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
        You can't bootstrap on NetBSD 5.99.15 i386 because of 64 time_t problem,
        devel/bmake fails to build:

RCS file: /cvsroot/pkgsrc/devel/bmake/files/trace.c,v
retrieving revision 1.4
diff -u -r1.4 trace.c
--- files/trace.c       11 Nov 2008 14:37:05 -0000      1.4
+++ files/trace.c       5 Sep 2009 16:35:31 -0000
@@ -97,7 +97,7 @@
        gettimeofday(&rightnow, NULL);
 
        fprintf(trfile, "%ld.%06d %d %s %d %s",
-           rightnow.tv_sec, (int)rightnow.tv_usec,
+           (long int)rightnow.tv_sec, (int)rightnow.tv_usec,
            jobTokensRunning,
            evname[event], trpid, trwd);
        if (job != NULL) {
>How-To-Repeat:
        Try to bootstrap.
>Fix:
        Make types match in any way you find appropriate, please.



Home | Main Index | Thread Index | Old Index