Newbie question about building Darwin
Newbie question about building Darwin
- Subject: Newbie question about building Darwin
- From: "Jay O'Conor" <email@hidden>
- Date: Tue, 4 Nov 2003 22:18:41 -0800
Ok, I'm trying to get started with building the Darwin kernel
(xnu-517). I followed the directions in Apple's Kernel Programming
manual:
<
http://developer.apple.com/documentation/Darwin/Conceptual/
KernelProgramming/build/chapter_18_section_3.html#//apple_ref/doc/uid/
TP30000905-CH221-CIHFEIFI>
Everything progresses reasonably well until near the end of the build.
One of the last steps that make wants to execute is 'kextsymboltool'.
Unfortunately, this tools isn't built by any of the steps in the kernel
build procedure in the manual, so the build aborts with an error:
/usr/local/bin/kextsymboltool \
-arch ppc \
-import
/Users/jco/Desktop/Darwin/xnu-517/BUILD/obj/RELEASE_PPC/allsymbols \
-export /Users/jco/Desktop/Darwin/xnu-517/config/System6.0.exports \
-export
/Users/jco/Desktop/Darwin/xnu-517/config/System6.0.ppc.exports \
-output
/Users/jco/Desktop/Darwin/xnu-517/BUILD/obj/RELEASE_PPC/
System6.0.symbolset;
/bin/sh: line 1: /usr/local/bin/kextsymboltool: No such file or
directory
make[3]: ***
[/Users/jco/Desktop/Darwin/xnu-517/BUILD/obj/RELEASE_PPC/
System6.0.symbolset] Error 1
make[2]: *** [build_all] Error 2
make[1]: *** [build_all] Error 2
make: *** [all] Error 2
I took a guess that kextsymboltool would be in the kext_tools-42
project, so I grabbed that. Unfortunately, that project does not have
a Makefile, instead it has a PB project file. Since I'm running
Panther, I'm using XCode, so I fired up XCode, loaded the
kext_tools.pbproj file, allowed XCode to convert it to native, and
attempted to build the kextsymboltool target. No dice. There's a
bunch of headers that kextsymboltool wants access to, and I'm not
entirely sure where to point the build to get the headers. The
#include paths in kextsymboltool.c don't appear to match the paths in
the xnu directory structure, so I don't believe it wants to get the
headers there. It looks like maybe it wants the headers from
Kernel.framework, but that doesn't seem right. If I were building a
different version of the kernel, with potentially different headers, I
would think that kextsymboltool would need to match the kernel being
built.
Bottom line, I'm now thoroughly confused about how to successfully
build xnu-517. If any of you Darwin kernel gurus could give me a
couple of pointers, I'd be eternally grateful.
Thanks.
---
Jay O'Conor
email@hidden
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.