Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: current_thread() -> Undefined symbols NKE



This link explains symbol dependencies in KEXTs:

<http://developer.apple.com/documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptDependencies/kext_dependencies.html#//apple_ref/doc/uid/20002370-150461 >

You want "com.apple.kernel.mach".

-- Terry

On Jul 23, 2007, at 11:09 PM, Erez Kaplan wrote:
Terry,

>Mach.exports:_current_thread
Where do I add this setting?

Erez



On Jul 24, 2007, at 1:37 AM, Terry Lambert wrote:

Mach.exports:_current_thread

You need to declare a dependency on Mach.

-- Terry

On Jul 23, 2007, at 3:25 AM, Erez Kaplan wrote:
Hi,

I am working with NKE.

I am in need of using current_thread()


#include <kern/thread.h>

thread_t mt_t = current_thread();

Compiling and linking of kext are OK, but loading fails as follows:
(I tried from .c and .cpp to make sure it's not an extern "C" )

+ kextload /tmp/tcplognke.kext
kld(): Undefined symbols:
_current_thread
kextload: kld_load_from_memory() failed for module /tmp/ tcplognke.kext/Contents/MacOS/tcplognke
kextload: a link/load error occured for kernel extension /tmp/ tcplognke.kext
load failed for extension /tmp/tcplognke.kext


Please advise.

Cheers, Erez


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


//====================== Erez Kaplan Senior software engineer OSX email@hidden //======================



_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >current_thread() -> Undefined symbols NKE (From: Erez Kaplan <email@hidden>)
 >Re: current_thread() -> Undefined symbols NKE (From: Terry Lambert <email@hidden>)
 >Re: current_thread() -> Undefined symbols NKE (From: Erez Kaplan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.