----- Original Message ----
From: Rick Macklem <email@hidden>
To: Ryan Chapman <email@hidden>
Cc: email@hidden
Sent:
Thursday, March 27, 2008 11:55:10 AM
Subject: Re: IONetworkingFamily kext will not compile
On Wed, 26 Mar 2008, Ryan Chapman wrote:
> Hi all,
>
>
> I'm trying to compile IONetworkingFamily-46 as a kext, using Xcode 3.1 and OS X 10.5.2. This is my first attempt at compiling an Apple kext, so bear with me. I downloaded IONetworkingFamily-46.tar.gz from Apple's opensource website, untar'd, opened the project in Xcode and clicked Build. Build fails with the error:
>
>
> error: 'SIOCSIFDEVMTU' was not declared in this scope
>
Look on
developer.apple.com for "Kernel Extension Concepts" which does a
good job of explaining building, etc ihmo. I think you'll be piddling with
OSBundleLibraries in the Info.plist file, if it's like the generic Kext
I build.
If SIOCSIFDEVMTU isn't defined in any of the headers under
/System/Library/Frameworks/Kernel.framework then either the code needs
modification or you have to build the Kext
against the entire kernel
using xnu-1228 sources (not recommended and only for experimentation
or open source projects).
Good luck with it, rick