[darwinbuild-dev] Building AppleFan.kext

William Siegrist wsiegrist at apple.com
Wed Feb 18 11:01:56 PST 2009


On Feb 18, 2009, at 10:35 AM, Jonas Maebe wrote:

> Jonas Maebe wrote on ma, 16 feb 2009:
>
>> On 16 Feb 2009, at 17:07, William Siegrist wrote:
>>
>>> xnu comes with the 2 files (*.defs) you need in  /usr/include/ 
>>> device. So make sure you load xnu and the files are  there:
>>>
>>> $ darwinbuild -load xnu
>>> $ ls -1 BuildRoot/usr/include/device/
>>> device.defs
>>> device_port.h
>>> device_types.defs
>>> device_types.h
>>>
>>> The source files get generated during the DeviceMIG target of   
>>> IOKitUser.  If you are building with -nochroot, you need to copy   
>>> the .defs files from BuildRoot to /usr/include/device/.
>>
>> Thanks, I missed the "-load". I've also created /usr/include/device  
>> and
>> copied the .defs files there. However, still no dice (same error as
>> before). I did  notice the following in the build log though:
>>
>> (NOTE: project IOKitUser was written by a newer Xcode version (45) --
>> temporarily downgrading it (without modifying project file))
>>
>> I'll try downloading and installing Xcode 3.1.2 and see whether that
>> solves it.
>
> I discovered that the def files are not getting translated in case  
> you build with -nochroot (the shell script of the target that should  
> build that is simply empty in that case for some reason). Since - 
> nochroot was required for my hfs+ disk image, I've restarted from  
> scratch (thanks for the updated instructions in the README). I've  
> also installed Xcode 3.1.2 (first, I ran /Developer/Library/ 
> uninstall-devtools).
>

... snip ...

>
> Anyway, the CF build failed because of a missing  
> AvailabilityMacros.h, and I did not manage to install CarbonHeaders  
> to fix that:
>
> # darwinbuild CarbonHeaders


darwinbuild -load CarbonHeaders

>


-Bill




More information about the darwinbuild-dev mailing list