[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

kernel compile troubles with current 2.4 and 2.6



Ok, I've got a little conundrum here - as noted in the "cannot compile latest 
2.4-benh kernel" thread [1], 2.4.23-ben1 sources were having trouble 
compiling for some people.  I also have pretty much the same problem 
compiling 2.6.0-ben1.  Error messages are slightly different, but both 
basically tell me that 'pmu_nvram_read_byte' and 'pmu_nvram_write_byte' 
undeclared in pmac_nvram.c. (Exact errors copied from console below, see [2], 
let me know if more is needed.)  

This seems rather odd to me, is this a bug or have I got something put 
together wrong on my end?  Does anyone else have the same problem with _both_ 
kernel trees?  (I should probably note that both were rsynced from 
source.mvista.com within the past 24 hours, and I'm running Sid on an 
oldworld machine (7600).)

NRH
-- 
The man who tries to walk two roads will split his pants. - African proverb

[1] http://lists.debian.org/debian-powerpc/2003/debian-powerpc-200312/
msg00418.html

[2]
2.4 messages:

gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4-benh/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -I/usr/src/kernel-source-2.4-benh/arch/ppc -fsigned-char 
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring   
-nostdinc -iwithprefix include -DKBUILD_BASENAME=pmac_nvram  -DEXPORT_SYMTAB 
-c pmac_nvram.c
pmac_nvram.c: In function `pmac_nvram_init':
pmac_nvram.c:531: error: `pmu_nvram_read_byte' undeclared (first use in this 
function)
pmac_nvram.c:531: error: (Each undeclared identifier is reported only once
pmac_nvram.c:531: error: for each function it appears in.)
pmac_nvram.c:532: error: `pmu_nvram_write_byte' undeclared (first use in this 
function)
make[3]: *** [pmac_nvram.o] Error 1
make[3]: Leaving directory `/usr/src/kernel-source-2.4-benh/arch/ppc/
platforms'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/kernel-source-2.4-benh/arch/ppc/
platforms'
make[1]: *** [_dir_arch/ppc/platforms] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4-benh'
make: *** [stamp-build] Error 2
wallace:/usr/src/linux2.4#

2.6 messages:

  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
wallace:/usr/src/linux#



Reply to: