From owner-freebsd-questions Fri May 30 15:27:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA12260 for questions-outgoing; Fri, 30 May 1997 15:27:09 -0700 (PDT) Received: from andrsn.stanford.edu (root@andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA12255 for ; Fri, 30 May 1997 15:27:04 -0700 (PDT) Received: from localhost (andrsn@localhost.Stanford.EDU [127.0.0.1]) by andrsn.stanford.edu (8.8.5/8.6.12) with SMTP id PAA03298; Fri, 30 May 1997 15:26:58 -0700 (PDT) Date: Fri, 30 May 1997 15:26:58 -0700 (PDT) From: Annelise Anderson To: "Paul T. Root" cc: A.J.Caines@TracerTech.COM, freebsd-questions@FreeBSD.ORG Subject: Re: TIMEZONE error during compilation In-Reply-To: <199705301949.OAA00907@horton.iaces.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 30 May 1997, Paul T. Root wrote: > In a previous message, Andrew J. Caines said: > > Dear Paul, > > > > Thank you for your advice concerning my previous problem. I have removed all > > references to devices not on my system in my kernal config file. Having done > > this and done "config KIPPER" and make as before, I get the error > > > > cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -nostdinc -I. -I../.. -I../../sys -I../../../include -DI486_CPU -DXSERVER -DATAPI -DSYSVMSG -DSYSVSEM -DSYSVSHM -DVISUAL_USERCONFIG -DUSERCONFIG -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_DELAY=15 -DCOMPAT_43 -DPROCFS -DCD9660 -DMSDOSFS -DNFS -DFFS -DINET -DGPL_MATH_EMULATE -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 -DMAXUSERS=5 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. I got the same error trying to compile a kernel on 2.2.1. My mistake turned out to have been installing the new source code over the old source code. When I zapped the /usr/src/sys directory (actually I zapped everything under /usr/src) and reinstalled it (I just copied it from the live file system cd), everything worked. Getting rid of /usr/src/sys destroys your kernel config file so it's a good idea to save it to a safe place first. I also created some links with lndir to the source code on the cd for directories other than /usr/src/sys, so it could find anything else it might happen to need. So at least in my case it was not a timezone problem.... Annelise