Date: Fri, 11 Aug 2017 12:50:27 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221418] FreeBSD 10.4-PRERELEASE fails to build on systems using 32 bit time_t since r322315. Message-ID: <bug-221418-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: jau@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221418-8>
