Re: link state missing error on 10.6
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=8XV8cI7abC2IVnoGgln9AKsz/0NWZzrgLy9t1ETBXuI=; b=tv4mkJBghmIXvSuBM7aNxMeAS6cBGSP8nQpOKVfpd6uGv6mji83eoVZNV5xKSb1yGL 98mVGEyGP6bLVUgGdtxflVOwBMXEVvWm1h813OC5PwSX5XilrmUNWLVZvNlmbm7yL7wI hL8akTL/y2pHYZE6YKWp8w192yd//gRWViO5s= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=A/reeX1KyeAoXof9/p/7IDg+zgcFNQZWfhwnL/qNf6LBLqfXG4gzYdw9KQQ6BSQSY4 GkX9XGJFgv5tDXHxnrkTU0iQp47Z+TZWmyGIIQ+OjddkbXqcL7M0tlQeYztS4YRfcSWS xlwhk0kTkHiCs33XmKgotJ9WZ8dcC3ROqPnWA= 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 <amyrick@apple.com> 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/amyrick%40apple.com
This email sent to amyrick@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Eddington