Re: Possible Bug, with including
Re: Possible Bug, with including
- Subject: Re: Possible Bug, with including
- From: Matt Jaffa <email@hidden>
- Date: Thu, 11 Mar 2004 16:18:27 -0700
I fixed it,
I found a quick solution but don't know how smart it was.
This is a KEXT project i am doing so I just went to the
/System/Library/Frameworks/Kernel.Framework/Versions/A/Headers/netkey/
and created a blank file key_var.h and now my project compiles just
fine.
Matt
On Mar 11, 2004, at 3:24 PM, Justin Walker wrote:
On Thursday, March 11, 2004, at 11:21 AM, Matt Jaffa wrote:
One letting me know that inpcb was an incomplete type,
so I fixed that by including <netinet/in_pcb.h>
You may be on the verge of giving us too much information :-}
Now i am getting one error:
netkey/key_var.h No such file or directory
this error comes from keydb.h which is some how included with
in_pcb.h some chain of includes
This header file is in the kernel source tree. Not all of these
headers get pushed into /usr/include, so you have to go searching.
Get the 'xnu' tarball from the Darwin site
(http://developer.apple.com).
If you checked the source, you will note that the #include of this
file is 'guarded' by two #ifdefs: KERNEL and __APPLE_API_PRIVATE.
Both should be a signal two you:
KERNEL: the content of this section of the file is for the use of
KERNEL source. Even though you are executing in the kernel's address
space, you aren't in KEXT territory, so you may have to color outside
the lines.
__APPLE_API_PRIVATE: this stuff is subject to change without prior
notice.
It's all been discussed on this and related lists before. When you
run into one of these, in the course of your development, you have to
decide whether you are doing the right thing, and, if so, contact
developer support to tell them that you need this functionality, and
to keep that in mind as they rev the system.
The shorter response to your message is: this is not a bug; the file
is in 'xnu/bsd/netkey', and you will have to get your own copy. Note
that it is important that you use a version of xnu that matches the
environment you are compiling for and in; and compatibility across
versions is not guaranteed.
Cheers,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Some people have a mental
| horizon of radius zero, and
| call it their point of view.
| -- David Hilbert
*--------------------------------------
*-------------------------------*
_______________________________________________
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.
_______________________________________________
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.