Re: error compiling 1.3.10

Luca Spada (skyluke@sun.skylink.it)
Mon, 17 Jul 1995 09:29:04 +0200 (MET DST)


On Mon, 17 Jul 1995, Michael Meskes wrote:

> Luca Spada writes:
> >
> > I get the following error compiling 1.3.10. I use GCC 2.6.3
> > ...
> > make[1]: Entering directory `/usr/src/linux/kernel'
> > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486 -DEXPORT_SYMTAB -c ksyms.c
> > ksyms.c:407: warning: missing braces around initializer for `symbol_table[169]'
> > ksyms.c:407: initializer element for `symbol_table[169].addr' is not constant
> > ksyms.c:410: warning: braces around scalar initializer for `symbol_table.name'
> > ksyms.c:410: warning: excess elements in scalar initializer after `symbol_table.name'
> > make[1]: *** [ksyms.o] Error 1
> > make[1]: Leaving directory `/usr/src/linux/kernel'
> > make: *** [linuxsubdirs] Error 2
> > sun:/usr/src/linux#
> >
> > Any help ?
>
> How does your ksyms.c file look like (line 400-420)? I had the same error
> when I accidently patched teh kdebug patch into the wrong kernel. Did you
> use any additional patches?

Nope, but I figured out the problem. I got those errors but I enable the
following setting:

*
* Loadable module support
*
Set version information on all symbols for modules (CONFIG_MODVERSIONS) [y]

If I disable it everything compile OK.

Bye
Luca Spada (skyluke@sun.skylink.it)