From owner-freebsd-hackers Wed Sep 17 08:10:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA17722 for hackers-outgoing; Wed, 17 Sep 1997 08:10:20 -0700 (PDT) Received: from unix.tfs.net (root@unix.tfs.net [199.79.146.60]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA17711 for ; Wed, 17 Sep 1997 08:10:16 -0700 (PDT) Received: from argus.tfs.net (node26.tfs.net [207.2.220.26]) by unix.tfs.net (8.8.5/8.8.5) with ESMTP id JAA06735 for ; Wed, 17 Sep 1997 09:08:49 -0500 Received: (from jbryant@localhost) by argus.tfs.net (8.8.5/8.8.5) id KAA04527 for freebsd-hackers@freebsd.org; Wed, 17 Sep 1997 10:10:09 -0500 (CDT) From: Jim Bryant Message-Id: <199709171510.KAA04527@argus.tfs.net> Subject: 2.2-STABLE lint To: freebsd-hackers@freebsd.org Date: Wed, 17 Sep 1997 10:10:08 -0500 (CDT) Reply-to: jbryant@tfs.net X-Windows: R00LZ!@# MS-Winbl0wz DR00LZ!@# X-Operating-System: FreeBSD 2.2.2-RELEASE #0: Wed Jul 9 01:01:24 CDT 1997 X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id IAA17714 Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk yeah, i'm finally cvsup'ed 2.2-STABLE... noticed a lot of compiler warnings, primarily: warning: comparison between signed and unsigned then at the very end [param.c], it crashed here: struct timezone tz = { TIMEZONE, DST }; giving the errors: cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -nostdinc -I. -I../.. -I../../sys -I../../../include -DI386_CPU -DI486_CPU -DI586_CPU -DCOMPAT_LINUX -DUPDATE_INTERVAL=30 -DFASTLINKS -DQUOTA -DUMAPFS -DNULLFS -DKERNFS -DMFS -DCD9660 -DNFS -DFDESC -DMSDOSFS -DPROCFS -DFFS -DNETATALK -DIPX_ERRPRINTFS=0 -DIPXPRINTFS=0 -DIPX -DIPDIVERT -DIPFIREWALL_VERBOSE -DIPFIREWALL -DMROUTING -DINET -DSHMMAXPGS=128 -DSYSVSHM -DSYSVMSG -DSYSVSEM -DFIFO -DXSERVER -DUCONSOLE -DWANT_JOYSTICK_CONNECTED -DCOM_BIDIR -DSTAR_SAVER -DMAXCONS=16 -DAHC_SCBPAGING_ENABLE -DAHC_ALLOW_MEMIO -DAHC_TAGENABLE -DSCSI_REPORT_GEOMETRY -DFDSEEKWAIT=16 -DATAPI_STATIC -DATAPI -DDUMMY_NOPS -DAUTO_EOI_1 -DBOUNCE_BUFFERS -DCOMPAT_43 -DPROBE_VERBOSE -DDFLDSIZ=256*1024*1024 -DMAXDSIZ=256*1024*1024 -DPANIC_REBOOT_WAIT_TIME=30 -DPERFMON -DUSE_RTC_CENTURY -DCLK_USE_I586_CALIBRATION -DCLK_USE_I8254_CALIBRATION -DMD5 -DINCLUDE_CONFIG_FILE -DVISUAL_USERCONFIG -DUSERCONFIG -DFAILSAFE -DNSWAPDEV=1 -DNMBCLUSTERS=1024 -DOPEN_MAX=1024 -DCHILD_MAX=1024 -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 -DMAXUSERS=16 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. After checking GENERIC, I could not find anything there, or in LINT, thus I don't think that it is even documented anywhere but in the souce, which states: /* * System parameter formulae. * * This file is copied into each directory where we compile * the kernel; it should be modified there to suit local taste * if necessary. * * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx */ What is the proper usage for these fields? Right now, I keep a UTC RTC. Would -DTIMEZONE=0 -DDST=0 be the ticket for my case? jim -- All opinions expressed are mine, if you | "I will not be pushed, stamped, think otherwise, then go jump into turbid | briefed, debriefed, indexed, or radioactive waters and yell WAHOO !!! | numbered!" - #1, "The Prisoner" ------------------------------------------------------------------------------ Inet: jbryant@tfs.net AX.25: kc5vdj@wv0t.#neks.ks.usa.noam grid: EM28PW voice: KC5VDJ - 6 & 2 Meters AM/FM/SSB, 70cm FM. http://www.tfs.net/~jbryant ------------------------------------------------------------------------------ HF/6M/2M: IC-706-MkII, 2M: HTX-212, 2M: HTX-202, 70cm: HTX-404, Packet: KPC-3+