Re: current_thread() -> Undefined symbols NKE
Re: current_thread() -> Undefined symbols NKE
- Subject: Re: current_thread() -> Undefined symbols NKE
- From: Terry Lambert <email@hidden>
- Date: Mon, 23 Jul 2007 23:28:01 -0700
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:
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:
This email sent to email@hidden