You should try applying parts of this diff that make sense: http://www.opendarwin.org/~fkr/xnu/make-xnu-517.3.7-compile.diff In particular, check out this part: diff -urN xnu-517.3.7/osfmk/ppc/chud/chud_spr.h xnu-517.3.7-patched/osfmk/ppc/chud/chud_spr.h --- xnu-517.3.7/osfmk/ppc/chud/chud_spr.h Fri Dec 19 23:38:23 2003 +++ xnu-517.3.7-patched/osfmk/ppc/chud/chud_spr.h Tue Dec 30 22:01:26 2003 Things like this have been a recurring problem for many of the XNU releases for 10.3.x. It's very annoying. It makes it a pain in the butt to rebuild anything from the Apple provided source snapshots without applying some amount of patches. Instead of building the Apple source snapshots directly, you will have better luck with the opendarwin CVS version (which is currently the 10.3.2 kernel though *cough* *cough*): http://cvs.opendarwin.org/index.cgi/src/xnu/ where this problem is fixed: http://cvs.opendarwin.org/index.cgi/src/xnu/osfmk/ppc/chud/chud_spr.h If you want the 10.3.4 kernel, you'll need to fix the source yourself. If you want a wrapped up kernel that's likely to build without problems, use the one in opendarwin CVS. --Steve On Fri, May 28, 2004 at 10:33:03PM +1000, Alastair Rankine wrote:
Hi all,
I've got a problem building the darwin kernel, following the
instructions here:
http://www.opendarwin.org/doc/en/articles/building_xnu/building_xnu.php
. Google tells me that one other person has seen the same (or similar)
problem, but I can't see a fix.
Any help appreciated.
/usr/bin/cc -c -static -g -nostdinc -nostdlib -no-cpp-precomp
-fno-builtin -finline -fno-keep-inline-functions -msoft-float
-fsigned-bitfields -Wpointer-arith -arch ppc -Dppc -DPPC -D__PPC__
-DPAGE_SIZE_FIXED -O2 -mcpu=750 -mmultiple -fschedule-insns -DAPPLE
-DNeXT -DKERNEL_PRIVATE -D__MACHO__=1 -Dvolatile=__volatile -DMACH
-DMACH_KERNEL -DMACH_LOAD -DMACH_BSD -DIOKIT -DMACH_PE -DPOWERMAC
-DMACH_KERNEL_PRIVATE -MD -I. -I/Users/alastair/src/xnu-517.7.7/osfmk
-I/Users/alastair/src/xnu-517.7.7/BUILD/obj/EXPORT_HDRS/bsd
-I/Users/alastair/src/xnu-517.7.7/BUILD/obj/EXPORT_HDRS/iokit
-I/Users/alastair/src/xnu-517.7.7/BUILD/obj/EXPORT_HDRS/pexpert
-I/Users/alastair/src/xnu-517.7.7/BUILD/obj/EXPORT_HDRS/libkern
-I/Users/alastair/src/xnu-517.7.7/BUILD/obj/EXPORT_HDRS/libsa
-I/Users/alastair/src/xnu-517.7.7/BUILD/obj/EXTERN_HDRS
-I/Users/alastair/src/xnu-517.7.7/EXTERNAL_HEADERS
-I/Users/alastair/src/xnu-517.7.7/EXTERNAL_HEADERS/bsd
-I/Users/alastair/src/xnu-517.7.7/osfmk/libsa
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c: In function
`chudxnu_set_shadowed_spr':
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c:224: error:
`chud_7400_msscr1' undeclared (first use in this function)
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c:224: error:
(Each undeclared identifier is reported only once
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c:224: error:
for each function it appears in.)
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c: In function
`chudxnu_set_shadowed_spr64':
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c:260: error:
`chud_970_hid0' undeclared (first use in this function)
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c:272: error:
`chud_970_hid1' undeclared (first use in this function)
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c:284: error:
`chud_970_hid4' undeclared (first use in this function)
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c:296: error:
`chud_970_hid5' undeclared (first use in this function)
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c: In function
`chudxnu_clear_cpu_rupt_counters':
/Users/alastair/src/xnu-517.7.7/osfmk/ppc/chud/chud_cpu.c:444: warning:
passing arg 1 of `bzero' from incompatible pointer type
make[6]: *** [chud_cpu.o] Error 1
make[5]: *** [build_all] Error 2
make[4]: *** [do_all] Error 2
make[3]: *** [build_all] Error 2
make[2]: *** [build_all] Error 2
make[1]: *** [build_all] Error 2
make: *** [all] Error 2
_______________________________________________
darwin-kernel mailing list | darwin-kernel@lists.apple.com
Help/Unsubscribe/Archives:
Do not post admin requests to the list. They will be ignored.
_______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.