Re: Prob compiling 2.1.129 ...
"The M@Dd0k" <madd0k@cybercable.tm.fr> writes:
> I have a problem compiling 2.1 kernels since 2.1.126 :
> I always get that error
>
> gcc -D__KERNEL__ -I/home/madd0k/kernels/linux/include -Wall -Wstrict-prototypes
> -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -Wa,-m21164a
> -DBWIO_ENABLED -DEXPORT_SYMTAB -c alpha_ksyms.c
> alpha_ksyms.c:145: `flush_tlb_all' undeclared here (not in a function)
> alpha_ksyms.c:145: initializer element for `__ksymtab_flush_tlb_all.value' is
> not constant
> alpha_ksyms.c:146: `flush_tlb_mm' undeclared here (not in a function)
> alpha_ksyms.c:146: initializer element for `__ksymtab_flush_tlb_mm.value' is
> not constant
> alpha_ksyms.c:147: `flush_tlb_page' undeclared here (not in a function)
> alpha_ksyms.c:147: initializer element for `__ksymtab_flush_tlb_page.value' is
> not constant
> alpha_ksyms.c:148: `flush_tlb_range' undeclared here (not in a function)
> alpha_ksyms.c:148: initializer element for `__ksymtab_flush_tlb_range.value' is
> not constant
> make[1]: *** [alpha_ksyms.o] Error 1
> make[1]: Leaving directory `/home/madd0k/kernels/linux/arch/alpha/kernel'
> make: *** [_dir_arch/alpha/kernel] Error 2
>
> Anyone has an idea ?
Yep, and a patch, but at home.
The problem is some missing includefile (How the hell does that work
on i386?).
Do a grep over all .h files for "flush_tlb_all" and insert a apropiat
#include in alpha_ksyms.c.
type "make" again and it will barf again.
Do a grep for the missing thing (some constant from mm.h i think) and
add the apropiate #include.
After that the kernel compiles and runs (apart from the parport
support, which is also broken for smp). To compile with parport
support you have to add a cast to some define of a lock funktion, that
is only used by the parport it seems.
What also doesnt work is the NCR53c8xx (which my Ruffian uses). The
changes made from 2.1.128 are clearly spam.
I will try to remember to bring in the patch and stuff it onto
ftp://rut.informatik.uni-tuebingen.de/
May the Source be with you.
Goswin
Reply to: