Re: link state missing error on 10.6
Re: link state missing error on 10.6
- Subject: Re: link state missing error on 10.6
- From: Michael Eddington <email@hidden>
- Date: Tue, 26 Jan 2010 14:55:06 -0800
This only appears to happen when my OSBundleLibraries has
"com.apple.kernel" "10.2.0" as the dependencies. If I just use,
com.apple.kernel.bsd or something it will load fine. Sadly I need to
depend on the full com.apple.kernel to resolve nsysent it looks like.
Here is the kextutil from a default project kext with
"com.apple.kernel" as the dependency:
$ sudo kextutil -nt TestIokitKext.kext
No kernel file specified; using running kernel for linking.
Internal error: attempting to link a kext without its dependencies.
Check library declarations for your kext with kextlibs(8).
$ kextlibs TestIokitKext.kext
For all architectures:
No libraries found.
$ sudo kextutil TestIokitKext.kext
(kernel) Can't load kext com.yourcompany.driver.TestIokitKext - link
state missing.
(kernel) Failed to load executable for kext
com.yourcompany.driver.TestIokitKext.
(kernel) Kext com.yourcompany.driver.TestIokitKext failed to load (0xdc000001).
(kernel) Failed to load kext com.yourcompany.driver.TestIokitKext
(error 0xdc000001).
Failed to load TestIokitKext.kext - (libkern/common) general/unspecified error.
-mike
On Tue, Jan 26, 2010 at 2:39 PM, Andrew Myrick <email@hidden> wrote:
> What's the output when you run kextutil -nt?
>
> -Andrew
>
> On Jan 26, 2010, at 2:19 PM, Michael Eddington wrote:
>
>> I was trying out some kext dev on 10.6 and keep running into the
>> following error:
>>
>> $ sudo kextutil TestIokitKext.kext
>> (kernel) Can't load kext com.yourcompany.driver.TestIokitKext - link
>> state missing.
>> (kernel) Failed to load executable for kext
>> com.yourcompany.driver.TestIokitKext.
>> (kernel) Kext com.yourcompany.driver.TestIokitKext failed to load
>> (0xdc000001).
>> (kernel) Failed to load kext com.yourcompany.driver.TestIokitKext
>> (error 0xdc000001).
>> Failed to load TestIokitKext.kext - (libkern/common) general/
>> unspecified error.
>>
>> I get this error for default empty kext projects as well as projects
>> that work under 10.5. Reproduced on a couple of 10.6 boxes.
>>
>> Has anyone run into this yet? I found the error message in
>> OSKext.cpp, but didn't help with fixing the problem.
>>
>> -mike
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Darwin-kernel mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden