From owner-freebsd-hackers Fri Aug 15 15:37:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA22807 for hackers-outgoing; Fri, 15 Aug 1997 15:37:02 -0700 (PDT) Received: from csemail.cropsci.ncsu.edu (csemail.cropsci.ncsu.edu [152.1.88.3]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id PAA22800 for ; Fri, 15 Aug 1997 15:36:58 -0700 (PDT) From: rdkeys@csemail.cropsci.ncsu.edu Received: by csemail.cropsci.ncsu.edu (5.61-AIX-1.2/1.0) id AA101234 (for freebsd-hackers@freebsd.org, from rdkeys/rdkeys@csemail.cropsci.ncsu.edu); Fri, 15 Aug 97 18:46:24 -0400 Message-Id: <9708152246.AA101234@csemail.cropsci.ncsu.edu> Subject: Kernel rebuild timezone error in param.c To: freebsd-hackers@freebsd.org Date: Fri, 15 Aug 1997 18:46:20 -0400 (EDT) Cc: rdkeys@csemail.cropsci.ncsu.edu () X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk FreeBSD 2.2.-970814-SNAP. While rebuilding my kernel I get an error in param.c: cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -nostdinc -I. -I../.. -I../../sys -I../../../include -DI486_CPU -DSYSVMSG -DSYSVSEM -DSYSVSHM -DVISUAL_USERCONFIG -DUSERCONFIG -DUCONSOLE -DBOUNCE_BUFFERS -DCOMPAT_43 -DPROCFS -DDFFS -DINET -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 -DMAXUSERS=10 param.c param.c:82: `TIMEZONE' undeclared here (not in a function) param.c:82: initializer element for `tz.tz_minuteswest' is not constant param.c:82: `DST' undeclared here (not in a function) param.c:82: initializer element for `tz.tz_dsttime' is not constant *** Error code 1 Stop. # The code in question in param.c: struct timezone tz = { TIMEZONE, DST }; The header comments in the file indicate, if necessary: * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx Does this require adding the -DHZ=100 -DTIMEZONE=somevalue -DDST=somevalue to the kernel configuration file, or some other place? For EDT the value should be 4 for TIMEZONE? For EDT the value should be 0 for DST? Where/how is TIMEZONE and/or DST declared? Bob Keys rdkeys@csemail.cropsci.ncsu.edu