Re: problem building kernel on 10.2.2
Re: problem building kernel on 10.2.2
- Subject: Re: problem building kernel on 10.2.2
- From: "Justin C. Walker" <email@hidden>
- Date: Mon, 2 Dec 2002 08:37:27 -0800
On Monday, December 2, 2002, at 04:11 AM, Heiko Panther wrote:
Hi,
I'm trying to build the 10.2 kernel on 10.2.2. I'm using the "Building
the XNU kernel (for mortals) HOWTO". I can't seem to get past this
point... tried with the September as well as the December dev tools.
This happens when trying to
make RC_OS=macos kld_build
the cctools-435. All packages are tarballs from the darwin projects
directory page at opensource.apple.com.
cc -g -I.. -I../../include -I. -Wall -Wno-precomp -Wno-long-double
-no-cpp-precomp -static -DRLD -DKLD -fno-builtin -finline
-fno-keep-inline-functions -fsigned-bitfields -force_cpusubtype_ALL
-msoft-float -nostdinc
-I/System/Library/Frameworks/Kernel.framework/Headers/libsa
-I/System/Library/Frameworks/Kernel.framework/Headers/bsd
-I/System/Library/Frameworks/Kernel.framework/Headers -DKERNEL
-DKERNEL_PRIVATE -DAPPLE -DNeXT -DLIBSA_PRIVATE -O -c -MD \
-dependency-file ./pass1.d -o ./pass1.o ../pass1.c
In file included from ../pass1.c:36:
/System/Library/Frameworks/Kernel.framework/Headers/sys/file.h:63:24:
No include path in which to find sys/unistd.h
I haven't spent much time with the 10.2/6.x kernel source, but at first
blush, this looks really gross. There is (AFAIK) no such file as
'sys/unistd.h', so the compiler is quite right to complain. I would
look at 'sys/file.h', determine if it is really there, and why, and then
remove it. 'unistd.h' is typically a "user-mode code" include file, and
(a) should never be included in kernel compiles; and (b) should never be
referenced in kernel headers.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
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.