Compile failure on 2.3.29 + fix

Rodger Donaldson (rodgerd@orwell.weta.dyn.ml.org)
Sat, 27 Nov 1999 14:55:59 +1300


Kernel 2.3.29, egcs 1.1.2, glibc 2.1.2

If initrd is specified, then compilation fails with:

gcc -D__KERNEL__ -I/usr/src/linux-2.3.29/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce
-DCPU=686 -march=i686 -c -o init/main.o init/main.c
init/main.c: In function start_kernel':
init/main.c:489: memory_start' undeclared (first use in this function)
init/main.c:489: (Each undeclared identifier is reported only once
init/main.c:489: for each function it appears in.)
make: *** [init/main.o] Error 1

This appears to be a result of an incomplete migration of memory-related
declaration into include/linux/bootmem.h; adding:

static unsigned long memory_start = 0;
static unsigned long memory_end = 0;

to that file allows compiling.

-- 
Rodger Donaldson		rodgerd@ihug.co.nz
"I regret to say that we of the F.B.I. are powerless to act in cases of
 oral-genital intimacy, unless it has in some way obstructed interstate
 commerce."	-- J. Edgar Hoover

- 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.tux.org/lkml/