[klibc] A few questions

H. Peter Anvin hpa at zytor.com
Sat Apr 26 00:36:09 PDT 2003


Bryan O'Sullivan wrote:
> 
> make[1]: Entering directory `/usr/local/src/linux/klibc-0.80/klibc'
> gcc -Wp,-MD,./.__static_init.d  -march=i386 -Os -fomit-frame-pointer -malign-functions=0 -malign-jumps=0 -malign-loops=0  -nostdinc -iwithprefix include -I../klibc -I../klibc/arch/i386/include -I../klibc/include/bits32 -D__KLIBC__ -DBITSIZE=32 -I../klibc/include -I../linux/include -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -c -o __static_init.o __static_init.c
> cc1: warning: -malign-loops is obsolete, use -falign-loops
> cc1: warning: -malign-jumps is obsolete, use -falign-jumps
> cc1: warning: -malign-functions is obsolete, use -falign-functions
> In file included from ../linux/include/asm/elf.h:11,
>                  from ../linux/include/linux/elf.h:5,
>                  from ../klibc/include/elf.h:9,
>                  from __static_init.c:19:
> ../linux/include/asm/system.h:281: parse error before "u8"
> ../linux/include/asm/system.h:281: warning: no semicolon at end of struct or union
> ../linux/include/asm/system.h:282: warning: type defaults to `int' in declaration of `cpuid'
> ../linux/include/asm/system.h:282: `cpuid' redeclared as different kind of symbol
> ../linux/include/asm/processor.h:127: previous declaration of `cpuid'
> ../linux/include/asm/system.h:282: warning: data definition has no type or storage class
> ../linux/include/asm/system.h:283: parse error before "instrlen"
> ../linux/include/asm/system.h:283: warning: type defaults to `int' in declaration of `instrlen'
> ../linux/include/asm/system.h:283: warning: data definition has no type or storage class
> ../linux/include/asm/system.h:284: parse error before "replacementlen"
> ../linux/include/asm/system.h:284: warning: type defaults to `int' in declaration of `replacementlen'
> ../linux/include/asm/system.h:284: warning: data definition has no type or storage class
> ../linux/include/asm/system.h:285: parse error before "replacement"
> ../linux/include/asm/system.h:285: warning: type defaults to `int' in declaration of `replacement'
> ../linux/include/asm/system.h:285: warning: data definition has no type or storage class
> ../linux/include/asm/system.h:286: parse error before '}' token
> ../linux/include/asm/processor.h:127: warning: `cpuid' defined but not used
> make[1]: *** [__static_init.o] Error 1
> make[1]: Leaving directory `/usr/local/src/linux/klibc-0.80/klibc'
> make: *** [all] Error 2
> 

You clearly have a different 2.5.68 than I have, because on stock 2.5.68 
line 281 of include/asm-i386/system.h is a comment!

I don't use BK, so if Linux has something new included in BK I wouldn't 
know.

	-hpa




More information about the klibc mailing list