Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 1997 18:46:20 -0400 (EDT)
From:      rdkeys@csemail.cropsci.ncsu.edu
To:        freebsd-hackers@freebsd.org
Cc:        rdkeys@csemail.cropsci.ncsu.edu ()
Subject:   Kernel rebuild timezone error in param.c
Message-ID:  <9708152246.AA101234@csemail.cropsci.ncsu.edu>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9708152246.AA101234>