On Tuesday 16 December 2003 09:05, Giuseppe Sacco wrote: > Hi all, > today I rsync'd from linux-2.4-benh and I tried to compile the kernel. I > get some errors that I cannot fix. Could anyone help me? > > gcc -D__KERNEL__ -I/usr/src/linux-2.4-benh/include -Wall > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common > -fomit-frame-pointer -I/usr/src/linux-2.4-benh/arch/ppc -fsigned-char > -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring > -nostdinc -iwithprefix include -DKBUILD_BASENAME=nvram -c -o nvram.o > nvram.c > nvram.c: In function `nvram_ioctl': > nvram.c:78: error: `OBSOLETE_PMAC_NVRAM_GET_OFFSET' undeclared (first > use in this function) > nvram.c:78: error: (Each undeclared identifier is reported only once > nvram.c:78: error: for each function it appears in.) > nvram.c:79: error: `IOC_NVRAM_GET_OFFSET' undeclared (first use in this > function) > nvram.c:90: error: `IOC_NVRAM_SYNC' undeclared (first use in this > function) > nvram.c:91: warning: implicit declaration of function `pmac_nvram_sync' > make[4]: *** [nvram.o] Error 1 > make[4]: Leaving directory `/usr/src/linux-2.4-benh/drivers/macintosh' > make[3]: *** [first_rule] Error 2
FWIW, I have the same problem with a current rsync of benh's 2.4 tree (2.4.23-ben1). But, I also just rsynced and attempted to build 2.6.0-ben1 (both are from source.mvista.com) and am getting strangely similar errors. Fine to this point: CC arch/ppc/platforms/pmac_nvram.o arch/ppc/platforms/pmac_nvram.c: In function `pmac_nvram_init': arch/ppc/platforms/pmac_nvram.c:546: error: `pmu_nvram_read_byte' undeclared (first use in this function) arch/ppc/platforms/pmac_nvram.c:546: error: (Each undeclared identifier is reported only once arch/ppc/platforms/pmac_nvram.c:546: error: for each function it appears in.) arch/ppc/platforms/pmac_nvram.c:547: error: `pmu_nvram_write_byte' undeclared (first use in this function) make[2]: *** [arch/ppc/platforms/pmac_nvram.o] Error 1 make[1]: *** [arch/ppc/platforms] Error 2 make[1]: Leaving directory `/usr/src/linuxppc-2.5-benh' make: *** [stamp-build] Error 2 Can anyone smarter than I am verify whether or not this is a code problem or a config/local problem? I am not coder, unfortunately. :^) NRH -- The surest sign that intelligent life exists elsewhere in the universe is that it has never tried to contact us. - Calvin and Hobbes (Bill Watterson)

