Re: Error compiling 2.1.113

Ioannis Mavroukakis (ipm@soc.unl.ac.uk)
Mon, 3 Aug 1998 17:08:49 +0100 (BST)


> gcc -D__KERNEL__ -I/usr/src/linux-2.1.113/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce
> -m486 -DCPU=486 -c -o fault.o fault.c
> fault.c: In function `do_page_fault':
> fault.c:105: `local_bh_count' undeclared (first use this function)
> fault.c:105: (Each undeclared identifier is reported only once
> fault.c:105: for each function it appears in.)
> make[2]: *** [fault.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.1.113/arch/i386/mm'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.1.113/arch/i386/mm'
> make: *** [linuxsubdirs] Error 2
>
add this line to the includes
#include <linux/interrupt.h>

and it will compile fine

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html