Subject: toolchain/23490: 64-bit config(8) breaks negative RTC_OFFSET
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/19/2003 09:14:29
>Number:         23490
>Category:       toolchain
>Synopsis:       64-bit config(8) breaks negative RTC_OFFSET
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 19 17:15:00 UTC 2003
>Originator:     Jason R Thorpe
>Release:        NetBSD 1.6ZE
        -- Jason R. Thorpe <>
System: NetBSD 1.6ZD NetBSD 1.6ZD (YEAH-BABY-XP) #21: Thu Oct 16 15:47:17 PDT 2003 i386
Architecture: i386
Machine: i386
	The 64-bit internal integer representation in config(8) breaks
	specifying a negative rtc offset:

param.c:105: warning: integer constant is too large for "long" type
param.c:105: warning: overflow in implicit constant conversion

thorpej 351$ grep RTC_OFFSET * 
config_file.h:"_CFG_options \\011RTC_OFFSET=-600 # hardware clock is this many mins. west of GMT\n"
opt_rtc_offset.h:#define        RTC_OFFSET      0xfffffffffffffda8
param.c: * Compiled with -DHZ=xx -DRTC_OFFSET=x -DMAXUSERS=xx
param.c:#ifndef RTC_OFFSET
param.c:#define RTC_OFFSET 0
param.c:int     rtc_offset = RTC_OFFSET;
thorpej 352$ 

	Try to build the i386 GENERIC_PS2TINY kernel.