This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.4, error: conflicting types for local extern variabled
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Olaf Hering <olh at suse dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: 14 Sep 2003 18:42:31 -0700
- Subject: Re: gcc 3.4, error: conflicting types for local extern variabled
- References: <20030914135121.GA13540@suse.de>
Olaf Hering <olh@suse.de> writes:
> Hello,
>
> is this a new feature, do we have to fix the kernel?
No, it's not a new feature. Yes, you do have to fix your kernel.
> setup.c:433: error: conflicting types for '__bss_start'
> setup.c:261: error: previous declaration of '__bss_start'
> 261: extern char __bss_start, _end;
> 433: extern char __bss_start[];
The error is because 'char' is not the same as 'char []'.
> __bss_start is defined in the linker script.
You might consider
extern void __bss_start;
which is a GCC extension.
--
- Geoffrey Keating <geoffk@geoffk.org>