[Bug 221418] FreeBSD 10.4-PRERELEASE fails to build on systems using 32 bit time_t since r322315.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 11 12:50:27 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221418

            Bug ID: 221418
           Summary: FreeBSD 10.4-PRERELEASE fails to build on systems
                    using 32 bit time_t since r322315.
           Product: Base System
           Version: 10.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: jau at iki.fi

Created attachment 185286
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=185286&action=edit
Assign the correct time_t value on any system using 2's complement integers
independent of the size of time_t.

FreeBSD 10.4-PRERELEASE fails to build on systems using 32 bit
time_t since r322315.
In the file sys/netinet/tcp_syncache.c line 280 reads like this...

V_tcp_syncache.hashbase[i].sch_last_overflow = INT64_MIN;

This works as intended only on systems using 64 bit time_t.
The target variable for the assignment is of type time_t and
the assigned value overflows the range of the target.
If the assignment were done the assigned value would be cut to 0.
At least on ppc systems the old gcc detects this, gives an error
message, and the build fails to proceed.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list