Subject: Re: gcc *Initialization* compile error on kernel
To: None <gtimuss@engr.uvic.ca>
From: Mike Long <mike.long@analog.com>
List: current-users
Date: 02/14/1996 15:01:14
>From: Gary Timuss <gtimuss@prozac.UVic.CA>
>Date: Mon, 12 Feb 1996 23:27:23 -0800 (PST)
>
>Since Friday I've been trying to compile new kernels with gcc 2.4.5,
>but even after cleaning out the directory and re-running "config", I
>keep seeing:
>
>/usr/src/sys/arch/i386/compile/PROZAC prozac# make depend
>cc  -O2 -Werror -I. -I../../../../arch -I../../../.. -DI586_CPU -DDUMMY_NOPS -DXSERVER -DUCONSOLE -DMACHINE_NONCONTIG -DTIMEZONE="0x1e0" -DDST="1" -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DDIAGNOSTIC -DSYSVMSG -DSYSVSEM -DSYSVSHM -DCOMPAT_NOMID -DCOMPAT_09 -DCOMPAT_10 -DCOMPAT_43 -DTCP_COMPAT_42 -DCOMPAT_IBCS2 -DCOMPAT_LINUX -DUSER_LDT -DLKM -DFFS -DMFS -DMSDOSFS -DFIFO -DNULLFS -DPROCFS -DINET -D_KERNEL -Di386  -DMAXUSERS=24 -c ../../i386/genassym.c
>../../i386/genassym.c:42: warning: `_KERNEL' redefined
>*Initialization*:1: warning: this is the location of the previous definition
>*** Error code 1
>
>Stop.
>
>
>This seems particularly suspicous because in all my years of programming,
>I've never seen an "*Initialization*" error before.  Any theories about what
>is going on here?

-D_KERNEL is on the command line.
-- 
Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA       (eq (opinion 'ADI) (opinion 'mike)) -> nil