This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 3.4, error: conflicting types for local extern variabled


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]